From a631d74d650f2259a1d937db3e0b7b3a2db4d5d3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Jun 2022 19:54:12 -0400 Subject: [PATCH] fix: update gapic-generator-java with mock service generation fixes (#794) 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: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWUyYzA1Mjc0MzcwNjE2MWFjOTVhZGM1MDQ4YWQ1YTNkZThhNjU4NSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Integrate new gapic-generator-java and rules_gapic PiperOrigin-RevId: 454027580 Source-Link: https://github.com/googleapis/googleapis/commit/1b222777baa702e7135610355706570ed2b56318 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Update pom.xml * fix: update gapic-generator-java with mock service generation fixes PiperOrigin-RevId: 457524730 Source-Link: https://github.com/googleapis/googleapis/commit/917e7f21cb1dc062744c6694437cdd46219f28cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Neenu Shaji --- google-cloud-talent/pom.xml | 16 + .../cloud/talent/v4/CompanyServiceClient.java | 16 +- .../talent/v4/CompanyServiceSettings.java | 23 +- .../cloud/talent/v4/CompletionClient.java | 14 + .../cloud/talent/v4/CompletionSettings.java | 23 +- .../cloud/talent/v4/EventServiceClient.java | 14 + .../cloud/talent/v4/EventServiceSettings.java | 23 +- .../cloud/talent/v4/JobServiceClient.java | 41 +- .../cloud/talent/v4/JobServiceSettings.java | 23 +- .../cloud/talent/v4/TenantServiceClient.java | 16 +- .../talent/v4/TenantServiceSettings.java | 23 +- .../v4/stub/CompanyServiceStubSettings.java | 53 +- .../v4/stub/CompletionStubSettings.java | 53 +- .../v4/stub/EventServiceStubSettings.java | 53 +- ...HttpJsonCompanyServiceCallableFactory.java | 105 + .../v4/stub/HttpJsonCompanyServiceStub.java | 412 + .../HttpJsonCompletionCallableFactory.java | 105 + .../v4/stub/HttpJsonCompletionStub.java | 199 + .../HttpJsonEventServiceCallableFactory.java | 105 + .../v4/stub/HttpJsonEventServiceStub.java | 196 + .../HttpJsonJobServiceCallableFactory.java | 105 + .../v4/stub/HttpJsonJobServiceStub.java | 741 + .../HttpJsonTenantServiceCallableFactory.java | 105 + .../v4/stub/HttpJsonTenantServiceStub.java | 408 + .../cloud/talent/v4/stub/JobServiceStub.java | 6 +- .../v4/stub/JobServiceStubSettings.java | 53 +- .../v4/stub/TenantServiceStubSettings.java | 53 +- .../v4beta1/ApplicationServiceClient.java | 827 - .../v4beta1/ApplicationServiceSettings.java | 235 - .../talent/v4beta1/CompanyServiceClient.java | 16 +- .../v4beta1/CompanyServiceSettings.java | 23 +- .../talent/v4beta1/CompletionClient.java | 14 + .../talent/v4beta1/CompletionSettings.java | 23 +- .../talent/v4beta1/EventServiceClient.java | 14 + .../talent/v4beta1/EventServiceSettings.java | 23 +- .../talent/v4beta1/JobServiceClient.java | 62 +- .../talent/v4beta1/JobServiceSettings.java | 23 +- .../talent/v4beta1/ProfileServiceClient.java | 1023 -- .../v4beta1/ProfileServiceSettings.java | 246 - .../talent/v4beta1/TenantServiceClient.java | 16 +- .../talent/v4beta1/TenantServiceSettings.java | 23 +- .../cloud/talent/v4beta1/gapic_metadata.json | 51 - .../cloud/talent/v4beta1/package-info.java | 36 +- .../v4beta1/stub/ApplicationServiceStub.java | 72 - .../stub/ApplicationServiceStubSettings.java | 471 - .../stub/CompanyServiceStubSettings.java | 53 +- .../v4beta1/stub/CompletionStubSettings.java | 53 +- .../stub/EventServiceStubSettings.java | 53 +- .../stub/GrpcApplicationServiceStub.java | 310 - .../v4beta1/stub/GrpcProfileServiceStub.java | 339 - ...ttpJsonCompanyServiceCallableFactory.java} | 74 +- .../stub/HttpJsonCompanyServiceStub.java | 417 + ...=> HttpJsonCompletionCallableFactory.java} | 74 +- .../v4beta1/stub/HttpJsonCompletionStub.java | 200 + .../HttpJsonEventServiceCallableFactory.java | 105 + .../stub/HttpJsonEventServiceStub.java | 197 + .../HttpJsonJobServiceCallableFactory.java | 105 + .../v4beta1/stub/HttpJsonJobServiceStub.java | 755 + .../HttpJsonTenantServiceCallableFactory.java | 105 + .../stub/HttpJsonTenantServiceStub.java | 408 + .../talent/v4beta1/stub/JobServiceStub.java | 6 +- .../v4beta1/stub/JobServiceStubSettings.java | 53 +- .../v4beta1/stub/ProfileServiceStub.java | 82 - .../stub/ProfileServiceStubSettings.java | 547 - .../stub/TenantServiceStubSettings.java | 53 +- .../v4/CompanyServiceClientHttpJsonTest.java | 576 + .../v4/CompletionClientHttpJsonTest.java | 132 + .../v4/EventServiceClientHttpJsonTest.java | 172 + .../v4/JobServiceClientHttpJsonTest.java | 1155 ++ .../v4/TenantServiceClientHttpJsonTest.java | 498 + .../v4beta1/ApplicationServiceClientTest.java | 526 - .../CompanyServiceClientHttpJsonTest.java | 699 + .../v4beta1/CompletionClientHttpJsonTest.java | 136 + .../EventServiceClientHttpJsonTest.java | 221 + .../v4beta1/JobServiceClientHttpJsonTest.java | 1441 ++ .../talent/v4beta1/JobServiceClientTest.java | 2 + .../v4beta1/MockApplicationService.java | 59 - .../v4beta1/MockApplicationServiceImpl.java | 166 - .../talent/v4beta1/MockProfileService.java | 59 - .../v4beta1/MockProfileServiceImpl.java | 185 - .../v4beta1/ProfileServiceClientTest.java | 671 - .../TenantServiceClientHttpJsonTest.java | 503 + .../v4beta1/ApplicationServiceGrpc.java | 840 - .../talent/v4beta1/ProfileServiceGrpc.java | 968 -- .../google/cloud/talent/v4beta1/Activity.java | 3067 ---- .../talent/v4beta1/ActivityOrBuilder.java | 415 - .../talent/v4beta1/AdditionalContactInfo.java | 997 -- .../AdditionalContactInfoOrBuilder.java | 106 - .../google/cloud/talent/v4beta1/Address.java | 1530 -- .../talent/v4beta1/AddressOrBuilder.java | 171 - .../cloud/talent/v4beta1/Application.java | 4806 ------ .../talent/v4beta1/ApplicationDateFilter.java | 1009 -- .../ApplicationDateFilterOrBuilder.java | 101 - .../talent/v4beta1/ApplicationJobFilter.java | 925 -- .../ApplicationJobFilterOrBuilder.java | 93 - .../cloud/talent/v4beta1/ApplicationName.java | 260 - .../talent/v4beta1/ApplicationOrBuilder.java | 576 - .../ApplicationOutcomeNotesFilter.java | 748 - ...pplicationOutcomeNotesFilterOrBuilder.java | 67 - .../v4beta1/ApplicationResourceProto.java | 137 - .../v4beta1/ApplicationServiceProto.java | 207 - .../talent/v4beta1/AvailabilityFilter.java | 1037 -- .../v4beta1/AvailabilityFilterOrBuilder.java | 111 - .../talent/v4beta1/AvailabilitySignal.java | 1219 -- .../v4beta1/AvailabilitySignalOrBuilder.java | 132 - .../v4beta1/AvailabilitySignalType.java | 311 - .../cloud/talent/v4beta1/BatchProto.java | 15 +- .../v4beta1/CandidateAvailabilityFilter.java | 556 - .../CandidateAvailabilityFilterOrBuilder.java | 40 - .../cloud/talent/v4beta1/Certification.java | 1537 -- .../v4beta1/CertificationOrBuilder.java | 176 - .../cloud/talent/v4beta1/ClientEvent.java | 319 - .../talent/v4beta1/ClientEventOrBuilder.java | 38 - .../cloud/talent/v4beta1/CommonProto.java | 344 +- .../cloud/talent/v4beta1/CommuteMethod.java | 2 +- .../talent/v4beta1/CompanyResourceProto.java | 43 +- .../v4beta1/CompletionServiceProto.java | 12 +- .../talent/v4beta1/ContactInfoUsage.java | 198 - .../v4beta1/CreateApplicationRequest.java | 976 -- .../CreateApplicationRequestOrBuilder.java | 101 - .../talent/v4beta1/CreateProfileRequest.java | 967 -- .../CreateProfileRequestOrBuilder.java | 99 - .../cloud/talent/v4beta1/CustomAttribute.java | 122 +- .../v4beta1/CustomAttributeOrBuilder.java | 21 +- .../google/cloud/talent/v4beta1/Degree.java | 1107 -- .../cloud/talent/v4beta1/DegreeOrBuilder.java | 138 - .../v4beta1/DeleteApplicationRequest.java | 674 - .../DeleteApplicationRequestOrBuilder.java | 60 - .../talent/v4beta1/DeleteProfileRequest.java | 673 - .../DeleteProfileRequestOrBuilder.java | 60 - .../cloud/talent/v4beta1/EducationFilter.java | 1090 -- .../v4beta1/EducationFilterOrBuilder.java | 122 - .../cloud/talent/v4beta1/EducationRecord.java | 3194 ---- .../v4beta1/EducationRecordOrBuilder.java | 394 - .../google/cloud/talent/v4beta1/Email.java | 797 - .../cloud/talent/v4beta1/EmailOrBuilder.java | 77 - .../cloud/talent/v4beta1/EmployerFilter.java | 1083 -- .../v4beta1/EmployerFilterOrBuilder.java | 91 - .../talent/v4beta1/EmploymentRecord.java | 3424 ---- .../v4beta1/EmploymentRecordOrBuilder.java | 436 - .../cloud/talent/v4beta1/EventProto.java | 74 +- .../cloud/talent/v4beta1/FiltersProto.java | 365 +- .../talent/v4beta1/GetApplicationRequest.java | 674 - .../GetApplicationRequestOrBuilder.java | 60 - .../talent/v4beta1/GetProfileRequest.java | 673 - .../v4beta1/GetProfileRequestOrBuilder.java | 60 - .../cloud/talent/v4beta1/HistogramProto.java | 27 +- .../talent/v4beta1/HtmlSanitization.java | 2 +- .../cloud/talent/v4beta1/Interview.java | 903 -- .../talent/v4beta1/InterviewOrBuilder.java | 91 - .../com/google/cloud/talent/v4beta1/Job.java | 14 +- .../cloud/talent/v4beta1/JobOrBuilder.java | 4 +- .../google/cloud/talent/v4beta1/JobQuery.java | 222 +- .../talent/v4beta1/JobQueryOrBuilder.java | 68 +- .../talent/v4beta1/JobResourceProto.java | 114 +- .../cloud/talent/v4beta1/JobServiceProto.java | 319 +- .../cloud/talent/v4beta1/JobTitleFilter.java | 730 - .../v4beta1/JobTitleFilterOrBuilder.java | 64 - .../v4beta1/ListApplicationsRequest.java | 947 -- .../ListApplicationsRequestOrBuilder.java | 99 - .../v4beta1/ListApplicationsResponse.java | 1425 -- .../ListApplicationsResponseOrBuilder.java | 140 - .../cloud/talent/v4beta1/ListJobsRequest.java | 42 +- .../v4beta1/ListJobsRequestOrBuilder.java | 12 +- .../talent/v4beta1/ListProfilesRequest.java | 1506 -- .../v4beta1/ListProfilesRequestOrBuilder.java | 190 - .../talent/v4beta1/ListProfilesResponse.java | 1137 -- .../ListProfilesResponseOrBuilder.java | 104 - .../cloud/talent/v4beta1/LocationFilter.java | 221 +- .../v4beta1/LocationFilterOrBuilder.java | 53 +- .../google/cloud/talent/v4beta1/Outcome.java | 230 - .../google/cloud/talent/v4beta1/Patent.java | 2703 ---- .../cloud/talent/v4beta1/PatentOrBuilder.java | 337 - .../cloud/talent/v4beta1/PersonName.java | 3342 ---- .../talent/v4beta1/PersonNameFilter.java | 665 - .../v4beta1/PersonNameFilterOrBuilder.java | 58 - .../talent/v4beta1/PersonNameOrBuilder.java | 135 - .../cloud/talent/v4beta1/PersonalUri.java | 643 - .../talent/v4beta1/PersonalUriOrBuilder.java | 52 - .../google/cloud/talent/v4beta1/Phone.java | 1486 -- .../cloud/talent/v4beta1/PhoneOrBuilder.java | 137 - .../google/cloud/talent/v4beta1/Profile.java | 13382 ---------------- .../cloud/talent/v4beta1/ProfileEvent.java | 1487 -- .../talent/v4beta1/ProfileEventOrBuilder.java | 184 - .../cloud/talent/v4beta1/ProfileName.java | 223 - .../talent/v4beta1/ProfileOrBuilder.java | 1785 --- .../cloud/talent/v4beta1/ProfileQuery.java | 10355 ------------ .../talent/v4beta1/ProfileQueryOrBuilder.java | 1429 -- .../talent/v4beta1/ProfileResourceProto.java | 497 - .../talent/v4beta1/ProfileServiceProto.java | 299 - .../cloud/talent/v4beta1/Publication.java | 2318 --- .../talent/v4beta1/PublicationOrBuilder.java | 304 - .../google/cloud/talent/v4beta1/Rating.java | 833 - .../cloud/talent/v4beta1/RatingOrBuilder.java | 78 - .../google/cloud/talent/v4beta1/Resume.java | 1006 -- .../cloud/talent/v4beta1/ResumeOrBuilder.java | 91 - .../talent/v4beta1/SearchJobsRequest.java | 626 +- .../v4beta1/SearchJobsRequestOrBuilder.java | 80 +- .../talent/v4beta1/SearchJobsResponse.java | 24 +- .../v4beta1/SearchJobsResponseOrBuilder.java | 6 +- .../talent/v4beta1/SearchProfilesRequest.java | 4515 ------ .../SearchProfilesRequestOrBuilder.java | 733 - .../v4beta1/SearchProfilesResponse.java | 2570 --- .../SearchProfilesResponseOrBuilder.java | 285 - .../google/cloud/talent/v4beta1/Skill.java | 1453 -- .../cloud/talent/v4beta1/SkillFilter.java | 730 - .../talent/v4beta1/SkillFilterOrBuilder.java | 64 - .../cloud/talent/v4beta1/SkillOrBuilder.java | 172 - .../talent/v4beta1/SkillProficiencyLevel.java | 275 - .../talent/v4beta1/SummarizedProfile.java | 1348 -- .../v4beta1/SummarizedProfileOrBuilder.java | 142 - .../talent/v4beta1/TenantResourceProto.java | 30 +- .../cloud/talent/v4beta1/TimeFilter.java | 1363 -- .../talent/v4beta1/TimeFilterOrBuilder.java | 134 - .../v4beta1/UpdateApplicationRequest.java | 1081 -- .../UpdateApplicationRequestOrBuilder.java | 113 - .../talent/v4beta1/UpdateProfileRequest.java | 1043 -- .../UpdateProfileRequestOrBuilder.java | 104 - .../talent/v4beta1/WorkExperienceFilter.java | 1014 -- .../WorkExperienceFilterOrBuilder.java | 95 - .../cloud/talent/v4beta1/application.proto | 183 - .../talent/v4beta1/application_service.proto | 181 - .../google/cloud/talent/v4beta1/batch.proto | 4 +- .../google/cloud/talent/v4beta1/common.proto | 390 +- .../google/cloud/talent/v4beta1/company.proto | 3 +- .../talent/v4beta1/company_service.proto | 2 +- .../talent/v4beta1/completion_service.proto | 4 +- .../google/cloud/talent/v4beta1/event.proto | 59 +- .../cloud/talent/v4beta1/event_service.proto | 2 +- .../google/cloud/talent/v4beta1/filters.proto | 494 +- .../cloud/talent/v4beta1/histogram.proto | 4 +- .../google/cloud/talent/v4beta1/job.proto | 4 +- .../cloud/talent/v4beta1/job_service.proto | 223 +- .../google/cloud/talent/v4beta1/profile.proto | 783 - .../talent/v4beta1/profile_service.proto | 467 - .../google/cloud/talent/v4beta1/tenant.proto | 4 +- .../cloud/talent/v4beta1/tenant_service.proto | 2 +- 237 files changed, 13313 insertions(+), 118086 deletions(-) create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionStub.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java rename google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/{GrpcProfileServiceCallableFactory.java => HttpJsonCompanyServiceCallableFactory.java} (53%) create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompanyServiceStub.java rename google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/{GrpcApplicationServiceCallableFactory.java => HttpJsonCompletionCallableFactory.java} (53%) create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompletionStub.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceStub.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceStub.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceCallableFactory.java create mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceStub.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java delete mode 100644 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompanyServiceClientHttpJsonTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompletionClientHttpJsonTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4/EventServiceClientHttpJsonTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4/JobServiceClientHttpJsonTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4/TenantServiceClientHttpJsonTest.java delete mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientHttpJsonTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientHttpJsonTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientHttpJsonTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientHttpJsonTest.java delete mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationService.java delete mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java delete mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java delete mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java delete mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java create mode 100644 google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientHttpJsonTest.java delete mode 100644 grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java delete mode 100644 grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignal.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalType.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Resume.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto delete mode 100644 proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto diff --git a/google-cloud-talent/pom.xml b/google-cloud-talent/pom.xml index 85f9a600..53ba84d1 100644 --- a/google-cloud-talent/pom.xml +++ b/google-cloud-talent/pom.xml @@ -62,6 +62,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -89,12 +93,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java index 6dc14334..baef8877 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java @@ -99,6 +99,20 @@ * CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CompanyServiceSettings companyServiceSettings =
+ *     CompanyServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CompanyServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -680,7 +694,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque * .build(); * while (true) { * ListCompaniesResponse response = companyServiceClient.listCompaniesCallable().call(request); - * for (Company element : response.getResponsesList()) { + * for (Company element : response.getCompaniesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java index f81e8df5..2daf5030 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -123,11 +124,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CompanyServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CompanyServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CompanyServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CompanyServiceStubSettings.defaultTransportChannelProvider(); } @@ -137,11 +145,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CompanyServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -179,6 +193,11 @@ private static Builder createDefault() { return new Builder(CompanyServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CompanyServiceStubSettings.newHttpJsonBuilder()); + } + public CompanyServiceStubSettings.Builder getStubSettingsBuilder() { return ((CompanyServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java index c6c7e61b..d2fc16c3 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java @@ -95,6 +95,20 @@ * CompletionClient completionClient = CompletionClient.create(completionSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CompletionSettings completionSettings =
+ *     CompletionSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CompletionSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CompletionClient completionClient = CompletionClient.create(completionSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java index f1314c2e..b9dc6359 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java @@ -21,6 +21,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -96,11 +97,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CompletionStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CompletionStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CompletionStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CompletionStubSettings.defaultTransportChannelProvider(); } @@ -110,11 +118,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CompletionStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -152,6 +166,11 @@ private static Builder createDefault() { return new Builder(CompletionStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CompletionStubSettings.newHttpJsonBuilder()); + } + public CompletionStubSettings.Builder getStubSettingsBuilder() { return ((CompletionStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java index 028a87b9..9810c64f 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java @@ -89,6 +89,20 @@ * EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * EventServiceSettings eventServiceSettings =
+ *     EventServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             EventServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java index 8bd4d94d..641f90e1 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java @@ -21,6 +21,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -97,11 +98,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return EventServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return EventServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return EventServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return EventServiceStubSettings.defaultTransportChannelProvider(); } @@ -111,11 +119,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return EventServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -153,6 +167,11 @@ private static Builder createDefault() { return new Builder(EventServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(EventServiceStubSettings.newHttpJsonBuilder()); + } + public EventServiceStubSettings.Builder getStubSettingsBuilder() { return ((EventServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java index eda252a8..ee5f4299 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java @@ -18,7 +18,9 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -30,7 +32,6 @@ import com.google.cloud.talent.v4.stub.JobServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -104,13 +105,28 @@ * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * JobServiceSettings jobServiceSettings =
+ *     JobServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             JobServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class JobServiceClient implements BackgroundResource { private final JobServiceSettings settings; private final JobServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of JobServiceClient with default settings. */ public static final JobServiceClient create() throws IOException { @@ -140,13 +156,17 @@ public static final JobServiceClient create(JobServiceStub stub) { protected JobServiceClient(JobServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((JobServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected JobServiceClient(JobServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final JobServiceSettings getSettings() { @@ -161,10 +181,19 @@ public JobServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job. @@ -1197,7 +1226,7 @@ public final UnaryCallable listJobsPaged * .build(); * while (true) { * ListJobsResponse response = jobServiceClient.listJobsCallable().call(request); - * for (Job element : response.getResponsesList()) { + * for (Job element : response.getJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java index 833e6a81..d1627587 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -169,11 +170,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return JobServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return JobServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return JobServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return JobServiceStubSettings.defaultTransportChannelProvider(); } @@ -183,11 +191,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return JobServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -225,6 +239,11 @@ private static Builder createDefault() { return new Builder(JobServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(JobServiceStubSettings.newHttpJsonBuilder()); + } + public JobServiceStubSettings.Builder getStubSettingsBuilder() { return ((JobServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java index 010a8619..306e4151 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java @@ -99,6 +99,20 @@ * TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * TenantServiceSettings tenantServiceSettings =
+ *     TenantServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             TenantServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -672,7 +686,7 @@ public final ListTenantsPagedResponse listTenants(ListTenantsRequest request) { * .build(); * while (true) { * ListTenantsResponse response = tenantServiceClient.listTenantsCallable().call(request); - * for (Tenant element : response.getResponsesList()) { + * for (Tenant element : response.getTenantsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java index e6619324..94b938e8 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -122,11 +123,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return TenantServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return TenantServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TenantServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return TenantServiceStubSettings.defaultTransportChannelProvider(); } @@ -136,11 +144,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return TenantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -178,6 +192,11 @@ private static Builder createDefault() { return new Builder(TenantServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TenantServiceStubSettings.newHttpJsonBuilder()); + } + public TenantServiceStubSettings.Builder getStubSettingsBuilder() { return ((TenantServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java index ead214b0..436bd1a7 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -193,6 +196,11 @@ public CompanyServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCompanyServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCompanyServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -225,18 +233,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CompanyServiceStubSettings.class)) @@ -244,11 +259,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompanyServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompanyServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -376,6 +410,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createCompanySettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java index 4c41fbd2..85325fb0 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -98,6 +101,11 @@ public CompletionStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCompletionStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCompletionStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -130,18 +138,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CompletionStubSettings.class)) @@ -149,11 +164,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompletionStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompletionStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -244,6 +278,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .completeQuerySettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java index 3c9b4b7e..11e920d7 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -98,6 +101,11 @@ public EventServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcEventServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonEventServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -130,18 +138,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(EventServiceStubSettings.class)) @@ -149,11 +164,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EventServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EventServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -238,6 +272,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createClientEventSettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceCallableFactory.java new file mode 100644 index 00000000..f3787387 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CompanyService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCompanyServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java new file mode 100644 index 00000000..9e7d2009 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java @@ -0,0 +1,412 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import static com.google.cloud.talent.v4.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CreateCompanyRequest; +import com.google.cloud.talent.v4.DeleteCompanyRequest; +import com.google.cloud.talent.v4.GetCompanyRequest; +import com.google.cloud.talent.v4.ListCompaniesRequest; +import com.google.cloud.talent.v4.ListCompaniesResponse; +import com.google.cloud.talent.v4.UpdateCompanyRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CompanyService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCompanyServiceStub extends CompanyServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.CompanyService/CreateCompany") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/companies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("company", request.getCompany())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Company.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.CompanyService/GetCompany") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{name=projects/*/tenants/*/companies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Company.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.CompanyService/UpdateCompany") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{company.name=projects/*/tenants/*/companies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "company.name", request.getCompany().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("company", request.getCompany())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Company.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.CompanyService/DeleteCompany") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{name=projects/*/tenants/*/companies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCompaniesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.CompanyService/ListCompanies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/companies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "requireOpenJobs", request.getRequireOpenJobs()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCompaniesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createCompanyCallable; + private final UnaryCallable getCompanyCallable; + private final UnaryCallable updateCompanyCallable; + private final UnaryCallable deleteCompanyCallable; + private final UnaryCallable listCompaniesCallable; + private final UnaryCallable + listCompaniesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCompanyServiceStub create(CompanyServiceStubSettings settings) + throws IOException { + return new HttpJsonCompanyServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCompanyServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCompanyServiceStub( + CompanyServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCompanyServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCompanyServiceStub( + CompanyServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCompanyServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCompanyServiceStub( + CompanyServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCompanyServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCompanyServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCompanyServiceStub( + CompanyServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCompaniesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCompaniesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createCompanyCallable = + callableFactory.createUnaryCallable( + createCompanyTransportSettings, settings.createCompanySettings(), clientContext); + this.getCompanyCallable = + callableFactory.createUnaryCallable( + getCompanyTransportSettings, settings.getCompanySettings(), clientContext); + this.updateCompanyCallable = + callableFactory.createUnaryCallable( + updateCompanyTransportSettings, settings.updateCompanySettings(), clientContext); + this.deleteCompanyCallable = + callableFactory.createUnaryCallable( + deleteCompanyTransportSettings, settings.deleteCompanySettings(), clientContext); + this.listCompaniesCallable = + callableFactory.createUnaryCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + this.listCompaniesPagedCallable = + callableFactory.createPagedCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createCompanyMethodDescriptor); + methodDescriptors.add(getCompanyMethodDescriptor); + methodDescriptors.add(updateCompanyMethodDescriptor); + methodDescriptors.add(deleteCompanyMethodDescriptor); + methodDescriptors.add(listCompaniesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createCompanyCallable() { + return createCompanyCallable; + } + + @Override + public UnaryCallable getCompanyCallable() { + return getCompanyCallable; + } + + @Override + public UnaryCallable updateCompanyCallable() { + return updateCompanyCallable; + } + + @Override + public UnaryCallable deleteCompanyCallable() { + return deleteCompanyCallable; + } + + @Override + public UnaryCallable listCompaniesCallable() { + return listCompaniesCallable; + } + + @Override + public UnaryCallable + listCompaniesPagedCallable() { + return listCompaniesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionCallableFactory.java new file mode 100644 index 00000000..5eb65264 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Completion service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCompletionCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionStub.java new file mode 100644 index 00000000..0bfd4c86 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompletionStub.java @@ -0,0 +1,199 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4.CompleteQueryRequest; +import com.google.cloud.talent.v4.CompleteQueryResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Completion service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCompletionStub extends CompletionStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + completeQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.Completion/CompleteQuery") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{tenant=projects/*/tenants/*}:completeQuery", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "tenant", request.getTenant()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "company", request.getCompany()); + serializer.putQueryParam( + fields, "languageCodes", request.getLanguageCodesList()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "scope", request.getScope()); + serializer.putQueryParam(fields, "type", request.getType()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompleteQueryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable completeQueryCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCompletionStub create(CompletionStubSettings settings) + throws IOException { + return new HttpJsonCompletionStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCompletionStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCompletionStub( + CompletionStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCompletionStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCompletionStub( + CompletionStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCompletionStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCompletionStub(CompletionStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCompletionCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCompletionStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCompletionStub( + CompletionStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + completeQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(completeQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.completeQueryCallable = + callableFactory.createUnaryCallable( + completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(completeQueryMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable completeQueryCallable() { + return completeQueryCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceCallableFactory.java new file mode 100644 index 00000000..6e66ee45 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the EventService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonEventServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java new file mode 100644 index 00000000..c99a590d --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java @@ -0,0 +1,196 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4.ClientEvent; +import com.google.cloud.talent.v4.CreateClientEventRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the EventService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonEventServiceStub extends EventServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createClientEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.EventService/CreateClientEvent") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/clientEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("clientEvent", request.getClientEvent())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ClientEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createClientEventCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonEventServiceStub create(EventServiceStubSettings settings) + throws IOException { + return new HttpJsonEventServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonEventServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonEventServiceStub( + EventServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonEventServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonEventServiceStub( + EventServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonEventServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonEventServiceStub(EventServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonEventServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonEventServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonEventServiceStub( + EventServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createClientEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createClientEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createClientEventCallable = + callableFactory.createUnaryCallable( + createClientEventTransportSettings, + settings.createClientEventSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createClientEventMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createClientEventCallable() { + return createClientEventCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceCallableFactory.java new file mode 100644 index 00000000..dee11b1d --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the JobService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonJobServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java new file mode 100644 index 00000000..a5ff3c6d --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java @@ -0,0 +1,741 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import static com.google.cloud.talent.v4.JobServiceClient.ListJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4.BatchCreateJobsRequest; +import com.google.cloud.talent.v4.BatchCreateJobsResponse; +import com.google.cloud.talent.v4.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4.BatchDeleteJobsResponse; +import com.google.cloud.talent.v4.BatchOperationMetadata; +import com.google.cloud.talent.v4.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4.BatchUpdateJobsResponse; +import com.google.cloud.talent.v4.CreateJobRequest; +import com.google.cloud.talent.v4.DeleteJobRequest; +import com.google.cloud.talent.v4.GetJobRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.ListJobsRequest; +import com.google.cloud.talent.v4.ListJobsResponse; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.UpdateJobRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the JobService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonJobServiceStub extends JobServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(BatchUpdateJobsResponse.getDescriptor()) + .add(BatchCreateJobsResponse.getDescriptor()) + .add(BatchOperationMetadata.getDescriptor()) + .add(BatchDeleteJobsResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor createJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/CreateJob") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchCreateJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/BatchCreateJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/jobs:batchCreate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchCreateJobsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/GetJob") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{name=projects/*/tenants/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/UpdateJob") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{job.name=projects/*/tenants/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "job.name", request.getJob().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchUpdateJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/BatchUpdateJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/jobs:batchUpdate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchUpdateJobsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor deleteJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/DeleteJob") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{name=projects/*/tenants/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchDeleteJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/BatchDeleteJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/jobs:batchDelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchDeleteJobsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/ListJobs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "jobView", request.getJobView()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/SearchJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/jobs:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchJobsForAlertMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.JobService/SearchJobsForAlert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*/tenants/*}/jobs:searchForAlert", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createJobCallable; + private final UnaryCallable batchCreateJobsCallable; + private final OperationCallable< + BatchCreateJobsRequest, BatchCreateJobsResponse, BatchOperationMetadata> + batchCreateJobsOperationCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable updateJobCallable; + private final UnaryCallable batchUpdateJobsCallable; + private final OperationCallable< + BatchUpdateJobsRequest, BatchUpdateJobsResponse, BatchOperationMetadata> + batchUpdateJobsOperationCallable; + private final UnaryCallable deleteJobCallable; + private final UnaryCallable batchDeleteJobsCallable; + private final OperationCallable< + BatchDeleteJobsRequest, BatchDeleteJobsResponse, BatchOperationMetadata> + batchDeleteJobsOperationCallable; + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable searchJobsCallable; + private final UnaryCallable searchJobsForAlertCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonJobServiceStub create(JobServiceStubSettings settings) + throws IOException { + return new HttpJsonJobServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonJobServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonJobServiceStub( + JobServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonJobServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonJobServiceStub( + JobServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonJobServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonJobServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonJobServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonJobServiceStub( + JobServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings batchCreateJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchCreateJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings batchUpdateJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings batchDeleteJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings searchJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + searchJobsForAlertTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchJobsForAlertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createJobCallable = + callableFactory.createUnaryCallable( + createJobTransportSettings, settings.createJobSettings(), clientContext); + this.batchCreateJobsCallable = + callableFactory.createUnaryCallable( + batchCreateJobsTransportSettings, settings.batchCreateJobsSettings(), clientContext); + this.batchCreateJobsOperationCallable = + callableFactory.createOperationCallable( + batchCreateJobsTransportSettings, + settings.batchCreateJobsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.batchUpdateJobsCallable = + callableFactory.createUnaryCallable( + batchUpdateJobsTransportSettings, settings.batchUpdateJobsSettings(), clientContext); + this.batchUpdateJobsOperationCallable = + callableFactory.createOperationCallable( + batchUpdateJobsTransportSettings, + settings.batchUpdateJobsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + this.batchDeleteJobsCallable = + callableFactory.createUnaryCallable( + batchDeleteJobsTransportSettings, settings.batchDeleteJobsSettings(), clientContext); + this.batchDeleteJobsOperationCallable = + callableFactory.createOperationCallable( + batchDeleteJobsTransportSettings, + settings.batchDeleteJobsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.searchJobsCallable = + callableFactory.createUnaryCallable( + searchJobsTransportSettings, settings.searchJobsSettings(), clientContext); + this.searchJobsForAlertCallable = + callableFactory.createUnaryCallable( + searchJobsForAlertTransportSettings, + settings.searchJobsForAlertSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createJobMethodDescriptor); + methodDescriptors.add(batchCreateJobsMethodDescriptor); + methodDescriptors.add(getJobMethodDescriptor); + methodDescriptors.add(updateJobMethodDescriptor); + methodDescriptors.add(batchUpdateJobsMethodDescriptor); + methodDescriptors.add(deleteJobMethodDescriptor); + methodDescriptors.add(batchDeleteJobsMethodDescriptor); + methodDescriptors.add(listJobsMethodDescriptor); + methodDescriptors.add(searchJobsMethodDescriptor); + methodDescriptors.add(searchJobsForAlertMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createJobCallable() { + return createJobCallable; + } + + @Override + public UnaryCallable batchCreateJobsCallable() { + return batchCreateJobsCallable; + } + + @Override + public OperationCallable + batchCreateJobsOperationCallable() { + return batchCreateJobsOperationCallable; + } + + @Override + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + @Override + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + @Override + public UnaryCallable batchUpdateJobsCallable() { + return batchUpdateJobsCallable; + } + + @Override + public OperationCallable + batchUpdateJobsOperationCallable() { + return batchUpdateJobsOperationCallable; + } + + @Override + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + @Override + public UnaryCallable batchDeleteJobsCallable() { + return batchDeleteJobsCallable; + } + + @Override + public OperationCallable + batchDeleteJobsOperationCallable() { + return batchDeleteJobsOperationCallable; + } + + @Override + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + @Override + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + @Override + public UnaryCallable searchJobsCallable() { + return searchJobsCallable; + } + + @Override + public UnaryCallable searchJobsForAlertCallable() { + return searchJobsForAlertCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceCallableFactory.java new file mode 100644 index 00000000..7866f453 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TenantService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTenantServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java new file mode 100644 index 00000000..6ca87cfa --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java @@ -0,0 +1,408 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub; + +import static com.google.cloud.talent.v4.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4.CreateTenantRequest; +import com.google.cloud.talent.v4.DeleteTenantRequest; +import com.google.cloud.talent.v4.GetTenantRequest; +import com.google.cloud.talent.v4.ListTenantsRequest; +import com.google.cloud.talent.v4.ListTenantsResponse; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.UpdateTenantRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TenantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTenantServiceStub extends TenantServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.TenantService/CreateTenant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*}/tenants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("tenant", request.getTenant())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.TenantService/GetTenant") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{name=projects/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.TenantService/UpdateTenant") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{tenant.name=projects/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "tenant.name", request.getTenant().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("tenant", request.getTenant())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.TenantService/DeleteTenant") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{name=projects/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTenantsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4.TenantService/ListTenants") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4/{parent=projects/*}/tenants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTenantsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createTenantCallable; + private final UnaryCallable getTenantCallable; + private final UnaryCallable updateTenantCallable; + private final UnaryCallable deleteTenantCallable; + private final UnaryCallable listTenantsCallable; + private final UnaryCallable + listTenantsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTenantServiceStub create(TenantServiceStubSettings settings) + throws IOException { + return new HttpJsonTenantServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTenantServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTenantServiceStub( + TenantServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTenantServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTenantServiceStub( + TenantServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonTenantServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTenantServiceStub( + TenantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTenantServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTenantServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTenantServiceStub( + TenantServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listTenantsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTenantsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createTenantCallable = + callableFactory.createUnaryCallable( + createTenantTransportSettings, settings.createTenantSettings(), clientContext); + this.getTenantCallable = + callableFactory.createUnaryCallable( + getTenantTransportSettings, settings.getTenantSettings(), clientContext); + this.updateTenantCallable = + callableFactory.createUnaryCallable( + updateTenantTransportSettings, settings.updateTenantSettings(), clientContext); + this.deleteTenantCallable = + callableFactory.createUnaryCallable( + deleteTenantTransportSettings, settings.deleteTenantSettings(), clientContext); + this.listTenantsCallable = + callableFactory.createUnaryCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.listTenantsPagedCallable = + callableFactory.createPagedCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createTenantMethodDescriptor); + methodDescriptors.add(getTenantMethodDescriptor); + methodDescriptors.add(updateTenantMethodDescriptor); + methodDescriptors.add(deleteTenantMethodDescriptor); + methodDescriptors.add(listTenantsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createTenantCallable() { + return createTenantCallable; + } + + @Override + public UnaryCallable getTenantCallable() { + return getTenantCallable; + } + + @Override + public UnaryCallable updateTenantCallable() { + return updateTenantCallable; + } + + @Override + public UnaryCallable deleteTenantCallable() { + return deleteTenantCallable; + } + + @Override + public UnaryCallable listTenantsCallable() { + return listTenantsCallable; + } + + @Override + public UnaryCallable listTenantsPagedCallable() { + return listTenantsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java index 34ce259d..f0797cfc 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStub.java @@ -52,7 +52,11 @@ public abstract class JobServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable createJobCallable() { diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java index fba0ce81..7b8475d8 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -264,6 +267,11 @@ public JobServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcJobServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonJobServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -296,18 +304,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(JobServiceStubSettings.class)) @@ -315,11 +330,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(JobServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return JobServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -500,6 +534,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createJobSettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java index 4b4ca58f..717718b9 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -192,6 +195,11 @@ public TenantServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcTenantServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTenantServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -224,18 +232,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(TenantServiceStubSettings.class)) @@ -243,11 +258,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TenantServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TenantServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -375,6 +409,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createTenantSettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java deleted file mode 100644 index 92f5fcf4..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java +++ /dev/null @@ -1,827 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.stub.ApplicationServiceStub; -import com.google.cloud.talent.v4beta1.stub.ApplicationServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: A service that handles application management, including CRUD and - * enumeration. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
- *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
- *   Application application = Application.newBuilder().build();
- *   Application response = applicationServiceClient.createApplication(parent, application);
- * }
- * }
- * - *

Note: close() needs to be called on the ApplicationServiceClient object to clean up resources - * such as threads. In the example above, try-with-resources is used, which automatically calls - * close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

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 parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of ApplicationServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ApplicationServiceSettings applicationServiceSettings =
- *     ApplicationServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ApplicationServiceClient applicationServiceClient =
- *     ApplicationServiceClient.create(applicationServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ApplicationServiceSettings applicationServiceSettings =
- *     ApplicationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * ApplicationServiceClient applicationServiceClient =
- *     ApplicationServiceClient.create(applicationServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class ApplicationServiceClient implements BackgroundResource { - private final ApplicationServiceSettings settings; - private final ApplicationServiceStub stub; - - /** Constructs an instance of ApplicationServiceClient with default settings. */ - public static final ApplicationServiceClient create() throws IOException { - return create(ApplicationServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of ApplicationServiceClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final ApplicationServiceClient create(ApplicationServiceSettings settings) - throws IOException { - return new ApplicationServiceClient(settings); - } - - /** - * Constructs an instance of ApplicationServiceClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(ApplicationServiceSettings). - */ - public static final ApplicationServiceClient create(ApplicationServiceStub stub) { - return new ApplicationServiceClient(stub); - } - - /** - * Constructs an instance of ApplicationServiceClient, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected ApplicationServiceClient(ApplicationServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((ApplicationServiceStubSettings) settings.getStubSettings()).createStub(); - } - - protected ApplicationServiceClient(ApplicationServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final ApplicationServiceSettings getSettings() { - return settings; - } - - public ApplicationServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new application entity. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
-   *   Application application = Application.newBuilder().build();
-   *   Application response = applicationServiceClient.createApplication(parent, application);
-   * }
-   * }
- * - * @param 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 Required. The application to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application createApplication(ProfileName parent, Application application) { - CreateApplicationRequest request = - CreateApplicationRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setApplication(application) - .build(); - return createApplication(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new application entity. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   String parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString();
-   *   Application application = Application.newBuilder().build();
-   *   Application response = applicationServiceClient.createApplication(parent, application);
-   * }
-   * }
- * - * @param 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 Required. The application to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application createApplication(String parent, Application application) { - CreateApplicationRequest request = - CreateApplicationRequest.newBuilder().setParent(parent).setApplication(application).build(); - return createApplication(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new application entity. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   CreateApplicationRequest request =
-   *       CreateApplicationRequest.newBuilder()
-   *           .setParent(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .setApplication(Application.newBuilder().build())
-   *           .build();
-   *   Application response = applicationServiceClient.createApplication(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application createApplication(CreateApplicationRequest request) { - return createApplicationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new application entity. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   CreateApplicationRequest request =
-   *       CreateApplicationRequest.newBuilder()
-   *           .setParent(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .setApplication(Application.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       applicationServiceClient.createApplicationCallable().futureCall(request);
-   *   // Do something.
-   *   Application response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createApplicationCallable() { - return stub.createApplicationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   ApplicationName name =
-   *       ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
-   *   Application response = applicationServiceClient.getApplication(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application getApplication(ApplicationName name) { - GetApplicationRequest request = - GetApplicationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getApplication(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   String name =
-   *       ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]").toString();
-   *   Application response = applicationServiceClient.getApplication(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application getApplication(String name) { - GetApplicationRequest request = GetApplicationRequest.newBuilder().setName(name).build(); - return getApplication(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   GetApplicationRequest request =
-   *       GetApplicationRequest.newBuilder()
-   *           .setName(
-   *               ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]")
-   *                   .toString())
-   *           .build();
-   *   Application response = applicationServiceClient.getApplication(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application getApplication(GetApplicationRequest request) { - return getApplicationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   GetApplicationRequest request =
-   *       GetApplicationRequest.newBuilder()
-   *           .setName(
-   *               ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       applicationServiceClient.getApplicationCallable().futureCall(request);
-   *   // Do something.
-   *   Application response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getApplicationCallable() { - return stub.getApplicationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   Application application = Application.newBuilder().build();
-   *   Application response = applicationServiceClient.updateApplication(application);
-   * }
-   * }
- * - * @param application Required. The application resource to replace the current resource in the - * system. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application updateApplication(Application application) { - UpdateApplicationRequest request = - UpdateApplicationRequest.newBuilder().setApplication(application).build(); - return updateApplication(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   UpdateApplicationRequest request =
-   *       UpdateApplicationRequest.newBuilder()
-   *           .setApplication(Application.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Application response = applicationServiceClient.updateApplication(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Application updateApplication(UpdateApplicationRequest request) { - return updateApplicationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   UpdateApplicationRequest request =
-   *       UpdateApplicationRequest.newBuilder()
-   *           .setApplication(Application.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       applicationServiceClient.updateApplicationCallable().futureCall(request);
-   *   // Do something.
-   *   Application response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateApplicationCallable() { - return stub.updateApplicationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   ApplicationName name =
-   *       ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
-   *   applicationServiceClient.deleteApplication(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteApplication(ApplicationName name) { - DeleteApplicationRequest request = - DeleteApplicationRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteApplication(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   String name =
-   *       ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]").toString();
-   *   applicationServiceClient.deleteApplication(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteApplication(String name) { - DeleteApplicationRequest request = DeleteApplicationRequest.newBuilder().setName(name).build(); - deleteApplication(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   DeleteApplicationRequest request =
-   *       DeleteApplicationRequest.newBuilder()
-   *           .setName(
-   *               ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]")
-   *                   .toString())
-   *           .build();
-   *   applicationServiceClient.deleteApplication(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteApplication(DeleteApplicationRequest request) { - deleteApplicationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes specified application. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   DeleteApplicationRequest request =
-   *       DeleteApplicationRequest.newBuilder()
-   *           .setName(
-   *               ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       applicationServiceClient.deleteApplicationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteApplicationCallable() { - return stub.deleteApplicationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all applications associated with the profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
-   *   for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListApplicationsPagedResponse listApplications(ProfileName parent) { - ListApplicationsRequest request = - ListApplicationsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listApplications(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all applications associated with the profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   String parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString();
-   *   for (Application element : applicationServiceClient.listApplications(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListApplicationsPagedResponse listApplications(String parent) { - ListApplicationsRequest request = - ListApplicationsRequest.newBuilder().setParent(parent).build(); - return listApplications(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all applications associated with the profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   ListApplicationsRequest request =
-   *       ListApplicationsRequest.newBuilder()
-   *           .setParent(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   for (Application element : applicationServiceClient.listApplications(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListApplicationsPagedResponse listApplications(ListApplicationsRequest request) { - return listApplicationsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all applications associated with the profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   ListApplicationsRequest request =
-   *       ListApplicationsRequest.newBuilder()
-   *           .setParent(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   ApiFuture future =
-   *       applicationServiceClient.listApplicationsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Application element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listApplicationsPagedCallable() { - return stub.listApplicationsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all applications associated with the profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
-   *   ListApplicationsRequest request =
-   *       ListApplicationsRequest.newBuilder()
-   *           .setParent(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   while (true) {
-   *     ListApplicationsResponse response =
-   *         applicationServiceClient.listApplicationsCallable().call(request);
-   *     for (Application element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listApplicationsCallable() { - return stub.listApplicationsCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListApplicationsPagedResponse - extends AbstractPagedListResponse< - ListApplicationsRequest, - ListApplicationsResponse, - Application, - ListApplicationsPage, - ListApplicationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListApplicationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListApplicationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListApplicationsPagedResponse(ListApplicationsPage page) { - super(page, ListApplicationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListApplicationsPage - extends AbstractPage< - ListApplicationsRequest, ListApplicationsResponse, Application, ListApplicationsPage> { - - private ListApplicationsPage( - PageContext context, - ListApplicationsResponse response) { - super(context, response); - } - - private static ListApplicationsPage createEmptyPage() { - return new ListApplicationsPage(null, null); - } - - @Override - protected ListApplicationsPage createPage( - PageContext context, - ListApplicationsResponse response) { - return new ListApplicationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListApplicationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListApplicationsRequest, - ListApplicationsResponse, - Application, - ListApplicationsPage, - ListApplicationsFixedSizeCollection> { - - private ListApplicationsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListApplicationsFixedSizeCollection createEmptyCollection() { - return new ListApplicationsFixedSizeCollection(null, 0); - } - - @Override - protected ListApplicationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListApplicationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java deleted file mode 100644 index a7001124..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import static com.google.cloud.talent.v4beta1.ApplicationServiceClient.ListApplicationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.talent.v4beta1.stub.ApplicationServiceStubSettings; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ApplicationServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (jobs.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of createApplication to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ApplicationServiceSettings.Builder applicationServiceSettingsBuilder =
- *     ApplicationServiceSettings.newBuilder();
- * applicationServiceSettingsBuilder
- *     .createApplicationSettings()
- *     .setRetrySettings(
- *         applicationServiceSettingsBuilder
- *             .createApplicationSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ApplicationServiceSettings applicationServiceSettings =
- *     applicationServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class ApplicationServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to createApplication. */ - public UnaryCallSettings createApplicationSettings() { - return ((ApplicationServiceStubSettings) getStubSettings()).createApplicationSettings(); - } - - /** Returns the object with the settings used for calls to getApplication. */ - public UnaryCallSettings getApplicationSettings() { - return ((ApplicationServiceStubSettings) getStubSettings()).getApplicationSettings(); - } - - /** Returns the object with the settings used for calls to updateApplication. */ - public UnaryCallSettings updateApplicationSettings() { - return ((ApplicationServiceStubSettings) getStubSettings()).updateApplicationSettings(); - } - - /** Returns the object with the settings used for calls to deleteApplication. */ - public UnaryCallSettings deleteApplicationSettings() { - return ((ApplicationServiceStubSettings) getStubSettings()).deleteApplicationSettings(); - } - - /** Returns the object with the settings used for calls to listApplications. */ - public PagedCallSettings< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> - listApplicationsSettings() { - return ((ApplicationServiceStubSettings) getStubSettings()).listApplicationsSettings(); - } - - public static final ApplicationServiceSettings create(ApplicationServiceStubSettings stub) - throws IOException { - return new ApplicationServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ApplicationServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ApplicationServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ApplicationServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ApplicationServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ApplicationServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ApplicationServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApplicationServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ApplicationServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ApplicationServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(ApplicationServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(ApplicationServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ApplicationServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(ApplicationServiceStubSettings.newBuilder()); - } - - public ApplicationServiceStubSettings.Builder getStubSettingsBuilder() { - return ((ApplicationServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to createApplication. */ - public UnaryCallSettings.Builder - createApplicationSettings() { - return getStubSettingsBuilder().createApplicationSettings(); - } - - /** Returns the builder for the settings used for calls to getApplication. */ - public UnaryCallSettings.Builder getApplicationSettings() { - return getStubSettingsBuilder().getApplicationSettings(); - } - - /** Returns the builder for the settings used for calls to updateApplication. */ - public UnaryCallSettings.Builder - updateApplicationSettings() { - return getStubSettingsBuilder().updateApplicationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteApplication. */ - public UnaryCallSettings.Builder deleteApplicationSettings() { - return getStubSettingsBuilder().deleteApplicationSettings(); - } - - /** Returns the builder for the settings used for calls to listApplications. */ - public PagedCallSettings.Builder< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> - listApplicationsSettings() { - return getStubSettingsBuilder().listApplicationsSettings(); - } - - @Override - public ApplicationServiceSettings build() throws IOException { - return new ApplicationServiceSettings(this); - } - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java index aa39ece6..2c5c6c57 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -99,6 +99,20 @@ * CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CompanyServiceSettings companyServiceSettings =
+ *     CompanyServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CompanyServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -763,7 +777,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque * .build(); * while (true) { * ListCompaniesResponse response = companyServiceClient.listCompaniesCallable().call(request); - * for (Company element : response.getResponsesList()) { + * for (Company element : response.getCompaniesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java index fe53aee5..95aa47ad 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -124,11 +125,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CompanyServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CompanyServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CompanyServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CompanyServiceStubSettings.defaultTransportChannelProvider(); } @@ -138,11 +146,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CompanyServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -180,6 +194,11 @@ private static Builder createDefault() { return new Builder(CompanyServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CompanyServiceStubSettings.newHttpJsonBuilder()); + } + public CompanyServiceStubSettings.Builder getStubSettingsBuilder() { return ((CompanyServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java index 44c5b4ef..8bf186b8 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java @@ -98,6 +98,20 @@ * CompletionClient completionClient = CompletionClient.create(completionSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CompletionSettings completionSettings =
+ *     CompletionSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CompletionSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CompletionClient completionClient = CompletionClient.create(completionSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java index 106d2f73..3fcbf80e 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java @@ -21,6 +21,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -97,11 +98,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CompletionStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CompletionStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CompletionStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CompletionStubSettings.defaultTransportChannelProvider(); } @@ -111,11 +119,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CompletionStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -153,6 +167,11 @@ private static Builder createDefault() { return new Builder(CompletionStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CompletionStubSettings.newHttpJsonBuilder()); + } + public CompletionStubSettings.Builder getStubSettingsBuilder() { return ((CompletionStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java index 2e03d69c..214aeb94 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java @@ -90,6 +90,20 @@ * EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * EventServiceSettings eventServiceSettings =
+ *     EventServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             EventServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java index 01cb04b9..8a39329b 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java @@ -21,6 +21,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -98,11 +99,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return EventServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return EventServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return EventServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return EventServiceStubSettings.defaultTransportChannelProvider(); } @@ -112,11 +120,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return EventServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -154,6 +168,11 @@ private static Builder createDefault() { return new Builder(EventServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(EventServiceStubSettings.newHttpJsonBuilder()); + } + public EventServiceStubSettings.Builder getStubSettingsBuilder() { return ((EventServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java index 5a6cfb42..e21ef9bf 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java @@ -20,6 +20,7 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -31,7 +32,6 @@ import com.google.cloud.talent.v4beta1.stub.JobServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -104,6 +104,20 @@ * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * JobServiceSettings jobServiceSettings =
+ *     JobServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             JobServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -111,7 +125,8 @@ public class JobServiceClient implements BackgroundResource { private final JobServiceSettings settings; private final JobServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of JobServiceClient with default settings. */ public static final JobServiceClient create() throws IOException { @@ -141,13 +156,17 @@ public static final JobServiceClient create(JobServiceStub stub) { protected JobServiceClient(JobServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((JobServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected JobServiceClient(JobServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final JobServiceSettings getSettings() { @@ -162,10 +181,19 @@ public JobServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job. @@ -1162,16 +1190,20 @@ public final UnaryCallable batchDeleteJobsCallabl *

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" *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1211,16 +1243,20 @@ public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { *

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" *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1260,16 +1296,20 @@ public final ListJobsPagedResponse listJobs(TenantName parent, String filter) { *

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" *
* * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1361,7 +1401,7 @@ public final UnaryCallable listJobsPaged * .build(); * while (true) { * ListJobsResponse response = jobServiceClient.listJobsCallable().call(request); - * for (Job element : response.getResponsesList()) { + * for (Job element : response.getJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1500,7 +1540,7 @@ public final UnaryCallable searchJob * .build(); * while (true) { * SearchJobsResponse response = jobServiceClient.searchJobsCallable().call(request); - * for (SearchJobsResponse.MatchingJob element : response.getResponsesList()) { + * for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1649,7 +1689,7 @@ public final SearchJobsForAlertPagedResponse searchJobsForAlert(SearchJobsReques * .build(); * while (true) { * SearchJobsResponse response = jobServiceClient.searchJobsForAlertCallable().call(request); - * for (SearchJobsResponse.MatchingJob element : response.getResponsesList()) { + * for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java index 5485efde..e6d2078e 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -165,11 +166,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return JobServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return JobServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return JobServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return JobServiceStubSettings.defaultTransportChannelProvider(); } @@ -179,11 +187,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return JobServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -221,6 +235,11 @@ private static Builder createDefault() { return new Builder(JobServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(JobServiceStubSettings.newHttpJsonBuilder()); + } + public JobServiceStubSettings.Builder getStubSettingsBuilder() { return ((JobServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java deleted file mode 100644 index dc8563b0..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java +++ /dev/null @@ -1,1023 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.stub.ProfileServiceStub; -import com.google.cloud.talent.v4beta1.stub.ProfileServiceStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: A service that handles profile management, including profile CRUD, - * enumeration and search. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
- *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
- *   Profile profile = Profile.newBuilder().build();
- *   Profile response = profileServiceClient.createProfile(parent, profile);
- * }
- * }
- * - *

Note: close() needs to be called on the ProfileServiceClient object to clean up resources such - * as threads. In the example above, try-with-resources is used, which automatically calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

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 parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of ProfileServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ProfileServiceSettings profileServiceSettings =
- *     ProfileServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ProfileServiceClient profileServiceClient = ProfileServiceClient.create(profileServiceSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ProfileServiceSettings profileServiceSettings =
- *     ProfileServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * ProfileServiceClient profileServiceClient = ProfileServiceClient.create(profileServiceSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class ProfileServiceClient implements BackgroundResource { - private final ProfileServiceSettings settings; - private final ProfileServiceStub stub; - - /** Constructs an instance of ProfileServiceClient with default settings. */ - public static final ProfileServiceClient create() throws IOException { - return create(ProfileServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of ProfileServiceClient, using the given settings. The channels are - * created based on the settings passed in, or defaults for any settings that are not set. - */ - public static final ProfileServiceClient create(ProfileServiceSettings settings) - throws IOException { - return new ProfileServiceClient(settings); - } - - /** - * Constructs an instance of ProfileServiceClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(ProfileServiceSettings). - */ - public static final ProfileServiceClient create(ProfileServiceStub stub) { - return new ProfileServiceClient(stub); - } - - /** - * Constructs an instance of ProfileServiceClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected ProfileServiceClient(ProfileServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((ProfileServiceStubSettings) settings.getStubSettings()).createStub(); - } - - protected ProfileServiceClient(ProfileServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final ProfileServiceSettings getSettings() { - return settings; - } - - public ProfileServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists profiles by filter. The order is unspecified. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
-   *   for (Profile element : profileServiceClient.listProfiles(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListProfilesPagedResponse listProfiles(TenantName parent) { - ListProfilesRequest request = - ListProfilesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listProfiles(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists profiles by filter. The order is unspecified. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   String parent = TenantName.of("[PROJECT]", "[TENANT]").toString();
-   *   for (Profile element : profileServiceClient.listProfiles(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListProfilesPagedResponse listProfiles(String parent) { - ListProfilesRequest request = ListProfilesRequest.newBuilder().setParent(parent).build(); - return listProfiles(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists profiles by filter. The order is unspecified. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   ListProfilesRequest request =
-   *       ListProfilesRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   for (Profile element : profileServiceClient.listProfiles(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListProfilesPagedResponse listProfiles(ListProfilesRequest request) { - return listProfilesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists profiles by filter. The order is unspecified. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   ListProfilesRequest request =
-   *       ListProfilesRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       profileServiceClient.listProfilesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Profile element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listProfilesPagedCallable() { - return stub.listProfilesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists profiles by filter. The order is unspecified. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   ListProfilesRequest request =
-   *       ListProfilesRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   while (true) {
-   *     ListProfilesResponse response = profileServiceClient.listProfilesCallable().call(request);
-   *     for (Profile element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listProfilesCallable() { - return stub.listProfilesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and returns a new profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
-   *   Profile profile = Profile.newBuilder().build();
-   *   Profile response = profileServiceClient.createProfile(parent, profile);
-   * }
-   * }
- * - * @param 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 Required. The profile to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile createProfile(TenantName parent, Profile profile) { - CreateProfileRequest request = - CreateProfileRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setProfile(profile) - .build(); - return createProfile(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and returns a new profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   String parent = TenantName.of("[PROJECT]", "[TENANT]").toString();
-   *   Profile profile = Profile.newBuilder().build();
-   *   Profile response = profileServiceClient.createProfile(parent, profile);
-   * }
-   * }
- * - * @param 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 Required. The profile to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile createProfile(String parent, Profile profile) { - CreateProfileRequest request = - CreateProfileRequest.newBuilder().setParent(parent).setProfile(profile).build(); - return createProfile(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and returns a new profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   CreateProfileRequest request =
-   *       CreateProfileRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setProfile(Profile.newBuilder().build())
-   *           .build();
-   *   Profile response = profileServiceClient.createProfile(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile createProfile(CreateProfileRequest request) { - return createProfileCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates and returns a new profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   CreateProfileRequest request =
-   *       CreateProfileRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setProfile(Profile.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = profileServiceClient.createProfileCallable().futureCall(request);
-   *   // Do something.
-   *   Profile response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createProfileCallable() { - return stub.createProfileCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
-   *   Profile response = profileServiceClient.getProfile(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile getProfile(ProfileName name) { - GetProfileRequest request = - GetProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getProfile(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   String name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString();
-   *   Profile response = profileServiceClient.getProfile(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile getProfile(String name) { - GetProfileRequest request = GetProfileRequest.newBuilder().setName(name).build(); - return getProfile(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   GetProfileRequest request =
-   *       GetProfileRequest.newBuilder()
-   *           .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .build();
-   *   Profile response = profileServiceClient.getProfile(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile getProfile(GetProfileRequest request) { - return getProfileCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified profile. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   GetProfileRequest request =
-   *       GetProfileRequest.newBuilder()
-   *           .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .build();
-   *   ApiFuture future = profileServiceClient.getProfileCallable().futureCall(request);
-   *   // Do something.
-   *   Profile response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getProfileCallable() { - return stub.getProfileCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the specified profile and returns the updated result. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   Profile profile = Profile.newBuilder().build();
-   *   Profile response = profileServiceClient.updateProfile(profile);
-   * }
-   * }
- * - * @param profile Required. Profile to be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile updateProfile(Profile profile) { - UpdateProfileRequest request = UpdateProfileRequest.newBuilder().setProfile(profile).build(); - return updateProfile(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the specified profile and returns the updated result. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   UpdateProfileRequest request =
-   *       UpdateProfileRequest.newBuilder()
-   *           .setProfile(Profile.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Profile response = profileServiceClient.updateProfile(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Profile updateProfile(UpdateProfileRequest request) { - return updateProfileCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the specified profile and returns the updated result. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   UpdateProfileRequest request =
-   *       UpdateProfileRequest.newBuilder()
-   *           .setProfile(Profile.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = profileServiceClient.updateProfileCallable().futureCall(request);
-   *   // Do something.
-   *   Profile response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateProfileCallable() { - return stub.updateProfileCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the specified profile. Prerequisite: The profile has no associated applications or - * assignments associated. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
-   *   profileServiceClient.deleteProfile(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteProfile(ProfileName name) { - DeleteProfileRequest request = - DeleteProfileRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteProfile(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the specified profile. Prerequisite: The profile has no associated applications or - * assignments associated. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   String name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString();
-   *   profileServiceClient.deleteProfile(name);
-   * }
-   * }
- * - * @param 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". - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteProfile(String name) { - DeleteProfileRequest request = DeleteProfileRequest.newBuilder().setName(name).build(); - deleteProfile(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the specified profile. Prerequisite: The profile has no associated applications or - * assignments associated. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   DeleteProfileRequest request =
-   *       DeleteProfileRequest.newBuilder()
-   *           .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .build();
-   *   profileServiceClient.deleteProfile(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteProfile(DeleteProfileRequest request) { - deleteProfileCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the specified profile. Prerequisite: The profile has no associated applications or - * assignments associated. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   DeleteProfileRequest request =
-   *       DeleteProfileRequest.newBuilder()
-   *           .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString())
-   *           .build();
-   *   ApiFuture future = profileServiceClient.deleteProfileCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteProfileCallable() { - return stub.deleteProfileCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   SearchProfilesRequest request =
-   *       SearchProfilesRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setRequestMetadata(RequestMetadata.newBuilder().build())
-   *           .setProfileQuery(ProfileQuery.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOffset(-1019779949)
-   *           .setDisableSpellCheck(true)
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setCaseSensitiveSort(true)
-   *           .addAllHistogramQueries(new ArrayList())
-   *           .setResultSetId("resultSetId-548600064")
-   *           .setStrictKeywordsSearch(true)
-   *           .build();
-   *   for (HistogramQueryResult element :
-   *       profileServiceClient.searchProfiles(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SearchProfilesPagedResponse searchProfiles(SearchProfilesRequest request) { - return searchProfilesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   SearchProfilesRequest request =
-   *       SearchProfilesRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setRequestMetadata(RequestMetadata.newBuilder().build())
-   *           .setProfileQuery(ProfileQuery.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOffset(-1019779949)
-   *           .setDisableSpellCheck(true)
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setCaseSensitiveSort(true)
-   *           .addAllHistogramQueries(new ArrayList())
-   *           .setResultSetId("resultSetId-548600064")
-   *           .setStrictKeywordsSearch(true)
-   *           .build();
-   *   ApiFuture future =
-   *       profileServiceClient.searchProfilesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (HistogramQueryResult element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - searchProfilesPagedCallable() { - return stub.searchProfilesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
-   *   SearchProfilesRequest request =
-   *       SearchProfilesRequest.newBuilder()
-   *           .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString())
-   *           .setRequestMetadata(RequestMetadata.newBuilder().build())
-   *           .setProfileQuery(ProfileQuery.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOffset(-1019779949)
-   *           .setDisableSpellCheck(true)
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setCaseSensitiveSort(true)
-   *           .addAllHistogramQueries(new ArrayList())
-   *           .setResultSetId("resultSetId-548600064")
-   *           .setStrictKeywordsSearch(true)
-   *           .build();
-   *   while (true) {
-   *     SearchProfilesResponse response =
-   *         profileServiceClient.searchProfilesCallable().call(request);
-   *     for (HistogramQueryResult element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - searchProfilesCallable() { - return stub.searchProfilesCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListProfilesPagedResponse - extends AbstractPagedListResponse< - ListProfilesRequest, - ListProfilesResponse, - Profile, - ListProfilesPage, - ListProfilesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListProfilesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListProfilesPagedResponse(ListProfilesPage page) { - super(page, ListProfilesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListProfilesPage - extends AbstractPage { - - private ListProfilesPage( - PageContext context, - ListProfilesResponse response) { - super(context, response); - } - - private static ListProfilesPage createEmptyPage() { - return new ListProfilesPage(null, null); - } - - @Override - protected ListProfilesPage createPage( - PageContext context, - ListProfilesResponse response) { - return new ListProfilesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListProfilesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListProfilesRequest, - ListProfilesResponse, - Profile, - ListProfilesPage, - ListProfilesFixedSizeCollection> { - - private ListProfilesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListProfilesFixedSizeCollection createEmptyCollection() { - return new ListProfilesFixedSizeCollection(null, 0); - } - - @Override - protected ListProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListProfilesFixedSizeCollection(pages, collectionSize); - } - } - - public static class SearchProfilesPagedResponse - extends AbstractPagedListResponse< - SearchProfilesRequest, - SearchProfilesResponse, - HistogramQueryResult, - SearchProfilesPage, - SearchProfilesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - SearchProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new SearchProfilesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private SearchProfilesPagedResponse(SearchProfilesPage page) { - super(page, SearchProfilesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class SearchProfilesPage - extends AbstractPage< - SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult, SearchProfilesPage> { - - private SearchProfilesPage( - PageContext context, - SearchProfilesResponse response) { - super(context, response); - } - - private static SearchProfilesPage createEmptyPage() { - return new SearchProfilesPage(null, null); - } - - @Override - protected SearchProfilesPage createPage( - PageContext context, - SearchProfilesResponse response) { - return new SearchProfilesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class SearchProfilesFixedSizeCollection - extends AbstractFixedSizeCollection< - SearchProfilesRequest, - SearchProfilesResponse, - HistogramQueryResult, - SearchProfilesPage, - SearchProfilesFixedSizeCollection> { - - private SearchProfilesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static SearchProfilesFixedSizeCollection createEmptyCollection() { - return new SearchProfilesFixedSizeCollection(null, 0); - } - - @Override - protected SearchProfilesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new SearchProfilesFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java deleted file mode 100644 index b96cd1d0..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.talent.v4beta1.stub.ProfileServiceStubSettings; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ProfileServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (jobs.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of createProfile to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ProfileServiceSettings.Builder profileServiceSettingsBuilder =
- *     ProfileServiceSettings.newBuilder();
- * profileServiceSettingsBuilder
- *     .createProfileSettings()
- *     .setRetrySettings(
- *         profileServiceSettingsBuilder
- *             .createProfileSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ProfileServiceSettings profileServiceSettings = profileServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class ProfileServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listProfiles. */ - public PagedCallSettings - listProfilesSettings() { - return ((ProfileServiceStubSettings) getStubSettings()).listProfilesSettings(); - } - - /** Returns the object with the settings used for calls to createProfile. */ - public UnaryCallSettings createProfileSettings() { - return ((ProfileServiceStubSettings) getStubSettings()).createProfileSettings(); - } - - /** Returns the object with the settings used for calls to getProfile. */ - public UnaryCallSettings getProfileSettings() { - return ((ProfileServiceStubSettings) getStubSettings()).getProfileSettings(); - } - - /** Returns the object with the settings used for calls to updateProfile. */ - public UnaryCallSettings updateProfileSettings() { - return ((ProfileServiceStubSettings) getStubSettings()).updateProfileSettings(); - } - - /** Returns the object with the settings used for calls to deleteProfile. */ - public UnaryCallSettings deleteProfileSettings() { - return ((ProfileServiceStubSettings) getStubSettings()).deleteProfileSettings(); - } - - /** Returns the object with the settings used for calls to searchProfiles. */ - public PagedCallSettings< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> - searchProfilesSettings() { - return ((ProfileServiceStubSettings) getStubSettings()).searchProfilesSettings(); - } - - public static final ProfileServiceSettings create(ProfileServiceStubSettings stub) - throws IOException { - return new ProfileServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ProfileServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ProfileServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ProfileServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ProfileServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ProfileServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ProfileServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ProfileServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ProfileServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ProfileServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(ProfileServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(ProfileServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ProfileServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(ProfileServiceStubSettings.newBuilder()); - } - - public ProfileServiceStubSettings.Builder getStubSettingsBuilder() { - return ((ProfileServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listProfiles. */ - public PagedCallSettings.Builder< - ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> - listProfilesSettings() { - return getStubSettingsBuilder().listProfilesSettings(); - } - - /** Returns the builder for the settings used for calls to createProfile. */ - public UnaryCallSettings.Builder createProfileSettings() { - return getStubSettingsBuilder().createProfileSettings(); - } - - /** Returns the builder for the settings used for calls to getProfile. */ - public UnaryCallSettings.Builder getProfileSettings() { - return getStubSettingsBuilder().getProfileSettings(); - } - - /** Returns the builder for the settings used for calls to updateProfile. */ - public UnaryCallSettings.Builder updateProfileSettings() { - return getStubSettingsBuilder().updateProfileSettings(); - } - - /** Returns the builder for the settings used for calls to deleteProfile. */ - public UnaryCallSettings.Builder deleteProfileSettings() { - return getStubSettingsBuilder().deleteProfileSettings(); - } - - /** Returns the builder for the settings used for calls to searchProfiles. */ - public PagedCallSettings.Builder< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> - searchProfilesSettings() { - return getStubSettingsBuilder().searchProfilesSettings(); - } - - @Override - public ProfileServiceSettings build() throws IOException { - return new ProfileServiceSettings(this); - } - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java index 5effe5f7..9329244c 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java @@ -99,6 +99,20 @@ * TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * TenantServiceSettings tenantServiceSettings =
+ *     TenantServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             TenantServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -665,7 +679,7 @@ public final ListTenantsPagedResponse listTenants(ListTenantsRequest request) { * .build(); * while (true) { * ListTenantsResponse response = tenantServiceClient.listTenantsCallable().call(request); - * for (Tenant element : response.getResponsesList()) { + * for (Tenant element : response.getTenantsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java index bc2d5fcd..2a354300 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -123,11 +124,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return TenantServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return TenantServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TenantServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return TenantServiceStubSettings.defaultTransportChannelProvider(); } @@ -137,11 +145,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return TenantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -179,6 +193,11 @@ private static Builder createDefault() { return new Builder(TenantServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TenantServiceStubSettings.newHttpJsonBuilder()); + } + public TenantServiceStubSettings.Builder getStubSettingsBuilder() { return ((TenantServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/gapic_metadata.json b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/gapic_metadata.json index 64b79306..646d2b10 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/gapic_metadata.json +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/gapic_metadata.json @@ -5,30 +5,6 @@ "protoPackage": "google.cloud.talent.v4beta1", "libraryPackage": "com.google.cloud.talent.v4beta1", "services": { - "ApplicationService": { - "clients": { - "grpc": { - "libraryClient": "ApplicationServiceClient", - "rpcs": { - "CreateApplication": { - "methods": ["createApplication", "createApplication", "createApplication", "createApplicationCallable"] - }, - "DeleteApplication": { - "methods": ["deleteApplication", "deleteApplication", "deleteApplication", "deleteApplicationCallable"] - }, - "GetApplication": { - "methods": ["getApplication", "getApplication", "getApplication", "getApplicationCallable"] - }, - "ListApplications": { - "methods": ["listApplications", "listApplications", "listApplications", "listApplicationsPagedCallable", "listApplicationsCallable"] - }, - "UpdateApplication": { - "methods": ["updateApplication", "updateApplication", "updateApplicationCallable"] - } - } - } - } - }, "CompanyService": { "clients": { "grpc": { @@ -116,33 +92,6 @@ } } }, - "ProfileService": { - "clients": { - "grpc": { - "libraryClient": "ProfileServiceClient", - "rpcs": { - "CreateProfile": { - "methods": ["createProfile", "createProfile", "createProfile", "createProfileCallable"] - }, - "DeleteProfile": { - "methods": ["deleteProfile", "deleteProfile", "deleteProfile", "deleteProfileCallable"] - }, - "GetProfile": { - "methods": ["getProfile", "getProfile", "getProfile", "getProfileCallable"] - }, - "ListProfiles": { - "methods": ["listProfiles", "listProfiles", "listProfiles", "listProfilesPagedCallable", "listProfilesCallable"] - }, - "SearchProfiles": { - "methods": ["searchProfiles", "searchProfilesPagedCallable", "searchProfilesCallable"] - }, - "UpdateProfile": { - "methods": ["updateProfile", "updateProfile", "updateProfileCallable"] - } - } - } - } - }, "TenantService": { "clients": { "grpc": { diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java index 0c8c336b..9fb3ff79 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java @@ -15,24 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Cloud Talent Solution API * - *

======================= ApplicationServiceClient ======================= - * - *

Service Description: A service that handles application management, including CRUD and - * enumeration. - * - *

Sample for ApplicationServiceClient: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
- *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
- *   Application application = Application.newBuilder().build();
- *   Application response = applicationServiceClient.createApplication(parent, application);
- * }
- * }
+ *

The interfaces provided are listed below, along with usage samples. * *

======================= CompanyServiceClient ======================= * @@ -108,23 +93,6 @@ * } * } * - *

======================= ProfileServiceClient ======================= - * - *

Service Description: A service that handles profile management, including profile CRUD, - * enumeration and search. - * - *

Sample for ProfileServiceClient: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * try (ProfileServiceClient profileServiceClient = ProfileServiceClient.create()) {
- *   TenantName parent = TenantName.of("[PROJECT]", "[TENANT]");
- *   Profile profile = Profile.newBuilder().build();
- *   Profile response = profileServiceClient.createProfile(parent, profile);
- * }
- * }
- * *

======================= TenantServiceClient ======================= * *

Service Description: A service that handles tenant management, including CRUD and enumeration. diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java deleted file mode 100644 index b86c1f9d..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.stub; - -import static com.google.cloud.talent.v4beta1.ApplicationServiceClient.ListApplicationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.Application; -import com.google.cloud.talent.v4beta1.CreateApplicationRequest; -import com.google.cloud.talent.v4beta1.DeleteApplicationRequest; -import com.google.cloud.talent.v4beta1.GetApplicationRequest; -import com.google.cloud.talent.v4beta1.ListApplicationsRequest; -import com.google.cloud.talent.v4beta1.ListApplicationsResponse; -import com.google.cloud.talent.v4beta1.UpdateApplicationRequest; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the ApplicationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class ApplicationServiceStub implements BackgroundResource { - - public UnaryCallable createApplicationCallable() { - throw new UnsupportedOperationException("Not implemented: createApplicationCallable()"); - } - - public UnaryCallable getApplicationCallable() { - throw new UnsupportedOperationException("Not implemented: getApplicationCallable()"); - } - - public UnaryCallable updateApplicationCallable() { - throw new UnsupportedOperationException("Not implemented: updateApplicationCallable()"); - } - - public UnaryCallable deleteApplicationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteApplicationCallable()"); - } - - public UnaryCallable - listApplicationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listApplicationsPagedCallable()"); - } - - public UnaryCallable - listApplicationsCallable() { - throw new UnsupportedOperationException("Not implemented: listApplicationsCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java deleted file mode 100644 index ac7ae069..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java +++ /dev/null @@ -1,471 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.stub; - -import static com.google.cloud.talent.v4beta1.ApplicationServiceClient.ListApplicationsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.Application; -import com.google.cloud.talent.v4beta1.CreateApplicationRequest; -import com.google.cloud.talent.v4beta1.DeleteApplicationRequest; -import com.google.cloud.talent.v4beta1.GetApplicationRequest; -import com.google.cloud.talent.v4beta1.ListApplicationsRequest; -import com.google.cloud.talent.v4beta1.ListApplicationsResponse; -import com.google.cloud.talent.v4beta1.UpdateApplicationRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ApplicationServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (jobs.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of createApplication to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ApplicationServiceStubSettings.Builder applicationServiceSettingsBuilder =
- *     ApplicationServiceStubSettings.newBuilder();
- * applicationServiceSettingsBuilder
- *     .createApplicationSettings()
- *     .setRetrySettings(
- *         applicationServiceSettingsBuilder
- *             .createApplicationSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ApplicationServiceStubSettings applicationServiceSettings =
- *     applicationServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class ApplicationServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/jobs") - .build(); - - private final UnaryCallSettings createApplicationSettings; - private final UnaryCallSettings getApplicationSettings; - private final UnaryCallSettings updateApplicationSettings; - private final UnaryCallSettings deleteApplicationSettings; - private final PagedCallSettings< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> - listApplicationsSettings; - - private static final PagedListDescriptor< - ListApplicationsRequest, ListApplicationsResponse, Application> - LIST_APPLICATIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListApplicationsRequest, ListApplicationsResponse, Application>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListApplicationsRequest injectToken( - ListApplicationsRequest payload, String token) { - return ListApplicationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListApplicationsRequest injectPageSize( - ListApplicationsRequest payload, int pageSize) { - return ListApplicationsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListApplicationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListApplicationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListApplicationsResponse payload) { - return payload.getApplicationsList() == null - ? ImmutableList.of() - : payload.getApplicationsList(); - } - }; - - private static final PagedListResponseFactory< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> - LIST_APPLICATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListApplicationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_APPLICATIONS_PAGE_STR_DESC, request, context); - return ListApplicationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createApplication. */ - public UnaryCallSettings createApplicationSettings() { - return createApplicationSettings; - } - - /** Returns the object with the settings used for calls to getApplication. */ - public UnaryCallSettings getApplicationSettings() { - return getApplicationSettings; - } - - /** Returns the object with the settings used for calls to updateApplication. */ - public UnaryCallSettings updateApplicationSettings() { - return updateApplicationSettings; - } - - /** Returns the object with the settings used for calls to deleteApplication. */ - public UnaryCallSettings deleteApplicationSettings() { - return deleteApplicationSettings; - } - - /** Returns the object with the settings used for calls to listApplications. */ - public PagedCallSettings< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> - listApplicationsSettings() { - return listApplicationsSettings; - } - - public ApplicationServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcApplicationServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "jobs.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "jobs.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(ApplicationServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ApplicationServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createApplicationSettings = settingsBuilder.createApplicationSettings().build(); - getApplicationSettings = settingsBuilder.getApplicationSettings().build(); - updateApplicationSettings = settingsBuilder.updateApplicationSettings().build(); - deleteApplicationSettings = settingsBuilder.deleteApplicationSettings().build(); - listApplicationsSettings = settingsBuilder.listApplicationsSettings().build(); - } - - /** Builder for ApplicationServiceStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - createApplicationSettings; - private final UnaryCallSettings.Builder - getApplicationSettings; - private final UnaryCallSettings.Builder - updateApplicationSettings; - private final UnaryCallSettings.Builder - deleteApplicationSettings; - private final PagedCallSettings.Builder< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> - listApplicationsSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_8_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(30000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(30000L)) - .setTotalTimeout(Duration.ofMillis(30000L)) - .build(); - definitions.put("no_retry_8_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(30000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(30000L)) - .setTotalTimeout(Duration.ofMillis(30000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteApplicationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listApplicationsSettings = PagedCallSettings.newBuilder(LIST_APPLICATIONS_PAGE_STR_FACT); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createApplicationSettings, - getApplicationSettings, - updateApplicationSettings, - deleteApplicationSettings, - listApplicationsSettings); - initDefaults(this); - } - - protected Builder(ApplicationServiceStubSettings settings) { - super(settings); - - createApplicationSettings = settings.createApplicationSettings.toBuilder(); - getApplicationSettings = settings.getApplicationSettings.toBuilder(); - updateApplicationSettings = settings.updateApplicationSettings.toBuilder(); - deleteApplicationSettings = settings.deleteApplicationSettings.toBuilder(); - listApplicationsSettings = settings.listApplicationsSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createApplicationSettings, - getApplicationSettings, - updateApplicationSettings, - deleteApplicationSettings, - listApplicationsSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .createApplicationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_params")); - - builder - .getApplicationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .updateApplicationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_8_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_8_params")); - - builder - .deleteApplicationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listApplicationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createApplication. */ - public UnaryCallSettings.Builder - createApplicationSettings() { - return createApplicationSettings; - } - - /** Returns the builder for the settings used for calls to getApplication. */ - public UnaryCallSettings.Builder getApplicationSettings() { - return getApplicationSettings; - } - - /** Returns the builder for the settings used for calls to updateApplication. */ - public UnaryCallSettings.Builder - updateApplicationSettings() { - return updateApplicationSettings; - } - - /** Returns the builder for the settings used for calls to deleteApplication. */ - public UnaryCallSettings.Builder deleteApplicationSettings() { - return deleteApplicationSettings; - } - - /** Returns the builder for the settings used for calls to listApplications. */ - public PagedCallSettings.Builder< - ListApplicationsRequest, ListApplicationsResponse, ListApplicationsPagedResponse> - listApplicationsSettings() { - return listApplicationsSettings; - } - - @Override - public ApplicationServiceStubSettings build() throws IOException { - return new ApplicationServiceStubSettings(this); - } - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java index 182ec606..6bd59427 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -194,6 +197,11 @@ public CompanyServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCompanyServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCompanyServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -226,18 +234,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CompanyServiceStubSettings.class)) @@ -245,11 +260,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompanyServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompanyServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -377,6 +411,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createCompanySettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java index 347903d8..a2868fbd 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -99,6 +102,11 @@ public CompletionStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCompletionStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCompletionStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -131,18 +139,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CompletionStubSettings.class)) @@ -150,11 +165,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CompletionStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CompletionStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -245,6 +279,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .completeQuerySettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java index 528d5570..9e945f18 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -99,6 +102,11 @@ public EventServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcEventServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonEventServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -131,18 +139,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(EventServiceStubSettings.class)) @@ -150,11 +165,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EventServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EventServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -239,6 +273,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createClientEventSettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java deleted file mode 100644 index 2e2add64..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.stub; - -import static com.google.cloud.talent.v4beta1.ApplicationServiceClient.ListApplicationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.Application; -import com.google.cloud.talent.v4beta1.CreateApplicationRequest; -import com.google.cloud.talent.v4beta1.DeleteApplicationRequest; -import com.google.cloud.talent.v4beta1.GetApplicationRequest; -import com.google.cloud.talent.v4beta1.ListApplicationsRequest; -import com.google.cloud.talent.v4beta1.ListApplicationsResponse; -import com.google.cloud.talent.v4beta1.UpdateApplicationRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the ApplicationService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcApplicationServiceStub extends ApplicationServiceStub { - private static final MethodDescriptor - createApplicationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ApplicationService/CreateApplication") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateApplicationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Application.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getApplicationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ApplicationService/GetApplication") - .setRequestMarshaller( - ProtoUtils.marshaller(GetApplicationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Application.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateApplicationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ApplicationService/UpdateApplication") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateApplicationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Application.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteApplicationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ApplicationService/DeleteApplication") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteApplicationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listApplicationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ApplicationService/ListApplications") - .setRequestMarshaller( - ProtoUtils.marshaller(ListApplicationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListApplicationsResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable createApplicationCallable; - private final UnaryCallable getApplicationCallable; - private final UnaryCallable updateApplicationCallable; - private final UnaryCallable deleteApplicationCallable; - private final UnaryCallable - listApplicationsCallable; - private final UnaryCallable - listApplicationsPagedCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcApplicationServiceStub create(ApplicationServiceStubSettings settings) - throws IOException { - return new GrpcApplicationServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcApplicationServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcApplicationServiceStub( - ApplicationServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcApplicationServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcApplicationServiceStub( - ApplicationServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcApplicationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcApplicationServiceStub( - ApplicationServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcApplicationServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcApplicationServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcApplicationServiceStub( - ApplicationServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings createApplicationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createApplicationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getApplicationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getApplicationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateApplicationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateApplicationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "application.name", String.valueOf(request.getApplication().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteApplicationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteApplicationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listApplicationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listApplicationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - - this.createApplicationCallable = - callableFactory.createUnaryCallable( - createApplicationTransportSettings, - settings.createApplicationSettings(), - clientContext); - this.getApplicationCallable = - callableFactory.createUnaryCallable( - getApplicationTransportSettings, settings.getApplicationSettings(), clientContext); - this.updateApplicationCallable = - callableFactory.createUnaryCallable( - updateApplicationTransportSettings, - settings.updateApplicationSettings(), - clientContext); - this.deleteApplicationCallable = - callableFactory.createUnaryCallable( - deleteApplicationTransportSettings, - settings.deleteApplicationSettings(), - clientContext); - this.listApplicationsCallable = - callableFactory.createUnaryCallable( - listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); - this.listApplicationsPagedCallable = - callableFactory.createPagedCallable( - listApplicationsTransportSettings, settings.listApplicationsSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable createApplicationCallable() { - return createApplicationCallable; - } - - @Override - public UnaryCallable getApplicationCallable() { - return getApplicationCallable; - } - - @Override - public UnaryCallable updateApplicationCallable() { - return updateApplicationCallable; - } - - @Override - public UnaryCallable deleteApplicationCallable() { - return deleteApplicationCallable; - } - - @Override - public UnaryCallable - listApplicationsCallable() { - return listApplicationsCallable; - } - - @Override - public UnaryCallable - listApplicationsPagedCallable() { - return listApplicationsPagedCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java deleted file mode 100644 index 8ac15d3a..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.stub; - -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.CreateProfileRequest; -import com.google.cloud.talent.v4beta1.DeleteProfileRequest; -import com.google.cloud.talent.v4beta1.GetProfileRequest; -import com.google.cloud.talent.v4beta1.ListProfilesRequest; -import com.google.cloud.talent.v4beta1.ListProfilesResponse; -import com.google.cloud.talent.v4beta1.Profile; -import com.google.cloud.talent.v4beta1.SearchProfilesRequest; -import com.google.cloud.talent.v4beta1.SearchProfilesResponse; -import com.google.cloud.talent.v4beta1.UpdateProfileRequest; -import com.google.common.collect.ImmutableMap; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the ProfileService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcProfileServiceStub extends ProfileServiceStub { - private static final MethodDescriptor - listProfilesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/ListProfiles") - .setRequestMarshaller(ProtoUtils.marshaller(ListProfilesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListProfilesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createProfileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/CreateProfile") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateProfileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getProfileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/GetProfile") - .setRequestMarshaller(ProtoUtils.marshaller(GetProfileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateProfileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/UpdateProfile") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateProfileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Profile.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteProfileMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/DeleteProfile") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteProfileRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - searchProfilesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ProfileService/SearchProfiles") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchProfilesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchProfilesResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable listProfilesCallable; - private final UnaryCallable - listProfilesPagedCallable; - private final UnaryCallable createProfileCallable; - private final UnaryCallable getProfileCallable; - private final UnaryCallable updateProfileCallable; - private final UnaryCallable deleteProfileCallable; - private final UnaryCallable searchProfilesCallable; - private final UnaryCallable - searchProfilesPagedCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcProfileServiceStub create(ProfileServiceStubSettings settings) - throws IOException { - return new GrpcProfileServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcProfileServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcProfileServiceStub( - ProfileServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcProfileServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcProfileServiceStub( - ProfileServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcProfileServiceStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcProfileServiceStub(ProfileServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcProfileServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcProfileServiceStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcProfileServiceStub( - ProfileServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings listProfilesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listProfilesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings createProfileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createProfileMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getProfileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getProfileMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateProfileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateProfileMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("profile.name", String.valueOf(request.getProfile().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteProfileTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteProfileMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - searchProfilesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(searchProfilesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - - this.listProfilesCallable = - callableFactory.createUnaryCallable( - listProfilesTransportSettings, settings.listProfilesSettings(), clientContext); - this.listProfilesPagedCallable = - callableFactory.createPagedCallable( - listProfilesTransportSettings, settings.listProfilesSettings(), clientContext); - this.createProfileCallable = - callableFactory.createUnaryCallable( - createProfileTransportSettings, settings.createProfileSettings(), clientContext); - this.getProfileCallable = - callableFactory.createUnaryCallable( - getProfileTransportSettings, settings.getProfileSettings(), clientContext); - this.updateProfileCallable = - callableFactory.createUnaryCallable( - updateProfileTransportSettings, settings.updateProfileSettings(), clientContext); - this.deleteProfileCallable = - callableFactory.createUnaryCallable( - deleteProfileTransportSettings, settings.deleteProfileSettings(), clientContext); - this.searchProfilesCallable = - callableFactory.createUnaryCallable( - searchProfilesTransportSettings, settings.searchProfilesSettings(), clientContext); - this.searchProfilesPagedCallable = - callableFactory.createPagedCallable( - searchProfilesTransportSettings, settings.searchProfilesSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable listProfilesCallable() { - return listProfilesCallable; - } - - @Override - public UnaryCallable listProfilesPagedCallable() { - return listProfilesPagedCallable; - } - - @Override - public UnaryCallable createProfileCallable() { - return createProfileCallable; - } - - @Override - public UnaryCallable getProfileCallable() { - return getProfileCallable; - } - - @Override - public UnaryCallable updateProfileCallable() { - return updateProfileCallable; - } - - @Override - public UnaryCallable deleteProfileCallable() { - return deleteProfileCallable; - } - - @Override - public UnaryCallable searchProfilesCallable() { - return searchProfilesCallable; - } - - @Override - public UnaryCallable - searchProfilesPagedCallable() { - return searchProfilesPagedCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompanyServiceCallableFactory.java similarity index 53% rename from google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java rename to google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompanyServiceCallableFactory.java index 646d4271..5eae1417 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceCallableFactory.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompanyServiceCallableFactory.java @@ -17,99 +17,89 @@ package com.google.cloud.talent.v4beta1.stub; import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for the ProfileService service API. + * REST callable factory implementation for the CompanyService service API. * *

This class is for advanced usage. */ @BetaApi @Generated("by gapic-generator-java") -public class GrpcProfileServiceCallableFactory implements GrpcStubCallableFactory { +public class HttpJsonCompanyServiceCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, UnaryCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); } @Override public UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, BatchingCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); } @Override public ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, ServerStreamingCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompanyServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompanyServiceStub.java new file mode 100644 index 00000000..e4d201d6 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompanyServiceStub.java @@ -0,0 +1,417 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesResponse; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CompanyService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCompanyServiceStub extends CompanyServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/CreateCompany") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/companies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/companies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Company.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/GetCompany") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{name=projects/*/tenants/*/companies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{name=projects/*/companies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Company.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/UpdateCompany") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{company.name=projects/*/tenants/*/companies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "company.name", request.getCompany().getName()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{company.name=projects/*/companies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Company.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCompanyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/DeleteCompany") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{name=projects/*/tenants/*/companies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{name=projects/*/companies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCompaniesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.CompanyService/ListCompanies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/companies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/companies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "requireOpenJobs", request.getRequireOpenJobs()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCompaniesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createCompanyCallable; + private final UnaryCallable getCompanyCallable; + private final UnaryCallable updateCompanyCallable; + private final UnaryCallable deleteCompanyCallable; + private final UnaryCallable listCompaniesCallable; + private final UnaryCallable + listCompaniesPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCompanyServiceStub create(CompanyServiceStubSettings settings) + throws IOException { + return new HttpJsonCompanyServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCompanyServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCompanyServiceStub( + CompanyServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCompanyServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCompanyServiceStub( + CompanyServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCompanyServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCompanyServiceStub( + CompanyServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCompanyServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCompanyServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCompanyServiceStub( + CompanyServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteCompanyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCompanyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCompaniesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCompaniesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createCompanyCallable = + callableFactory.createUnaryCallable( + createCompanyTransportSettings, settings.createCompanySettings(), clientContext); + this.getCompanyCallable = + callableFactory.createUnaryCallable( + getCompanyTransportSettings, settings.getCompanySettings(), clientContext); + this.updateCompanyCallable = + callableFactory.createUnaryCallable( + updateCompanyTransportSettings, settings.updateCompanySettings(), clientContext); + this.deleteCompanyCallable = + callableFactory.createUnaryCallable( + deleteCompanyTransportSettings, settings.deleteCompanySettings(), clientContext); + this.listCompaniesCallable = + callableFactory.createUnaryCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + this.listCompaniesPagedCallable = + callableFactory.createPagedCallable( + listCompaniesTransportSettings, settings.listCompaniesSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createCompanyMethodDescriptor); + methodDescriptors.add(getCompanyMethodDescriptor); + methodDescriptors.add(updateCompanyMethodDescriptor); + methodDescriptors.add(deleteCompanyMethodDescriptor); + methodDescriptors.add(listCompaniesMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createCompanyCallable() { + return createCompanyCallable; + } + + @Override + public UnaryCallable getCompanyCallable() { + return getCompanyCallable; + } + + @Override + public UnaryCallable updateCompanyCallable() { + return updateCompanyCallable; + } + + @Override + public UnaryCallable deleteCompanyCallable() { + return deleteCompanyCallable; + } + + @Override + public UnaryCallable listCompaniesCallable() { + return listCompaniesCallable; + } + + @Override + public UnaryCallable + listCompaniesPagedCallable() { + return listCompaniesPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompletionCallableFactory.java similarity index 53% rename from google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceCallableFactory.java rename to google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompletionCallableFactory.java index 04e4dc4c..9b54efd3 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceCallableFactory.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompletionCallableFactory.java @@ -17,99 +17,89 @@ package com.google.cloud.talent.v4beta1.stub; import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for the ApplicationService service API. + * REST callable factory implementation for the Completion service API. * *

This class is for advanced usage. */ @BetaApi @Generated("by gapic-generator-java") -public class GrpcApplicationServiceCallableFactory implements GrpcStubCallableFactory { +public class HttpJsonCompletionCallableFactory + implements HttpJsonStubCallableFactory { @Override public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, UnaryCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); } @Override public UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, BatchingCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); } @Override public ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, + HttpJsonCallSettings httpJsonCallSettings, ServerStreamingCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); } } diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompletionStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompletionStub.java new file mode 100644 index 00000000..63d5ff2d --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonCompletionStub.java @@ -0,0 +1,200 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Completion service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCompletionStub extends CompletionStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + completeQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.Completion/CompleteQuery") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}:complete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}:complete") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "company", request.getCompany()); + serializer.putQueryParam( + fields, "languageCodes", request.getLanguageCodesList()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "query", request.getQuery()); + serializer.putQueryParam(fields, "scope", request.getScope()); + serializer.putQueryParam(fields, "type", request.getType()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CompleteQueryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable completeQueryCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCompletionStub create(CompletionStubSettings settings) + throws IOException { + return new HttpJsonCompletionStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCompletionStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCompletionStub( + CompletionStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCompletionStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCompletionStub( + CompletionStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCompletionStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCompletionStub(CompletionStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCompletionCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCompletionStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCompletionStub( + CompletionStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + completeQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(completeQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.completeQueryCallable = + callableFactory.createUnaryCallable( + completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(completeQueryMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable completeQueryCallable() { + return completeQueryCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceCallableFactory.java new file mode 100644 index 00000000..1c74d72c --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the EventService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEventServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceStub.java new file mode 100644 index 00000000..39daeb9e --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonEventServiceStub.java @@ -0,0 +1,197 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the EventService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEventServiceStub extends EventServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createClientEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.EventService/CreateClientEvent") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/clientEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/clientEvents") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ClientEvent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createClientEventCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonEventServiceStub create(EventServiceStubSettings settings) + throws IOException { + return new HttpJsonEventServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonEventServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonEventServiceStub( + EventServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonEventServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonEventServiceStub( + EventServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonEventServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonEventServiceStub(EventServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonEventServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonEventServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonEventServiceStub( + EventServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createClientEventTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createClientEventMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createClientEventCallable = + callableFactory.createUnaryCallable( + createClientEventTransportSettings, + settings.createClientEventSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createClientEventMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createClientEventCallable() { + return createClientEventCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceCallableFactory.java new file mode 100644 index 00000000..fdd8d24c --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the JobService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonJobServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceStub.java new file mode 100644 index 00000000..e6b46a14 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonJobServiceStub.java @@ -0,0 +1,755 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.BatchOperationMetadata; +import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the JobService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonJobServiceStub extends JobServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(JobOperationResult.getDescriptor()) + .add(BatchOperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor createJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/CreateJob") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/jobs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchCreateJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/BatchCreateJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/jobs:batchCreate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/jobs:batchCreate") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchCreateJobsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor getJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/GetJob") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{name=projects/*/tenants/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{name=projects/*/jobs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/UpdateJob") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{job.name=projects/*/tenants/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "job.name", request.getJob().getName()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{job.name=projects/*/jobs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Job.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchUpdateJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/BatchUpdateJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/jobs:batchUpdate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/jobs:batchUpdate") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchUpdateJobsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor deleteJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/DeleteJob") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{name=projects/*/tenants/*/jobs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{name=projects/*/jobs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchDeleteJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/BatchDeleteJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/jobs:batchDelete") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/ListJobs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/jobs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/jobs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "jobView", request.getJobView()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchJobsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/SearchJobs") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/jobs:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/jobs:search") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchJobsForAlertMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.JobService/SearchJobsForAlert") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v4beta1/{parent=projects/*}/jobs:searchForAlert") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchJobsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createJobCallable; + private final UnaryCallable batchCreateJobsCallable; + private final OperationCallable< + BatchCreateJobsRequest, JobOperationResult, BatchOperationMetadata> + batchCreateJobsOperationCallable; + private final UnaryCallable getJobCallable; + private final UnaryCallable updateJobCallable; + private final UnaryCallable batchUpdateJobsCallable; + private final OperationCallable< + BatchUpdateJobsRequest, JobOperationResult, BatchOperationMetadata> + batchUpdateJobsOperationCallable; + private final UnaryCallable deleteJobCallable; + private final UnaryCallable batchDeleteJobsCallable; + private final UnaryCallable listJobsCallable; + private final UnaryCallable listJobsPagedCallable; + private final UnaryCallable searchJobsCallable; + private final UnaryCallable searchJobsPagedCallable; + private final UnaryCallable searchJobsForAlertCallable; + private final UnaryCallable + searchJobsForAlertPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonJobServiceStub create(JobServiceStubSettings settings) + throws IOException { + return new HttpJsonJobServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonJobServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonJobServiceStub( + JobServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonJobServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonJobServiceStub( + JobServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonJobServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonJobServiceStub(JobServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonJobServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonJobServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonJobServiceStub( + JobServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings batchCreateJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchCreateJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings batchUpdateJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings batchDeleteJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings searchJobsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchJobsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + searchJobsForAlertTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchJobsForAlertMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createJobCallable = + callableFactory.createUnaryCallable( + createJobTransportSettings, settings.createJobSettings(), clientContext); + this.batchCreateJobsCallable = + callableFactory.createUnaryCallable( + batchCreateJobsTransportSettings, settings.batchCreateJobsSettings(), clientContext); + this.batchCreateJobsOperationCallable = + callableFactory.createOperationCallable( + batchCreateJobsTransportSettings, + settings.batchCreateJobsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getJobCallable = + callableFactory.createUnaryCallable( + getJobTransportSettings, settings.getJobSettings(), clientContext); + this.updateJobCallable = + callableFactory.createUnaryCallable( + updateJobTransportSettings, settings.updateJobSettings(), clientContext); + this.batchUpdateJobsCallable = + callableFactory.createUnaryCallable( + batchUpdateJobsTransportSettings, settings.batchUpdateJobsSettings(), clientContext); + this.batchUpdateJobsOperationCallable = + callableFactory.createOperationCallable( + batchUpdateJobsTransportSettings, + settings.batchUpdateJobsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteJobCallable = + callableFactory.createUnaryCallable( + deleteJobTransportSettings, settings.deleteJobSettings(), clientContext); + this.batchDeleteJobsCallable = + callableFactory.createUnaryCallable( + batchDeleteJobsTransportSettings, settings.batchDeleteJobsSettings(), clientContext); + this.listJobsCallable = + callableFactory.createUnaryCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.listJobsPagedCallable = + callableFactory.createPagedCallable( + listJobsTransportSettings, settings.listJobsSettings(), clientContext); + this.searchJobsCallable = + callableFactory.createUnaryCallable( + searchJobsTransportSettings, settings.searchJobsSettings(), clientContext); + this.searchJobsPagedCallable = + callableFactory.createPagedCallable( + searchJobsTransportSettings, settings.searchJobsSettings(), clientContext); + this.searchJobsForAlertCallable = + callableFactory.createUnaryCallable( + searchJobsForAlertTransportSettings, + settings.searchJobsForAlertSettings(), + clientContext); + this.searchJobsForAlertPagedCallable = + callableFactory.createPagedCallable( + searchJobsForAlertTransportSettings, + settings.searchJobsForAlertSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createJobMethodDescriptor); + methodDescriptors.add(batchCreateJobsMethodDescriptor); + methodDescriptors.add(getJobMethodDescriptor); + methodDescriptors.add(updateJobMethodDescriptor); + methodDescriptors.add(batchUpdateJobsMethodDescriptor); + methodDescriptors.add(deleteJobMethodDescriptor); + methodDescriptors.add(batchDeleteJobsMethodDescriptor); + methodDescriptors.add(listJobsMethodDescriptor); + methodDescriptors.add(searchJobsMethodDescriptor); + methodDescriptors.add(searchJobsForAlertMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createJobCallable() { + return createJobCallable; + } + + @Override + public UnaryCallable batchCreateJobsCallable() { + return batchCreateJobsCallable; + } + + @Override + public OperationCallable + batchCreateJobsOperationCallable() { + return batchCreateJobsOperationCallable; + } + + @Override + public UnaryCallable getJobCallable() { + return getJobCallable; + } + + @Override + public UnaryCallable updateJobCallable() { + return updateJobCallable; + } + + @Override + public UnaryCallable batchUpdateJobsCallable() { + return batchUpdateJobsCallable; + } + + @Override + public OperationCallable + batchUpdateJobsOperationCallable() { + return batchUpdateJobsOperationCallable; + } + + @Override + public UnaryCallable deleteJobCallable() { + return deleteJobCallable; + } + + @Override + public UnaryCallable batchDeleteJobsCallable() { + return batchDeleteJobsCallable; + } + + @Override + public UnaryCallable listJobsCallable() { + return listJobsCallable; + } + + @Override + public UnaryCallable listJobsPagedCallable() { + return listJobsPagedCallable; + } + + @Override + public UnaryCallable searchJobsCallable() { + return searchJobsCallable; + } + + @Override + public UnaryCallable searchJobsPagedCallable() { + return searchJobsPagedCallable; + } + + @Override + public UnaryCallable searchJobsForAlertCallable() { + return searchJobsForAlertCallable; + } + + @Override + public UnaryCallable + searchJobsForAlertPagedCallable() { + return searchJobsForAlertPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceCallableFactory.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceCallableFactory.java new file mode 100644 index 00000000..30c45b68 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the TenantService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTenantServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceStub.java new file mode 100644 index 00000000..2969fcc1 --- /dev/null +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/HttpJsonTenantServiceStub.java @@ -0,0 +1,408 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the TenantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonTenantServiceStub extends TenantServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/CreateTenant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*}/tenants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/GetTenant") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{name=projects/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/UpdateTenant") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{tenant.name=projects/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "tenant.name", request.getTenant().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/DeleteTenant") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{name=projects/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTenantsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.talent.v4beta1.TenantService/ListTenants") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v4beta1/{parent=projects/*}/tenants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTenantsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createTenantCallable; + private final UnaryCallable getTenantCallable; + private final UnaryCallable updateTenantCallable; + private final UnaryCallable deleteTenantCallable; + private final UnaryCallable listTenantsCallable; + private final UnaryCallable + listTenantsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTenantServiceStub create(TenantServiceStubSettings settings) + throws IOException { + return new HttpJsonTenantServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTenantServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonTenantServiceStub( + TenantServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTenantServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTenantServiceStub( + TenantServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonTenantServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTenantServiceStub( + TenantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonTenantServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTenantServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonTenantServiceStub( + TenantServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listTenantsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTenantsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createTenantCallable = + callableFactory.createUnaryCallable( + createTenantTransportSettings, settings.createTenantSettings(), clientContext); + this.getTenantCallable = + callableFactory.createUnaryCallable( + getTenantTransportSettings, settings.getTenantSettings(), clientContext); + this.updateTenantCallable = + callableFactory.createUnaryCallable( + updateTenantTransportSettings, settings.updateTenantSettings(), clientContext); + this.deleteTenantCallable = + callableFactory.createUnaryCallable( + deleteTenantTransportSettings, settings.deleteTenantSettings(), clientContext); + this.listTenantsCallable = + callableFactory.createUnaryCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.listTenantsPagedCallable = + callableFactory.createPagedCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createTenantMethodDescriptor); + methodDescriptors.add(getTenantMethodDescriptor); + methodDescriptors.add(updateTenantMethodDescriptor); + methodDescriptors.add(deleteTenantMethodDescriptor); + methodDescriptors.add(listTenantsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createTenantCallable() { + return createTenantCallable; + } + + @Override + public UnaryCallable getTenantCallable() { + return getTenantCallable; + } + + @Override + public UnaryCallable updateTenantCallable() { + return updateTenantCallable; + } + + @Override + public UnaryCallable deleteTenantCallable() { + return deleteTenantCallable; + } + + @Override + public UnaryCallable listTenantsCallable() { + return listTenantsCallable; + } + + @Override + public UnaryCallable listTenantsPagedCallable() { + return listTenantsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java index 6df99ba5..a68a3bbb 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStub.java @@ -54,7 +54,11 @@ public abstract class JobServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable createJobCallable() { diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java index 673f31cb..da86f3ec 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java @@ -30,6 +30,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -373,6 +376,11 @@ public JobServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcJobServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonJobServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -405,18 +413,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(JobServiceStubSettings.class)) @@ -424,11 +439,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(JobServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return JobServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -605,6 +639,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createJobSettings() diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java deleted file mode 100644 index 418595ca..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStub.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.stub; - -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.CreateProfileRequest; -import com.google.cloud.talent.v4beta1.DeleteProfileRequest; -import com.google.cloud.talent.v4beta1.GetProfileRequest; -import com.google.cloud.talent.v4beta1.ListProfilesRequest; -import com.google.cloud.talent.v4beta1.ListProfilesResponse; -import com.google.cloud.talent.v4beta1.Profile; -import com.google.cloud.talent.v4beta1.SearchProfilesRequest; -import com.google.cloud.talent.v4beta1.SearchProfilesResponse; -import com.google.cloud.talent.v4beta1.UpdateProfileRequest; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the ProfileService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class ProfileServiceStub implements BackgroundResource { - - public UnaryCallable listProfilesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listProfilesPagedCallable()"); - } - - public UnaryCallable listProfilesCallable() { - throw new UnsupportedOperationException("Not implemented: listProfilesCallable()"); - } - - public UnaryCallable createProfileCallable() { - throw new UnsupportedOperationException("Not implemented: createProfileCallable()"); - } - - public UnaryCallable getProfileCallable() { - throw new UnsupportedOperationException("Not implemented: getProfileCallable()"); - } - - public UnaryCallable updateProfileCallable() { - throw new UnsupportedOperationException("Not implemented: updateProfileCallable()"); - } - - public UnaryCallable deleteProfileCallable() { - throw new UnsupportedOperationException("Not implemented: deleteProfileCallable()"); - } - - public UnaryCallable - searchProfilesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: searchProfilesPagedCallable()"); - } - - public UnaryCallable searchProfilesCallable() { - throw new UnsupportedOperationException("Not implemented: searchProfilesCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java deleted file mode 100644 index bc48f2dd..00000000 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java +++ /dev/null @@ -1,547 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1.stub; - -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.CreateProfileRequest; -import com.google.cloud.talent.v4beta1.DeleteProfileRequest; -import com.google.cloud.talent.v4beta1.GetProfileRequest; -import com.google.cloud.talent.v4beta1.HistogramQueryResult; -import com.google.cloud.talent.v4beta1.ListProfilesRequest; -import com.google.cloud.talent.v4beta1.ListProfilesResponse; -import com.google.cloud.talent.v4beta1.Profile; -import com.google.cloud.talent.v4beta1.SearchProfilesRequest; -import com.google.cloud.talent.v4beta1.SearchProfilesResponse; -import com.google.cloud.talent.v4beta1.UpdateProfileRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ProfileServiceStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (jobs.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of createProfile to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
- * ProfileServiceStubSettings.Builder profileServiceSettingsBuilder =
- *     ProfileServiceStubSettings.newBuilder();
- * profileServiceSettingsBuilder
- *     .createProfileSettings()
- *     .setRetrySettings(
- *         profileServiceSettingsBuilder
- *             .createProfileSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ProfileServiceStubSettings profileServiceSettings = profileServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class ProfileServiceStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/jobs") - .build(); - - private final PagedCallSettings< - ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> - listProfilesSettings; - private final UnaryCallSettings createProfileSettings; - private final UnaryCallSettings getProfileSettings; - private final UnaryCallSettings updateProfileSettings; - private final UnaryCallSettings deleteProfileSettings; - private final PagedCallSettings< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> - searchProfilesSettings; - - private static final PagedListDescriptor - LIST_PROFILES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListProfilesRequest injectToken(ListProfilesRequest payload, String token) { - return ListProfilesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListProfilesRequest injectPageSize(ListProfilesRequest payload, int pageSize) { - return ListProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListProfilesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListProfilesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListProfilesResponse payload) { - return payload.getProfilesList() == null - ? ImmutableList.of() - : payload.getProfilesList(); - } - }; - - private static final PagedListDescriptor< - SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult> - SEARCH_PROFILES_PAGE_STR_DESC = - new PagedListDescriptor< - SearchProfilesRequest, SearchProfilesResponse, HistogramQueryResult>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public SearchProfilesRequest injectToken(SearchProfilesRequest payload, String token) { - return SearchProfilesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public SearchProfilesRequest injectPageSize( - SearchProfilesRequest payload, int pageSize) { - return SearchProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(SearchProfilesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(SearchProfilesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(SearchProfilesResponse payload) { - return payload.getHistogramQueryResultsList() == null - ? ImmutableList.of() - : payload.getHistogramQueryResultsList(); - } - }; - - private static final PagedListResponseFactory< - ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> - LIST_PROFILES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListProfilesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_PROFILES_PAGE_STR_DESC, request, context); - return ListProfilesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> - SEARCH_PROFILES_PAGE_STR_FACT = - new PagedListResponseFactory< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - SearchProfilesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create(callable, SEARCH_PROFILES_PAGE_STR_DESC, request, context); - return SearchProfilesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listProfiles. */ - public PagedCallSettings - listProfilesSettings() { - return listProfilesSettings; - } - - /** Returns the object with the settings used for calls to createProfile. */ - public UnaryCallSettings createProfileSettings() { - return createProfileSettings; - } - - /** Returns the object with the settings used for calls to getProfile. */ - public UnaryCallSettings getProfileSettings() { - return getProfileSettings; - } - - /** Returns the object with the settings used for calls to updateProfile. */ - public UnaryCallSettings updateProfileSettings() { - return updateProfileSettings; - } - - /** Returns the object with the settings used for calls to deleteProfile. */ - public UnaryCallSettings deleteProfileSettings() { - return deleteProfileSettings; - } - - /** Returns the object with the settings used for calls to searchProfiles. */ - public PagedCallSettings< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> - searchProfilesSettings() { - return searchProfilesSettings; - } - - public ProfileServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcProfileServiceStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "jobs.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "jobs.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(ProfileServiceStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ProfileServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listProfilesSettings = settingsBuilder.listProfilesSettings().build(); - createProfileSettings = settingsBuilder.createProfileSettings().build(); - getProfileSettings = settingsBuilder.getProfileSettings().build(); - updateProfileSettings = settingsBuilder.updateProfileSettings().build(); - deleteProfileSettings = settingsBuilder.deleteProfileSettings().build(); - searchProfilesSettings = settingsBuilder.searchProfilesSettings().build(); - } - - /** Builder for ProfileServiceStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> - listProfilesSettings; - private final UnaryCallSettings.Builder createProfileSettings; - private final UnaryCallSettings.Builder getProfileSettings; - private final UnaryCallSettings.Builder updateProfileSettings; - private final UnaryCallSettings.Builder deleteProfileSettings; - private final PagedCallSettings.Builder< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> - searchProfilesSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(30000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(30000L)) - .setTotalTimeout(Duration.ofMillis(30000L)) - .build(); - definitions.put("retry_policy_6_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(30000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(30000L)) - .setTotalTimeout(Duration.ofMillis(30000L)) - .build(); - definitions.put("no_retry_4_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listProfilesSettings = PagedCallSettings.newBuilder(LIST_PROFILES_PAGE_STR_FACT); - createProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - searchProfilesSettings = PagedCallSettings.newBuilder(SEARCH_PROFILES_PAGE_STR_FACT); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listProfilesSettings, - createProfileSettings, - getProfileSettings, - updateProfileSettings, - deleteProfileSettings, - searchProfilesSettings); - initDefaults(this); - } - - protected Builder(ProfileServiceStubSettings settings) { - super(settings); - - listProfilesSettings = settings.listProfilesSettings.toBuilder(); - createProfileSettings = settings.createProfileSettings.toBuilder(); - getProfileSettings = settings.getProfileSettings.toBuilder(); - updateProfileSettings = settings.updateProfileSettings.toBuilder(); - deleteProfileSettings = settings.deleteProfileSettings.toBuilder(); - searchProfilesSettings = settings.searchProfilesSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listProfilesSettings, - createProfileSettings, - getProfileSettings, - updateProfileSettings, - deleteProfileSettings, - searchProfilesSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listProfilesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .createProfileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); - - builder - .getProfileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .updateProfileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); - - builder - .deleteProfileSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .searchProfilesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listProfiles. */ - public PagedCallSettings.Builder< - ListProfilesRequest, ListProfilesResponse, ListProfilesPagedResponse> - listProfilesSettings() { - return listProfilesSettings; - } - - /** Returns the builder for the settings used for calls to createProfile. */ - public UnaryCallSettings.Builder createProfileSettings() { - return createProfileSettings; - } - - /** Returns the builder for the settings used for calls to getProfile. */ - public UnaryCallSettings.Builder getProfileSettings() { - return getProfileSettings; - } - - /** Returns the builder for the settings used for calls to updateProfile. */ - public UnaryCallSettings.Builder updateProfileSettings() { - return updateProfileSettings; - } - - /** Returns the builder for the settings used for calls to deleteProfile. */ - public UnaryCallSettings.Builder deleteProfileSettings() { - return deleteProfileSettings; - } - - /** Returns the builder for the settings used for calls to searchProfiles. */ - public PagedCallSettings.Builder< - SearchProfilesRequest, SearchProfilesResponse, SearchProfilesPagedResponse> - searchProfilesSettings() { - return searchProfilesSettings; - } - - @Override - public ProfileServiceStubSettings build() throws IOException { - return new ProfileServiceStubSettings(this); - } - } -} diff --git a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java index aad2bdee..3bce2cb5 100644 --- a/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java +++ b/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -193,6 +196,11 @@ public TenantServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcTenantServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTenantServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -225,18 +233,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(TenantServiceStubSettings.class)) @@ -244,11 +259,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(TenantServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TenantServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -376,6 +410,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createTenantSettings() diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompanyServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompanyServiceClientHttpJsonTest.java new file mode 100644 index 00000000..cb6f4503 --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompanyServiceClientHttpJsonTest.java @@ -0,0 +1,576 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4; + +import static com.google.cloud.talent.v4.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4.stub.HttpJsonCompanyServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CompanyServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CompanyServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCompanyServiceStub.getMethodDescriptors(), + CompanyServiceSettings.getDefaultEndpoint()); + CompanyServiceSettings settings = + CompanyServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CompanyServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompanyServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createCompanyTest() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Company company = Company.newBuilder().build(); + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCompanyTest2() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCompanyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + Company company = Company.newBuilder().build(); + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCompanyTest() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); + + Company actualResponse = client.getCompany(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); + client.getCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCompanyTest2() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + + Company actualResponse = client.getCompany(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCompanyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + client.getCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCompanyTest() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + Company company = + Company.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Company actualResponse = client.updateCompany(company, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Company company = + Company.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCompany(company, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCompanyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); + + client.deleteCompany(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); + client.deleteCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCompanyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + + client.deleteCompany(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCompanyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + client.deleteCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompaniesTest() throws Exception { + Company responsesElement = Company.newBuilder().build(); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken("") + .addAllCompanies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCompaniesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompaniesTest2() throws Exception { + Company responsesElement = Company.newBuilder().build(); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken("") + .addAllCompanies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCompaniesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompletionClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompletionClientHttpJsonTest.java new file mode 100644 index 00000000..9bae62de --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/CompletionClientHttpJsonTest.java @@ -0,0 +1,132 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4.stub.HttpJsonCompletionStub; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CompletionClientHttpJsonTest { + private static MockHttpService mockService; + private static CompletionClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCompletionStub.getMethodDescriptors(), CompletionSettings.getDefaultEndpoint()); + CompletionSettings settings = + CompletionSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CompletionSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompletionClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void completeQueryTest() throws Exception { + CompleteQueryResponse expectedResponse = + CompleteQueryResponse.newBuilder() + .addAllCompletionResults(new ArrayList()) + .setMetadata(ResponseMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setTenant(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + + CompleteQueryResponse actualResponse = client.completeQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void completeQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setTenant(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + client.completeQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/EventServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/EventServiceClientHttpJsonTest.java new file mode 100644 index 00000000..d28b4ad9 --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/EventServiceClientHttpJsonTest.java @@ -0,0 +1,172 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4.stub.HttpJsonEventServiceStub; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EventServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static EventServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonEventServiceStub.getMethodDescriptors(), + EventServiceSettings.getDefaultEndpoint()); + EventServiceSettings settings = + EventServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + EventServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EventServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createClientEventTest() throws Exception { + ClientEvent expectedResponse = + ClientEvent.newBuilder() + .setRequestId("requestId693933066") + .setEventId("eventId-1376502443") + .setCreateTime(Timestamp.newBuilder().build()) + .setEventNotes("eventNotes968522823") + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClientEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClientEventTest2() throws Exception { + ClientEvent expectedResponse = + ClientEvent.newBuilder() + .setRequestId("requestId693933066") + .setEventId("eventId-1376502443") + .setCreateTime(Timestamp.newBuilder().build()) + .setEventNotes("eventNotes968522823") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClientEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/JobServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/JobServiceClientHttpJsonTest.java new file mode 100644 index 00000000..60ae54dd --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/JobServiceClientHttpJsonTest.java @@ -0,0 +1,1155 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4; + +import static com.google.cloud.talent.v4.JobServiceClient.ListJobsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4.stub.HttpJsonJobServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class JobServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static JobServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonJobServiceStub.getMethodDescriptors(), JobServiceSettings.getDefaultEndpoint()); + JobServiceSettings settings = + JobServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + JobServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = JobServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Job job = Job.newBuilder().build(); + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + Job job = Job.newBuilder().build(); + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateJobsTest() throws Exception { + BatchCreateJobsResponse expectedResponse = + BatchCreateJobsResponse.newBuilder().addAllJobResults(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCreateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + + BatchCreateJobsResponse actualResponse = client.batchCreateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + client.batchCreateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchCreateJobsTest2() throws Exception { + BatchCreateJobsResponse expectedResponse = + BatchCreateJobsResponse.newBuilder().addAllJobResults(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCreateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + + BatchCreateJobsResponse actualResponse = client.batchCreateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + client.batchCreateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Job job = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Job actualResponse = client.updateJob(job, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Job job = + Job.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateJob(job, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateJobsTest() throws Exception { + BatchUpdateJobsResponse expectedResponse = + BatchUpdateJobsResponse.newBuilder().addAllJobResults(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchUpdateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + + BatchUpdateJobsResponse actualResponse = client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchUpdateJobsTest2() throws Exception { + BatchUpdateJobsResponse expectedResponse = + BatchUpdateJobsResponse.newBuilder().addAllJobResults(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchUpdateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + + BatchUpdateJobsResponse actualResponse = client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteJobTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); + + client.deleteJob(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteJobTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + + client.deleteJob(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteJobsTest() throws Exception { + BatchDeleteJobsResponse expectedResponse = + BatchDeleteJobsResponse.newBuilder().addAllJobResults(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeleteJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List names = new ArrayList<>(); + + BatchDeleteJobsResponse actualResponse = client.batchDeleteJobsAsync(parent, names).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeleteJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List names = new ArrayList<>(); + client.batchDeleteJobsAsync(parent, names).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchDeleteJobsTest2() throws Exception { + BatchDeleteJobsResponse expectedResponse = + BatchDeleteJobsResponse.newBuilder().addAllJobResults(new ArrayList()).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeleteJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8940/tenants/tenant-8940"; + List names = new ArrayList<>(); + + BatchDeleteJobsResponse actualResponse = client.batchDeleteJobsAsync(parent, names).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeleteJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + List names = new ArrayList<>(); + client.batchDeleteJobsAsync(parent, names).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listJobsTest() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest2() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + String filter = "filter-1274492040"; + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchJobsTest() throws Exception { + SearchJobsResponse expectedResponse = + SearchJobsResponse.newBuilder() + .addAllMatchingJobs(new ArrayList()) + .addAllHistogramQueryResults(new ArrayList()) + .setNextPageToken("nextPageToken-1386094857") + .addAllLocationFilters(new ArrayList()) + .setTotalSize(-705419236) + .setMetadata(ResponseMetadata.newBuilder().build()) + .setBroadenedQueryJobsCount(1432104658) + .setSpellCorrection(SpellingCorrection.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + + SearchJobsResponse actualResponse = client.searchJobs(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + client.searchJobs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchJobsForAlertTest() throws Exception { + SearchJobsResponse expectedResponse = + SearchJobsResponse.newBuilder() + .addAllMatchingJobs(new ArrayList()) + .addAllHistogramQueryResults(new ArrayList()) + .setNextPageToken("nextPageToken-1386094857") + .addAllLocationFilters(new ArrayList()) + .setTotalSize(-705419236) + .setMetadata(ResponseMetadata.newBuilder().build()) + .setBroadenedQueryJobsCount(1432104658) + .setSpellCorrection(SpellingCorrection.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + + SearchJobsResponse actualResponse = client.searchJobsForAlert(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchJobsForAlertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + client.searchJobsForAlert(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/TenantServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/TenantServiceClientHttpJsonTest.java new file mode 100644 index 00000000..4f01eb8b --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4/TenantServiceClientHttpJsonTest.java @@ -0,0 +1,498 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4; + +import static com.google.cloud.talent.v4.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4.stub.HttpJsonTenantServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TenantServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TenantServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTenantServiceStub.getMethodDescriptors(), + TenantServiceSettings.getDefaultEndpoint()); + TenantServiceSettings settings = + TenantServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TenantServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TenantServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.createTenant(parent, tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + client.createTenant(parent, tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.createTenant(parent, tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + Tenant tenant = Tenant.newBuilder().build(); + client.createTenant(parent, tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .build(); + mockService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7691/tenants/tenant-7691"; + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7691/tenants/tenant-7691"; + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .build(); + mockService.addResponse(expectedResponse); + + Tenant tenant = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tenant actualResponse = client.updateTenant(tenant, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Tenant tenant = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTenant(tenant, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7691/tenants/tenant-7691"; + + client.deleteTenant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7691/tenants/tenant-7691"; + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTenantsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest2() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTenantsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java deleted file mode 100644 index 0df5fcab..00000000 --- a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java +++ /dev/null @@ -1,526 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import static com.google.cloud.talent.v4beta1.ApplicationServiceClient.ListApplicationsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.common.collect.Lists; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import com.google.type.Date; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class ApplicationServiceClientTest { - private static MockApplicationService mockApplicationService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private ApplicationServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockApplicationService = new MockApplicationService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockApplicationService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - ApplicationServiceSettings settings = - ApplicationServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ApplicationServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createApplicationTest() throws Exception { - Application expectedResponse = - Application.newBuilder() - .setName( - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]") - .toString()) - .setExternalId("externalId-1699764666") - .setProfile("profile-309425751") - .setJob(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) - .setCompany( - CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") - .toString()) - .setApplicationDate(Date.newBuilder().build()) - .addAllInterviews(new ArrayList()) - .setReferral(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setOutcomeNotes("outcomeNotes-1412621681") - .setOutcome(Outcome.forNumber(0)) - .setIsMatch(BoolValue.newBuilder().build()) - .setJobTitleSnippet("jobTitleSnippet748146690") - .build(); - mockApplicationService.addResponse(expectedResponse); - - ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - Application application = Application.newBuilder().build(); - - Application actualResponse = client.createApplication(parent, application); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateApplicationRequest actualRequest = ((CreateApplicationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(application, actualRequest.getApplication()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createApplicationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - Application application = Application.newBuilder().build(); - client.createApplication(parent, application); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createApplicationTest2() throws Exception { - Application expectedResponse = - Application.newBuilder() - .setName( - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]") - .toString()) - .setExternalId("externalId-1699764666") - .setProfile("profile-309425751") - .setJob(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) - .setCompany( - CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") - .toString()) - .setApplicationDate(Date.newBuilder().build()) - .addAllInterviews(new ArrayList()) - .setReferral(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setOutcomeNotes("outcomeNotes-1412621681") - .setOutcome(Outcome.forNumber(0)) - .setIsMatch(BoolValue.newBuilder().build()) - .setJobTitleSnippet("jobTitleSnippet748146690") - .build(); - mockApplicationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Application application = Application.newBuilder().build(); - - Application actualResponse = client.createApplication(parent, application); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateApplicationRequest actualRequest = ((CreateApplicationRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(application, actualRequest.getApplication()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createApplicationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - String parent = "parent-995424086"; - Application application = Application.newBuilder().build(); - client.createApplication(parent, application); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getApplicationTest() throws Exception { - Application expectedResponse = - Application.newBuilder() - .setName( - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]") - .toString()) - .setExternalId("externalId-1699764666") - .setProfile("profile-309425751") - .setJob(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) - .setCompany( - CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") - .toString()) - .setApplicationDate(Date.newBuilder().build()) - .addAllInterviews(new ArrayList()) - .setReferral(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setOutcomeNotes("outcomeNotes-1412621681") - .setOutcome(Outcome.forNumber(0)) - .setIsMatch(BoolValue.newBuilder().build()) - .setJobTitleSnippet("jobTitleSnippet748146690") - .build(); - mockApplicationService.addResponse(expectedResponse); - - ApplicationName name = - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"); - - Application actualResponse = client.getApplication(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetApplicationRequest actualRequest = ((GetApplicationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getApplicationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - ApplicationName name = - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"); - client.getApplication(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getApplicationTest2() throws Exception { - Application expectedResponse = - Application.newBuilder() - .setName( - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]") - .toString()) - .setExternalId("externalId-1699764666") - .setProfile("profile-309425751") - .setJob(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) - .setCompany( - CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") - .toString()) - .setApplicationDate(Date.newBuilder().build()) - .addAllInterviews(new ArrayList()) - .setReferral(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setOutcomeNotes("outcomeNotes-1412621681") - .setOutcome(Outcome.forNumber(0)) - .setIsMatch(BoolValue.newBuilder().build()) - .setJobTitleSnippet("jobTitleSnippet748146690") - .build(); - mockApplicationService.addResponse(expectedResponse); - - String name = "name3373707"; - - Application actualResponse = client.getApplication(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetApplicationRequest actualRequest = ((GetApplicationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getApplicationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - String name = "name3373707"; - client.getApplication(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateApplicationTest() throws Exception { - Application expectedResponse = - Application.newBuilder() - .setName( - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]") - .toString()) - .setExternalId("externalId-1699764666") - .setProfile("profile-309425751") - .setJob(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) - .setCompany( - CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") - .toString()) - .setApplicationDate(Date.newBuilder().build()) - .addAllInterviews(new ArrayList()) - .setReferral(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setOutcomeNotes("outcomeNotes-1412621681") - .setOutcome(Outcome.forNumber(0)) - .setIsMatch(BoolValue.newBuilder().build()) - .setJobTitleSnippet("jobTitleSnippet748146690") - .build(); - mockApplicationService.addResponse(expectedResponse); - - Application application = Application.newBuilder().build(); - - Application actualResponse = client.updateApplication(application); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateApplicationRequest actualRequest = ((UpdateApplicationRequest) actualRequests.get(0)); - - Assert.assertEquals(application, actualRequest.getApplication()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateApplicationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - Application application = Application.newBuilder().build(); - client.updateApplication(application); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteApplicationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockApplicationService.addResponse(expectedResponse); - - ApplicationName name = - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"); - - client.deleteApplication(name); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteApplicationRequest actualRequest = ((DeleteApplicationRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteApplicationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - ApplicationName name = - ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"); - client.deleteApplication(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteApplicationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockApplicationService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteApplication(name); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteApplicationRequest actualRequest = ((DeleteApplicationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteApplicationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - String name = "name3373707"; - client.deleteApplication(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listApplicationsTest() throws Exception { - Application responsesElement = Application.newBuilder().build(); - ListApplicationsResponse expectedResponse = - ListApplicationsResponse.newBuilder() - .setNextPageToken("") - .addAllApplications(Arrays.asList(responsesElement)) - .build(); - mockApplicationService.addResponse(expectedResponse); - - ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - - ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getApplicationsList().get(0), resources.get(0)); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListApplicationsRequest actualRequest = ((ListApplicationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listApplicationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - client.listApplications(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listApplicationsTest2() throws Exception { - Application responsesElement = Application.newBuilder().build(); - ListApplicationsResponse expectedResponse = - ListApplicationsResponse.newBuilder() - .setNextPageToken("") - .addAllApplications(Arrays.asList(responsesElement)) - .build(); - mockApplicationService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListApplicationsPagedResponse pagedListResponse = client.listApplications(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getApplicationsList().get(0), resources.get(0)); - - List actualRequests = mockApplicationService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListApplicationsRequest actualRequest = ((ListApplicationsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listApplicationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockApplicationService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listApplications(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientHttpJsonTest.java new file mode 100644 index 00000000..442ab6c5 --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientHttpJsonTest.java @@ -0,0 +1,699 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.CompanyServiceClient.ListCompaniesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4beta1.stub.HttpJsonCompanyServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CompanyServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CompanyServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCompanyServiceStub.getMethodDescriptors(), + CompanyServiceSettings.getDefaultEndpoint()); + CompanyServiceSettings settings = + CompanyServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CompanyServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompanyServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createCompanyTest() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCompanyTest2() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCompanyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Company company = Company.newBuilder().build(); + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCompanyTest3() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + Company company = Company.newBuilder().build(); + + Company actualResponse = client.createCompany(parent, company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCompanyExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + Company company = Company.newBuilder().build(); + client.createCompany(parent, company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCompanyTest() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + CompanyName name = CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); + + Company actualResponse = client.getCompany(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompanyName name = + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); + client.getCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCompanyTest2() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + + Company actualResponse = client.getCompany(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCompanyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + client.getCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCompanyTest() throws Exception { + Company expectedResponse = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + mockService.addResponse(expectedResponse); + + Company company = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + + Company actualResponse = client.updateCompany(company); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Company company = + Company.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setDisplayName("displayName1714148973") + .setExternalId("externalId-1699764666") + .setSize(CompanySize.forNumber(0)) + .setHeadquartersAddress("headquartersAddress555829453") + .setHiringAgency(true) + .setEeoText("eeoText-1854750308") + .setWebsiteUri("websiteUri1317135057") + .setCareerSiteUri("careerSiteUri2004228935") + .setImageUri("imageUri-859610607") + .addAllKeywordSearchableJobCustomAttributes(new ArrayList()) + .setDerivedInfo(Company.DerivedInfo.newBuilder().build()) + .setSuspended(true) + .build(); + client.updateCompany(company); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCompanyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CompanyName name = CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); + + client.deleteCompany(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCompanyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompanyName name = + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); + client.deleteCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCompanyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + + client.deleteCompany(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCompanyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7596/tenants/tenant-7596/companies/companie-7596"; + client.deleteCompany(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompaniesTest() throws Exception { + Company responsesElement = Company.newBuilder().build(); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken("") + .addAllCompanies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCompaniesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompaniesTest2() throws Exception { + Company responsesElement = Company.newBuilder().build(); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken("") + .addAllCompanies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCompaniesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCompaniesTest3() throws Exception { + Company responsesElement = Company.newBuilder().build(); + ListCompaniesResponse expectedResponse = + ListCompaniesResponse.newBuilder() + .setNextPageToken("") + .addAllCompanies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + + ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCompaniesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCompaniesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + client.listCompanies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientHttpJsonTest.java new file mode 100644 index 00000000..8395ae8f --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientHttpJsonTest.java @@ -0,0 +1,136 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4beta1.stub.HttpJsonCompletionStub; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CompletionClientHttpJsonTest { + private static MockHttpService mockService; + private static CompletionClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCompletionStub.getMethodDescriptors(), CompletionSettings.getDefaultEndpoint()); + CompletionSettings settings = + CompletionSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CompletionSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CompletionClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void completeQueryTest() throws Exception { + CompleteQueryResponse expectedResponse = + CompleteQueryResponse.newBuilder() + .addAllCompletionResults(new ArrayList()) + .setMetadata(ResponseMetadata.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + + CompleteQueryResponse actualResponse = client.completeQuery(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void completeQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + client.completeQuery(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientHttpJsonTest.java new file mode 100644 index 00000000..8c958693 --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientHttpJsonTest.java @@ -0,0 +1,221 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4beta1.stub.HttpJsonEventServiceStub; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EventServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static EventServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonEventServiceStub.getMethodDescriptors(), + EventServiceSettings.getDefaultEndpoint()); + EventServiceSettings settings = + EventServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + EventServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EventServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createClientEventTest() throws Exception { + ClientEvent expectedResponse = + ClientEvent.newBuilder() + .setRequestId("requestId693933066") + .setEventId("eventId-1376502443") + .setCreateTime(Timestamp.newBuilder().build()) + .setEventNotes("eventNotes968522823") + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClientEventExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClientEventTest2() throws Exception { + ClientEvent expectedResponse = + ClientEvent.newBuilder() + .setRequestId("requestId693933066") + .setEventId("eventId-1376502443") + .setCreateTime(Timestamp.newBuilder().build()) + .setEventNotes("eventNotes968522823") + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClientEventExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClientEventTest3() throws Exception { + ClientEvent expectedResponse = + ClientEvent.newBuilder() + .setRequestId("requestId693933066") + .setEventId("eventId-1376502443") + .setCreateTime(Timestamp.newBuilder().build()) + .setEventNotes("eventNotes968522823") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + + ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClientEventExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + client.createClientEvent(parent, clientEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientHttpJsonTest.java new file mode 100644 index 00000000..170a0447 --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientHttpJsonTest.java @@ -0,0 +1,1441 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.JobServiceClient.ListJobsPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsForAlertPagedResponse; +import static com.google.cloud.talent.v4beta1.JobServiceClient.SearchJobsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4beta1.stub.HttpJsonJobServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class JobServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static JobServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonJobServiceStub.getMethodDescriptors(), JobServiceSettings.getDefaultEndpoint()); + JobServiceSettings settings = + JobServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + JobServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = JobServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Job job = Job.newBuilder().build(); + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createJobTest3() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + Job job = Job.newBuilder().build(); + + Job actualResponse = client.createJob(parent, job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createJobExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + Job job = Job.newBuilder().build(); + client.createJob(parent, job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateJobsTest() throws Exception { + JobOperationResult expectedResponse = + JobOperationResult.newBuilder() + .addAllJobResults(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCreateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + List jobs = new ArrayList<>(); + + JobOperationResult actualResponse = client.batchCreateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + List jobs = new ArrayList<>(); + client.batchCreateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchCreateJobsTest2() throws Exception { + JobOperationResult expectedResponse = + JobOperationResult.newBuilder() + .addAllJobResults(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCreateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + + JobOperationResult actualResponse = client.batchCreateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + client.batchCreateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchCreateJobsTest3() throws Exception { + JobOperationResult expectedResponse = + JobOperationResult.newBuilder() + .addAllJobResults(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCreateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + + JobOperationResult actualResponse = client.batchCreateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateJobsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + client.batchCreateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + JobName name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]"); + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]"); + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobTest2() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + + Job actualResponse = client.getJob(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + client.getJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateJobTest() throws Exception { + Job expectedResponse = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Job job = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + + Job actualResponse = client.updateJob(job); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Job job = + Job.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .setRequisitionId("requisitionId-1769495849") + .setTitle("title110371416") + .setDescription("description-1724546052") + .addAllAddresses(new ArrayList()) + .setApplicationInfo(Job.ApplicationInfo.newBuilder().build()) + .addAllJobBenefits(new ArrayList()) + .setCompensationInfo(CompensationInfo.newBuilder().build()) + .putAllCustomAttributes(new HashMap()) + .addAllDegreeTypes(new ArrayList()) + .setDepartment("department848184146") + .addAllEmploymentTypes(new ArrayList()) + .setIncentives("incentives-1262874520") + .setLanguageCode("languageCode-2092349083") + .setJobLevel(JobLevel.forNumber(0)) + .setPromotionValue(353413845) + .setQualifications("qualifications1903501412") + .setResponsibilities("responsibilities-926952660") + .setPostingRegion(PostingRegion.forNumber(0)) + .setVisibility(Visibility.forNumber(0)) + .setJobStartTime(Timestamp.newBuilder().build()) + .setJobEndTime(Timestamp.newBuilder().build()) + .setPostingPublishTime(Timestamp.newBuilder().build()) + .setPostingExpireTime(Timestamp.newBuilder().build()) + .setPostingCreateTime(Timestamp.newBuilder().build()) + .setPostingUpdateTime(Timestamp.newBuilder().build()) + .setCompanyDisplayName("companyDisplayName-686915152") + .setDerivedInfo(Job.DerivedInfo.newBuilder().build()) + .setProcessingOptions(Job.ProcessingOptions.newBuilder().build()) + .build(); + client.updateJob(job); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateJobsTest() throws Exception { + JobOperationResult expectedResponse = + JobOperationResult.newBuilder() + .addAllJobResults(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchUpdateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ProjectName parent = ProjectName.of("[PROJECT]"); + List jobs = new ArrayList<>(); + + JobOperationResult actualResponse = client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + List jobs = new ArrayList<>(); + client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchUpdateJobsTest2() throws Exception { + JobOperationResult expectedResponse = + JobOperationResult.newBuilder() + .addAllJobResults(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchUpdateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + + JobOperationResult actualResponse = client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void batchUpdateJobsTest3() throws Exception { + JobOperationResult expectedResponse = + JobOperationResult.newBuilder() + .addAllJobResults(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchUpdateJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + + JobOperationResult actualResponse = client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateJobsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + List jobs = new ArrayList<>(); + client.batchUpdateJobsAsync(parent, jobs).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteJobTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + JobName name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]"); + + client.deleteJob(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobName name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]"); + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteJobTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + + client.deleteJob(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4373/tenants/tenant-4373/jobs/job-4373"; + client.deleteJob(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteJobsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeleteJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + client.batchDeleteJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteJobsTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeleteJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + client.batchDeleteJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteJobsTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + String filter = "filter-1274492040"; + + client.batchDeleteJobs(parent, filter); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeleteJobsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + String filter = "filter-1274492040"; + client.batchDeleteJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest2() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobsTest3() throws Exception { + Job responsesElement = Job.newBuilder().build(); + ListJobsResponse expectedResponse = + ListJobsResponse.newBuilder() + .setNextPageToken("") + .addAllJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8940/tenants/tenant-8940"; + String filter = "filter-1274492040"; + + ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8940/tenants/tenant-8940"; + String filter = "filter-1274492040"; + client.listJobs(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchJobsTest() throws Exception { + SearchJobsResponse.MatchingJob responsesElement = + SearchJobsResponse.MatchingJob.newBuilder().build(); + SearchJobsResponse expectedResponse = + SearchJobsResponse.newBuilder() + .setNextPageToken("") + .addAllMatchingJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + + SearchJobsPagedResponse pagedListResponse = client.searchJobs(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMatchingJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchJobsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + client.searchJobs(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchJobsForAlertTest() throws Exception { + SearchJobsResponse.MatchingJob responsesElement = + SearchJobsResponse.MatchingJob.newBuilder().build(); + SearchJobsResponse expectedResponse = + SearchJobsResponse.newBuilder() + .setNextPageToken("") + .addAllMatchingJobs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + + SearchJobsForAlertPagedResponse pagedListResponse = client.searchJobsForAlert(request); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMatchingJobsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchJobsForAlertExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + client.searchJobsForAlert(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java index 3edd77d0..f07d9e20 100644 --- a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java @@ -1181,6 +1181,7 @@ public void searchJobsTest() throws Exception { Assert.assertEquals(request.getDiversificationLevel(), actualRequest.getDiversificationLevel()); Assert.assertEquals(request.getCustomRankingInfo(), actualRequest.getCustomRankingInfo()); Assert.assertEquals(request.getDisableKeywordMatch(), actualRequest.getDisableKeywordMatch()); + Assert.assertEquals(request.getKeywordMatchMode(), actualRequest.getKeywordMatchMode()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1272,6 +1273,7 @@ public void searchJobsForAlertTest() throws Exception { Assert.assertEquals(request.getDiversificationLevel(), actualRequest.getDiversificationLevel()); Assert.assertEquals(request.getCustomRankingInfo(), actualRequest.getCustomRankingInfo()); Assert.assertEquals(request.getDisableKeywordMatch(), actualRequest.getDisableKeywordMatch()); + Assert.assertEquals(request.getKeywordMatchMode(), actualRequest.getKeywordMatchMode()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationService.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationService.java deleted file mode 100644 index dbb493c4..00000000 --- a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockApplicationService implements MockGrpcService { - private final MockApplicationServiceImpl serviceImpl; - - public MockApplicationService() { - serviceImpl = new MockApplicationServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java deleted file mode 100644 index 346fa32b..00000000 --- a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.talent.v4beta1.ApplicationServiceGrpc.ApplicationServiceImplBase; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockApplicationServiceImpl extends ApplicationServiceImplBase { - private List requests; - private Queue responses; - - public MockApplicationServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void createApplication( - CreateApplicationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Application) { - requests.add(request); - responseObserver.onNext(((Application) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateApplication, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Application.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getApplication( - GetApplicationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Application) { - requests.add(request); - responseObserver.onNext(((Application) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetApplication, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Application.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateApplication( - UpdateApplicationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Application) { - requests.add(request); - responseObserver.onNext(((Application) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateApplication, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Application.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteApplication( - DeleteApplicationRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteApplication, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listApplications( - ListApplicationsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListApplicationsResponse) { - requests.add(request); - responseObserver.onNext(((ListApplicationsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListApplications, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListApplicationsResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java deleted file mode 100644 index 9efeda89..00000000 --- a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockProfileService implements MockGrpcService { - private final MockProfileServiceImpl serviceImpl; - - public MockProfileService() { - serviceImpl = new MockProfileServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java deleted file mode 100644 index 4fee67dc..00000000 --- a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockProfileServiceImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.talent.v4beta1.ProfileServiceGrpc.ProfileServiceImplBase; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockProfileServiceImpl extends ProfileServiceImplBase { - private List requests; - private Queue responses; - - public MockProfileServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listProfiles( - ListProfilesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListProfilesResponse) { - requests.add(request); - responseObserver.onNext(((ListProfilesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListProfiles, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListProfilesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createProfile( - CreateProfileRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Profile) { - requests.add(request); - responseObserver.onNext(((Profile) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateProfile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Profile.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getProfile(GetProfileRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Profile) { - requests.add(request); - responseObserver.onNext(((Profile) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetProfile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Profile.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateProfile( - UpdateProfileRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Profile) { - requests.add(request); - responseObserver.onNext(((Profile) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateProfile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Profile.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteProfile(DeleteProfileRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteProfile, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void searchProfiles( - SearchProfilesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchProfilesResponse) { - requests.add(request); - responseObserver.onNext(((SearchProfilesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SearchProfiles, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchProfilesResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java deleted file mode 100644 index 73e535b4..00000000 --- a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java +++ /dev/null @@ -1,671 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.ListProfilesPagedResponse; -import static com.google.cloud.talent.v4beta1.ProfileServiceClient.SearchProfilesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.common.collect.Lists; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class ProfileServiceClientTest { - private static MockProfileService mockProfileService; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private ProfileServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockProfileService = new MockProfileService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockProfileService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - ProfileServiceSettings settings = - ProfileServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ProfileServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listProfilesTest() throws Exception { - Profile responsesElement = Profile.newBuilder().build(); - ListProfilesResponse expectedResponse = - ListProfilesResponse.newBuilder() - .setNextPageToken("") - .addAllProfiles(Arrays.asList(responsesElement)) - .build(); - mockProfileService.addResponse(expectedResponse); - - TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); - - ListProfilesPagedResponse pagedListResponse = client.listProfiles(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getProfilesList().get(0), resources.get(0)); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListProfilesRequest actualRequest = ((ListProfilesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listProfilesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); - client.listProfiles(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listProfilesTest2() throws Exception { - Profile responsesElement = Profile.newBuilder().build(); - ListProfilesResponse expectedResponse = - ListProfilesResponse.newBuilder() - .setNextPageToken("") - .addAllProfiles(Arrays.asList(responsesElement)) - .build(); - mockProfileService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListProfilesPagedResponse pagedListResponse = client.listProfiles(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getProfilesList().get(0), resources.get(0)); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListProfilesRequest actualRequest = ((ListProfilesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listProfilesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listProfiles(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createProfileTest() throws Exception { - Profile expectedResponse = - Profile.newBuilder() - .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString()) - .setExternalId("externalId-1699764666") - .setSource("source-896505829") - .setUri("uri116076") - .setGroupId("groupId293428218") - .setIsHirable(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCandidateUpdateTime(Timestamp.newBuilder().build()) - .setResumeUpdateTime(Timestamp.newBuilder().build()) - .setResume(Resume.newBuilder().build()) - .addAllPersonNames(new ArrayList()) - .addAllAddresses(new ArrayList
()) - .addAllEmailAddresses(new ArrayList()) - .addAllPhoneNumbers(new ArrayList()) - .addAllPersonalUris(new ArrayList()) - .addAllAdditionalContactInfo(new ArrayList()) - .addAllEmploymentRecords(new ArrayList()) - .addAllEducationRecords(new ArrayList()) - .addAllSkills(new ArrayList()) - .addAllActivities(new ArrayList()) - .addAllPublications(new ArrayList()) - .addAllPatents(new ArrayList()) - .addAllCertifications(new ArrayList()) - .addAllApplications(new ArrayList()) - .addAllAssignments(new ArrayList()) - .putAllCustomAttributes(new HashMap()) - .setProcessed(true) - .setKeywordSnippet("keywordSnippet-917986572") - .addAllAvailabilitySignals(new ArrayList()) - .addAllDerivedAddresses(new ArrayList()) - .build(); - mockProfileService.addResponse(expectedResponse); - - TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); - Profile profile = Profile.newBuilder().build(); - - Profile actualResponse = client.createProfile(parent, profile); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateProfileRequest actualRequest = ((CreateProfileRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(profile, actualRequest.getProfile()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createProfileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); - Profile profile = Profile.newBuilder().build(); - client.createProfile(parent, profile); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createProfileTest2() throws Exception { - Profile expectedResponse = - Profile.newBuilder() - .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString()) - .setExternalId("externalId-1699764666") - .setSource("source-896505829") - .setUri("uri116076") - .setGroupId("groupId293428218") - .setIsHirable(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCandidateUpdateTime(Timestamp.newBuilder().build()) - .setResumeUpdateTime(Timestamp.newBuilder().build()) - .setResume(Resume.newBuilder().build()) - .addAllPersonNames(new ArrayList()) - .addAllAddresses(new ArrayList
()) - .addAllEmailAddresses(new ArrayList()) - .addAllPhoneNumbers(new ArrayList()) - .addAllPersonalUris(new ArrayList()) - .addAllAdditionalContactInfo(new ArrayList()) - .addAllEmploymentRecords(new ArrayList()) - .addAllEducationRecords(new ArrayList()) - .addAllSkills(new ArrayList()) - .addAllActivities(new ArrayList()) - .addAllPublications(new ArrayList()) - .addAllPatents(new ArrayList()) - .addAllCertifications(new ArrayList()) - .addAllApplications(new ArrayList()) - .addAllAssignments(new ArrayList()) - .putAllCustomAttributes(new HashMap()) - .setProcessed(true) - .setKeywordSnippet("keywordSnippet-917986572") - .addAllAvailabilitySignals(new ArrayList()) - .addAllDerivedAddresses(new ArrayList()) - .build(); - mockProfileService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Profile profile = Profile.newBuilder().build(); - - Profile actualResponse = client.createProfile(parent, profile); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateProfileRequest actualRequest = ((CreateProfileRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(profile, actualRequest.getProfile()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createProfileExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - String parent = "parent-995424086"; - Profile profile = Profile.newBuilder().build(); - client.createProfile(parent, profile); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getProfileTest() throws Exception { - Profile expectedResponse = - Profile.newBuilder() - .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString()) - .setExternalId("externalId-1699764666") - .setSource("source-896505829") - .setUri("uri116076") - .setGroupId("groupId293428218") - .setIsHirable(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCandidateUpdateTime(Timestamp.newBuilder().build()) - .setResumeUpdateTime(Timestamp.newBuilder().build()) - .setResume(Resume.newBuilder().build()) - .addAllPersonNames(new ArrayList()) - .addAllAddresses(new ArrayList
()) - .addAllEmailAddresses(new ArrayList()) - .addAllPhoneNumbers(new ArrayList()) - .addAllPersonalUris(new ArrayList()) - .addAllAdditionalContactInfo(new ArrayList()) - .addAllEmploymentRecords(new ArrayList()) - .addAllEducationRecords(new ArrayList()) - .addAllSkills(new ArrayList()) - .addAllActivities(new ArrayList()) - .addAllPublications(new ArrayList()) - .addAllPatents(new ArrayList()) - .addAllCertifications(new ArrayList()) - .addAllApplications(new ArrayList()) - .addAllAssignments(new ArrayList()) - .putAllCustomAttributes(new HashMap()) - .setProcessed(true) - .setKeywordSnippet("keywordSnippet-917986572") - .addAllAvailabilitySignals(new ArrayList()) - .addAllDerivedAddresses(new ArrayList()) - .build(); - mockProfileService.addResponse(expectedResponse); - - ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - - Profile actualResponse = client.getProfile(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetProfileRequest actualRequest = ((GetProfileRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getProfileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - client.getProfile(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getProfileTest2() throws Exception { - Profile expectedResponse = - Profile.newBuilder() - .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString()) - .setExternalId("externalId-1699764666") - .setSource("source-896505829") - .setUri("uri116076") - .setGroupId("groupId293428218") - .setIsHirable(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCandidateUpdateTime(Timestamp.newBuilder().build()) - .setResumeUpdateTime(Timestamp.newBuilder().build()) - .setResume(Resume.newBuilder().build()) - .addAllPersonNames(new ArrayList()) - .addAllAddresses(new ArrayList
()) - .addAllEmailAddresses(new ArrayList()) - .addAllPhoneNumbers(new ArrayList()) - .addAllPersonalUris(new ArrayList()) - .addAllAdditionalContactInfo(new ArrayList()) - .addAllEmploymentRecords(new ArrayList()) - .addAllEducationRecords(new ArrayList()) - .addAllSkills(new ArrayList()) - .addAllActivities(new ArrayList()) - .addAllPublications(new ArrayList()) - .addAllPatents(new ArrayList()) - .addAllCertifications(new ArrayList()) - .addAllApplications(new ArrayList()) - .addAllAssignments(new ArrayList()) - .putAllCustomAttributes(new HashMap()) - .setProcessed(true) - .setKeywordSnippet("keywordSnippet-917986572") - .addAllAvailabilitySignals(new ArrayList()) - .addAllDerivedAddresses(new ArrayList()) - .build(); - mockProfileService.addResponse(expectedResponse); - - String name = "name3373707"; - - Profile actualResponse = client.getProfile(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetProfileRequest actualRequest = ((GetProfileRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getProfileExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - String name = "name3373707"; - client.getProfile(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateProfileTest() throws Exception { - Profile expectedResponse = - Profile.newBuilder() - .setName(ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]").toString()) - .setExternalId("externalId-1699764666") - .setSource("source-896505829") - .setUri("uri116076") - .setGroupId("groupId293428218") - .setIsHirable(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCandidateUpdateTime(Timestamp.newBuilder().build()) - .setResumeUpdateTime(Timestamp.newBuilder().build()) - .setResume(Resume.newBuilder().build()) - .addAllPersonNames(new ArrayList()) - .addAllAddresses(new ArrayList
()) - .addAllEmailAddresses(new ArrayList()) - .addAllPhoneNumbers(new ArrayList()) - .addAllPersonalUris(new ArrayList()) - .addAllAdditionalContactInfo(new ArrayList()) - .addAllEmploymentRecords(new ArrayList()) - .addAllEducationRecords(new ArrayList()) - .addAllSkills(new ArrayList()) - .addAllActivities(new ArrayList()) - .addAllPublications(new ArrayList()) - .addAllPatents(new ArrayList()) - .addAllCertifications(new ArrayList()) - .addAllApplications(new ArrayList()) - .addAllAssignments(new ArrayList()) - .putAllCustomAttributes(new HashMap()) - .setProcessed(true) - .setKeywordSnippet("keywordSnippet-917986572") - .addAllAvailabilitySignals(new ArrayList()) - .addAllDerivedAddresses(new ArrayList()) - .build(); - mockProfileService.addResponse(expectedResponse); - - Profile profile = Profile.newBuilder().build(); - - Profile actualResponse = client.updateProfile(profile); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateProfileRequest actualRequest = ((UpdateProfileRequest) actualRequests.get(0)); - - Assert.assertEquals(profile, actualRequest.getProfile()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateProfileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - Profile profile = Profile.newBuilder().build(); - client.updateProfile(profile); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteProfileTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockProfileService.addResponse(expectedResponse); - - ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - - client.deleteProfile(name); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteProfileRequest actualRequest = ((DeleteProfileRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteProfileExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - ProfileName name = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]"); - client.deleteProfile(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteProfileTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockProfileService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteProfile(name); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteProfileRequest actualRequest = ((DeleteProfileRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteProfileExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - String name = "name3373707"; - client.deleteProfile(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void searchProfilesTest() throws Exception { - HistogramQueryResult responsesElement = HistogramQueryResult.newBuilder().build(); - SearchProfilesResponse expectedResponse = - SearchProfilesResponse.newBuilder() - .setNextPageToken("") - .addAllHistogramQueryResults(Arrays.asList(responsesElement)) - .build(); - mockProfileService.addResponse(expectedResponse); - - SearchProfilesRequest request = - SearchProfilesRequest.newBuilder() - .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) - .setRequestMetadata(RequestMetadata.newBuilder().build()) - .setProfileQuery(ProfileQuery.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOffset(-1019779949) - .setDisableSpellCheck(true) - .setOrderBy("orderBy-1207110587") - .setCaseSensitiveSort(true) - .addAllHistogramQueries(new ArrayList()) - .setResultSetId("resultSetId-548600064") - .setStrictKeywordsSearch(true) - .build(); - - SearchProfilesPagedResponse pagedListResponse = client.searchProfiles(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getHistogramQueryResultsList().get(0), resources.get(0)); - - List actualRequests = mockProfileService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchProfilesRequest actualRequest = ((SearchProfilesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestMetadata(), actualRequest.getRequestMetadata()); - Assert.assertEquals(request.getProfileQuery(), actualRequest.getProfileQuery()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); - Assert.assertEquals(request.getDisableSpellCheck(), actualRequest.getDisableSpellCheck()); - Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); - Assert.assertEquals(request.getCaseSensitiveSort(), actualRequest.getCaseSensitiveSort()); - Assert.assertEquals(request.getHistogramQueriesList(), actualRequest.getHistogramQueriesList()); - Assert.assertEquals(request.getResultSetId(), actualRequest.getResultSetId()); - Assert.assertEquals(request.getStrictKeywordsSearch(), actualRequest.getStrictKeywordsSearch()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchProfilesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockProfileService.addException(exception); - - try { - SearchProfilesRequest request = - SearchProfilesRequest.newBuilder() - .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) - .setRequestMetadata(RequestMetadata.newBuilder().build()) - .setProfileQuery(ProfileQuery.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOffset(-1019779949) - .setDisableSpellCheck(true) - .setOrderBy("orderBy-1207110587") - .setCaseSensitiveSort(true) - .addAllHistogramQueries(new ArrayList()) - .setResultSetId("resultSetId-548600064") - .setStrictKeywordsSearch(true) - .build(); - client.searchProfiles(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientHttpJsonTest.java b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientHttpJsonTest.java new file mode 100644 index 00000000..5c9ea309 --- /dev/null +++ b/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientHttpJsonTest.java @@ -0,0 +1,503 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1; + +import static com.google.cloud.talent.v4beta1.TenantServiceClient.ListTenantsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.talent.v4beta1.stub.HttpJsonTenantServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TenantServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TenantServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTenantServiceStub.getMethodDescriptors(), + TenantServiceSettings.getDefaultEndpoint()); + TenantServiceSettings settings = + TenantServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TenantServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TenantServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .addAllKeywordSearchableProfileCustomAttributes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.createTenant(parent, tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + client.createTenant(parent, tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .addAllKeywordSearchableProfileCustomAttributes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + Tenant tenant = Tenant.newBuilder().build(); + + Tenant actualResponse = client.createTenant(parent, tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + Tenant tenant = Tenant.newBuilder().build(); + client.createTenant(parent, tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .addAllKeywordSearchableProfileCustomAttributes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .addAllKeywordSearchableProfileCustomAttributes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7691/tenants/tenant-7691"; + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7691/tenants/tenant-7691"; + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .addAllKeywordSearchableProfileCustomAttributes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + Tenant tenant = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .addAllKeywordSearchableProfileCustomAttributes(new ArrayList()) + .build(); + + Tenant actualResponse = client.updateTenant(tenant); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Tenant tenant = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setExternalId("externalId-1699764666") + .addAllKeywordSearchableProfileCustomAttributes(new ArrayList()) + .build(); + client.updateTenant(tenant); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + + client.deleteTenant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7691/tenants/tenant-7691"; + + client.deleteTenant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7691/tenants/tenant-7691"; + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTenantsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest2() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTenantsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java b/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java deleted file mode 100644 index f4635e52..00000000 --- a/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java +++ /dev/null @@ -1,840 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.talent.v4beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * A service that handles application management, including CRUD and
- * enumeration.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4beta1/application_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ApplicationServiceGrpc { - - private ApplicationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.ApplicationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.CreateApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getCreateApplicationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateApplication", - requestType = com.google.cloud.talent.v4beta1.CreateApplicationRequest.class, - responseType = com.google.cloud.talent.v4beta1.Application.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.CreateApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getCreateApplicationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.CreateApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getCreateApplicationMethod; - if ((getCreateApplicationMethod = ApplicationServiceGrpc.getCreateApplicationMethod) == null) { - synchronized (ApplicationServiceGrpc.class) { - if ((getCreateApplicationMethod = ApplicationServiceGrpc.getCreateApplicationMethod) - == null) { - ApplicationServiceGrpc.getCreateApplicationMethod = - getCreateApplicationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateApplication")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.CreateApplicationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.Application.getDefaultInstance())) - .setSchemaDescriptor( - new ApplicationServiceMethodDescriptorSupplier("CreateApplication")) - .build(); - } - } - } - return getCreateApplicationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.GetApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getGetApplicationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetApplication", - requestType = com.google.cloud.talent.v4beta1.GetApplicationRequest.class, - responseType = com.google.cloud.talent.v4beta1.Application.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.GetApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getGetApplicationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.GetApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getGetApplicationMethod; - if ((getGetApplicationMethod = ApplicationServiceGrpc.getGetApplicationMethod) == null) { - synchronized (ApplicationServiceGrpc.class) { - if ((getGetApplicationMethod = ApplicationServiceGrpc.getGetApplicationMethod) == null) { - ApplicationServiceGrpc.getGetApplicationMethod = - getGetApplicationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApplication")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.GetApplicationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.Application.getDefaultInstance())) - .setSchemaDescriptor( - new ApplicationServiceMethodDescriptorSupplier("GetApplication")) - .build(); - } - } - } - return getGetApplicationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.UpdateApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getUpdateApplicationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateApplication", - requestType = com.google.cloud.talent.v4beta1.UpdateApplicationRequest.class, - responseType = com.google.cloud.talent.v4beta1.Application.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.UpdateApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getUpdateApplicationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.UpdateApplicationRequest, - com.google.cloud.talent.v4beta1.Application> - getUpdateApplicationMethod; - if ((getUpdateApplicationMethod = ApplicationServiceGrpc.getUpdateApplicationMethod) == null) { - synchronized (ApplicationServiceGrpc.class) { - if ((getUpdateApplicationMethod = ApplicationServiceGrpc.getUpdateApplicationMethod) - == null) { - ApplicationServiceGrpc.getUpdateApplicationMethod = - getUpdateApplicationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateApplication")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.UpdateApplicationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.Application.getDefaultInstance())) - .setSchemaDescriptor( - new ApplicationServiceMethodDescriptorSupplier("UpdateApplication")) - .build(); - } - } - } - return getUpdateApplicationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.DeleteApplicationRequest, com.google.protobuf.Empty> - getDeleteApplicationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteApplication", - requestType = com.google.cloud.talent.v4beta1.DeleteApplicationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.DeleteApplicationRequest, com.google.protobuf.Empty> - getDeleteApplicationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.DeleteApplicationRequest, com.google.protobuf.Empty> - getDeleteApplicationMethod; - if ((getDeleteApplicationMethod = ApplicationServiceGrpc.getDeleteApplicationMethod) == null) { - synchronized (ApplicationServiceGrpc.class) { - if ((getDeleteApplicationMethod = ApplicationServiceGrpc.getDeleteApplicationMethod) - == null) { - ApplicationServiceGrpc.getDeleteApplicationMethod = - getDeleteApplicationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteApplication")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.DeleteApplicationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ApplicationServiceMethodDescriptorSupplier("DeleteApplication")) - .build(); - } - } - } - return getDeleteApplicationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ListApplicationsRequest, - com.google.cloud.talent.v4beta1.ListApplicationsResponse> - getListApplicationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListApplications", - requestType = com.google.cloud.talent.v4beta1.ListApplicationsRequest.class, - responseType = com.google.cloud.talent.v4beta1.ListApplicationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ListApplicationsRequest, - com.google.cloud.talent.v4beta1.ListApplicationsResponse> - getListApplicationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ListApplicationsRequest, - com.google.cloud.talent.v4beta1.ListApplicationsResponse> - getListApplicationsMethod; - if ((getListApplicationsMethod = ApplicationServiceGrpc.getListApplicationsMethod) == null) { - synchronized (ApplicationServiceGrpc.class) { - if ((getListApplicationsMethod = ApplicationServiceGrpc.getListApplicationsMethod) - == null) { - ApplicationServiceGrpc.getListApplicationsMethod = - getListApplicationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListApplications")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.ListApplicationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.ListApplicationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ApplicationServiceMethodDescriptorSupplier("ListApplications")) - .build(); - } - } - } - return getListApplicationsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ApplicationServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApplicationServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApplicationServiceStub(channel, callOptions); - } - }; - return ApplicationServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ApplicationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApplicationServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApplicationServiceBlockingStub(channel, callOptions); - } - }; - return ApplicationServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ApplicationServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ApplicationServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApplicationServiceFutureStub(channel, callOptions); - } - }; - return ApplicationServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * A service that handles application management, including CRUD and
-   * enumeration.
-   * 
- */ - public abstract static class ApplicationServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new application entity.
-     * 
- */ - public void createApplication( - com.google.cloud.talent.v4beta1.CreateApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateApplicationMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves specified application.
-     * 
- */ - public void getApplication( - com.google.cloud.talent.v4beta1.GetApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetApplicationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates specified application.
-     * 
- */ - public void updateApplication( - com.google.cloud.talent.v4beta1.UpdateApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateApplicationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes specified application.
-     * 
- */ - public void deleteApplication( - com.google.cloud.talent.v4beta1.DeleteApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteApplicationMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all applications associated with the profile.
-     * 
- */ - public void listApplications( - com.google.cloud.talent.v4beta1.ListApplicationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListApplicationsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateApplicationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.CreateApplicationRequest, - com.google.cloud.talent.v4beta1.Application>( - this, METHODID_CREATE_APPLICATION))) - .addMethod( - getGetApplicationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.GetApplicationRequest, - com.google.cloud.talent.v4beta1.Application>(this, METHODID_GET_APPLICATION))) - .addMethod( - getUpdateApplicationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.UpdateApplicationRequest, - com.google.cloud.talent.v4beta1.Application>( - this, METHODID_UPDATE_APPLICATION))) - .addMethod( - getDeleteApplicationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.DeleteApplicationRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_APPLICATION))) - .addMethod( - getListApplicationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.ListApplicationsRequest, - com.google.cloud.talent.v4beta1.ListApplicationsResponse>( - this, METHODID_LIST_APPLICATIONS))) - .build(); - } - } - - /** - * - * - *
-   * A service that handles application management, including CRUD and
-   * enumeration.
-   * 
- */ - public static final class ApplicationServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ApplicationServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApplicationServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApplicationServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new application entity.
-     * 
- */ - public void createApplication( - com.google.cloud.talent.v4beta1.CreateApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateApplicationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves specified application.
-     * 
- */ - public void getApplication( - com.google.cloud.talent.v4beta1.GetApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetApplicationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates specified application.
-     * 
- */ - public void updateApplication( - com.google.cloud.talent.v4beta1.UpdateApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateApplicationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes specified application.
-     * 
- */ - public void deleteApplication( - com.google.cloud.talent.v4beta1.DeleteApplicationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteApplicationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all applications associated with the profile.
-     * 
- */ - public void listApplications( - com.google.cloud.talent.v4beta1.ListApplicationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListApplicationsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * A service that handles application management, including CRUD and
-   * enumeration.
-   * 
- */ - public static final class ApplicationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ApplicationServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApplicationServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApplicationServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new application entity.
-     * 
- */ - public com.google.cloud.talent.v4beta1.Application createApplication( - com.google.cloud.talent.v4beta1.CreateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateApplicationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves specified application.
-     * 
- */ - public com.google.cloud.talent.v4beta1.Application getApplication( - com.google.cloud.talent.v4beta1.GetApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetApplicationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates specified application.
-     * 
- */ - public com.google.cloud.talent.v4beta1.Application updateApplication( - com.google.cloud.talent.v4beta1.UpdateApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateApplicationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes specified application.
-     * 
- */ - public com.google.protobuf.Empty deleteApplication( - com.google.cloud.talent.v4beta1.DeleteApplicationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteApplicationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all applications associated with the profile.
-     * 
- */ - public com.google.cloud.talent.v4beta1.ListApplicationsResponse listApplications( - com.google.cloud.talent.v4beta1.ListApplicationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListApplicationsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * A service that handles application management, including CRUD and
-   * enumeration.
-   * 
- */ - public static final class ApplicationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ApplicationServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ApplicationServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ApplicationServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new application entity.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.Application> - createApplication(com.google.cloud.talent.v4beta1.CreateApplicationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateApplicationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves specified application.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.Application> - getApplication(com.google.cloud.talent.v4beta1.GetApplicationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetApplicationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates specified application.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.Application> - updateApplication(com.google.cloud.talent.v4beta1.UpdateApplicationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateApplicationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes specified application.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteApplication(com.google.cloud.talent.v4beta1.DeleteApplicationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteApplicationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all applications associated with the profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.ListApplicationsResponse> - listApplications(com.google.cloud.talent.v4beta1.ListApplicationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListApplicationsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_APPLICATION = 0; - private static final int METHODID_GET_APPLICATION = 1; - private static final int METHODID_UPDATE_APPLICATION = 2; - private static final int METHODID_DELETE_APPLICATION = 3; - private static final int METHODID_LIST_APPLICATIONS = 4; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ApplicationServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ApplicationServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_APPLICATION: - serviceImpl.createApplication( - (com.google.cloud.talent.v4beta1.CreateApplicationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_APPLICATION: - serviceImpl.getApplication( - (com.google.cloud.talent.v4beta1.GetApplicationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_APPLICATION: - serviceImpl.updateApplication( - (com.google.cloud.talent.v4beta1.UpdateApplicationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_APPLICATION: - serviceImpl.deleteApplication( - (com.google.cloud.talent.v4beta1.DeleteApplicationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_APPLICATIONS: - serviceImpl.listApplications( - (com.google.cloud.talent.v4beta1.ListApplicationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.talent.v4beta1.ListApplicationsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ApplicationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ApplicationServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ApplicationService"); - } - } - - private static final class ApplicationServiceFileDescriptorSupplier - extends ApplicationServiceBaseDescriptorSupplier { - ApplicationServiceFileDescriptorSupplier() {} - } - - private static final class ApplicationServiceMethodDescriptorSupplier - extends ApplicationServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ApplicationServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ApplicationServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ApplicationServiceFileDescriptorSupplier()) - .addMethod(getCreateApplicationMethod()) - .addMethod(getGetApplicationMethod()) - .addMethod(getUpdateApplicationMethod()) - .addMethod(getDeleteApplicationMethod()) - .addMethod(getListApplicationsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java b/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java deleted file mode 100644 index d3e867e7..00000000 --- a/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java +++ /dev/null @@ -1,968 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.talent.v4beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * A service that handles profile management, including profile CRUD,
- * enumeration and search.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/talent/v4beta1/profile_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ProfileServiceGrpc { - - private ProfileServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.ProfileService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ListProfilesRequest, - com.google.cloud.talent.v4beta1.ListProfilesResponse> - getListProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListProfiles", - requestType = com.google.cloud.talent.v4beta1.ListProfilesRequest.class, - responseType = com.google.cloud.talent.v4beta1.ListProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ListProfilesRequest, - com.google.cloud.talent.v4beta1.ListProfilesResponse> - getListProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ListProfilesRequest, - com.google.cloud.talent.v4beta1.ListProfilesResponse> - getListProfilesMethod; - if ((getListProfilesMethod = ProfileServiceGrpc.getListProfilesMethod) == null) { - synchronized (ProfileServiceGrpc.class) { - if ((getListProfilesMethod = ProfileServiceGrpc.getListProfilesMethod) == null) { - ProfileServiceGrpc.getListProfilesMethod = - getListProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.ListProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.ListProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ProfileServiceMethodDescriptorSupplier("ListProfiles")) - .build(); - } - } - } - return getListProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.CreateProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getCreateProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateProfile", - requestType = com.google.cloud.talent.v4beta1.CreateProfileRequest.class, - responseType = com.google.cloud.talent.v4beta1.Profile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.CreateProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getCreateProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.CreateProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getCreateProfileMethod; - if ((getCreateProfileMethod = ProfileServiceGrpc.getCreateProfileMethod) == null) { - synchronized (ProfileServiceGrpc.class) { - if ((getCreateProfileMethod = ProfileServiceGrpc.getCreateProfileMethod) == null) { - ProfileServiceGrpc.getCreateProfileMethod = - getCreateProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.CreateProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) - .setSchemaDescriptor( - new ProfileServiceMethodDescriptorSupplier("CreateProfile")) - .build(); - } - } - } - return getCreateProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.GetProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getGetProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProfile", - requestType = com.google.cloud.talent.v4beta1.GetProfileRequest.class, - responseType = com.google.cloud.talent.v4beta1.Profile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.GetProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getGetProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.GetProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getGetProfileMethod; - if ((getGetProfileMethod = ProfileServiceGrpc.getGetProfileMethod) == null) { - synchronized (ProfileServiceGrpc.class) { - if ((getGetProfileMethod = ProfileServiceGrpc.getGetProfileMethod) == null) { - ProfileServiceGrpc.getGetProfileMethod = - getGetProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.GetProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) - .setSchemaDescriptor(new ProfileServiceMethodDescriptorSupplier("GetProfile")) - .build(); - } - } - } - return getGetProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.UpdateProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getUpdateProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateProfile", - requestType = com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, - responseType = com.google.cloud.talent.v4beta1.Profile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.UpdateProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getUpdateProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.UpdateProfileRequest, - com.google.cloud.talent.v4beta1.Profile> - getUpdateProfileMethod; - if ((getUpdateProfileMethod = ProfileServiceGrpc.getUpdateProfileMethod) == null) { - synchronized (ProfileServiceGrpc.class) { - if ((getUpdateProfileMethod = ProfileServiceGrpc.getUpdateProfileMethod) == null) { - ProfileServiceGrpc.getUpdateProfileMethod = - getUpdateProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.UpdateProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.Profile.getDefaultInstance())) - .setSchemaDescriptor( - new ProfileServiceMethodDescriptorSupplier("UpdateProfile")) - .build(); - } - } - } - return getUpdateProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> - getDeleteProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteProfile", - requestType = com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> - getDeleteProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.DeleteProfileRequest, com.google.protobuf.Empty> - getDeleteProfileMethod; - if ((getDeleteProfileMethod = ProfileServiceGrpc.getDeleteProfileMethod) == null) { - synchronized (ProfileServiceGrpc.class) { - if ((getDeleteProfileMethod = ProfileServiceGrpc.getDeleteProfileMethod) == null) { - ProfileServiceGrpc.getDeleteProfileMethod = - getDeleteProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.DeleteProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ProfileServiceMethodDescriptorSupplier("DeleteProfile")) - .build(); - } - } - } - return getDeleteProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.SearchProfilesRequest, - com.google.cloud.talent.v4beta1.SearchProfilesResponse> - getSearchProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchProfiles", - requestType = com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, - responseType = com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.SearchProfilesRequest, - com.google.cloud.talent.v4beta1.SearchProfilesResponse> - getSearchProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.SearchProfilesRequest, - com.google.cloud.talent.v4beta1.SearchProfilesResponse> - getSearchProfilesMethod; - if ((getSearchProfilesMethod = ProfileServiceGrpc.getSearchProfilesMethod) == null) { - synchronized (ProfileServiceGrpc.class) { - if ((getSearchProfilesMethod = ProfileServiceGrpc.getSearchProfilesMethod) == null) { - ProfileServiceGrpc.getSearchProfilesMethod = - getSearchProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.SearchProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.SearchProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ProfileServiceMethodDescriptorSupplier("SearchProfiles")) - .build(); - } - } - } - return getSearchProfilesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ProfileServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ProfileServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ProfileServiceStub(channel, callOptions); - } - }; - return ProfileServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ProfileServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ProfileServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ProfileServiceBlockingStub(channel, callOptions); - } - }; - return ProfileServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ProfileServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ProfileServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ProfileServiceFutureStub(channel, callOptions); - } - }; - return ProfileServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * A service that handles profile management, including profile CRUD,
-   * enumeration and search.
-   * 
- */ - public abstract static class ProfileServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists profiles by filter. The order is unspecified.
-     * 
- */ - public void listProfiles( - com.google.cloud.talent.v4beta1.ListProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListProfilesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates and returns a new profile.
-     * 
- */ - public void createProfile( - com.google.cloud.talent.v4beta1.CreateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the specified profile.
-     * 
- */ - public void getProfile( - com.google.cloud.talent.v4beta1.GetProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified profile and returns the updated result.
-     * 
- */ - public void updateProfile( - com.google.cloud.talent.v4beta1.UpdateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified profile.
-     * Prerequisite: The profile has no associated applications or assignments
-     * associated.
-     * 
- */ - public void deleteProfile( - com.google.cloud.talent.v4beta1.DeleteProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void searchProfiles( - com.google.cloud.talent.v4beta1.SearchProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchProfilesMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.ListProfilesRequest, - com.google.cloud.talent.v4beta1.ListProfilesResponse>( - this, METHODID_LIST_PROFILES))) - .addMethod( - getCreateProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.CreateProfileRequest, - com.google.cloud.talent.v4beta1.Profile>(this, METHODID_CREATE_PROFILE))) - .addMethod( - getGetProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.GetProfileRequest, - com.google.cloud.talent.v4beta1.Profile>(this, METHODID_GET_PROFILE))) - .addMethod( - getUpdateProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.UpdateProfileRequest, - com.google.cloud.talent.v4beta1.Profile>(this, METHODID_UPDATE_PROFILE))) - .addMethod( - getDeleteProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.DeleteProfileRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PROFILE))) - .addMethod( - getSearchProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.SearchProfilesRequest, - com.google.cloud.talent.v4beta1.SearchProfilesResponse>( - this, METHODID_SEARCH_PROFILES))) - .build(); - } - } - - /** - * - * - *
-   * A service that handles profile management, including profile CRUD,
-   * enumeration and search.
-   * 
- */ - public static final class ProfileServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ProfileServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ProfileServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ProfileServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists profiles by filter. The order is unspecified.
-     * 
- */ - public void listProfiles( - com.google.cloud.talent.v4beta1.ListProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListProfilesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates and returns a new profile.
-     * 
- */ - public void createProfile( - com.google.cloud.talent.v4beta1.CreateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the specified profile.
-     * 
- */ - public void getProfile( - com.google.cloud.talent.v4beta1.GetProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates the specified profile and returns the updated result.
-     * 
- */ - public void updateProfile( - com.google.cloud.talent.v4beta1.UpdateProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified profile.
-     * Prerequisite: The profile has no associated applications or assignments
-     * associated.
-     * 
- */ - public void deleteProfile( - com.google.cloud.talent.v4beta1.DeleteProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * 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.
-     * 
- */ - public void searchProfiles( - com.google.cloud.talent.v4beta1.SearchProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchProfilesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * A service that handles profile management, including profile CRUD,
-   * enumeration and search.
-   * 
- */ - public static final class ProfileServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ProfileServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ProfileServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ProfileServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists profiles by filter. The order is unspecified.
-     * 
- */ - public com.google.cloud.talent.v4beta1.ListProfilesResponse listProfiles( - com.google.cloud.talent.v4beta1.ListProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListProfilesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates and returns a new profile.
-     * 
- */ - public com.google.cloud.talent.v4beta1.Profile createProfile( - com.google.cloud.talent.v4beta1.CreateProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the specified profile.
-     * 
- */ - public com.google.cloud.talent.v4beta1.Profile getProfile( - com.google.cloud.talent.v4beta1.GetProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified profile and returns the updated result.
-     * 
- */ - public com.google.cloud.talent.v4beta1.Profile updateProfile( - com.google.cloud.talent.v4beta1.UpdateProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified profile.
-     * Prerequisite: The profile has no associated applications or assignments
-     * associated.
-     * 
- */ - public com.google.protobuf.Empty deleteProfile( - com.google.cloud.talent.v4beta1.DeleteProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteProfileMethod(), getCallOptions(), 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.
-     * 
- */ - public com.google.cloud.talent.v4beta1.SearchProfilesResponse searchProfiles( - com.google.cloud.talent.v4beta1.SearchProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchProfilesMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * A service that handles profile management, including profile CRUD,
-   * enumeration and search.
-   * 
- */ - public static final class ProfileServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ProfileServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ProfileServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ProfileServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists profiles by filter. The order is unspecified.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.ListProfilesResponse> - listProfiles(com.google.cloud.talent.v4beta1.ListProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListProfilesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates and returns a new profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.Profile> - createProfile(com.google.cloud.talent.v4beta1.CreateProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the specified profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.Profile> - getProfile(com.google.cloud.talent.v4beta1.GetProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified profile and returns the updated result.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.Profile> - updateProfile(com.google.cloud.talent.v4beta1.UpdateProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified profile.
-     * Prerequisite: The profile has no associated applications or assignments
-     * associated.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteProfile(com.google.cloud.talent.v4beta1.DeleteProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteProfileMethod(), getCallOptions()), 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.SearchProfilesResponse> - searchProfiles(com.google.cloud.talent.v4beta1.SearchProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchProfilesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_PROFILES = 0; - private static final int METHODID_CREATE_PROFILE = 1; - private static final int METHODID_GET_PROFILE = 2; - private static final int METHODID_UPDATE_PROFILE = 3; - private static final int METHODID_DELETE_PROFILE = 4; - private static final int METHODID_SEARCH_PROFILES = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ProfileServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ProfileServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_PROFILES: - serviceImpl.listProfiles( - (com.google.cloud.talent.v4beta1.ListProfilesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_PROFILE: - serviceImpl.createProfile( - (com.google.cloud.talent.v4beta1.CreateProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_PROFILE: - serviceImpl.getProfile( - (com.google.cloud.talent.v4beta1.GetProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_PROFILE: - serviceImpl.updateProfile( - (com.google.cloud.talent.v4beta1.UpdateProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_PROFILE: - serviceImpl.deleteProfile( - (com.google.cloud.talent.v4beta1.DeleteProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_PROFILES: - serviceImpl.searchProfiles( - (com.google.cloud.talent.v4beta1.SearchProfilesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ProfileServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ProfileServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ProfileService"); - } - } - - private static final class ProfileServiceFileDescriptorSupplier - extends ProfileServiceBaseDescriptorSupplier { - ProfileServiceFileDescriptorSupplier() {} - } - - private static final class ProfileServiceMethodDescriptorSupplier - extends ProfileServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ProfileServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ProfileServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ProfileServiceFileDescriptorSupplier()) - .addMethod(getListProfilesMethod()) - .addMethod(getCreateProfileMethod()) - .addMethod(getGetProfileMethod()) - .addMethod(getUpdateProfileMethod()) - .addMethod(getDeleteProfileMethod()) - .addMethod(getSearchProfilesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java deleted file mode 100644 index c672c85a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java +++ /dev/null @@ -1,3067 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents an individual or collaborative activity participated
- * in by a candidate, for example, an open-source project, a class assignment,
- * and so on.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Activity} - */ -public final class Activity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Activity) - ActivityOrBuilder { - private static final long serialVersionUID = 0L; - // Use Activity.newBuilder() to construct. - private Activity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Activity() { - displayName_ = ""; - description_ = ""; - uri_ = ""; - teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - skillsUsed_ = java.util.Collections.emptyList(); - activityNameSnippet_ = ""; - activityDescriptionSnippet_ = ""; - skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Activity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Activity( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - case 34: - { - com.google.type.Date.Builder subBuilder = null; - if (createDate_ != null) { - subBuilder = createDate_.toBuilder(); - } - createDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createDate_); - createDate_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.type.Date.Builder subBuilder = null; - if (updateDate_ != null) { - subBuilder = updateDate_.toBuilder(); - } - updateDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateDate_); - updateDate_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - teamMembers_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - teamMembers_.add(s); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - skillsUsed_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - activityNameSnippet_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - activityDescriptionSnippet_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - skillsUsedSnippet_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - skillsUsedSnippet_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - teamMembers_ = teamMembers_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - skillsUsedSnippet_ = skillsUsedSnippet_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Activity.class, - com.google.cloud.talent.v4beta1.Activity.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Activity display name.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Activity display name.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Activity description.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Activity description.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URI_FIELD_NUMBER = 3; - private volatile java.lang.Object uri_; - /** - * - * - *
-   * Activity URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 3; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * - * - *
-   * Activity URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 3; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_DATE_FIELD_NUMBER = 4; - private com.google.type.Date createDate_; - /** - * - * - *
-   * The first creation date of the activity.
-   * 
- * - * .google.type.Date create_date = 4; - * - * @return Whether the createDate field is set. - */ - @java.lang.Override - public boolean hasCreateDate() { - return createDate_ != null; - } - /** - * - * - *
-   * The first creation date of the activity.
-   * 
- * - * .google.type.Date create_date = 4; - * - * @return The createDate. - */ - @java.lang.Override - public com.google.type.Date getCreateDate() { - return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; - } - /** - * - * - *
-   * The first creation date of the activity.
-   * 
- * - * .google.type.Date create_date = 4; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getCreateDateOrBuilder() { - return getCreateDate(); - } - - public static final int UPDATE_DATE_FIELD_NUMBER = 5; - private com.google.type.Date updateDate_; - /** - * - * - *
-   * The last update date of the activity.
-   * 
- * - * .google.type.Date update_date = 5; - * - * @return Whether the updateDate field is set. - */ - @java.lang.Override - public boolean hasUpdateDate() { - return updateDate_ != null; - } - /** - * - * - *
-   * The last update date of the activity.
-   * 
- * - * .google.type.Date update_date = 5; - * - * @return The updateDate. - */ - @java.lang.Override - public com.google.type.Date getUpdateDate() { - return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; - } - /** - * - * - *
-   * The last update date of the activity.
-   * 
- * - * .google.type.Date update_date = 5; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getUpdateDateOrBuilder() { - return getUpdateDate(); - } - - public static final int TEAM_MEMBERS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList teamMembers_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @return A list containing the teamMembers. - */ - public com.google.protobuf.ProtocolStringList getTeamMembersList() { - return teamMembers_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @return The count of teamMembers. - */ - public int getTeamMembersCount() { - return teamMembers_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @param index The index of the element to return. - * @return The teamMembers at the given index. - */ - public java.lang.String getTeamMembers(int index) { - return teamMembers_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @param index The index of the value to return. - * @return The bytes of the teamMembers at the given index. - */ - public com.google.protobuf.ByteString getTeamMembersBytes(int index) { - return teamMembers_.getByteString(index); - } - - public static final int SKILLS_USED_FIELD_NUMBER = 7; - private java.util.List skillsUsed_; - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - @java.lang.Override - public java.util.List getSkillsUsedList() { - return skillsUsed_; - } - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - @java.lang.Override - public java.util.List - getSkillsUsedOrBuilderList() { - return skillsUsed_; - } - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - @java.lang.Override - public int getSkillsUsedCount() { - return skillsUsed_.size(); - } - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { - return skillsUsed_.get(index); - } - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { - return skillsUsed_.get(index); - } - - public static final int ACTIVITY_NAME_SNIPPET_FIELD_NUMBER = 8; - private volatile java.lang.Object activityNameSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The activityNameSnippet. - */ - @java.lang.Override - public java.lang.String getActivityNameSnippet() { - java.lang.Object ref = activityNameSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - activityNameSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for activityNameSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getActivityNameSnippetBytes() { - java.lang.Object ref = activityNameSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - activityNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER = 9; - private volatile java.lang.Object activityDescriptionSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The activityDescriptionSnippet. - */ - @java.lang.Override - public java.lang.String getActivityDescriptionSnippet() { - java.lang.Object ref = activityDescriptionSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - activityDescriptionSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for activityDescriptionSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { - java.lang.Object ref = activityDescriptionSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - activityDescriptionSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SKILLS_USED_SNIPPET_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList skillsUsedSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the skillsUsedSnippet. - */ - public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { - return skillsUsedSnippet_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of skillsUsedSnippet. - */ - public int getSkillsUsedSnippetCount() { - return skillsUsedSnippet_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The skillsUsedSnippet at the given index. - */ - public java.lang.String getSkillsUsedSnippet(int index) { - return skillsUsedSnippet_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the skillsUsedSnippet at the given index. - */ - public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { - return skillsUsedSnippet_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); - } - if (createDate_ != null) { - output.writeMessage(4, getCreateDate()); - } - if (updateDate_ != null) { - output.writeMessage(5, getUpdateDate()); - } - for (int i = 0; i < teamMembers_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, teamMembers_.getRaw(i)); - } - for (int i = 0; i < skillsUsed_.size(); i++) { - output.writeMessage(7, skillsUsed_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activityNameSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, activityNameSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activityDescriptionSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, activityDescriptionSnippet_); - } - for (int i = 0; i < skillsUsedSnippet_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, skillsUsedSnippet_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); - } - if (createDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateDate()); - } - if (updateDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateDate()); - } - { - int dataSize = 0; - for (int i = 0; i < teamMembers_.size(); i++) { - dataSize += computeStringSizeNoTag(teamMembers_.getRaw(i)); - } - size += dataSize; - size += 1 * getTeamMembersList().size(); - } - for (int i = 0; i < skillsUsed_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, skillsUsed_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activityNameSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, activityNameSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activityDescriptionSnippet_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(9, activityDescriptionSnippet_); - } - { - int dataSize = 0; - for (int i = 0; i < skillsUsedSnippet_.size(); i++) { - dataSize += computeStringSizeNoTag(skillsUsedSnippet_.getRaw(i)); - } - size += dataSize; - size += 1 * getSkillsUsedSnippetList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Activity)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Activity other = (com.google.cloud.talent.v4beta1.Activity) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getUri().equals(other.getUri())) return false; - if (hasCreateDate() != other.hasCreateDate()) return false; - if (hasCreateDate()) { - if (!getCreateDate().equals(other.getCreateDate())) return false; - } - if (hasUpdateDate() != other.hasUpdateDate()) return false; - if (hasUpdateDate()) { - if (!getUpdateDate().equals(other.getUpdateDate())) return false; - } - if (!getTeamMembersList().equals(other.getTeamMembersList())) return false; - if (!getSkillsUsedList().equals(other.getSkillsUsedList())) return false; - if (!getActivityNameSnippet().equals(other.getActivityNameSnippet())) return false; - if (!getActivityDescriptionSnippet().equals(other.getActivityDescriptionSnippet())) - return false; - if (!getSkillsUsedSnippetList().equals(other.getSkillsUsedSnippetList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - if (hasCreateDate()) { - hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; - hash = (53 * hash) + getCreateDate().hashCode(); - } - if (hasUpdateDate()) { - hash = (37 * hash) + UPDATE_DATE_FIELD_NUMBER; - hash = (53 * hash) + getUpdateDate().hashCode(); - } - if (getTeamMembersCount() > 0) { - hash = (37 * hash) + TEAM_MEMBERS_FIELD_NUMBER; - hash = (53 * hash) + getTeamMembersList().hashCode(); - } - if (getSkillsUsedCount() > 0) { - hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; - hash = (53 * hash) + getSkillsUsedList().hashCode(); - } - hash = (37 * hash) + ACTIVITY_NAME_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getActivityNameSnippet().hashCode(); - hash = (37 * hash) + ACTIVITY_DESCRIPTION_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getActivityDescriptionSnippet().hashCode(); - if (getSkillsUsedSnippetCount() > 0) { - hash = (37 * hash) + SKILLS_USED_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getSkillsUsedSnippetList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Activity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Activity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Activity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Activity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents an individual or collaborative activity participated
-   * in by a candidate, for example, an open-source project, a class assignment,
-   * and so on.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Activity} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Activity) - com.google.cloud.talent.v4beta1.ActivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Activity.class, - com.google.cloud.talent.v4beta1.Activity.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Activity.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSkillsUsedFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - displayName_ = ""; - - description_ = ""; - - uri_ = ""; - - if (createDateBuilder_ == null) { - createDate_ = null; - } else { - createDate_ = null; - createDateBuilder_ = null; - } - if (updateDateBuilder_ == null) { - updateDate_ = null; - } else { - updateDate_ = null; - updateDateBuilder_ = null; - } - teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (skillsUsedBuilder_ == null) { - skillsUsed_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - skillsUsedBuilder_.clear(); - } - activityNameSnippet_ = ""; - - activityDescriptionSnippet_ = ""; - - skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Activity_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Activity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Activity build() { - com.google.cloud.talent.v4beta1.Activity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Activity buildPartial() { - com.google.cloud.talent.v4beta1.Activity result = - new com.google.cloud.talent.v4beta1.Activity(this); - int from_bitField0_ = bitField0_; - result.displayName_ = displayName_; - result.description_ = description_; - result.uri_ = uri_; - if (createDateBuilder_ == null) { - result.createDate_ = createDate_; - } else { - result.createDate_ = createDateBuilder_.build(); - } - if (updateDateBuilder_ == null) { - result.updateDate_ = updateDate_; - } else { - result.updateDate_ = updateDateBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - teamMembers_ = teamMembers_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.teamMembers_ = teamMembers_; - if (skillsUsedBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.skillsUsed_ = skillsUsed_; - } else { - result.skillsUsed_ = skillsUsedBuilder_.build(); - } - result.activityNameSnippet_ = activityNameSnippet_; - result.activityDescriptionSnippet_ = activityDescriptionSnippet_; - if (((bitField0_ & 0x00000004) != 0)) { - skillsUsedSnippet_ = skillsUsedSnippet_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.skillsUsedSnippet_ = skillsUsedSnippet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Activity) { - return mergeFrom((com.google.cloud.talent.v4beta1.Activity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Activity other) { - if (other == com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (other.hasCreateDate()) { - mergeCreateDate(other.getCreateDate()); - } - if (other.hasUpdateDate()) { - mergeUpdateDate(other.getUpdateDate()); - } - if (!other.teamMembers_.isEmpty()) { - if (teamMembers_.isEmpty()) { - teamMembers_ = other.teamMembers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTeamMembersIsMutable(); - teamMembers_.addAll(other.teamMembers_); - } - onChanged(); - } - if (skillsUsedBuilder_ == null) { - if (!other.skillsUsed_.isEmpty()) { - if (skillsUsed_.isEmpty()) { - skillsUsed_ = other.skillsUsed_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSkillsUsedIsMutable(); - skillsUsed_.addAll(other.skillsUsed_); - } - onChanged(); - } - } else { - if (!other.skillsUsed_.isEmpty()) { - if (skillsUsedBuilder_.isEmpty()) { - skillsUsedBuilder_.dispose(); - skillsUsedBuilder_ = null; - skillsUsed_ = other.skillsUsed_; - bitField0_ = (bitField0_ & ~0x00000002); - skillsUsedBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSkillsUsedFieldBuilder() - : null; - } else { - skillsUsedBuilder_.addAllMessages(other.skillsUsed_); - } - } - } - if (!other.getActivityNameSnippet().isEmpty()) { - activityNameSnippet_ = other.activityNameSnippet_; - onChanged(); - } - if (!other.getActivityDescriptionSnippet().isEmpty()) { - activityDescriptionSnippet_ = other.activityDescriptionSnippet_; - onChanged(); - } - if (!other.skillsUsedSnippet_.isEmpty()) { - if (skillsUsedSnippet_.isEmpty()) { - skillsUsedSnippet_ = other.skillsUsedSnippet_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSkillsUsedSnippetIsMutable(); - skillsUsedSnippet_.addAll(other.skillsUsedSnippet_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Activity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Activity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Activity display name.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Activity display name.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Activity display name.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Activity display name.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Activity display name.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Activity description.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Activity description.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Activity description.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Activity description.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Activity description.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object uri_ = ""; - /** - * - * - *
-     * Activity URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 3; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Activity URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 3; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Activity URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 3; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Activity URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 3; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * Activity URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 3; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private com.google.type.Date createDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - createDateBuilder_; - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - * - * @return Whether the createDate field is set. - */ - public boolean hasCreateDate() { - return createDateBuilder_ != null || createDate_ != null; - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - * - * @return The createDate. - */ - public com.google.type.Date getCreateDate() { - if (createDateBuilder_ == null) { - return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; - } else { - return createDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - */ - public Builder setCreateDate(com.google.type.Date value) { - if (createDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createDate_ = value; - onChanged(); - } else { - createDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - */ - public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { - if (createDateBuilder_ == null) { - createDate_ = builderForValue.build(); - onChanged(); - } else { - createDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - */ - public Builder mergeCreateDate(com.google.type.Date value) { - if (createDateBuilder_ == null) { - if (createDate_ != null) { - createDate_ = - com.google.type.Date.newBuilder(createDate_).mergeFrom(value).buildPartial(); - } else { - createDate_ = value; - } - onChanged(); - } else { - createDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - */ - public Builder clearCreateDate() { - if (createDateBuilder_ == null) { - createDate_ = null; - onChanged(); - } else { - createDate_ = null; - createDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - */ - public com.google.type.Date.Builder getCreateDateBuilder() { - - onChanged(); - return getCreateDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - */ - public com.google.type.DateOrBuilder getCreateDateOrBuilder() { - if (createDateBuilder_ != null) { - return createDateBuilder_.getMessageOrBuilder(); - } else { - return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; - } - } - /** - * - * - *
-     * The first creation date of the activity.
-     * 
- * - * .google.type.Date create_date = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getCreateDateFieldBuilder() { - if (createDateBuilder_ == null) { - createDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getCreateDate(), getParentForChildren(), isClean()); - createDate_ = null; - } - return createDateBuilder_; - } - - private com.google.type.Date updateDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - updateDateBuilder_; - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - * - * @return Whether the updateDate field is set. - */ - public boolean hasUpdateDate() { - return updateDateBuilder_ != null || updateDate_ != null; - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - * - * @return The updateDate. - */ - public com.google.type.Date getUpdateDate() { - if (updateDateBuilder_ == null) { - return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; - } else { - return updateDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - */ - public Builder setUpdateDate(com.google.type.Date value) { - if (updateDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateDate_ = value; - onChanged(); - } else { - updateDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - */ - public Builder setUpdateDate(com.google.type.Date.Builder builderForValue) { - if (updateDateBuilder_ == null) { - updateDate_ = builderForValue.build(); - onChanged(); - } else { - updateDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - */ - public Builder mergeUpdateDate(com.google.type.Date value) { - if (updateDateBuilder_ == null) { - if (updateDate_ != null) { - updateDate_ = - com.google.type.Date.newBuilder(updateDate_).mergeFrom(value).buildPartial(); - } else { - updateDate_ = value; - } - onChanged(); - } else { - updateDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - */ - public Builder clearUpdateDate() { - if (updateDateBuilder_ == null) { - updateDate_ = null; - onChanged(); - } else { - updateDate_ = null; - updateDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - */ - public com.google.type.Date.Builder getUpdateDateBuilder() { - - onChanged(); - return getUpdateDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - */ - public com.google.type.DateOrBuilder getUpdateDateOrBuilder() { - if (updateDateBuilder_ != null) { - return updateDateBuilder_.getMessageOrBuilder(); - } else { - return updateDate_ == null ? com.google.type.Date.getDefaultInstance() : updateDate_; - } - } - /** - * - * - *
-     * The last update date of the activity.
-     * 
- * - * .google.type.Date update_date = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getUpdateDateFieldBuilder() { - if (updateDateBuilder_ == null) { - updateDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getUpdateDate(), getParentForChildren(), isClean()); - updateDate_ = null; - } - return updateDateBuilder_; - } - - private com.google.protobuf.LazyStringList teamMembers_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTeamMembersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - teamMembers_ = new com.google.protobuf.LazyStringArrayList(teamMembers_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string team_members = 6; - * - * @return A list containing the teamMembers. - */ - public com.google.protobuf.ProtocolStringList getTeamMembersList() { - return teamMembers_.getUnmodifiableView(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string team_members = 6; - * - * @return The count of teamMembers. - */ - public int getTeamMembersCount() { - return teamMembers_.size(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string team_members = 6; - * - * @param index The index of the element to return. - * @return The teamMembers at the given index. - */ - public java.lang.String getTeamMembers(int index) { - return teamMembers_.get(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string team_members = 6; - * - * @param index The index of the value to return. - * @return The bytes of the teamMembers at the given index. - */ - public com.google.protobuf.ByteString getTeamMembersBytes(int index) { - return teamMembers_.getByteString(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string team_members = 6; - * - * @param index The index to set the value at. - * @param value The teamMembers to set. - * @return This builder for chaining. - */ - public Builder setTeamMembers(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTeamMembersIsMutable(); - teamMembers_.set(index, value); - onChanged(); - 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.
-     * 
- * - * repeated string team_members = 6; - * - * @param value The teamMembers to add. - * @return This builder for chaining. - */ - public Builder addTeamMembers(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTeamMembersIsMutable(); - teamMembers_.add(value); - onChanged(); - 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.
-     * 
- * - * repeated string team_members = 6; - * - * @param values The teamMembers to add. - * @return This builder for chaining. - */ - public Builder addAllTeamMembers(java.lang.Iterable values) { - ensureTeamMembersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, teamMembers_); - onChanged(); - 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.
-     * 
- * - * repeated string team_members = 6; - * - * @return This builder for chaining. - */ - public Builder clearTeamMembers() { - teamMembers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - 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.
-     * 
- * - * repeated string team_members = 6; - * - * @param value The bytes of the teamMembers to add. - * @return This builder for chaining. - */ - public Builder addTeamMembersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTeamMembersIsMutable(); - teamMembers_.add(value); - onChanged(); - return this; - } - - private java.util.List skillsUsed_ = - java.util.Collections.emptyList(); - - private void ensureSkillsUsedIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = new java.util.ArrayList(skillsUsed_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder> - skillsUsedBuilder_; - - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public java.util.List getSkillsUsedList() { - if (skillsUsedBuilder_ == null) { - return java.util.Collections.unmodifiableList(skillsUsed_); - } else { - return skillsUsedBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public int getSkillsUsedCount() { - if (skillsUsedBuilder_ == null) { - return skillsUsed_.size(); - } else { - return skillsUsedBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { - if (skillsUsedBuilder_ == null) { - return skillsUsed_.get(index); - } else { - return skillsUsedBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { - if (skillsUsedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedIsMutable(); - skillsUsed_.set(index, value); - onChanged(); - } else { - skillsUsedBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder setSkillsUsed( - int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.set(index, builderForValue.build()); - onChanged(); - } else { - skillsUsedBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { - if (skillsUsedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedIsMutable(); - skillsUsed_.add(value); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { - if (skillsUsedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedIsMutable(); - skillsUsed_.add(index, value); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.add(builderForValue.build()); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder addSkillsUsed( - int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.add(index, builderForValue.build()); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder addAllSkillsUsed( - java.lang.Iterable values) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); - onChanged(); - } else { - skillsUsedBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder clearSkillsUsed() { - if (skillsUsedBuilder_ == null) { - skillsUsed_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - skillsUsedBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public Builder removeSkillsUsed(int index) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.remove(index); - onChanged(); - } else { - skillsUsedBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { - return getSkillsUsedFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { - if (skillsUsedBuilder_ == null) { - return skillsUsed_.get(index); - } else { - return skillsUsedBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public java.util.List - getSkillsUsedOrBuilderList() { - if (skillsUsedBuilder_ != null) { - return skillsUsedBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(skillsUsed_); - } - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { - return getSkillsUsedFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { - return getSkillsUsedFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); - } - /** - * - * - *
-     * A list of skills used in this activity.
-     * The limitation for max number of skills used is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - public java.util.List - getSkillsUsedBuilderList() { - return getSkillsUsedFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder> - getSkillsUsedFieldBuilder() { - if (skillsUsedBuilder_ == null) { - skillsUsedBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder>( - skillsUsed_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - skillsUsed_ = null; - } - return skillsUsedBuilder_; - } - - private java.lang.Object activityNameSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The activityNameSnippet. - */ - public java.lang.String getActivityNameSnippet() { - java.lang.Object ref = activityNameSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - activityNameSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for activityNameSnippet. - */ - public com.google.protobuf.ByteString getActivityNameSnippetBytes() { - java.lang.Object ref = activityNameSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - activityNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The activityNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setActivityNameSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - activityNameSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearActivityNameSnippet() { - - activityNameSnippet_ = getDefaultInstance().getActivityNameSnippet(); - onChanged(); - 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.
-     * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for activityNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setActivityNameSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - activityNameSnippet_ = value; - onChanged(); - return this; - } - - private java.lang.Object activityDescriptionSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The activityDescriptionSnippet. - */ - public java.lang.String getActivityDescriptionSnippet() { - java.lang.Object ref = activityDescriptionSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - activityDescriptionSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for activityDescriptionSnippet. - */ - public com.google.protobuf.ByteString getActivityDescriptionSnippetBytes() { - java.lang.Object ref = activityDescriptionSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - activityDescriptionSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The activityDescriptionSnippet to set. - * @return This builder for chaining. - */ - public Builder setActivityDescriptionSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - activityDescriptionSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearActivityDescriptionSnippet() { - - activityDescriptionSnippet_ = getDefaultInstance().getActivityDescriptionSnippet(); - onChanged(); - 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.
-     * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for activityDescriptionSnippet to set. - * @return This builder for chaining. - */ - public Builder setActivityDescriptionSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - activityDescriptionSnippet_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList skillsUsedSnippet_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureSkillsUsedSnippetIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - skillsUsedSnippet_ = new com.google.protobuf.LazyStringArrayList(skillsUsedSnippet_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the skillsUsedSnippet. - */ - public com.google.protobuf.ProtocolStringList getSkillsUsedSnippetList() { - return skillsUsedSnippet_.getUnmodifiableView(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of skillsUsedSnippet. - */ - public int getSkillsUsedSnippetCount() { - return skillsUsedSnippet_.size(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The skillsUsedSnippet at the given index. - */ - public java.lang.String getSkillsUsedSnippet(int index) { - return skillsUsedSnippet_.get(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the skillsUsedSnippet at the given index. - */ - public com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index) { - return skillsUsedSnippet_.getByteString(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The skillsUsedSnippet to set. - * @return This builder for chaining. - */ - public Builder setSkillsUsedSnippet(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedSnippetIsMutable(); - skillsUsedSnippet_.set(index, value); - onChanged(); - 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The skillsUsedSnippet to add. - * @return This builder for chaining. - */ - public Builder addSkillsUsedSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedSnippetIsMutable(); - skillsUsedSnippet_.add(value); - onChanged(); - 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The skillsUsedSnippet to add. - * @return This builder for chaining. - */ - public Builder addAllSkillsUsedSnippet(java.lang.Iterable values) { - ensureSkillsUsedSnippetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsedSnippet_); - onChanged(); - 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearSkillsUsedSnippet() { - skillsUsedSnippet_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - 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.
-     * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes of the skillsUsedSnippet to add. - * @return This builder for chaining. - */ - public Builder addSkillsUsedSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSkillsUsedSnippetIsMutable(); - skillsUsedSnippet_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Activity) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Activity) - private static final com.google.cloud.talent.v4beta1.Activity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Activity(); - } - - public static com.google.cloud.talent.v4beta1.Activity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Activity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Activity(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Activity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java deleted file mode 100644 index 78ce3184..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java +++ /dev/null @@ -1,415 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface ActivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Activity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Activity display name.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Activity display name.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Activity description.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Activity description.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Activity URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 3; - * - * @return The uri. - */ - java.lang.String getUri(); - /** - * - * - *
-   * Activity URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 3; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
-   * The first creation date of the activity.
-   * 
- * - * .google.type.Date create_date = 4; - * - * @return Whether the createDate field is set. - */ - boolean hasCreateDate(); - /** - * - * - *
-   * The first creation date of the activity.
-   * 
- * - * .google.type.Date create_date = 4; - * - * @return The createDate. - */ - com.google.type.Date getCreateDate(); - /** - * - * - *
-   * The first creation date of the activity.
-   * 
- * - * .google.type.Date create_date = 4; - */ - com.google.type.DateOrBuilder getCreateDateOrBuilder(); - - /** - * - * - *
-   * The last update date of the activity.
-   * 
- * - * .google.type.Date update_date = 5; - * - * @return Whether the updateDate field is set. - */ - boolean hasUpdateDate(); - /** - * - * - *
-   * The last update date of the activity.
-   * 
- * - * .google.type.Date update_date = 5; - * - * @return The updateDate. - */ - com.google.type.Date getUpdateDate(); - /** - * - * - *
-   * The last update date of the activity.
-   * 
- * - * .google.type.Date update_date = 5; - */ - com.google.type.DateOrBuilder getUpdateDateOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @return A list containing the teamMembers. - */ - java.util.List getTeamMembersList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @return The count of teamMembers. - */ - int getTeamMembersCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @param index The index of the element to return. - * @return The teamMembers at the given index. - */ - java.lang.String getTeamMembers(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string team_members = 6; - * - * @param index The index of the value to return. - * @return The bytes of the teamMembers at the given index. - */ - com.google.protobuf.ByteString getTeamMembersBytes(int index); - - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - java.util.List getSkillsUsedList(); - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - int getSkillsUsedCount(); - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - java.util.List - getSkillsUsedOrBuilderList(); - /** - * - * - *
-   * A list of skills used in this activity.
-   * The limitation for max number of skills used is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 7; - */ - com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The activityNameSnippet. - */ - java.lang.String getActivityNameSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_name_snippet = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for activityNameSnippet. - */ - com.google.protobuf.ByteString getActivityNameSnippetBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The activityDescriptionSnippet. - */ - java.lang.String getActivityDescriptionSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string activity_description_snippet = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for activityDescriptionSnippet. - */ - com.google.protobuf.ByteString getActivityDescriptionSnippetBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the skillsUsedSnippet. - */ - java.util.List getSkillsUsedSnippetList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of skillsUsedSnippet. - */ - int getSkillsUsedSnippetCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The skillsUsedSnippet at the given index. - */ - java.lang.String getSkillsUsedSnippet(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated string skills_used_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the skillsUsedSnippet at the given index. - */ - com.google.protobuf.ByteString getSkillsUsedSnippetBytes(int index); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java deleted file mode 100644 index 683115c8..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java +++ /dev/null @@ -1,997 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents contact information other than phone, email,
- * URI and addresses.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} - */ -public final class AdditionalContactInfo extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) - AdditionalContactInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use AdditionalContactInfo.newBuilder() to construct. - private AdditionalContactInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AdditionalContactInfo() { - usage_ = 0; - name_ = ""; - contactId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AdditionalContactInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AdditionalContactInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - usage_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - contactId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, - com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); - } - - public static final int USAGE_FIELD_NUMBER = 1; - private int usage_; - /** - * - * - *
-   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name of the contact method.
-   * For example, "hangout", "skype".
-   * Number of characters allowed is 100.
-   * 
- * - * string name = 2; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the contact method.
-   * For example, "hangout", "skype".
-   * Number of characters allowed is 100.
-   * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTACT_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object contactId_; - /** - * - * - *
-   * The contact id.
-   * Number of characters allowed is 100.
-   * 
- * - * string contact_id = 3; - * - * @return The contactId. - */ - @java.lang.Override - public java.lang.String getContactId() { - java.lang.Object ref = contactId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contactId_ = s; - return s; - } - } - /** - * - * - *
-   * The contact id.
-   * Number of characters allowed is 100.
-   * 
- * - * string contact_id = 3; - * - * @return The bytes for contactId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContactIdBytes() { - java.lang.Object ref = contactId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, usage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contactId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contactId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contactId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contactId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.AdditionalContactInfo)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.AdditionalContactInfo other = - (com.google.cloud.talent.v4beta1.AdditionalContactInfo) obj; - - if (usage_ != other.usage_) return false; - if (!getName().equals(other.getName())) return false; - if (!getContactId().equals(other.getContactId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + usage_; - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + CONTACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getContactId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.AdditionalContactInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents contact information other than phone, email,
-   * URI and addresses.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.AdditionalContactInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.AdditionalContactInfo) - com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.AdditionalContactInfo.class, - com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.AdditionalContactInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - usage_ = 0; - - name_ = ""; - - contactId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AdditionalContactInfo build() { - com.google.cloud.talent.v4beta1.AdditionalContactInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AdditionalContactInfo buildPartial() { - com.google.cloud.talent.v4beta1.AdditionalContactInfo result = - new com.google.cloud.talent.v4beta1.AdditionalContactInfo(this); - result.usage_ = usage_; - result.name_ = name_; - result.contactId_ = contactId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.AdditionalContactInfo) { - return mergeFrom((com.google.cloud.talent.v4beta1.AdditionalContactInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.AdditionalContactInfo other) { - if (other == com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()) - return this; - if (other.usage_ != 0) { - setUsageValue(other.getUsageValue()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getContactId().isEmpty()) { - contactId_ = other.contactId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.AdditionalContactInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.AdditionalContactInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int usage_ = 0; - /** - * - * - *
-     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The enum numeric value on the wire for usage to set. - * @return This builder for chaining. - */ - public Builder setUsageValue(int value) { - - usage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null - ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The usage to set. - * @return This builder for chaining. - */ - public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { - if (value == null) { - throw new NullPointerException(); - } - - usage_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return This builder for chaining. - */ - public Builder clearUsage() { - - usage_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name of the contact method.
-     * For example, "hangout", "skype".
-     * Number of characters allowed is 100.
-     * 
- * - * string name = 2; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the contact method.
-     * For example, "hangout", "skype".
-     * Number of characters allowed is 100.
-     * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the contact method.
-     * For example, "hangout", "skype".
-     * Number of characters allowed is 100.
-     * 
- * - * string name = 2; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the contact method.
-     * For example, "hangout", "skype".
-     * Number of characters allowed is 100.
-     * 
- * - * string name = 2; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the contact method.
-     * For example, "hangout", "skype".
-     * Number of characters allowed is 100.
-     * 
- * - * string name = 2; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object contactId_ = ""; - /** - * - * - *
-     * The contact id.
-     * Number of characters allowed is 100.
-     * 
- * - * string contact_id = 3; - * - * @return The contactId. - */ - public java.lang.String getContactId() { - java.lang.Object ref = contactId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contactId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The contact id.
-     * Number of characters allowed is 100.
-     * 
- * - * string contact_id = 3; - * - * @return The bytes for contactId. - */ - public com.google.protobuf.ByteString getContactIdBytes() { - java.lang.Object ref = contactId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The contact id.
-     * Number of characters allowed is 100.
-     * 
- * - * string contact_id = 3; - * - * @param value The contactId to set. - * @return This builder for chaining. - */ - public Builder setContactId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - contactId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The contact id.
-     * Number of characters allowed is 100.
-     * 
- * - * string contact_id = 3; - * - * @return This builder for chaining. - */ - public Builder clearContactId() { - - contactId_ = getDefaultInstance().getContactId(); - onChanged(); - return this; - } - /** - * - * - *
-     * The contact id.
-     * Number of characters allowed is 100.
-     * 
- * - * string contact_id = 3; - * - * @param value The bytes for contactId to set. - * @return This builder for chaining. - */ - public Builder setContactIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - contactId_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AdditionalContactInfo) - private static final com.google.cloud.talent.v4beta1.AdditionalContactInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.AdditionalContactInfo(); - } - - public static com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdditionalContactInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdditionalContactInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AdditionalContactInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java deleted file mode 100644 index 6aa61500..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface AdditionalContactInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.AdditionalContactInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - int getUsageValue(); - /** - * - * - *
-   * The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); - - /** - * - * - *
-   * The name of the contact method.
-   * For example, "hangout", "skype".
-   * Number of characters allowed is 100.
-   * 
- * - * string name = 2; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the contact method.
-   * For example, "hangout", "skype".
-   * Number of characters allowed is 100.
-   * 
- * - * string name = 2; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The contact id.
-   * Number of characters allowed is 100.
-   * 
- * - * string contact_id = 3; - * - * @return The contactId. - */ - java.lang.String getContactId(); - /** - * - * - *
-   * The contact id.
-   * Number of characters allowed is 100.
-   * 
- * - * string contact_id = 3; - * - * @return The bytes for contactId. - */ - com.google.protobuf.ByteString getContactIdBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java deleted file mode 100644 index 511e02ee..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java +++ /dev/null @@ -1,1530 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a address.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Address} - */ -public final class Address extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Address) - AddressOrBuilder { - private static final long serialVersionUID = 0L; - // Use Address.newBuilder() to construct. - private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Address() { - usage_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Address(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Address( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - usage_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - addressCase_ = 2; - address_ = s; - break; - } - case 26: - { - com.google.type.PostalAddress.Builder subBuilder = null; - if (addressCase_ == 3) { - subBuilder = ((com.google.type.PostalAddress) address_).toBuilder(); - } - address_ = - input.readMessage(com.google.type.PostalAddress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.type.PostalAddress) address_); - address_ = subBuilder.buildPartial(); - } - addressCase_ = 3; - break; - } - case 34: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (current_ != null) { - subBuilder = current_.toBuilder(); - } - current_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(current_); - current_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Address_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Address.class, - com.google.cloud.talent.v4beta1.Address.Builder.class); - } - - private int addressCase_ = 0; - private java.lang.Object address_; - - public enum AddressCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - UNSTRUCTURED_ADDRESS(2), - STRUCTURED_ADDRESS(3), - ADDRESS_NOT_SET(0); - private final int value; - - private AddressCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AddressCase valueOf(int value) { - return forNumber(value); - } - - public static AddressCase forNumber(int value) { - switch (value) { - case 2: - return UNSTRUCTURED_ADDRESS; - case 3: - return STRUCTURED_ADDRESS; - case 0: - return ADDRESS_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public AddressCase getAddressCase() { - return AddressCase.forNumber(addressCase_); - } - - public static final int USAGE_FIELD_NUMBER = 1; - private int usage_; - /** - * - * - *
-   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; - } - - public static final int UNSTRUCTURED_ADDRESS_FIELD_NUMBER = 2; - /** - * - * - *
-   * Unstructured address.
-   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-   * "Sunnyvale, California".
-   * Number of characters allowed is 100.
-   * 
- * - * string unstructured_address = 2; - * - * @return Whether the unstructuredAddress field is set. - */ - public boolean hasUnstructuredAddress() { - return addressCase_ == 2; - } - /** - * - * - *
-   * Unstructured address.
-   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-   * "Sunnyvale, California".
-   * Number of characters allowed is 100.
-   * 
- * - * string unstructured_address = 2; - * - * @return The unstructuredAddress. - */ - public java.lang.String getUnstructuredAddress() { - java.lang.Object ref = ""; - if (addressCase_ == 2) { - ref = address_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (addressCase_ == 2) { - address_ = s; - } - return s; - } - } - /** - * - * - *
-   * Unstructured address.
-   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-   * "Sunnyvale, California".
-   * Number of characters allowed is 100.
-   * 
- * - * string unstructured_address = 2; - * - * @return The bytes for unstructuredAddress. - */ - public com.google.protobuf.ByteString getUnstructuredAddressBytes() { - java.lang.Object ref = ""; - if (addressCase_ == 2) { - ref = address_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (addressCase_ == 2) { - address_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRUCTURED_ADDRESS_FIELD_NUMBER = 3; - /** - * - * - *
-   * Structured address that contains street address, city, state, country,
-   * and so on.
-   * 
- * - * .google.type.PostalAddress structured_address = 3; - * - * @return Whether the structuredAddress field is set. - */ - @java.lang.Override - public boolean hasStructuredAddress() { - return addressCase_ == 3; - } - /** - * - * - *
-   * Structured address that contains street address, city, state, country,
-   * and so on.
-   * 
- * - * .google.type.PostalAddress structured_address = 3; - * - * @return The structuredAddress. - */ - @java.lang.Override - public com.google.type.PostalAddress getStructuredAddress() { - if (addressCase_ == 3) { - return (com.google.type.PostalAddress) address_; - } - return com.google.type.PostalAddress.getDefaultInstance(); - } - /** - * - * - *
-   * Structured address that contains street address, city, state, country,
-   * and so on.
-   * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - @java.lang.Override - public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { - if (addressCase_ == 3) { - return (com.google.type.PostalAddress) address_; - } - return com.google.type.PostalAddress.getDefaultInstance(); - } - - public static final int CURRENT_FIELD_NUMBER = 4; - private com.google.protobuf.BoolValue current_; - /** - * - * - *
-   * Indicates if it's the person's current address.
-   * 
- * - * .google.protobuf.BoolValue current = 4; - * - * @return Whether the current field is set. - */ - @java.lang.Override - public boolean hasCurrent() { - return current_ != null; - } - /** - * - * - *
-   * Indicates if it's the person's current address.
-   * 
- * - * .google.protobuf.BoolValue current = 4; - * - * @return The current. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCurrent() { - return current_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : current_; - } - /** - * - * - *
-   * Indicates if it's the person's current address.
-   * 
- * - * .google.protobuf.BoolValue current = 4; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCurrentOrBuilder() { - return getCurrent(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, usage_); - } - if (addressCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); - } - if (addressCase_ == 3) { - output.writeMessage(3, (com.google.type.PostalAddress) address_); - } - if (current_ != null) { - output.writeMessage(4, getCurrent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); - } - if (addressCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); - } - if (addressCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.type.PostalAddress) address_); - } - if (current_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCurrent()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Address)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Address other = (com.google.cloud.talent.v4beta1.Address) obj; - - if (usage_ != other.usage_) return false; - if (hasCurrent() != other.hasCurrent()) return false; - if (hasCurrent()) { - if (!getCurrent().equals(other.getCurrent())) return false; - } - if (!getAddressCase().equals(other.getAddressCase())) return false; - switch (addressCase_) { - case 2: - if (!getUnstructuredAddress().equals(other.getUnstructuredAddress())) return false; - break; - case 3: - if (!getStructuredAddress().equals(other.getStructuredAddress())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + usage_; - if (hasCurrent()) { - hash = (37 * hash) + CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getCurrent().hashCode(); - } - switch (addressCase_) { - case 2: - hash = (37 * hash) + UNSTRUCTURED_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getUnstructuredAddress().hashCode(); - break; - case 3: - hash = (37 * hash) + STRUCTURED_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getStructuredAddress().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Address parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Address parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Address parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Address prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a address.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Address} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Address) - com.google.cloud.talent.v4beta1.AddressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Address_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Address.class, - com.google.cloud.talent.v4beta1.Address.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Address.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - usage_ = 0; - - if (currentBuilder_ == null) { - current_ = null; - } else { - current_ = null; - currentBuilder_ = null; - } - addressCase_ = 0; - address_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Address_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Address getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Address.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Address build() { - com.google.cloud.talent.v4beta1.Address result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Address buildPartial() { - com.google.cloud.talent.v4beta1.Address result = - new com.google.cloud.talent.v4beta1.Address(this); - result.usage_ = usage_; - if (addressCase_ == 2) { - result.address_ = address_; - } - if (addressCase_ == 3) { - if (structuredAddressBuilder_ == null) { - result.address_ = address_; - } else { - result.address_ = structuredAddressBuilder_.build(); - } - } - if (currentBuilder_ == null) { - result.current_ = current_; - } else { - result.current_ = currentBuilder_.build(); - } - result.addressCase_ = addressCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Address) { - return mergeFrom((com.google.cloud.talent.v4beta1.Address) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Address other) { - if (other == com.google.cloud.talent.v4beta1.Address.getDefaultInstance()) return this; - if (other.usage_ != 0) { - setUsageValue(other.getUsageValue()); - } - if (other.hasCurrent()) { - mergeCurrent(other.getCurrent()); - } - switch (other.getAddressCase()) { - case UNSTRUCTURED_ADDRESS: - { - addressCase_ = 2; - address_ = other.address_; - onChanged(); - break; - } - case STRUCTURED_ADDRESS: - { - mergeStructuredAddress(other.getStructuredAddress()); - break; - } - case ADDRESS_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Address parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Address) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int addressCase_ = 0; - private java.lang.Object address_; - - public AddressCase getAddressCase() { - return AddressCase.forNumber(addressCase_); - } - - public Builder clearAddress() { - addressCase_ = 0; - address_ = null; - onChanged(); - return this; - } - - private int usage_ = 0; - /** - * - * - *
-     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The enum numeric value on the wire for usage to set. - * @return This builder for chaining. - */ - public Builder setUsageValue(int value) { - - usage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null - ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The usage to set. - * @return This builder for chaining. - */ - public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { - if (value == null) { - throw new NullPointerException(); - } - - usage_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return This builder for chaining. - */ - public Builder clearUsage() { - - usage_ = 0; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unstructured address.
-     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-     * "Sunnyvale, California".
-     * Number of characters allowed is 100.
-     * 
- * - * string unstructured_address = 2; - * - * @return Whether the unstructuredAddress field is set. - */ - @java.lang.Override - public boolean hasUnstructuredAddress() { - return addressCase_ == 2; - } - /** - * - * - *
-     * Unstructured address.
-     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-     * "Sunnyvale, California".
-     * Number of characters allowed is 100.
-     * 
- * - * string unstructured_address = 2; - * - * @return The unstructuredAddress. - */ - @java.lang.Override - public java.lang.String getUnstructuredAddress() { - java.lang.Object ref = ""; - if (addressCase_ == 2) { - ref = address_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (addressCase_ == 2) { - address_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Unstructured address.
-     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-     * "Sunnyvale, California".
-     * Number of characters allowed is 100.
-     * 
- * - * string unstructured_address = 2; - * - * @return The bytes for unstructuredAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUnstructuredAddressBytes() { - java.lang.Object ref = ""; - if (addressCase_ == 2) { - ref = address_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (addressCase_ == 2) { - address_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Unstructured address.
-     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-     * "Sunnyvale, California".
-     * Number of characters allowed is 100.
-     * 
- * - * string unstructured_address = 2; - * - * @param value The unstructuredAddress to set. - * @return This builder for chaining. - */ - public Builder setUnstructuredAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - addressCase_ = 2; - address_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Unstructured address.
-     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-     * "Sunnyvale, California".
-     * Number of characters allowed is 100.
-     * 
- * - * string unstructured_address = 2; - * - * @return This builder for chaining. - */ - public Builder clearUnstructuredAddress() { - if (addressCase_ == 2) { - addressCase_ = 0; - address_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Unstructured address.
-     * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-     * "Sunnyvale, California".
-     * Number of characters allowed is 100.
-     * 
- * - * string unstructured_address = 2; - * - * @param value The bytes for unstructuredAddress to set. - * @return This builder for chaining. - */ - public Builder setUnstructuredAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - addressCase_ = 2; - address_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - structuredAddressBuilder_; - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - * - * @return Whether the structuredAddress field is set. - */ - @java.lang.Override - public boolean hasStructuredAddress() { - return addressCase_ == 3; - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - * - * @return The structuredAddress. - */ - @java.lang.Override - public com.google.type.PostalAddress getStructuredAddress() { - if (structuredAddressBuilder_ == null) { - if (addressCase_ == 3) { - return (com.google.type.PostalAddress) address_; - } - return com.google.type.PostalAddress.getDefaultInstance(); - } else { - if (addressCase_ == 3) { - return structuredAddressBuilder_.getMessage(); - } - return com.google.type.PostalAddress.getDefaultInstance(); - } - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - public Builder setStructuredAddress(com.google.type.PostalAddress value) { - if (structuredAddressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - address_ = value; - onChanged(); - } else { - structuredAddressBuilder_.setMessage(value); - } - addressCase_ = 3; - return this; - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - public Builder setStructuredAddress(com.google.type.PostalAddress.Builder builderForValue) { - if (structuredAddressBuilder_ == null) { - address_ = builderForValue.build(); - onChanged(); - } else { - structuredAddressBuilder_.setMessage(builderForValue.build()); - } - addressCase_ = 3; - return this; - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - public Builder mergeStructuredAddress(com.google.type.PostalAddress value) { - if (structuredAddressBuilder_ == null) { - if (addressCase_ == 3 && address_ != com.google.type.PostalAddress.getDefaultInstance()) { - address_ = - com.google.type.PostalAddress.newBuilder((com.google.type.PostalAddress) address_) - .mergeFrom(value) - .buildPartial(); - } else { - address_ = value; - } - onChanged(); - } else { - if (addressCase_ == 3) { - structuredAddressBuilder_.mergeFrom(value); - } else { - structuredAddressBuilder_.setMessage(value); - } - } - addressCase_ = 3; - return this; - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - public Builder clearStructuredAddress() { - if (structuredAddressBuilder_ == null) { - if (addressCase_ == 3) { - addressCase_ = 0; - address_ = null; - onChanged(); - } - } else { - if (addressCase_ == 3) { - addressCase_ = 0; - address_ = null; - } - structuredAddressBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - public com.google.type.PostalAddress.Builder getStructuredAddressBuilder() { - return getStructuredAddressFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - @java.lang.Override - public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { - if ((addressCase_ == 3) && (structuredAddressBuilder_ != null)) { - return structuredAddressBuilder_.getMessageOrBuilder(); - } else { - if (addressCase_ == 3) { - return (com.google.type.PostalAddress) address_; - } - return com.google.type.PostalAddress.getDefaultInstance(); - } - } - /** - * - * - *
-     * Structured address that contains street address, city, state, country,
-     * and so on.
-     * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder> - getStructuredAddressFieldBuilder() { - if (structuredAddressBuilder_ == null) { - if (!(addressCase_ == 3)) { - address_ = com.google.type.PostalAddress.getDefaultInstance(); - } - structuredAddressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.PostalAddress, - com.google.type.PostalAddress.Builder, - com.google.type.PostalAddressOrBuilder>( - (com.google.type.PostalAddress) address_, getParentForChildren(), isClean()); - address_ = null; - } - addressCase_ = 3; - onChanged(); - ; - return structuredAddressBuilder_; - } - - private com.google.protobuf.BoolValue current_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - currentBuilder_; - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - * - * @return Whether the current field is set. - */ - public boolean hasCurrent() { - return currentBuilder_ != null || current_ != null; - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - * - * @return The current. - */ - public com.google.protobuf.BoolValue getCurrent() { - if (currentBuilder_ == null) { - return current_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : current_; - } else { - return currentBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - */ - public Builder setCurrent(com.google.protobuf.BoolValue value) { - if (currentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - current_ = value; - onChanged(); - } else { - currentBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - */ - public Builder setCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { - if (currentBuilder_ == null) { - current_ = builderForValue.build(); - onChanged(); - } else { - currentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - */ - public Builder mergeCurrent(com.google.protobuf.BoolValue value) { - if (currentBuilder_ == null) { - if (current_ != null) { - current_ = - com.google.protobuf.BoolValue.newBuilder(current_).mergeFrom(value).buildPartial(); - } else { - current_ = value; - } - onChanged(); - } else { - currentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - */ - public Builder clearCurrent() { - if (currentBuilder_ == null) { - current_ = null; - onChanged(); - } else { - current_ = null; - currentBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - */ - public com.google.protobuf.BoolValue.Builder getCurrentBuilder() { - - onChanged(); - return getCurrentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - */ - public com.google.protobuf.BoolValueOrBuilder getCurrentOrBuilder() { - if (currentBuilder_ != null) { - return currentBuilder_.getMessageOrBuilder(); - } else { - return current_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : current_; - } - } - /** - * - * - *
-     * Indicates if it's the person's current address.
-     * 
- * - * .google.protobuf.BoolValue current = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getCurrentFieldBuilder() { - if (currentBuilder_ == null) { - currentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getCurrent(), getParentForChildren(), isClean()); - current_ = null; - } - return currentBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Address) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Address) - private static final com.google.cloud.talent.v4beta1.Address DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Address(); - } - - public static com.google.cloud.talent.v4beta1.Address getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Address parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Address(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser
parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser
getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Address getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java deleted file mode 100644 index b4b0ba03..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface AddressOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Address) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - int getUsageValue(); - /** - * - * - *
-   * The usage of the address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); - - /** - * - * - *
-   * Unstructured address.
-   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-   * "Sunnyvale, California".
-   * Number of characters allowed is 100.
-   * 
- * - * string unstructured_address = 2; - * - * @return Whether the unstructuredAddress field is set. - */ - boolean hasUnstructuredAddress(); - /** - * - * - *
-   * Unstructured address.
-   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-   * "Sunnyvale, California".
-   * Number of characters allowed is 100.
-   * 
- * - * string unstructured_address = 2; - * - * @return The unstructuredAddress. - */ - java.lang.String getUnstructuredAddress(); - /** - * - * - *
-   * Unstructured address.
-   * For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
-   * "Sunnyvale, California".
-   * Number of characters allowed is 100.
-   * 
- * - * string unstructured_address = 2; - * - * @return The bytes for unstructuredAddress. - */ - com.google.protobuf.ByteString getUnstructuredAddressBytes(); - - /** - * - * - *
-   * Structured address that contains street address, city, state, country,
-   * and so on.
-   * 
- * - * .google.type.PostalAddress structured_address = 3; - * - * @return Whether the structuredAddress field is set. - */ - boolean hasStructuredAddress(); - /** - * - * - *
-   * Structured address that contains street address, city, state, country,
-   * and so on.
-   * 
- * - * .google.type.PostalAddress structured_address = 3; - * - * @return The structuredAddress. - */ - com.google.type.PostalAddress getStructuredAddress(); - /** - * - * - *
-   * Structured address that contains street address, city, state, country,
-   * and so on.
-   * 
- * - * .google.type.PostalAddress structured_address = 3; - */ - com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder(); - - /** - * - * - *
-   * Indicates if it's the person's current address.
-   * 
- * - * .google.protobuf.BoolValue current = 4; - * - * @return Whether the current field is set. - */ - boolean hasCurrent(); - /** - * - * - *
-   * Indicates if it's the person's current address.
-   * 
- * - * .google.protobuf.BoolValue current = 4; - * - * @return The current. - */ - com.google.protobuf.BoolValue getCurrent(); - /** - * - * - *
-   * Indicates if it's the person's current address.
-   * 
- * - * .google.protobuf.BoolValue current = 4; - */ - com.google.protobuf.BoolValueOrBuilder getCurrentOrBuilder(); - - public com.google.cloud.talent.v4beta1.Address.AddressCase getAddressCase(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java deleted file mode 100644 index b4ee9482..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java +++ /dev/null @@ -1,4806 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a job application record of a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Application} - */ -public final class Application extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Application) - ApplicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Application.newBuilder() to construct. - private Application(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Application() { - name_ = ""; - externalId_ = ""; - profile_ = ""; - job_ = ""; - company_ = ""; - stage_ = 0; - state_ = 0; - interviews_ = java.util.Collections.emptyList(); - outcomeNotes_ = ""; - outcome_ = 0; - jobTitleSnippet_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Application(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Application( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - profile_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - job_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - company_ = s; - break; - } - case 58: - { - com.google.type.Date.Builder subBuilder = null; - if (applicationDate_ != null) { - subBuilder = applicationDate_.toBuilder(); - } - applicationDate_ = - input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(applicationDate_); - applicationDate_ = subBuilder.buildPartial(); - } - - break; - } - case 88: - { - int rawValue = input.readEnum(); - - stage_ = rawValue; - break; - } - case 104: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - interviews_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - interviews_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Interview.parser(), extensionRegistry)); - break; - } - case 146: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (referral_ != null) { - subBuilder = referral_.toBuilder(); - } - referral_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referral_); - referral_ = subBuilder.buildPartial(); - } - - break; - } - case 154: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 162: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 170: - { - java.lang.String s = input.readStringRequireUtf8(); - - outcomeNotes_ = s; - break; - } - case 176: - { - int rawValue = input.readEnum(); - - outcome_ = rawValue; - break; - } - case 226: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isMatch_ != null) { - subBuilder = isMatch_.toBuilder(); - } - isMatch_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isMatch_); - isMatch_ = subBuilder.buildPartial(); - } - - break; - } - case 234: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobTitleSnippet_ = s; - break; - } - case 250: - { - java.lang.String s = input.readStringRequireUtf8(); - - externalId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - interviews_ = java.util.Collections.unmodifiableList(interviews_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationResourceProto - .internal_static_google_cloud_talent_v4beta1_Application_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationResourceProto - .internal_static_google_cloud_talent_v4beta1_Application_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Application.class, - com.google.cloud.talent.v4beta1.Application.Builder.class); - } - - /** - * - * - *
-   * Enum that represents the application status.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.Application.ApplicationState} - */ - public enum ApplicationState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * APPLICATION_STATE_UNSPECIFIED = 0; - */ - APPLICATION_STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The current stage is in progress or pending, for example, interviews in
-     * progress.
-     * 
- * - * IN_PROGRESS = 1; - */ - IN_PROGRESS(1), - /** - * - * - *
-     * The current stage was terminated by a candidate decision.
-     * 
- * - * CANDIDATE_WITHDREW = 2; - */ - CANDIDATE_WITHDREW(2), - /** - * - * - *
-     * The current stage was terminated by an employer or agency decision.
-     * 
- * - * EMPLOYER_WITHDREW = 3; - */ - EMPLOYER_WITHDREW(3), - /** - * - * - *
-     * The current stage is successfully completed, but the next stage (if
-     * applicable) has not begun.
-     * 
- * - * COMPLETED = 4; - */ - COMPLETED(4), - /** - * - * - *
-     * The current stage was closed without an exception, or terminated for
-     * reasons unrealated to the candidate.
-     * 
- * - * CLOSED = 5; - */ - CLOSED(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * APPLICATION_STATE_UNSPECIFIED = 0; - */ - public static final int APPLICATION_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The current stage is in progress or pending, for example, interviews in
-     * progress.
-     * 
- * - * IN_PROGRESS = 1; - */ - public static final int IN_PROGRESS_VALUE = 1; - /** - * - * - *
-     * The current stage was terminated by a candidate decision.
-     * 
- * - * CANDIDATE_WITHDREW = 2; - */ - public static final int CANDIDATE_WITHDREW_VALUE = 2; - /** - * - * - *
-     * The current stage was terminated by an employer or agency decision.
-     * 
- * - * EMPLOYER_WITHDREW = 3; - */ - public static final int EMPLOYER_WITHDREW_VALUE = 3; - /** - * - * - *
-     * The current stage is successfully completed, but the next stage (if
-     * applicable) has not begun.
-     * 
- * - * COMPLETED = 4; - */ - public static final int COMPLETED_VALUE = 4; - /** - * - * - *
-     * The current stage was closed without an exception, or terminated for
-     * reasons unrealated to the candidate.
-     * 
- * - * CLOSED = 5; - */ - public static final int CLOSED_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ApplicationState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ApplicationState forNumber(int value) { - switch (value) { - case 0: - return APPLICATION_STATE_UNSPECIFIED; - case 1: - return IN_PROGRESS; - case 2: - return CANDIDATE_WITHDREW; - case 3: - return EMPLOYER_WITHDREW; - case 4: - return COMPLETED; - case 5: - return CLOSED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApplicationState findValueByNumber(int number) { - return ApplicationState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.Application.getDescriptor().getEnumTypes().get(0); - } - - private static final ApplicationState[] VALUES = values(); - - public static ApplicationState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ApplicationState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Application.ApplicationState) - } - - /** - * - * - *
-   * The stage of the application.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.Application.ApplicationStage} - */ - public enum ApplicationStage implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * APPLICATION_STAGE_UNSPECIFIED = 0; - */ - 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.
-     * 
- * - * NEW = 1; - */ - NEW(1), - /** - * - * - *
-     * A recruiter decided to screen the candidate for this role.
-     * 
- * - * SCREEN = 2; - */ - SCREEN(2), - /** - * - * - *
-     * Candidate is being / was sent to the customer / hiring manager for
-     * detailed review.
-     * 
- * - * HIRING_MANAGER_REVIEW = 3; - */ - HIRING_MANAGER_REVIEW(3), - /** - * - * - *
-     * Candidate was approved by the client / hiring manager and is being / was
-     * interviewed for the role.
-     * 
- * - * INTERVIEW = 4; - */ - INTERVIEW(4), - /** - * - * - *
-     * Candidate will be / has been given an offer of employment.
-     * 
- * - * OFFER_EXTENDED = 5; - */ - OFFER_EXTENDED(5), - /** - * - * - *
-     * Candidate has accepted their offer of employment.
-     * 
- * - * OFFER_ACCEPTED = 6; - */ - OFFER_ACCEPTED(6), - /** - * - * - *
-     * Candidate has begun (or completed) their employment or assignment with
-     * the employer.
-     * 
- * - * STARTED = 7; - */ - STARTED(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * APPLICATION_STAGE_UNSPECIFIED = 0; - */ - public static final int APPLICATION_STAGE_UNSPECIFIED_VALUE = 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.
-     * 
- * - * NEW = 1; - */ - public static final int NEW_VALUE = 1; - /** - * - * - *
-     * A recruiter decided to screen the candidate for this role.
-     * 
- * - * SCREEN = 2; - */ - public static final int SCREEN_VALUE = 2; - /** - * - * - *
-     * Candidate is being / was sent to the customer / hiring manager for
-     * detailed review.
-     * 
- * - * HIRING_MANAGER_REVIEW = 3; - */ - public static final int HIRING_MANAGER_REVIEW_VALUE = 3; - /** - * - * - *
-     * Candidate was approved by the client / hiring manager and is being / was
-     * interviewed for the role.
-     * 
- * - * INTERVIEW = 4; - */ - public static final int INTERVIEW_VALUE = 4; - /** - * - * - *
-     * Candidate will be / has been given an offer of employment.
-     * 
- * - * OFFER_EXTENDED = 5; - */ - public static final int OFFER_EXTENDED_VALUE = 5; - /** - * - * - *
-     * Candidate has accepted their offer of employment.
-     * 
- * - * OFFER_ACCEPTED = 6; - */ - public static final int OFFER_ACCEPTED_VALUE = 6; - /** - * - * - *
-     * Candidate has begun (or completed) their employment or assignment with
-     * the employer.
-     * 
- * - * STARTED = 7; - */ - public static final int STARTED_VALUE = 7; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ApplicationStage valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ApplicationStage forNumber(int value) { - switch (value) { - case 0: - return APPLICATION_STAGE_UNSPECIFIED; - case 1: - return NEW; - case 2: - return SCREEN; - case 3: - return HIRING_MANAGER_REVIEW; - case 4: - return INTERVIEW; - case 5: - return OFFER_EXTENDED; - case 6: - return OFFER_ACCEPTED; - case 7: - return STARTED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApplicationStage findValueByNumber(int number) { - return ApplicationStage.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.Application.getDescriptor().getEnumTypes().get(1); - } - - private static final ApplicationStage[] VALUES = values(); - - public static ApplicationStage valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ApplicationStage(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Application.ApplicationStage) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXTERNAL_ID_FIELD_NUMBER = 31; - private volatile java.lang.Object externalId_; - /** - * - * - *
-   * Required. Client side application identifier, used to uniquely identify the
-   * application.
-   * The maximum number of allowed characters is 255.
-   * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The externalId. - */ - @java.lang.Override - public java.lang.String getExternalId() { - java.lang.Object ref = externalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. Client side application identifier, used to uniquely identify the
-   * application.
-   * The maximum number of allowed characters is 255.
-   * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for externalId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { - java.lang.Object ref = externalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - externalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROFILE_FIELD_NUMBER = 2; - private volatile java.lang.Object 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".
-   * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The profile. - */ - @java.lang.Override - public java.lang.String getProfile() { - java.lang.Object ref = profile_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - profile_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for profile. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProfileBytes() { - java.lang.Object ref = profile_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - profile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_FIELD_NUMBER = 4; - private volatile java.lang.Object 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".
-   * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The job. - */ - @java.lang.Override - public java.lang.String getJob() { - java.lang.Object ref = job_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - job_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for job. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobBytes() { - java.lang.Object ref = job_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - job_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPANY_FIELD_NUMBER = 5; - private volatile java.lang.Object 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".
-   * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @return The company. - */ - @java.lang.Override - public java.lang.String getCompany() { - java.lang.Object ref = company_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - company_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for company. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCompanyBytes() { - java.lang.Object ref = company_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - company_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APPLICATION_DATE_FIELD_NUMBER = 7; - private com.google.type.Date applicationDate_; - /** - * - * - *
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 7; - * - * @return Whether the applicationDate field is set. - */ - @java.lang.Override - public boolean hasApplicationDate() { - return applicationDate_ != null; - } - /** - * - * - *
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 7; - * - * @return The applicationDate. - */ - @java.lang.Override - public com.google.type.Date getApplicationDate() { - return applicationDate_ == null ? com.google.type.Date.getDefaultInstance() : applicationDate_; - } - /** - * - * - *
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 7; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { - return getApplicationDate(); - } - - public static final int STAGE_FIELD_NUMBER = 11; - private 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for stage. - */ - @java.lang.Override - public int getStageValue() { - return 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The stage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application.ApplicationStage getStage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Application.ApplicationStage result = - com.google.cloud.talent.v4beta1.Application.ApplicationStage.valueOf(stage_); - return result == null - ? com.google.cloud.talent.v4beta1.Application.ApplicationStage.UNRECOGNIZED - : result; - } - - public static final int STATE_FIELD_NUMBER = 13; - private int state_; - /** - * - * - *
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application.ApplicationState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Application.ApplicationState result = - com.google.cloud.talent.v4beta1.Application.ApplicationState.valueOf(state_); - return result == null - ? com.google.cloud.talent.v4beta1.Application.ApplicationState.UNRECOGNIZED - : result; - } - - public static final int INTERVIEWS_FIELD_NUMBER = 16; - private java.util.List 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - @java.lang.Override - public java.util.List getInterviewsList() { - return 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - @java.lang.Override - public java.util.List - getInterviewsOrBuilderList() { - return 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - @java.lang.Override - public int getInterviewsCount() { - return interviews_.size(); - } - /** - * - * - *
-   * 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Interview getInterviews(int index) { - return interviews_.get(index); - } - /** - * - * - *
-   * 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.InterviewOrBuilder getInterviewsOrBuilder(int index) { - return interviews_.get(index); - } - - public static final int REFERRAL_FIELD_NUMBER = 18; - private com.google.protobuf.BoolValue referral_; - /** - * - * - *
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue referral = 18; - * - * @return Whether the referral field is set. - */ - @java.lang.Override - public boolean hasReferral() { - return referral_ != null; - } - /** - * - * - *
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue referral = 18; - * - * @return The referral. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getReferral() { - return referral_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : referral_; - } - /** - * - * - *
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getReferralOrBuilder() { - return getReferral(); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 19; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Required. Reflects the time that the application was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Required. Reflects the time that the application was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Required. Reflects the time that the application was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 20; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 20; - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 20; - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int OUTCOME_NOTES_FIELD_NUMBER = 21; - private volatile java.lang.Object outcomeNotes_; - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 21; - * - * @return The outcomeNotes. - */ - @java.lang.Override - public java.lang.String getOutcomeNotes() { - java.lang.Object ref = outcomeNotes_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outcomeNotes_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 21; - * - * @return The bytes for outcomeNotes. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOutcomeNotesBytes() { - java.lang.Object ref = outcomeNotes_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outcomeNotes_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTCOME_FIELD_NUMBER = 22; - private int outcome_; - /** - * - * - *
-   * Outcome positiveness shows how positive the outcome is.
-   * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @return The enum numeric value on the wire for outcome. - */ - @java.lang.Override - public int getOutcomeValue() { - return outcome_; - } - /** - * - * - *
-   * Outcome positiveness shows how positive the outcome is.
-   * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @return The outcome. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Outcome getOutcome() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Outcome result = - com.google.cloud.talent.v4beta1.Outcome.valueOf(outcome_); - return result == null ? com.google.cloud.talent.v4beta1.Outcome.UNRECOGNIZED : result; - } - - public static final int IS_MATCH_FIELD_NUMBER = 28; - private com.google.protobuf.BoolValue isMatch_; - /** - * - * - *
-   * Output only. Indicates whether this job application is a match to
-   * application related filters. This value is only applicable in profile
-   * search response.
-   * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the isMatch field is set. - */ - @java.lang.Override - public boolean hasIsMatch() { - return isMatch_ != null; - } - /** - * - * - *
-   * Output only. Indicates whether this job application is a match to
-   * application related filters. This value is only applicable in profile
-   * search response.
-   * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The isMatch. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getIsMatch() { - return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; - } - /** - * - * - *
-   * Output only. Indicates whether this job application is a match to
-   * application related filters. This value is only applicable in profile
-   * search response.
-   * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { - return getIsMatch(); - } - - public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 29; - private volatile java.lang.Object jobTitleSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobTitleSnippet. - */ - @java.lang.Override - public java.lang.String getJobTitleSnippet() { - java.lang.Object ref = jobTitleSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitleSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobTitleSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobTitleSnippetBytes() { - java.lang.Object ref = jobTitleSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitleSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profile_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profile_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(job_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, job_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(company_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, company_); - } - if (applicationDate_ != null) { - output.writeMessage(7, getApplicationDate()); - } - if (stage_ - != com.google.cloud.talent.v4beta1.Application.ApplicationStage - .APPLICATION_STAGE_UNSPECIFIED - .getNumber()) { - output.writeEnum(11, stage_); - } - if (state_ - != com.google.cloud.talent.v4beta1.Application.ApplicationState - .APPLICATION_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(13, state_); - } - for (int i = 0; i < interviews_.size(); i++) { - output.writeMessage(16, interviews_.get(i)); - } - if (referral_ != null) { - output.writeMessage(18, getReferral()); - } - if (createTime_ != null) { - output.writeMessage(19, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(20, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outcomeNotes_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 21, outcomeNotes_); - } - if (outcome_ != com.google.cloud.talent.v4beta1.Outcome.OUTCOME_UNSPECIFIED.getNumber()) { - output.writeEnum(22, outcome_); - } - if (isMatch_ != null) { - output.writeMessage(28, getIsMatch()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitleSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 29, jobTitleSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 31, externalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(profile_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, profile_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(job_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, job_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(company_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, company_); - } - if (applicationDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getApplicationDate()); - } - if (stage_ - != com.google.cloud.talent.v4beta1.Application.ApplicationStage - .APPLICATION_STAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, stage_); - } - if (state_ - != com.google.cloud.talent.v4beta1.Application.ApplicationState - .APPLICATION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); - } - for (int i = 0; i < interviews_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, interviews_.get(i)); - } - if (referral_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getReferral()); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outcomeNotes_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, outcomeNotes_); - } - if (outcome_ != com.google.cloud.talent.v4beta1.Outcome.OUTCOME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, outcome_); - } - if (isMatch_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getIsMatch()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitleSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, jobTitleSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, externalId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Application)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Application other = - (com.google.cloud.talent.v4beta1.Application) obj; - - if (!getName().equals(other.getName())) return false; - if (!getExternalId().equals(other.getExternalId())) return false; - if (!getProfile().equals(other.getProfile())) return false; - if (!getJob().equals(other.getJob())) return false; - if (!getCompany().equals(other.getCompany())) return false; - if (hasApplicationDate() != other.hasApplicationDate()) return false; - if (hasApplicationDate()) { - if (!getApplicationDate().equals(other.getApplicationDate())) return false; - } - if (stage_ != other.stage_) return false; - if (state_ != other.state_) return false; - if (!getInterviewsList().equals(other.getInterviewsList())) return false; - if (hasReferral() != other.hasReferral()) return false; - if (hasReferral()) { - if (!getReferral().equals(other.getReferral())) return false; - } - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getOutcomeNotes().equals(other.getOutcomeNotes())) return false; - if (outcome_ != other.outcome_) return false; - if (hasIsMatch() != other.hasIsMatch()) return false; - if (hasIsMatch()) { - if (!getIsMatch().equals(other.getIsMatch())) return false; - } - if (!getJobTitleSnippet().equals(other.getJobTitleSnippet())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getExternalId().hashCode(); - hash = (37 * hash) + PROFILE_FIELD_NUMBER; - hash = (53 * hash) + getProfile().hashCode(); - hash = (37 * hash) + JOB_FIELD_NUMBER; - hash = (53 * hash) + getJob().hashCode(); - hash = (37 * hash) + COMPANY_FIELD_NUMBER; - hash = (53 * hash) + getCompany().hashCode(); - if (hasApplicationDate()) { - hash = (37 * hash) + APPLICATION_DATE_FIELD_NUMBER; - hash = (53 * hash) + getApplicationDate().hashCode(); - } - hash = (37 * hash) + STAGE_FIELD_NUMBER; - hash = (53 * hash) + stage_; - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (getInterviewsCount() > 0) { - hash = (37 * hash) + INTERVIEWS_FIELD_NUMBER; - hash = (53 * hash) + getInterviewsList().hashCode(); - } - if (hasReferral()) { - hash = (37 * hash) + REFERRAL_FIELD_NUMBER; - hash = (53 * hash) + getReferral().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + OUTCOME_NOTES_FIELD_NUMBER; - hash = (53 * hash) + getOutcomeNotes().hashCode(); - hash = (37 * hash) + OUTCOME_FIELD_NUMBER; - hash = (53 * hash) + outcome_; - if (hasIsMatch()) { - hash = (37 * hash) + IS_MATCH_FIELD_NUMBER; - hash = (53 * hash) + getIsMatch().hashCode(); - } - hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getJobTitleSnippet().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Application parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Application parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Application parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Application prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a job application record of a candidate.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Application} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Application) - com.google.cloud.talent.v4beta1.ApplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationResourceProto - .internal_static_google_cloud_talent_v4beta1_Application_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationResourceProto - .internal_static_google_cloud_talent_v4beta1_Application_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Application.class, - com.google.cloud.talent.v4beta1.Application.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Application.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getInterviewsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - externalId_ = ""; - - profile_ = ""; - - job_ = ""; - - company_ = ""; - - if (applicationDateBuilder_ == null) { - applicationDate_ = null; - } else { - applicationDate_ = null; - applicationDateBuilder_ = null; - } - stage_ = 0; - - state_ = 0; - - if (interviewsBuilder_ == null) { - interviews_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - interviewsBuilder_.clear(); - } - if (referralBuilder_ == null) { - referral_ = null; - } else { - referral_ = null; - referralBuilder_ = null; - } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - outcomeNotes_ = ""; - - outcome_ = 0; - - if (isMatchBuilder_ == null) { - isMatch_ = null; - } else { - isMatch_ = null; - isMatchBuilder_ = null; - } - jobTitleSnippet_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ApplicationResourceProto - .internal_static_google_cloud_talent_v4beta1_Application_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Application.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application build() { - com.google.cloud.talent.v4beta1.Application result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application buildPartial() { - com.google.cloud.talent.v4beta1.Application result = - new com.google.cloud.talent.v4beta1.Application(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.externalId_ = externalId_; - result.profile_ = profile_; - result.job_ = job_; - result.company_ = company_; - if (applicationDateBuilder_ == null) { - result.applicationDate_ = applicationDate_; - } else { - result.applicationDate_ = applicationDateBuilder_.build(); - } - result.stage_ = stage_; - result.state_ = state_; - if (interviewsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - interviews_ = java.util.Collections.unmodifiableList(interviews_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.interviews_ = interviews_; - } else { - result.interviews_ = interviewsBuilder_.build(); - } - if (referralBuilder_ == null) { - result.referral_ = referral_; - } else { - result.referral_ = referralBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.outcomeNotes_ = outcomeNotes_; - result.outcome_ = outcome_; - if (isMatchBuilder_ == null) { - result.isMatch_ = isMatch_; - } else { - result.isMatch_ = isMatchBuilder_.build(); - } - result.jobTitleSnippet_ = jobTitleSnippet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Application) { - return mergeFrom((com.google.cloud.talent.v4beta1.Application) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Application other) { - if (other == com.google.cloud.talent.v4beta1.Application.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getExternalId().isEmpty()) { - externalId_ = other.externalId_; - onChanged(); - } - if (!other.getProfile().isEmpty()) { - profile_ = other.profile_; - onChanged(); - } - if (!other.getJob().isEmpty()) { - job_ = other.job_; - onChanged(); - } - if (!other.getCompany().isEmpty()) { - company_ = other.company_; - onChanged(); - } - if (other.hasApplicationDate()) { - mergeApplicationDate(other.getApplicationDate()); - } - if (other.stage_ != 0) { - setStageValue(other.getStageValue()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (interviewsBuilder_ == null) { - if (!other.interviews_.isEmpty()) { - if (interviews_.isEmpty()) { - interviews_ = other.interviews_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInterviewsIsMutable(); - interviews_.addAll(other.interviews_); - } - onChanged(); - } - } else { - if (!other.interviews_.isEmpty()) { - if (interviewsBuilder_.isEmpty()) { - interviewsBuilder_.dispose(); - interviewsBuilder_ = null; - interviews_ = other.interviews_; - bitField0_ = (bitField0_ & ~0x00000001); - interviewsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInterviewsFieldBuilder() - : null; - } else { - interviewsBuilder_.addAllMessages(other.interviews_); - } - } - } - if (other.hasReferral()) { - mergeReferral(other.getReferral()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getOutcomeNotes().isEmpty()) { - outcomeNotes_ = other.outcomeNotes_; - onChanged(); - } - if (other.outcome_ != 0) { - setOutcomeValue(other.getOutcomeValue()); - } - if (other.hasIsMatch()) { - mergeIsMatch(other.getIsMatch()); - } - if (!other.getJobTitleSnippet().isEmpty()) { - jobTitleSnippet_ = other.jobTitleSnippet_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Application parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Application) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object 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".
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object externalId_ = ""; - /** - * - * - *
-     * Required. Client side application identifier, used to uniquely identify the
-     * application.
-     * The maximum number of allowed characters is 255.
-     * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The externalId. - */ - public java.lang.String getExternalId() { - java.lang.Object ref = externalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. Client side application identifier, used to uniquely identify the
-     * application.
-     * The maximum number of allowed characters is 255.
-     * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for externalId. - */ - public com.google.protobuf.ByteString getExternalIdBytes() { - java.lang.Object ref = externalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - externalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. Client side application identifier, used to uniquely identify the
-     * application.
-     * The maximum number of allowed characters is 255.
-     * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The externalId to set. - * @return This builder for chaining. - */ - public Builder setExternalId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - externalId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Client side application identifier, used to uniquely identify the
-     * application.
-     * The maximum number of allowed characters is 255.
-     * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearExternalId() { - - externalId_ = getDefaultInstance().getExternalId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Client side application identifier, used to uniquely identify the
-     * application.
-     * The maximum number of allowed characters is 255.
-     * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for externalId to set. - * @return This builder for chaining. - */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - externalId_ = value; - onChanged(); - return this; - } - - private java.lang.Object 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".
-     * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The profile. - */ - public java.lang.String getProfile() { - java.lang.Object ref = profile_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - profile_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for profile. - */ - public com.google.protobuf.ByteString getProfileBytes() { - java.lang.Object ref = profile_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - profile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The profile to set. - * @return This builder for chaining. - */ - public Builder setProfile(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - profile_ = value; - onChanged(); - 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".
-     * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearProfile() { - - profile_ = getDefaultInstance().getProfile(); - onChanged(); - 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".
-     * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for profile to set. - * @return This builder for chaining. - */ - public Builder setProfileBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - profile_ = value; - onChanged(); - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The job. - */ - public java.lang.String getJob() { - java.lang.Object ref = job_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - job_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for job. - */ - public com.google.protobuf.ByteString getJobBytes() { - java.lang.Object ref = job_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - job_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The job to set. - * @return This builder for chaining. - */ - public Builder setJob(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - job_ = value; - onChanged(); - 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".
-     * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearJob() { - - job_ = getDefaultInstance().getJob(); - onChanged(); - 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".
-     * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for job to set. - * @return This builder for chaining. - */ - public Builder setJobBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - job_ = value; - onChanged(); - return this; - } - - private java.lang.Object 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".
-     * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @return The company. - */ - public java.lang.String getCompany() { - java.lang.Object ref = company_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - company_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for company. - */ - public com.google.protobuf.ByteString getCompanyBytes() { - java.lang.Object ref = company_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - company_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @param value The company to set. - * @return This builder for chaining. - */ - public Builder setCompany(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - company_ = value; - onChanged(); - 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".
-     * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearCompany() { - - company_ = getDefaultInstance().getCompany(); - onChanged(); - 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".
-     * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for company to set. - * @return This builder for chaining. - */ - public Builder setCompanyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - company_ = value; - onChanged(); - return this; - } - - private com.google.type.Date applicationDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - applicationDateBuilder_; - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - * - * @return Whether the applicationDate field is set. - */ - public boolean hasApplicationDate() { - return applicationDateBuilder_ != null || applicationDate_ != null; - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - * - * @return The applicationDate. - */ - public com.google.type.Date getApplicationDate() { - if (applicationDateBuilder_ == null) { - return applicationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : applicationDate_; - } else { - return applicationDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - */ - public Builder setApplicationDate(com.google.type.Date value) { - if (applicationDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - applicationDate_ = value; - onChanged(); - } else { - applicationDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - */ - public Builder setApplicationDate(com.google.type.Date.Builder builderForValue) { - if (applicationDateBuilder_ == null) { - applicationDate_ = builderForValue.build(); - onChanged(); - } else { - applicationDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - */ - public Builder mergeApplicationDate(com.google.type.Date value) { - if (applicationDateBuilder_ == null) { - if (applicationDate_ != null) { - applicationDate_ = - com.google.type.Date.newBuilder(applicationDate_).mergeFrom(value).buildPartial(); - } else { - applicationDate_ = value; - } - onChanged(); - } else { - applicationDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - */ - public Builder clearApplicationDate() { - if (applicationDateBuilder_ == null) { - applicationDate_ = null; - onChanged(); - } else { - applicationDate_ = null; - applicationDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - */ - public com.google.type.Date.Builder getApplicationDateBuilder() { - - onChanged(); - return getApplicationDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - */ - public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { - if (applicationDateBuilder_ != null) { - return applicationDateBuilder_.getMessageOrBuilder(); - } else { - return applicationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : applicationDate_; - } - } - /** - * - * - *
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getApplicationDateFieldBuilder() { - if (applicationDateBuilder_ == null) { - applicationDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getApplicationDate(), getParentForChildren(), isClean()); - applicationDate_ = null; - } - return applicationDateBuilder_; - } - - private int stage_ = 0; - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for stage. - */ - @java.lang.Override - public int getStageValue() { - return 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for stage to set. - * @return This builder for chaining. - */ - public Builder setStageValue(int value) { - - stage_ = value; - onChanged(); - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The stage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application.ApplicationStage getStage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Application.ApplicationStage result = - com.google.cloud.talent.v4beta1.Application.ApplicationStage.valueOf(stage_); - return result == null - ? com.google.cloud.talent.v4beta1.Application.ApplicationStage.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The stage to set. - * @return This builder for chaining. - */ - public Builder setStage(com.google.cloud.talent.v4beta1.Application.ApplicationStage value) { - if (value == null) { - throw new NullPointerException(); - } - - stage_ = value.getNumber(); - onChanged(); - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearStage() { - - stage_ = 0; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application.ApplicationState getState() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Application.ApplicationState result = - com.google.cloud.talent.v4beta1.Application.ApplicationState.valueOf(state_); - return result == null - ? com.google.cloud.talent.v4beta1.Application.ApplicationState.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.talent.v4beta1.Application.ApplicationState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.util.List interviews_ = - java.util.Collections.emptyList(); - - private void ensureInterviewsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - interviews_ = - new java.util.ArrayList(interviews_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Interview, - com.google.cloud.talent.v4beta1.Interview.Builder, - com.google.cloud.talent.v4beta1.InterviewOrBuilder> - interviewsBuilder_; - - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public java.util.List getInterviewsList() { - if (interviewsBuilder_ == null) { - return java.util.Collections.unmodifiableList(interviews_); - } else { - return interviewsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public int getInterviewsCount() { - if (interviewsBuilder_ == null) { - return interviews_.size(); - } else { - return interviewsBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public com.google.cloud.talent.v4beta1.Interview getInterviews(int index) { - if (interviewsBuilder_ == null) { - return interviews_.get(index); - } else { - return interviewsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder setInterviews(int index, com.google.cloud.talent.v4beta1.Interview value) { - if (interviewsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInterviewsIsMutable(); - interviews_.set(index, value); - onChanged(); - } else { - interviewsBuilder_.setMessage(index, value); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder setInterviews( - int index, com.google.cloud.talent.v4beta1.Interview.Builder builderForValue) { - if (interviewsBuilder_ == null) { - ensureInterviewsIsMutable(); - interviews_.set(index, builderForValue.build()); - onChanged(); - } else { - interviewsBuilder_.setMessage(index, builderForValue.build()); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder addInterviews(com.google.cloud.talent.v4beta1.Interview value) { - if (interviewsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInterviewsIsMutable(); - interviews_.add(value); - onChanged(); - } else { - interviewsBuilder_.addMessage(value); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder addInterviews(int index, com.google.cloud.talent.v4beta1.Interview value) { - if (interviewsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInterviewsIsMutable(); - interviews_.add(index, value); - onChanged(); - } else { - interviewsBuilder_.addMessage(index, value); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder addInterviews( - com.google.cloud.talent.v4beta1.Interview.Builder builderForValue) { - if (interviewsBuilder_ == null) { - ensureInterviewsIsMutable(); - interviews_.add(builderForValue.build()); - onChanged(); - } else { - interviewsBuilder_.addMessage(builderForValue.build()); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder addInterviews( - int index, com.google.cloud.talent.v4beta1.Interview.Builder builderForValue) { - if (interviewsBuilder_ == null) { - ensureInterviewsIsMutable(); - interviews_.add(index, builderForValue.build()); - onChanged(); - } else { - interviewsBuilder_.addMessage(index, builderForValue.build()); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder addAllInterviews( - java.lang.Iterable values) { - if (interviewsBuilder_ == null) { - ensureInterviewsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interviews_); - onChanged(); - } else { - interviewsBuilder_.addAllMessages(values); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder clearInterviews() { - if (interviewsBuilder_ == null) { - interviews_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - interviewsBuilder_.clear(); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public Builder removeInterviews(int index) { - if (interviewsBuilder_ == null) { - ensureInterviewsIsMutable(); - interviews_.remove(index); - onChanged(); - } else { - interviewsBuilder_.remove(index); - } - 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public com.google.cloud.talent.v4beta1.Interview.Builder getInterviewsBuilder(int index) { - return getInterviewsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public com.google.cloud.talent.v4beta1.InterviewOrBuilder getInterviewsOrBuilder(int index) { - if (interviewsBuilder_ == null) { - return interviews_.get(index); - } else { - return interviewsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public java.util.List - getInterviewsOrBuilderList() { - if (interviewsBuilder_ != null) { - return interviewsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public com.google.cloud.talent.v4beta1.Interview.Builder addInterviewsBuilder() { - return getInterviewsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Interview.getDefaultInstance()); - } - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public com.google.cloud.talent.v4beta1.Interview.Builder addInterviewsBuilder(int index) { - return getInterviewsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Interview.getDefaultInstance()); - } - /** - * - * - *
-     * 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).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - public java.util.List - getInterviewsBuilderList() { - return getInterviewsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Interview, - com.google.cloud.talent.v4beta1.Interview.Builder, - com.google.cloud.talent.v4beta1.InterviewOrBuilder> - getInterviewsFieldBuilder() { - if (interviewsBuilder_ == null) { - interviewsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Interview, - com.google.cloud.talent.v4beta1.Interview.Builder, - com.google.cloud.talent.v4beta1.InterviewOrBuilder>( - interviews_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - interviews_ = null; - } - return interviewsBuilder_; - } - - private com.google.protobuf.BoolValue referral_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - referralBuilder_; - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - * - * @return Whether the referral field is set. - */ - public boolean hasReferral() { - return referralBuilder_ != null || referral_ != null; - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - * - * @return The referral. - */ - public com.google.protobuf.BoolValue getReferral() { - if (referralBuilder_ == null) { - return referral_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : referral_; - } else { - return referralBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - public Builder setReferral(com.google.protobuf.BoolValue value) { - if (referralBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - referral_ = value; - onChanged(); - } else { - referralBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - public Builder setReferral(com.google.protobuf.BoolValue.Builder builderForValue) { - if (referralBuilder_ == null) { - referral_ = builderForValue.build(); - onChanged(); - } else { - referralBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - public Builder mergeReferral(com.google.protobuf.BoolValue value) { - if (referralBuilder_ == null) { - if (referral_ != null) { - referral_ = - com.google.protobuf.BoolValue.newBuilder(referral_).mergeFrom(value).buildPartial(); - } else { - referral_ = value; - } - onChanged(); - } else { - referralBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - public Builder clearReferral() { - if (referralBuilder_ == null) { - referral_ = null; - onChanged(); - } else { - referral_ = null; - referralBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - public com.google.protobuf.BoolValue.Builder getReferralBuilder() { - - onChanged(); - return getReferralFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - public com.google.protobuf.BoolValueOrBuilder getReferralOrBuilder() { - if (referralBuilder_ != null) { - return referralBuilder_.getMessageOrBuilder(); - } else { - return referral_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : referral_; - } - } - /** - * - * - *
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getReferralFieldBuilder() { - if (referralBuilder_ == null) { - referralBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getReferral(), getParentForChildren(), isClean()); - referral_ = null; - } - return referralBuilder_; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Required. Reflects the time that the application was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object outcomeNotes_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 21; - * - * @return The outcomeNotes. - */ - public java.lang.String getOutcomeNotes() { - java.lang.Object ref = outcomeNotes_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outcomeNotes_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 21; - * - * @return The bytes for outcomeNotes. - */ - public com.google.protobuf.ByteString getOutcomeNotesBytes() { - java.lang.Object ref = outcomeNotes_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outcomeNotes_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 21; - * - * @param value The outcomeNotes to set. - * @return This builder for chaining. - */ - public Builder setOutcomeNotes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outcomeNotes_ = value; - onChanged(); - 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.
-     * 
- * - * string outcome_notes = 21; - * - * @return This builder for chaining. - */ - public Builder clearOutcomeNotes() { - - outcomeNotes_ = getDefaultInstance().getOutcomeNotes(); - onChanged(); - 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.
-     * 
- * - * string outcome_notes = 21; - * - * @param value The bytes for outcomeNotes to set. - * @return This builder for chaining. - */ - public Builder setOutcomeNotesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outcomeNotes_ = value; - onChanged(); - return this; - } - - private int outcome_ = 0; - /** - * - * - *
-     * Outcome positiveness shows how positive the outcome is.
-     * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @return The enum numeric value on the wire for outcome. - */ - @java.lang.Override - public int getOutcomeValue() { - return outcome_; - } - /** - * - * - *
-     * Outcome positiveness shows how positive the outcome is.
-     * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @param value The enum numeric value on the wire for outcome to set. - * @return This builder for chaining. - */ - public Builder setOutcomeValue(int value) { - - outcome_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Outcome positiveness shows how positive the outcome is.
-     * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @return The outcome. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Outcome getOutcome() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Outcome result = - com.google.cloud.talent.v4beta1.Outcome.valueOf(outcome_); - return result == null ? com.google.cloud.talent.v4beta1.Outcome.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Outcome positiveness shows how positive the outcome is.
-     * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @param value The outcome to set. - * @return This builder for chaining. - */ - public Builder setOutcome(com.google.cloud.talent.v4beta1.Outcome value) { - if (value == null) { - throw new NullPointerException(); - } - - outcome_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Outcome positiveness shows how positive the outcome is.
-     * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @return This builder for chaining. - */ - public Builder clearOutcome() { - - outcome_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue isMatch_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isMatchBuilder_; - /** - * - * - *
-     * Output only. Indicates whether this job application is a match to
-     * application related filters. This value is only applicable in profile
-     * search response.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the isMatch field is set. - */ - public boolean hasIsMatch() { - return isMatchBuilder_ != null || isMatch_ != null; - } - /** - * - * - *
-     * Output only. Indicates whether this job application is a match to
-     * application related filters. This value is only applicable in profile
-     * search response.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The isMatch. - */ - public com.google.protobuf.BoolValue getIsMatch() { - if (isMatchBuilder_ == null) { - return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; - } else { - return isMatchBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Indicates whether this job application is a match to
-     * application related filters. This value is only applicable in profile
-     * search response.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setIsMatch(com.google.protobuf.BoolValue value) { - if (isMatchBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - isMatch_ = value; - onChanged(); - } else { - isMatchBuilder_.setMessage(value); - } - - 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.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setIsMatch(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isMatchBuilder_ == null) { - isMatch_ = builderForValue.build(); - onChanged(); - } else { - isMatchBuilder_.setMessage(builderForValue.build()); - } - - 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.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeIsMatch(com.google.protobuf.BoolValue value) { - if (isMatchBuilder_ == null) { - if (isMatch_ != null) { - isMatch_ = - com.google.protobuf.BoolValue.newBuilder(isMatch_).mergeFrom(value).buildPartial(); - } else { - isMatch_ = value; - } - onChanged(); - } else { - isMatchBuilder_.mergeFrom(value); - } - - 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.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearIsMatch() { - if (isMatchBuilder_ == null) { - isMatch_ = null; - onChanged(); - } else { - isMatch_ = null; - isMatchBuilder_ = null; - } - - 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.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.BoolValue.Builder getIsMatchBuilder() { - - onChanged(); - return getIsMatchFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Indicates whether this job application is a match to
-     * application related filters. This value is only applicable in profile
-     * search response.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { - if (isMatchBuilder_ != null) { - return isMatchBuilder_.getMessageOrBuilder(); - } else { - return isMatch_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isMatch_; - } - } - /** - * - * - *
-     * Output only. Indicates whether this job application is a match to
-     * application related filters. This value is only applicable in profile
-     * search response.
-     * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getIsMatchFieldBuilder() { - if (isMatchBuilder_ == null) { - isMatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsMatch(), getParentForChildren(), isClean()); - isMatch_ = null; - } - return isMatchBuilder_; - } - - private java.lang.Object jobTitleSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobTitleSnippet. - */ - public java.lang.String getJobTitleSnippet() { - java.lang.Object ref = jobTitleSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitleSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobTitleSnippet. - */ - public com.google.protobuf.ByteString getJobTitleSnippetBytes() { - java.lang.Object ref = jobTitleSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitleSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobTitleSnippet to set. - * @return This builder for chaining. - */ - public Builder setJobTitleSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobTitleSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobTitleSnippet() { - - jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); - onChanged(); - 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.
-     * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobTitleSnippet to set. - * @return This builder for chaining. - */ - public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobTitleSnippet_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Application) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Application) - private static final com.google.cloud.talent.v4beta1.Application DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Application(); - } - - public static com.google.cloud.talent.v4beta1.Application getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Application parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Application(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java deleted file mode 100644 index 5428e820..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java +++ /dev/null @@ -1,1009 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Application Date Range Filter.
- * The API matches profiles with [Application.application_date][google.cloud.talent.v4beta1.Application.application_date] between
- * start date and end date (both boundaries are inclusive). The filter is
- * ignored if both [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] are missing.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} - */ -public final class ApplicationDateFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) - ApplicationDateFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use ApplicationDateFilter.newBuilder() to construct. - private ApplicationDateFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ApplicationDateFilter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ApplicationDateFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ApplicationDateFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.type.Date.Builder subBuilder = null; - if (startDate_ != null) { - subBuilder = startDate_.toBuilder(); - } - startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startDate_); - startDate_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.type.Date.Builder subBuilder = null; - if (endDate_ != null) { - subBuilder = endDate_.toBuilder(); - } - endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endDate_); - endDate_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, - com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - private com.google.type.Date startDate_; - /** - * - * - *
-   * Start date. If it's missing, The API matches profiles with application date
-   * not after the end date.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - @java.lang.Override - public boolean hasStartDate() { - return startDate_ != null; - } - /** - * - * - *
-   * Start date. If it's missing, The API matches profiles with application date
-   * not after the end date.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - @java.lang.Override - public com.google.type.Date getStartDate() { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - /** - * - * - *
-   * Start date. If it's missing, The API matches profiles with application date
-   * not after the end date.
-   * 
- * - * .google.type.Date start_date = 1; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - return getStartDate(); - } - - public static final int END_DATE_FIELD_NUMBER = 2; - private com.google.type.Date endDate_; - /** - * - * - *
-   * End date. If it's missing, The API matches profiles with application date
-   * not before the start date.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - @java.lang.Override - public boolean hasEndDate() { - return endDate_ != null; - } - /** - * - * - *
-   * End date. If it's missing, The API matches profiles with application date
-   * not before the start date.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - @java.lang.Override - public com.google.type.Date getEndDate() { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - /** - * - * - *
-   * End date. If it's missing, The API matches profiles with application date
-   * not before the start date.
-   * 
- * - * .google.type.Date end_date = 2; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - return getEndDate(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startDate_ != null) { - output.writeMessage(1, getStartDate()); - } - if (endDate_ != null) { - output.writeMessage(2, getEndDate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); - } - if (endDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationDateFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ApplicationDateFilter other = - (com.google.cloud.talent.v4beta1.ApplicationDateFilter) obj; - - if (hasStartDate() != other.hasStartDate()) return false; - if (hasStartDate()) { - if (!getStartDate().equals(other.getStartDate())) return false; - } - if (hasEndDate() != other.hasEndDate()) return false; - if (hasEndDate()) { - if (!getEndDate().equals(other.getEndDate())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartDate()) { - hash = (37 * hash) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - } - if (hasEndDate()) { - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.ApplicationDateFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Application Date Range Filter.
-   * The API matches profiles with [Application.application_date][google.cloud.talent.v4beta1.Application.application_date] between
-   * start date and end date (both boundaries are inclusive). The filter is
-   * ignored if both [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] are missing.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationDateFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationDateFilter) - com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationDateFilter.class, - com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ApplicationDateFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (startDateBuilder_ == null) { - startDate_ = null; - } else { - startDate_ = null; - startDateBuilder_ = null; - } - if (endDateBuilder_ == null) { - endDate_ = null; - } else { - endDate_ = null; - endDateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationDateFilter build() { - com.google.cloud.talent.v4beta1.ApplicationDateFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationDateFilter buildPartial() { - com.google.cloud.talent.v4beta1.ApplicationDateFilter result = - new com.google.cloud.talent.v4beta1.ApplicationDateFilter(this); - if (startDateBuilder_ == null) { - result.startDate_ = startDate_; - } else { - result.startDate_ = startDateBuilder_.build(); - } - if (endDateBuilder_ == null) { - result.endDate_ = endDate_; - } else { - result.endDate_ = endDateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ApplicationDateFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationDateFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationDateFilter other) { - if (other == com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()) - return this; - if (other.hasStartDate()) { - mergeStartDate(other.getStartDate()); - } - if (other.hasEndDate()) { - mergeEndDate(other.getEndDate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ApplicationDateFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ApplicationDateFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.type.Date startDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - public boolean hasStartDate() { - return startDateBuilder_ != null || startDate_ != null; - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - public com.google.type.Date getStartDate() { - if (startDateBuilder_ == null) { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } else { - return startDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startDate_ = value; - onChanged(); - } else { - startDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { - if (startDateBuilder_ == null) { - startDate_ = builderForValue.build(); - onChanged(); - } else { - startDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder mergeStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (startDate_ != null) { - startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); - } else { - startDate_ = value; - } - onChanged(); - } else { - startDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder clearStartDate() { - if (startDateBuilder_ == null) { - startDate_ = null; - onChanged(); - } else { - startDate_ = null; - startDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public com.google.type.Date.Builder getStartDateBuilder() { - - onChanged(); - return getStartDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - if (startDateBuilder_ != null) { - return startDateBuilder_.getMessageOrBuilder(); - } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - } - /** - * - * - *
-     * Start date. If it's missing, The API matches profiles with application date
-     * not after the end date.
-     * 
- * - * .google.type.Date start_date = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getStartDateFieldBuilder() { - if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); - startDate_ = null; - } - return startDateBuilder_; - } - - private com.google.type.Date endDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - public boolean hasEndDate() { - return endDateBuilder_ != null || endDate_ != null; - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - public com.google.type.Date getEndDate() { - if (endDateBuilder_ == null) { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } else { - return endDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endDate_ = value; - onChanged(); - } else { - endDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date.Builder builderForValue) { - if (endDateBuilder_ == null) { - endDate_ = builderForValue.build(); - onChanged(); - } else { - endDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder mergeEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (endDate_ != null) { - endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); - } else { - endDate_ = value; - } - onChanged(); - } else { - endDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder clearEndDate() { - if (endDateBuilder_ == null) { - endDate_ = null; - onChanged(); - } else { - endDate_ = null; - endDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public com.google.type.Date.Builder getEndDateBuilder() { - - onChanged(); - return getEndDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - if (endDateBuilder_ != null) { - return endDateBuilder_.getMessageOrBuilder(); - } else { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - } - /** - * - * - *
-     * End date. If it's missing, The API matches profiles with application date
-     * not before the start date.
-     * 
- * - * .google.type.Date end_date = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getEndDateFieldBuilder() { - if (endDateBuilder_ == null) { - endDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getEndDate(), getParentForChildren(), isClean()); - endDate_ = null; - } - return endDateBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationDateFilter) - private static final com.google.cloud.talent.v4beta1.ApplicationDateFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationDateFilter(); - } - - public static com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplicationDateFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplicationDateFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationDateFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java deleted file mode 100644 index d3960efe..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface ApplicationDateFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationDateFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Start date. If it's missing, The API matches profiles with application date
-   * not after the end date.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - boolean hasStartDate(); - /** - * - * - *
-   * Start date. If it's missing, The API matches profiles with application date
-   * not after the end date.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - com.google.type.Date getStartDate(); - /** - * - * - *
-   * Start date. If it's missing, The API matches profiles with application date
-   * not after the end date.
-   * 
- * - * .google.type.Date start_date = 1; - */ - com.google.type.DateOrBuilder getStartDateOrBuilder(); - - /** - * - * - *
-   * End date. If it's missing, The API matches profiles with application date
-   * not before the start date.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - boolean hasEndDate(); - /** - * - * - *
-   * End date. If it's missing, The API matches profiles with application date
-   * not before the start date.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - com.google.type.Date getEndDate(); - /** - * - * - *
-   * End date. If it's missing, The API matches profiles with application date
-   * not before the start date.
-   * 
- * - * .google.type.Date end_date = 2; - */ - com.google.type.DateOrBuilder getEndDateOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java deleted file mode 100644 index e0156081..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java +++ /dev/null @@ -1,925 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Filter on the job information of Application.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} - */ -public final class ApplicationJobFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) - ApplicationJobFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use ApplicationJobFilter.newBuilder() to construct. - private ApplicationJobFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ApplicationJobFilter() { - jobRequisitionId_ = ""; - jobTitle_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ApplicationJobFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ApplicationJobFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobRequisitionId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobTitle_ = s; - break; - } - case 32: - { - negated_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, - com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); - } - - public static final int JOB_REQUISITION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobRequisitionId_; - /** - * - * - *
-   * 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.
-   * 
- * - * string job_requisition_id = 2; - * - * @return The jobRequisitionId. - */ - @java.lang.Override - public java.lang.String getJobRequisitionId() { - java.lang.Object ref = jobRequisitionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobRequisitionId_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string job_requisition_id = 2; - * - * @return The bytes for jobRequisitionId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobRequisitionIdBytes() { - java.lang.Object ref = jobRequisitionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobRequisitionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_TITLE_FIELD_NUMBER = 3; - private volatile java.lang.Object jobTitle_; - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title = 3; - * - * @return The jobTitle. - */ - @java.lang.Override - public java.lang.String getJobTitle() { - java.lang.Object ref = jobTitle_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitle_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title = 3; - * - * @return The bytes for jobTitle. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobTitleBytes() { - java.lang.Object ref = jobTitle_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEGATED_FIELD_NUMBER = 4; - private boolean negated_; - /** - * - * - *
-   * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job]
-   * matching the filters.
-   * 
- * - * bool negated = 4; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobRequisitionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobRequisitionId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobTitle_); - } - if (negated_ != false) { - output.writeBool(4, negated_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobRequisitionId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobRequisitionId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobTitle_); - } - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, negated_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationJobFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ApplicationJobFilter other = - (com.google.cloud.talent.v4beta1.ApplicationJobFilter) obj; - - if (!getJobRequisitionId().equals(other.getJobRequisitionId())) return false; - if (!getJobTitle().equals(other.getJobTitle())) return false; - if (getNegated() != other.getNegated()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + JOB_REQUISITION_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobRequisitionId().hashCode(); - hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; - hash = (53 * hash) + getJobTitle().hashCode(); - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.ApplicationJobFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Filter on the job information of Application.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationJobFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationJobFilter) - com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationJobFilter.class, - com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ApplicationJobFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - jobRequisitionId_ = ""; - - jobTitle_ = ""; - - negated_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationJobFilter build() { - com.google.cloud.talent.v4beta1.ApplicationJobFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationJobFilter buildPartial() { - com.google.cloud.talent.v4beta1.ApplicationJobFilter result = - new com.google.cloud.talent.v4beta1.ApplicationJobFilter(this); - result.jobRequisitionId_ = jobRequisitionId_; - result.jobTitle_ = jobTitle_; - result.negated_ = negated_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ApplicationJobFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationJobFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationJobFilter other) { - if (other == com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()) - return this; - if (!other.getJobRequisitionId().isEmpty()) { - jobRequisitionId_ = other.jobRequisitionId_; - onChanged(); - } - if (!other.getJobTitle().isEmpty()) { - jobTitle_ = other.jobTitle_; - onChanged(); - } - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ApplicationJobFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ApplicationJobFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object jobRequisitionId_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string job_requisition_id = 2; - * - * @return The jobRequisitionId. - */ - public java.lang.String getJobRequisitionId() { - java.lang.Object ref = jobRequisitionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobRequisitionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_requisition_id = 2; - * - * @return The bytes for jobRequisitionId. - */ - public com.google.protobuf.ByteString getJobRequisitionIdBytes() { - java.lang.Object ref = jobRequisitionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobRequisitionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_requisition_id = 2; - * - * @param value The jobRequisitionId to set. - * @return This builder for chaining. - */ - public Builder setJobRequisitionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobRequisitionId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_requisition_id = 2; - * - * @return This builder for chaining. - */ - public Builder clearJobRequisitionId() { - - jobRequisitionId_ = getDefaultInstance().getJobRequisitionId(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_requisition_id = 2; - * - * @param value The bytes for jobRequisitionId to set. - * @return This builder for chaining. - */ - public Builder setJobRequisitionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobRequisitionId_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobTitle_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title = 3; - * - * @return The jobTitle. - */ - public java.lang.String getJobTitle() { - java.lang.Object ref = jobTitle_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitle_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title = 3; - * - * @return The bytes for jobTitle. - */ - public com.google.protobuf.ByteString getJobTitleBytes() { - java.lang.Object ref = jobTitle_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title = 3; - * - * @param value The jobTitle to set. - * @return This builder for chaining. - */ - public Builder setJobTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobTitle_ = value; - onChanged(); - 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.
-     * 
- * - * string job_title = 3; - * - * @return This builder for chaining. - */ - public Builder clearJobTitle() { - - jobTitle_ = getDefaultInstance().getJobTitle(); - onChanged(); - 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.
-     * 
- * - * string job_title = 3; - * - * @param value The bytes for jobTitle to set. - * @return This builder for chaining. - */ - public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobTitle_ = value; - onChanged(); - return this; - } - - private boolean negated_; - /** - * - * - *
-     * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job]
-     * matching the filters.
-     * 
- * - * bool negated = 4; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - /** - * - * - *
-     * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job]
-     * matching the filters.
-     * 
- * - * bool negated = 4; - * - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job]
-     * matching the filters.
-     * 
- * - * bool negated = 4; - * - * @return This builder for chaining. - */ - public Builder clearNegated() { - - negated_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationJobFilter) - private static final com.google.cloud.talent.v4beta1.ApplicationJobFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationJobFilter(); - } - - public static com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplicationJobFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplicationJobFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationJobFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java deleted file mode 100644 index 2a2cb246..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface ApplicationJobFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationJobFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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.
-   * 
- * - * string job_requisition_id = 2; - * - * @return The jobRequisitionId. - */ - java.lang.String getJobRequisitionId(); - /** - * - * - *
-   * 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.
-   * 
- * - * string job_requisition_id = 2; - * - * @return The bytes for jobRequisitionId. - */ - com.google.protobuf.ByteString getJobRequisitionIdBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title = 3; - * - * @return The jobTitle. - */ - java.lang.String getJobTitle(); - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title = 3; - * - * @return The bytes for jobTitle. - */ - com.google.protobuf.ByteString getJobTitleBytes(); - - /** - * - * - *
-   * If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job]
-   * matching the filters.
-   * 
- * - * bool negated = 4; - * - * @return The negated. - */ - boolean getNegated(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java deleted file mode 100644 index 621e6dc8..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ApplicationName implements ResourceName { - private static final PathTemplate PROJECT_TENANT_PROFILE_APPLICATION = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}"); - private volatile Map fieldValuesMap; - private final String project; - private final String tenant; - private final String profile; - private final String application; - - @Deprecated - protected ApplicationName() { - project = null; - tenant = null; - profile = null; - application = null; - } - - private ApplicationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - tenant = Preconditions.checkNotNull(builder.getTenant()); - profile = Preconditions.checkNotNull(builder.getProfile()); - application = Preconditions.checkNotNull(builder.getApplication()); - } - - public String getProject() { - return project; - } - - public String getTenant() { - return tenant; - } - - public String getProfile() { - return profile; - } - - public String getApplication() { - return application; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ApplicationName of( - String project, String tenant, String profile, String application) { - return newBuilder() - .setProject(project) - .setTenant(tenant) - .setProfile(profile) - .setApplication(application) - .build(); - } - - public static String format(String project, String tenant, String profile, String application) { - return newBuilder() - .setProject(project) - .setTenant(tenant) - .setProfile(profile) - .setApplication(application) - .build() - .toString(); - } - - public static ApplicationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_TENANT_PROFILE_APPLICATION.validatedMatch( - formattedString, "ApplicationName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("tenant"), - matchMap.get("profile"), - matchMap.get("application")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ApplicationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_TENANT_PROFILE_APPLICATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (tenant != null) { - fieldMapBuilder.put("tenant", tenant); - } - if (profile != null) { - fieldMapBuilder.put("profile", profile); - } - if (application != null) { - fieldMapBuilder.put("application", application); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_TENANT_PROFILE_APPLICATION.instantiate( - "project", project, "tenant", tenant, "profile", profile, "application", application); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ApplicationName that = ((ApplicationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.tenant, that.tenant) - && Objects.equals(this.profile, that.profile) - && Objects.equals(this.application, that.application); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(tenant); - h *= 1000003; - h ^= Objects.hashCode(profile); - h *= 1000003; - h ^= Objects.hashCode(application); - return h; - } - - /** - * Builder for projects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}. - */ - public static class Builder { - private String project; - private String tenant; - private String profile; - private String application; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getTenant() { - return tenant; - } - - public String getProfile() { - return profile; - } - - public String getApplication() { - return application; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setTenant(String tenant) { - this.tenant = tenant; - return this; - } - - public Builder setProfile(String profile) { - this.profile = profile; - return this; - } - - public Builder setApplication(String application) { - this.application = application; - return this; - } - - private Builder(ApplicationName applicationName) { - this.project = applicationName.project; - this.tenant = applicationName.tenant; - this.profile = applicationName.profile; - this.application = applicationName.application; - } - - public ApplicationName build() { - return new ApplicationName(this); - } - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java deleted file mode 100644 index 964c08a0..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java +++ /dev/null @@ -1,576 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application.proto - -package com.google.cloud.talent.v4beta1; - -public interface ApplicationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Application) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * 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".
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Client side application identifier, used to uniquely identify the
-   * application.
-   * The maximum number of allowed characters is 255.
-   * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The externalId. - */ - java.lang.String getExternalId(); - /** - * - * - *
-   * Required. Client side application identifier, used to uniquely identify the
-   * application.
-   * The maximum number of allowed characters is 255.
-   * 
- * - * string external_id = 31 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for externalId. - */ - com.google.protobuf.ByteString getExternalIdBytes(); - - /** - * - * - *
-   * 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".
-   * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The profile. - */ - java.lang.String getProfile(); - /** - * - * - *
-   * 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".
-   * 
- * - * string profile = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for profile. - */ - com.google.protobuf.ByteString getProfileBytes(); - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The job. - */ - java.lang.String getJob(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string job = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for job. - */ - com.google.protobuf.ByteString getJobBytes(); - - /** - * - * - *
-   * 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".
-   * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @return The company. - */ - java.lang.String getCompany(); - /** - * - * - *
-   * 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".
-   * 
- * - * string company = 5 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for company. - */ - com.google.protobuf.ByteString getCompanyBytes(); - - /** - * - * - *
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 7; - * - * @return Whether the applicationDate field is set. - */ - boolean hasApplicationDate(); - /** - * - * - *
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 7; - * - * @return The applicationDate. - */ - com.google.type.Date getApplicationDate(); - /** - * - * - *
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 7; - */ - com.google.type.DateOrBuilder getApplicationDateOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for stage. - */ - int getStageValue(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application.ApplicationStage stage = 11 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The stage. - */ - com.google.cloud.talent.v4beta1.Application.ApplicationStage getStage(); - - /** - * - * - *
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; - * - * @return The state. - */ - com.google.cloud.talent.v4beta1.Application.ApplicationState getState(); - - /** - * - * - *
-   * 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - java.util.List getInterviewsList(); - /** - * - * - *
-   * 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - com.google.cloud.talent.v4beta1.Interview getInterviews(int index); - /** - * - * - *
-   * 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - int getInterviewsCount(); - /** - * - * - *
-   * 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - java.util.List - getInterviewsOrBuilderList(); - /** - * - * - *
-   * 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).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; - */ - com.google.cloud.talent.v4beta1.InterviewOrBuilder getInterviewsOrBuilder(int index); - - /** - * - * - *
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue referral = 18; - * - * @return Whether the referral field is set. - */ - boolean hasReferral(); - /** - * - * - *
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue referral = 18; - * - * @return The referral. - */ - com.google.protobuf.BoolValue getReferral(); - /** - * - * - *
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue referral = 18; - */ - com.google.protobuf.BoolValueOrBuilder getReferralOrBuilder(); - - /** - * - * - *
-   * Required. Reflects the time that the application was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Required. Reflects the time that the application was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Required. Reflects the time that the application was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 19 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 20; - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 20; - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 20; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 21; - * - * @return The outcomeNotes. - */ - java.lang.String getOutcomeNotes(); - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 21; - * - * @return The bytes for outcomeNotes. - */ - com.google.protobuf.ByteString getOutcomeNotesBytes(); - - /** - * - * - *
-   * Outcome positiveness shows how positive the outcome is.
-   * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @return The enum numeric value on the wire for outcome. - */ - int getOutcomeValue(); - /** - * - * - *
-   * Outcome positiveness shows how positive the outcome is.
-   * 
- * - * .google.cloud.talent.v4beta1.Outcome outcome = 22; - * - * @return The outcome. - */ - com.google.cloud.talent.v4beta1.Outcome getOutcome(); - - /** - * - * - *
-   * Output only. Indicates whether this job application is a match to
-   * application related filters. This value is only applicable in profile
-   * search response.
-   * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the isMatch field is set. - */ - boolean hasIsMatch(); - /** - * - * - *
-   * Output only. Indicates whether this job application is a match to
-   * application related filters. This value is only applicable in profile
-   * search response.
-   * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The isMatch. - */ - com.google.protobuf.BoolValue getIsMatch(); - /** - * - * - *
-   * Output only. Indicates whether this job application is a match to
-   * application related filters. This value is only applicable in profile
-   * search response.
-   * 
- * - * .google.protobuf.BoolValue is_match = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobTitleSnippet. - */ - java.lang.String getJobTitleSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobTitleSnippet. - */ - com.google.protobuf.ByteString getJobTitleSnippetBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java deleted file mode 100644 index 251f9658..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java +++ /dev/null @@ -1,748 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Outcome Notes Filter.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter} - */ -public final class ApplicationOutcomeNotesFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) - ApplicationOutcomeNotesFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use ApplicationOutcomeNotesFilter.newBuilder() to construct. - private ApplicationOutcomeNotesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ApplicationOutcomeNotesFilter() { - outcomeNotes_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ApplicationOutcomeNotesFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ApplicationOutcomeNotesFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - outcomeNotes_ = s; - break; - } - case 16: - { - negated_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.class, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder.class); - } - - public static final int OUTCOME_NOTES_FIELD_NUMBER = 1; - private volatile java.lang.Object outcomeNotes_; - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The outcomeNotes. - */ - @java.lang.Override - public java.lang.String getOutcomeNotes() { - java.lang.Object ref = outcomeNotes_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outcomeNotes_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for outcomeNotes. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOutcomeNotesBytes() { - java.lang.Object ref = outcomeNotes_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outcomeNotes_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEGATED_FIELD_NUMBER = 2; - private boolean 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.
-   * 
- * - * bool negated = 2; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outcomeNotes_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outcomeNotes_); - } - if (negated_ != false) { - output.writeBool(2, negated_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outcomeNotes_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outcomeNotes_); - } - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter other = - (com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) obj; - - if (!getOutcomeNotes().equals(other.getOutcomeNotes())) return false; - if (getNegated() != other.getNegated()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OUTCOME_NOTES_FIELD_NUMBER; - hash = (53 * hash) + getOutcomeNotes().hashCode(); - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Outcome Notes Filter.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.class, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - outcomeNotes_ = ""; - - negated_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter - getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter build() { - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter buildPartial() { - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter result = - new com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter(this); - result.outcomeNotes_ = outcomeNotes_; - result.negated_ = negated_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter other) { - if (other - == com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance()) - return this; - if (!other.getOutcomeNotes().isEmpty()) { - outcomeNotes_ = other.outcomeNotes_; - onChanged(); - } - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object outcomeNotes_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The outcomeNotes. - */ - public java.lang.String getOutcomeNotes() { - java.lang.Object ref = outcomeNotes_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outcomeNotes_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for outcomeNotes. - */ - public com.google.protobuf.ByteString getOutcomeNotesBytes() { - java.lang.Object ref = outcomeNotes_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outcomeNotes_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The outcomeNotes to set. - * @return This builder for chaining. - */ - public Builder setOutcomeNotes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outcomeNotes_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearOutcomeNotes() { - - outcomeNotes_ = getDefaultInstance().getOutcomeNotes(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for outcomeNotes to set. - * @return This builder for chaining. - */ - public Builder setOutcomeNotesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outcomeNotes_ = value; - onChanged(); - return this; - } - - private boolean 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.
-     * 
- * - * bool negated = 2; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return 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.
-     * 
- * - * bool negated = 2; - * - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - onChanged(); - 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.
-     * 
- * - * bool negated = 2; - * - * @return This builder for chaining. - */ - public Builder clearNegated() { - - negated_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) - private static final com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter(); - } - - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApplicationOutcomeNotesFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplicationOutcomeNotesFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java deleted file mode 100644 index 6e96a71c..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface ApplicationOutcomeNotesFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The outcomeNotes. - */ - java.lang.String getOutcomeNotes(); - /** - * - * - *
-   * 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.
-   * 
- * - * string outcome_notes = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for outcomeNotes. - */ - com.google.protobuf.ByteString getOutcomeNotesBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * bool negated = 2; - * - * @return The negated. - */ - boolean getNegated(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java deleted file mode 100644 index 21f45de0..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application.proto - -package com.google.cloud.talent.v4beta1; - -public final class ApplicationResourceProto { - private ApplicationResourceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Application_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Application_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/talent/v4beta1/applicatio" - + "n.proto\022\033google.cloud.talent.v4beta1\032\034go" - + "ogle/api/annotations.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032(google/cloud/talent/v4beta1/comm" - + "on.proto\032\037google/protobuf/timestamp.prot" - + "o\032\036google/protobuf/wrappers.proto\032\026googl" - + "e/type/date.proto\"\234\t\n\013Application\022\014\n\004nam" - + "e\030\001 \001(\t\022\030\n\013external_id\030\037 \001(\tB\003\340A\002\022\024\n\007pro" - + "file\030\002 \001(\tB\003\340A\003\022,\n\003job\030\004 \001(\tB\037\372A\031\n\027jobs." - + "googleapis.com/Job\340A\002\0221\n\007company\030\005 \001(\tB " - + "\372A\035\n\033jobs.googleapis.com/Company\022+\n\020appl" - + "ication_date\030\007 \001(\0132\021.google.type.Date\022M\n" - + "\005stage\030\013 \001(\01629.google.cloud.talent.v4bet" - + "a1.Application.ApplicationStageB\003\340A\002\022H\n\005" - + "state\030\r \001(\01629.google.cloud.talent.v4beta" - + "1.Application.ApplicationState\022:\n\ninterv" - + "iews\030\020 \003(\0132&.google.cloud.talent.v4beta1" - + ".Interview\022,\n\010referral\030\022 \001(\0132\032.google.pr" - + "otobuf.BoolValue\0224\n\013create_time\030\023 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\002\022/\n\013update" - + "_time\030\024 \001(\0132\032.google.protobuf.Timestamp\022" - + "\025\n\routcome_notes\030\025 \001(\t\0225\n\007outcome\030\026 \001(\0162" - + "$.google.cloud.talent.v4beta1.Outcome\0221\n" - + "\010is_match\030\034 \001(\0132\032.google.protobuf.BoolVa" - + "lueB\003\340A\003\022\036\n\021job_title_snippet\030\035 \001(\tB\003\340A\003" - + "\"\220\001\n\020ApplicationState\022!\n\035APPLICATION_STA" - + "TE_UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\026\n\022CAN" - + "DIDATE_WITHDREW\020\002\022\025\n\021EMPLOYER_WITHDREW\020\003" - + "\022\r\n\tCOMPLETED\020\004\022\n\n\006CLOSED\020\005\"\251\001\n\020Applicat" - + "ionStage\022!\n\035APPLICATION_STAGE_UNSPECIFIE" - + "D\020\000\022\007\n\003NEW\020\001\022\n\n\006SCREEN\020\002\022\031\n\025HIRING_MANAG" - + "ER_REVIEW\020\003\022\r\n\tINTERVIEW\020\004\022\022\n\016OFFER_EXTE" - + "NDED\020\005\022\022\n\016OFFER_ACCEPTED\020\006\022\013\n\007STARTED\020\007:" - + "w\352At\n\037jobs.googleapis.com/Application\022Qp" - + "rojects/{project}/tenants/{tenant}/profi" - + "les/{profile}/applications/{application}" - + "B\206\001\n\037com.google.cloud.talent.v4beta1B\030Ap" - + "plicationResourceProtoP\001ZAgoogle.golang." - + "org/genproto/googleapis/cloud/talent/v4b" - + "eta1;talent\242\002\003CTSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - }); - internal_static_google_cloud_talent_v4beta1_Application_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_talent_v4beta1_Application_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Application_descriptor, - new java.lang.String[] { - "Name", - "ExternalId", - "Profile", - "Job", - "Company", - "ApplicationDate", - "Stage", - "State", - "Interviews", - "Referral", - "CreateTime", - "UpdateTime", - "OutcomeNotes", - "Outcome", - "IsMatch", - "JobTitleSnippet", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java deleted file mode 100644 index 5c11432a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -public final class ApplicationServiceProto { - private ApplicationServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/talent/v4beta1/applicatio" - + "n_service.proto\022\033google.cloud.talent.v4b" - + "eta1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "-google/cloud/talent/v4beta1/application" - + ".proto\032(google/cloud/talent/v4beta1/comm" - + "on.proto\032\033google/protobuf/empty.proto\032 g" - + "oogle/protobuf/field_mask.proto\"\223\001\n\030Crea" - + "teApplicationRequest\0223\n\006parent\030\001 \001(\tB#\340A" - + "\002\372A\035\n\033jobs.googleapis.com/Profile\022B\n\013app" - + "lication\030\002 \001(\0132(.google.cloud.talent.v4b" - + "eta1.ApplicationB\003\340A\002\"N\n\025GetApplicationR" - + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037jobs.googl" - + "eapis.com/Application\"\217\001\n\030UpdateApplicat" - + "ionRequest\022B\n\013application\030\001 \001(\0132(.google" - + ".cloud.talent.v4beta1.ApplicationB\003\340A\002\022/" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMask\"Q\n\030DeleteApplicationRequest\0225\n\004n" - + "ame\030\001 \001(\tB\'\340A\002\372A!\n\037jobs.googleapis.com/A" - + "pplication\"u\n\027ListApplicationsRequest\0223\n" - + "\006parent\030\001 \001(\tB#\340A\002\372A\035\n\033jobs.googleapis.c" - + "om/Profile\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_s" - + "ize\030\003 \001(\005\"\264\001\n\030ListApplicationsResponse\022>" - + "\n\014applications\030\001 \003(\0132(.google.cloud.tale" - + "nt.v4beta1.Application\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.cloud" - + ".talent.v4beta1.ResponseMetadata2\374\010\n\022App" - + "licationService\022\324\001\n\021CreateApplication\0225." - + "google.cloud.talent.v4beta1.CreateApplic" - + "ationRequest\032(.google.cloud.talent.v4bet" - + "a1.Application\"^\202\323\344\223\002C\">/v4beta1/{parent" - + "=projects/*/tenants/*/profiles/*}/applic" - + "ations:\001*\332A\022parent,application\022\275\001\n\016GetAp" - + "plication\0222.google.cloud.talent.v4beta1." - + "GetApplicationRequest\032(.google.cloud.tal" - + "ent.v4beta1.Application\"M\202\323\344\223\002@\022>/v4beta" - + "1/{name=projects/*/tenants/*/profiles/*/" - + "applications/*}\332A\004name\022\331\001\n\021UpdateApplica" - + "tion\0225.google.cloud.talent.v4beta1.Updat" - + "eApplicationRequest\032(.google.cloud.talen" - + "t.v4beta1.Application\"c\202\323\344\223\002O2J/v4beta1/" - + "{application.name=projects/*/tenants/*/p" - + "rofiles/*/applications/*}:\001*\332A\013applicati" - + "on\022\261\001\n\021DeleteApplication\0225.google.cloud." - + "talent.v4beta1.DeleteApplicationRequest\032" - + "\026.google.protobuf.Empty\"M\202\323\344\223\002@*>/v4beta" - + "1/{name=projects/*/tenants/*/profiles/*/" - + "applications/*}\332A\004name\022\320\001\n\020ListApplicati" - + "ons\0224.google.cloud.talent.v4beta1.ListAp" - + "plicationsRequest\0325.google.cloud.talent." - + "v4beta1.ListApplicationsResponse\"O\202\323\344\223\002@" - + "\022>/v4beta1/{parent=projects/*/tenants/*/" - + "profiles/*}/applications\332A\006parent\032l\312A\023jo" - + "bs.googleapis.com\322AShttps://www.googleap" - + "is.com/auth/cloud-platform,https://www.g" - + "oogleapis.com/auth/jobsB\205\001\n\037com.google.c" - + "loud.talent.v4beta1B\027ApplicationServiceP" - + "rotoP\001ZAgoogle.golang.org/genproto/googl" - + "eapis/cloud/talent/v4beta1;talent\242\002\003CTSb" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.talent.v4beta1.ApplicationResourceProto.getDescriptor(), - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_descriptor, - new java.lang.String[] { - "Parent", "Application", - }); - internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_descriptor, - new java.lang.String[] { - "Application", "UpdateMask", - }); - internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageToken", "PageSize", - }); - internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_descriptor, - new java.lang.String[] { - "Applications", "NextPageToken", "Metadata", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.talent.v4beta1.ApplicationResourceProto.getDescriptor(); - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilter.java deleted file mode 100644 index f745a3c4..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilter.java +++ /dev/null @@ -1,1037 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Filter on availability signals.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.AvailabilityFilter} - */ -public final class AvailabilityFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.AvailabilityFilter) - AvailabilityFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvailabilityFilter.newBuilder() to construct. - private AvailabilityFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AvailabilityFilter() { - signalType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AvailabilityFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AvailabilityFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - signalType_ = rawValue; - break; - } - case 18: - { - com.google.cloud.talent.v4beta1.TimestampRange.Builder subBuilder = null; - if (range_ != null) { - subBuilder = range_.toBuilder(); - } - range_ = - input.readMessage( - com.google.cloud.talent.v4beta1.TimestampRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(range_); - range_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - required_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.AvailabilityFilter.class, - com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder.class); - } - - public static final int SIGNAL_TYPE_FIELD_NUMBER = 1; - private int signalType_; - /** - * - * - *
-   * Required. Type of signal to apply filter on.
-   * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for signalType. - */ - @java.lang.Override - public int getSignalTypeValue() { - return signalType_; - } - /** - * - * - *
-   * Required. Type of signal to apply filter on.
-   * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The signalType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignalType getSignalType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.AvailabilitySignalType result = - com.google.cloud.talent.v4beta1.AvailabilitySignalType.valueOf(signalType_); - return result == null - ? com.google.cloud.talent.v4beta1.AvailabilitySignalType.UNRECOGNIZED - : result; - } - - public static final int RANGE_FIELD_NUMBER = 2; - private com.google.cloud.talent.v4beta1.TimestampRange range_; - /** - * - * - *
-   * Required. Range of times to filter candidate signals by.
-   * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the range field is set. - */ - @java.lang.Override - public boolean hasRange() { - return range_ != null; - } - /** - * - * - *
-   * Required. Range of times to filter candidate signals by.
-   * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The range. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimestampRange getRange() { - return range_ == null - ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() - : range_; - } - /** - * - * - *
-   * Required. Range of times to filter candidate signals by.
-   * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getRangeOrBuilder() { - return getRange(); - } - - public static final int REQUIRED_FIELD_NUMBER = 3; - private boolean 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].
-   * 
- * - * bool required = 3; - * - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return required_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (signalType_ - != com.google.cloud.talent.v4beta1.AvailabilitySignalType - .AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, signalType_); - } - if (range_ != null) { - output.writeMessage(2, getRange()); - } - if (required_ != false) { - output.writeBool(3, required_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (signalType_ - != com.google.cloud.talent.v4beta1.AvailabilitySignalType - .AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, signalType_); - } - if (range_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRange()); - } - if (required_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.AvailabilityFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.AvailabilityFilter other = - (com.google.cloud.talent.v4beta1.AvailabilityFilter) obj; - - if (signalType_ != other.signalType_) return false; - if (hasRange() != other.hasRange()) return false; - if (hasRange()) { - if (!getRange().equals(other.getRange())) return false; - } - if (getRequired() != other.getRequired()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIGNAL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + signalType_; - if (hasRange()) { - hash = (37 * hash) + RANGE_FIELD_NUMBER; - hash = (53 * hash) + getRange().hashCode(); - } - hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.AvailabilityFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Filter on availability signals.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.AvailabilityFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.AvailabilityFilter) - com.google.cloud.talent.v4beta1.AvailabilityFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.AvailabilityFilter.class, - com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.AvailabilityFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - signalType_ = 0; - - if (rangeBuilder_ == null) { - range_ = null; - } else { - range_ = null; - rangeBuilder_ = null; - } - required_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilityFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.AvailabilityFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilityFilter build() { - com.google.cloud.talent.v4beta1.AvailabilityFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilityFilter buildPartial() { - com.google.cloud.talent.v4beta1.AvailabilityFilter result = - new com.google.cloud.talent.v4beta1.AvailabilityFilter(this); - result.signalType_ = signalType_; - if (rangeBuilder_ == null) { - result.range_ = range_; - } else { - result.range_ = rangeBuilder_.build(); - } - result.required_ = required_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.AvailabilityFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.AvailabilityFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.AvailabilityFilter other) { - if (other == com.google.cloud.talent.v4beta1.AvailabilityFilter.getDefaultInstance()) - return this; - if (other.signalType_ != 0) { - setSignalTypeValue(other.getSignalTypeValue()); - } - if (other.hasRange()) { - mergeRange(other.getRange()); - } - if (other.getRequired() != false) { - setRequired(other.getRequired()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.AvailabilityFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.AvailabilityFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int signalType_ = 0; - /** - * - * - *
-     * Required. Type of signal to apply filter on.
-     * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for signalType. - */ - @java.lang.Override - public int getSignalTypeValue() { - return signalType_; - } - /** - * - * - *
-     * Required. Type of signal to apply filter on.
-     * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for signalType to set. - * @return This builder for chaining. - */ - public Builder setSignalTypeValue(int value) { - - signalType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Type of signal to apply filter on.
-     * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The signalType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignalType getSignalType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.AvailabilitySignalType result = - com.google.cloud.talent.v4beta1.AvailabilitySignalType.valueOf(signalType_); - return result == null - ? com.google.cloud.talent.v4beta1.AvailabilitySignalType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. Type of signal to apply filter on.
-     * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The signalType to set. - * @return This builder for chaining. - */ - public Builder setSignalType(com.google.cloud.talent.v4beta1.AvailabilitySignalType value) { - if (value == null) { - throw new NullPointerException(); - } - - signalType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Type of signal to apply filter on.
-     * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearSignalType() { - - signalType_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.TimestampRange range_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.TimestampRange, - com.google.cloud.talent.v4beta1.TimestampRange.Builder, - com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> - rangeBuilder_; - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the range field is set. - */ - public boolean hasRange() { - return rangeBuilder_ != null || range_ != null; - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The range. - */ - public com.google.cloud.talent.v4beta1.TimestampRange getRange() { - if (rangeBuilder_ == null) { - return range_ == null - ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() - : range_; - } else { - return rangeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRange(com.google.cloud.talent.v4beta1.TimestampRange value) { - if (rangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - range_ = value; - onChanged(); - } else { - rangeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRange( - com.google.cloud.talent.v4beta1.TimestampRange.Builder builderForValue) { - if (rangeBuilder_ == null) { - range_ = builderForValue.build(); - onChanged(); - } else { - rangeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRange(com.google.cloud.talent.v4beta1.TimestampRange value) { - if (rangeBuilder_ == null) { - if (range_ != null) { - range_ = - com.google.cloud.talent.v4beta1.TimestampRange.newBuilder(range_) - .mergeFrom(value) - .buildPartial(); - } else { - range_ = value; - } - onChanged(); - } else { - rangeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRange() { - if (rangeBuilder_ == null) { - range_ = null; - onChanged(); - } else { - range_ = null; - rangeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.TimestampRange.Builder getRangeBuilder() { - - onChanged(); - return getRangeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getRangeOrBuilder() { - if (rangeBuilder_ != null) { - return rangeBuilder_.getMessageOrBuilder(); - } else { - return range_ == null - ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance() - : range_; - } - } - /** - * - * - *
-     * Required. Range of times to filter candidate signals by.
-     * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.TimestampRange, - com.google.cloud.talent.v4beta1.TimestampRange.Builder, - com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder> - getRangeFieldBuilder() { - if (rangeBuilder_ == null) { - rangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.TimestampRange, - com.google.cloud.talent.v4beta1.TimestampRange.Builder, - com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder>( - getRange(), getParentForChildren(), isClean()); - range_ = null; - } - return rangeBuilder_; - } - - private boolean 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].
-     * 
- * - * bool required = 3; - * - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return 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].
-     * 
- * - * bool required = 3; - * - * @param value The required to set. - * @return This builder for chaining. - */ - public Builder setRequired(boolean value) { - - required_ = value; - onChanged(); - 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].
-     * 
- * - * bool required = 3; - * - * @return This builder for chaining. - */ - public Builder clearRequired() { - - required_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.AvailabilityFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AvailabilityFilter) - private static final com.google.cloud.talent.v4beta1.AvailabilityFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.AvailabilityFilter(); - } - - public static com.google.cloud.talent.v4beta1.AvailabilityFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvailabilityFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvailabilityFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilityFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilterOrBuilder.java deleted file mode 100644 index 80cad61b..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilterOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface AvailabilityFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.AvailabilityFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Type of signal to apply filter on.
-   * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for signalType. - */ - int getSignalTypeValue(); - /** - * - * - *
-   * Required. Type of signal to apply filter on.
-   * 
- * - * - * .google.cloud.talent.v4beta1.AvailabilitySignalType signal_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The signalType. - */ - com.google.cloud.talent.v4beta1.AvailabilitySignalType getSignalType(); - - /** - * - * - *
-   * Required. Range of times to filter candidate signals by.
-   * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the range field is set. - */ - boolean hasRange(); - /** - * - * - *
-   * Required. Range of times to filter candidate signals by.
-   * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The range. - */ - com.google.cloud.talent.v4beta1.TimestampRange getRange(); - /** - * - * - *
-   * Required. Range of times to filter candidate signals by.
-   * 
- * - * - * .google.cloud.talent.v4beta1.TimestampRange range = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getRangeOrBuilder(); - - /** - * - * - *
-   * 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].
-   * 
- * - * bool required = 3; - * - * @return The required. - */ - boolean getRequired(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignal.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignal.java deleted file mode 100644 index b2a08398..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignal.java +++ /dev/null @@ -1,1219 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Candidate availability signal.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.AvailabilitySignal} - */ -public final class AvailabilitySignal extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.AvailabilitySignal) - AvailabilitySignalOrBuilder { - private static final long serialVersionUID = 0L; - // Use AvailabilitySignal.newBuilder() to construct. - private AvailabilitySignal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AvailabilitySignal() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AvailabilitySignal(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AvailabilitySignal( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastUpdateTime_ != null) { - subBuilder = lastUpdateTime_.toBuilder(); - } - lastUpdateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastUpdateTime_); - lastUpdateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (filterSatisfied_ != null) { - subBuilder = filterSatisfied_.toBuilder(); - } - filterSatisfied_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filterSatisfied_); - filterSatisfied_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.AvailabilitySignal.class, - com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * - * - *
-   * Type of signal.
-   * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * Type of signal.
-   * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignalType getType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.AvailabilitySignalType result = - com.google.cloud.talent.v4beta1.AvailabilitySignalType.valueOf(type_); - return result == null - ? com.google.cloud.talent.v4beta1.AvailabilitySignalType.UNRECOGNIZED - : result; - } - - public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp lastUpdateTime_; - /** - * - * - *
-   * Timestamp of when the given availability activity last happened.
-   * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - * - * @return Whether the lastUpdateTime field is set. - */ - @java.lang.Override - public boolean hasLastUpdateTime() { - return lastUpdateTime_ != null; - } - /** - * - * - *
-   * Timestamp of when the given availability activity last happened.
-   * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - * - * @return The lastUpdateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; - } - /** - * - * - *
-   * Timestamp of when the given availability activity last happened.
-   * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return getLastUpdateTime(); - } - - public static final int FILTER_SATISFIED_FIELD_NUMBER = 3; - private com.google.protobuf.BoolValue filterSatisfied_; - /** - * - * - *
-   * 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].
-   * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - * - * @return Whether the filterSatisfied field is set. - */ - @java.lang.Override - public boolean hasFilterSatisfied() { - return filterSatisfied_ != 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].
-   * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - * - * @return The filterSatisfied. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getFilterSatisfied() { - return filterSatisfied_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : filterSatisfied_; - } - /** - * - * - *
-   * 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].
-   * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getFilterSatisfiedOrBuilder() { - return getFilterSatisfied(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.talent.v4beta1.AvailabilitySignalType - .AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, type_); - } - if (lastUpdateTime_ != null) { - output.writeMessage(2, getLastUpdateTime()); - } - if (filterSatisfied_ != null) { - output.writeMessage(3, getFilterSatisfied()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ - != com.google.cloud.talent.v4beta1.AvailabilitySignalType - .AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); - } - if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUpdateTime()); - } - if (filterSatisfied_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFilterSatisfied()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.AvailabilitySignal)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.AvailabilitySignal other = - (com.google.cloud.talent.v4beta1.AvailabilitySignal) obj; - - if (type_ != other.type_) return false; - if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; - if (hasLastUpdateTime()) { - if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; - } - if (hasFilterSatisfied() != other.hasFilterSatisfied()) return false; - if (hasFilterSatisfied()) { - if (!getFilterSatisfied().equals(other.getFilterSatisfied())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - if (hasLastUpdateTime()) { - hash = (37 * hash) + LAST_UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getLastUpdateTime().hashCode(); - } - if (hasFilterSatisfied()) { - hash = (37 * hash) + FILTER_SATISFIED_FIELD_NUMBER; - hash = (53 * hash) + getFilterSatisfied().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.AvailabilitySignal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Candidate availability signal.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.AvailabilitySignal} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.AvailabilitySignal) - com.google.cloud.talent.v4beta1.AvailabilitySignalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.AvailabilitySignal.class, - com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.AvailabilitySignal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - } else { - lastUpdateTime_ = null; - lastUpdateTimeBuilder_ = null; - } - if (filterSatisfiedBuilder_ == null) { - filterSatisfied_ = null; - } else { - filterSatisfied_ = null; - filterSatisfiedBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignal getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.AvailabilitySignal.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignal build() { - com.google.cloud.talent.v4beta1.AvailabilitySignal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignal buildPartial() { - com.google.cloud.talent.v4beta1.AvailabilitySignal result = - new com.google.cloud.talent.v4beta1.AvailabilitySignal(this); - result.type_ = type_; - if (lastUpdateTimeBuilder_ == null) { - result.lastUpdateTime_ = lastUpdateTime_; - } else { - result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); - } - if (filterSatisfiedBuilder_ == null) { - result.filterSatisfied_ = filterSatisfied_; - } else { - result.filterSatisfied_ = filterSatisfiedBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.AvailabilitySignal) { - return mergeFrom((com.google.cloud.talent.v4beta1.AvailabilitySignal) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.AvailabilitySignal other) { - if (other == com.google.cloud.talent.v4beta1.AvailabilitySignal.getDefaultInstance()) - return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.hasLastUpdateTime()) { - mergeLastUpdateTime(other.getLastUpdateTime()); - } - if (other.hasFilterSatisfied()) { - mergeFilterSatisfied(other.getFilterSatisfied()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.AvailabilitySignal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.AvailabilitySignal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * Type of signal.
-     * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * Type of signal.
-     * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Type of signal.
-     * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignalType getType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.AvailabilitySignalType result = - com.google.cloud.talent.v4beta1.AvailabilitySignalType.valueOf(type_); - return result == null - ? com.google.cloud.talent.v4beta1.AvailabilitySignalType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Type of signal.
-     * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.talent.v4beta1.AvailabilitySignalType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Type of signal.
-     * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp lastUpdateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastUpdateTimeBuilder_; - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - * - * @return Whether the lastUpdateTime field is set. - */ - public boolean hasLastUpdateTime() { - return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - * - * @return The lastUpdateTime. - */ - public com.google.protobuf.Timestamp getLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; - } else { - return lastUpdateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { - if (lastUpdateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastUpdateTime_ = value; - onChanged(); - } else { - lastUpdateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = builderForValue.build(); - onChanged(); - } else { - lastUpdateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { - if (lastUpdateTimeBuilder_ == null) { - if (lastUpdateTime_ != null) { - lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); - } else { - lastUpdateTime_ = value; - } - onChanged(); - } else { - lastUpdateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - public Builder clearLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - onChanged(); - } else { - lastUpdateTime_ = null; - lastUpdateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - - onChanged(); - return getLastUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - if (lastUpdateTimeBuilder_ != null) { - return lastUpdateTimeBuilder_.getMessageOrBuilder(); - } else { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; - } - } - /** - * - * - *
-     * Timestamp of when the given availability activity last happened.
-     * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getLastUpdateTimeFieldBuilder() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), getParentForChildren(), isClean()); - lastUpdateTime_ = null; - } - return lastUpdateTimeBuilder_; - } - - private com.google.protobuf.BoolValue filterSatisfied_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - filterSatisfiedBuilder_; - /** - * - * - *
-     * 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - * - * @return Whether the filterSatisfied field is set. - */ - public boolean hasFilterSatisfied() { - return filterSatisfiedBuilder_ != null || filterSatisfied_ != 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - * - * @return The filterSatisfied. - */ - public com.google.protobuf.BoolValue getFilterSatisfied() { - if (filterSatisfiedBuilder_ == null) { - return filterSatisfied_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : filterSatisfied_; - } else { - return filterSatisfiedBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - public Builder setFilterSatisfied(com.google.protobuf.BoolValue value) { - if (filterSatisfiedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterSatisfied_ = value; - onChanged(); - } else { - filterSatisfiedBuilder_.setMessage(value); - } - - 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - public Builder setFilterSatisfied(com.google.protobuf.BoolValue.Builder builderForValue) { - if (filterSatisfiedBuilder_ == null) { - filterSatisfied_ = builderForValue.build(); - onChanged(); - } else { - filterSatisfiedBuilder_.setMessage(builderForValue.build()); - } - - 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - public Builder mergeFilterSatisfied(com.google.protobuf.BoolValue value) { - if (filterSatisfiedBuilder_ == null) { - if (filterSatisfied_ != null) { - filterSatisfied_ = - com.google.protobuf.BoolValue.newBuilder(filterSatisfied_) - .mergeFrom(value) - .buildPartial(); - } else { - filterSatisfied_ = value; - } - onChanged(); - } else { - filterSatisfiedBuilder_.mergeFrom(value); - } - - 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - public Builder clearFilterSatisfied() { - if (filterSatisfiedBuilder_ == null) { - filterSatisfied_ = null; - onChanged(); - } else { - filterSatisfied_ = null; - filterSatisfiedBuilder_ = null; - } - - 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - public com.google.protobuf.BoolValue.Builder getFilterSatisfiedBuilder() { - - onChanged(); - return getFilterSatisfiedFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - public com.google.protobuf.BoolValueOrBuilder getFilterSatisfiedOrBuilder() { - if (filterSatisfiedBuilder_ != null) { - return filterSatisfiedBuilder_.getMessageOrBuilder(); - } else { - return filterSatisfied_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : filterSatisfied_; - } - } - /** - * - * - *
-     * 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].
-     * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getFilterSatisfiedFieldBuilder() { - if (filterSatisfiedBuilder_ == null) { - filterSatisfiedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getFilterSatisfied(), getParentForChildren(), isClean()); - filterSatisfied_ = null; - } - return filterSatisfiedBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.AvailabilitySignal) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.AvailabilitySignal) - private static final com.google.cloud.talent.v4beta1.AvailabilitySignal DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.AvailabilitySignal(); - } - - public static com.google.cloud.talent.v4beta1.AvailabilitySignal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvailabilitySignal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvailabilitySignal(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalOrBuilder.java deleted file mode 100644 index 21f555fd..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface AvailabilitySignalOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.AvailabilitySignal) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Type of signal.
-   * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * Type of signal.
-   * 
- * - * .google.cloud.talent.v4beta1.AvailabilitySignalType type = 1; - * - * @return The type. - */ - com.google.cloud.talent.v4beta1.AvailabilitySignalType getType(); - - /** - * - * - *
-   * Timestamp of when the given availability activity last happened.
-   * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - * - * @return Whether the lastUpdateTime field is set. - */ - boolean hasLastUpdateTime(); - /** - * - * - *
-   * Timestamp of when the given availability activity last happened.
-   * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - * - * @return The lastUpdateTime. - */ - com.google.protobuf.Timestamp getLastUpdateTime(); - /** - * - * - *
-   * Timestamp of when the given availability activity last happened.
-   * 
- * - * .google.protobuf.Timestamp last_update_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); - - /** - * - * - *
-   * 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].
-   * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - * - * @return Whether the filterSatisfied field is set. - */ - boolean hasFilterSatisfied(); - /** - * - * - *
-   * 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].
-   * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - * - * @return The filterSatisfied. - */ - com.google.protobuf.BoolValue 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].
-   * 
- * - * .google.protobuf.BoolValue filter_satisfied = 3; - */ - com.google.protobuf.BoolValueOrBuilder getFilterSatisfiedOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalType.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalType.java deleted file mode 100644 index 115853d7..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalType.java +++ /dev/null @@ -1,311 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * The type of candidate availability signal.
- * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.AvailabilitySignalType} - */ -public enum AvailabilitySignalType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value.
-   * 
- * - * AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED = 0; - */ - 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.
-   * 
- * - * JOB_APPLICATION = 1; - */ - 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.
-   * 
- * - * RESUME_UPDATE = 2; - */ - 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.
-   * 
- * - * CANDIDATE_UPDATE = 3; - */ - 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.
-   * 
- * - * CLIENT_SUBMISSION = 4; - */ - CLIENT_SUBMISSION(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value.
-   * 
- * - * AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED = 0; - */ - public static final int AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED_VALUE = 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.
-   * 
- * - * JOB_APPLICATION = 1; - */ - public static final int JOB_APPLICATION_VALUE = 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.
-   * 
- * - * RESUME_UPDATE = 2; - */ - public static final int RESUME_UPDATE_VALUE = 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.
-   * 
- * - * CANDIDATE_UPDATE = 3; - */ - public static final int CANDIDATE_UPDATE_VALUE = 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.
-   * 
- * - * CLIENT_SUBMISSION = 4; - */ - public static final int CLIENT_SUBMISSION_VALUE = 4; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AvailabilitySignalType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static AvailabilitySignalType forNumber(int value) { - switch (value) { - case 0: - return AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED; - case 1: - return JOB_APPLICATION; - case 2: - return RESUME_UPDATE; - case 3: - return CANDIDATE_UPDATE; - case 4: - return CLIENT_SUBMISSION; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AvailabilitySignalType findValueByNumber(int number) { - return AvailabilitySignalType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(13); - } - - private static final AvailabilitySignalType[] VALUES = values(); - - public static AvailabilitySignalType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AvailabilitySignalType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.AvailabilitySignalType) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java index 96adcb5d..ed90f94e 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java @@ -36,19 +36,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\'google/cloud/talent/v4beta1/batch.prot" - + "o\022\033google.cloud.talent.v4beta1\032\034google/a" - + "pi/annotations.protoBx\n\037com.google.cloud" - + ".talent.v4beta1B\nBatchProtoP\001ZAgoogle.go" - + "lang.org/genproto/googleapis/cloud/talen" - + "t/v4beta1;talent\242\002\003CTSb\006proto3" + + "o\022\033google.cloud.talent.v4beta1Bx\n\037com.go" + + "ogle.cloud.talent.v4beta1B\nBatchProtoP\001Z" + + "Agoogle.golang.org/genproto/googleapis/c" + + "loud/talent/v4beta1;talent\242\002\003CTSb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - com.google.api.AnnotationsProto.getDescriptor(); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilter.java deleted file mode 100644 index d4b38b21..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilter.java +++ /dev/null @@ -1,556 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Deprecated. Use AvailabilityFilter instead.
- * Filter on availability signals.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.CandidateAvailabilityFilter} - */ -@java.lang.Deprecated -public final class CandidateAvailabilityFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CandidateAvailabilityFilter) - CandidateAvailabilityFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use CandidateAvailabilityFilter.newBuilder() to construct. - private CandidateAvailabilityFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CandidateAvailabilityFilter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CandidateAvailabilityFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CandidateAvailabilityFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - negated_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.class, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder.class); - } - - public static final int NEGATED_FIELD_NUMBER = 1; - private boolean negated_; - /** - * - * - *
-   * It is false by default. If true, API excludes all the potential available
-   * profiles.
-   * 
- * - * bool negated = 1; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (negated_ != false) { - output.writeBool(1, negated_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, negated_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter other = - (com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter) obj; - - if (getNegated() != other.getNegated()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Deprecated. Use AvailabilityFilter instead.
-   * Filter on availability signals.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.CandidateAvailabilityFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CandidateAvailabilityFilter) - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.class, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - negated_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter build() { - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter buildPartial() { - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter result = - new com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter(this); - result.negated_ = negated_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter other) { - if (other == com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.getDefaultInstance()) - return this; - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean negated_; - /** - * - * - *
-     * It is false by default. If true, API excludes all the potential available
-     * profiles.
-     * 
- * - * bool negated = 1; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - /** - * - * - *
-     * It is false by default. If true, API excludes all the potential available
-     * profiles.
-     * 
- * - * bool negated = 1; - * - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * It is false by default. If true, API excludes all the potential available
-     * profiles.
-     * 
- * - * bool negated = 1; - * - * @return This builder for chaining. - */ - public Builder clearNegated() { - - negated_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CandidateAvailabilityFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CandidateAvailabilityFilter) - private static final com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter(); - } - - public static com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CandidateAvailabilityFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CandidateAvailabilityFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilterOrBuilder.java deleted file mode 100644 index 3d3a34aa..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilterOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -@java.lang.Deprecated -public interface CandidateAvailabilityFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CandidateAvailabilityFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * It is false by default. If true, API excludes all the potential available
-   * profiles.
-   * 
- * - * bool negated = 1; - * - * @return The negated. - */ - boolean getNegated(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java deleted file mode 100644 index 0c109851..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java +++ /dev/null @@ -1,1537 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a license or certification.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Certification} - */ -public final class Certification extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Certification) - CertificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Certification.newBuilder() to construct. - private Certification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Certification() { - displayName_ = ""; - authority_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Certification(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Certification( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 18: - { - com.google.type.Date.Builder subBuilder = null; - if (acquireDate_ != null) { - subBuilder = acquireDate_.toBuilder(); - } - acquireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(acquireDate_); - acquireDate_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.type.Date.Builder subBuilder = null; - if (expireDate_ != null) { - subBuilder = expireDate_.toBuilder(); - } - expireDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expireDate_); - expireDate_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - authority_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Certification.class, - com.google.cloud.talent.v4beta1.Certification.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Name of license or certification.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Name of license or certification.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACQUIRE_DATE_FIELD_NUMBER = 2; - private com.google.type.Date acquireDate_; - /** - * - * - *
-   * Acquisition date or effective date of license or certification.
-   * 
- * - * .google.type.Date acquire_date = 2; - * - * @return Whether the acquireDate field is set. - */ - @java.lang.Override - public boolean hasAcquireDate() { - return acquireDate_ != null; - } - /** - * - * - *
-   * Acquisition date or effective date of license or certification.
-   * 
- * - * .google.type.Date acquire_date = 2; - * - * @return The acquireDate. - */ - @java.lang.Override - public com.google.type.Date getAcquireDate() { - return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; - } - /** - * - * - *
-   * Acquisition date or effective date of license or certification.
-   * 
- * - * .google.type.Date acquire_date = 2; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { - return getAcquireDate(); - } - - public static final int EXPIRE_DATE_FIELD_NUMBER = 3; - private com.google.type.Date expireDate_; - /** - * - * - *
-   * Expiration date of license of certification.
-   * 
- * - * .google.type.Date expire_date = 3; - * - * @return Whether the expireDate field is set. - */ - @java.lang.Override - public boolean hasExpireDate() { - return expireDate_ != null; - } - /** - * - * - *
-   * Expiration date of license of certification.
-   * 
- * - * .google.type.Date expire_date = 3; - * - * @return The expireDate. - */ - @java.lang.Override - public com.google.type.Date getExpireDate() { - return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; - } - /** - * - * - *
-   * Expiration date of license of certification.
-   * 
- * - * .google.type.Date expire_date = 3; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getExpireDateOrBuilder() { - return getExpireDate(); - } - - public static final int AUTHORITY_FIELD_NUMBER = 4; - private volatile java.lang.Object authority_; - /** - * - * - *
-   * Authority of license, such as government.
-   * Number of characters allowed is 100.
-   * 
- * - * string authority = 4; - * - * @return The authority. - */ - @java.lang.Override - public java.lang.String getAuthority() { - java.lang.Object ref = authority_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authority_ = s; - return s; - } - } - /** - * - * - *
-   * Authority of license, such as government.
-   * Number of characters allowed is 100.
-   * 
- * - * string authority = 4; - * - * @return The bytes for authority. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAuthorityBytes() { - java.lang.Object ref = authority_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authority_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 5; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Description of license or certification.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 5; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Description of license or certification.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 5; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (acquireDate_ != null) { - output.writeMessage(2, getAcquireDate()); - } - if (expireDate_ != null) { - output.writeMessage(3, getExpireDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authority_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authority_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (acquireDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAcquireDate()); - } - if (expireDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authority_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authority_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Certification)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Certification other = - (com.google.cloud.talent.v4beta1.Certification) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (hasAcquireDate() != other.hasAcquireDate()) return false; - if (hasAcquireDate()) { - if (!getAcquireDate().equals(other.getAcquireDate())) return false; - } - if (hasExpireDate() != other.hasExpireDate()) return false; - if (hasExpireDate()) { - if (!getExpireDate().equals(other.getExpireDate())) return false; - } - if (!getAuthority().equals(other.getAuthority())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (hasAcquireDate()) { - hash = (37 * hash) + ACQUIRE_DATE_FIELD_NUMBER; - hash = (53 * hash) + getAcquireDate().hashCode(); - } - if (hasExpireDate()) { - hash = (37 * hash) + EXPIRE_DATE_FIELD_NUMBER; - hash = (53 * hash) + getExpireDate().hashCode(); - } - hash = (37 * hash) + AUTHORITY_FIELD_NUMBER; - hash = (53 * hash) + getAuthority().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Certification parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Certification parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Certification parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Certification prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a license or certification.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Certification} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Certification) - com.google.cloud.talent.v4beta1.CertificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Certification.class, - com.google.cloud.talent.v4beta1.Certification.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Certification.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - displayName_ = ""; - - if (acquireDateBuilder_ == null) { - acquireDate_ = null; - } else { - acquireDate_ = null; - acquireDateBuilder_ = null; - } - if (expireDateBuilder_ == null) { - expireDate_ = null; - } else { - expireDate_ = null; - expireDateBuilder_ = null; - } - authority_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Certification.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Certification build() { - com.google.cloud.talent.v4beta1.Certification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Certification buildPartial() { - com.google.cloud.talent.v4beta1.Certification result = - new com.google.cloud.talent.v4beta1.Certification(this); - result.displayName_ = displayName_; - if (acquireDateBuilder_ == null) { - result.acquireDate_ = acquireDate_; - } else { - result.acquireDate_ = acquireDateBuilder_.build(); - } - if (expireDateBuilder_ == null) { - result.expireDate_ = expireDate_; - } else { - result.expireDate_ = expireDateBuilder_.build(); - } - result.authority_ = authority_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Certification) { - return mergeFrom((com.google.cloud.talent.v4beta1.Certification) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Certification other) { - if (other == com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.hasAcquireDate()) { - mergeAcquireDate(other.getAcquireDate()); - } - if (other.hasExpireDate()) { - mergeExpireDate(other.getExpireDate()); - } - if (!other.getAuthority().isEmpty()) { - authority_ = other.authority_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Certification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Certification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Name of license or certification.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of license or certification.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of license or certification.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of license or certification.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of license or certification.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.type.Date acquireDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - acquireDateBuilder_; - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - * - * @return Whether the acquireDate field is set. - */ - public boolean hasAcquireDate() { - return acquireDateBuilder_ != null || acquireDate_ != null; - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - * - * @return The acquireDate. - */ - public com.google.type.Date getAcquireDate() { - if (acquireDateBuilder_ == null) { - return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; - } else { - return acquireDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - */ - public Builder setAcquireDate(com.google.type.Date value) { - if (acquireDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - acquireDate_ = value; - onChanged(); - } else { - acquireDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - */ - public Builder setAcquireDate(com.google.type.Date.Builder builderForValue) { - if (acquireDateBuilder_ == null) { - acquireDate_ = builderForValue.build(); - onChanged(); - } else { - acquireDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - */ - public Builder mergeAcquireDate(com.google.type.Date value) { - if (acquireDateBuilder_ == null) { - if (acquireDate_ != null) { - acquireDate_ = - com.google.type.Date.newBuilder(acquireDate_).mergeFrom(value).buildPartial(); - } else { - acquireDate_ = value; - } - onChanged(); - } else { - acquireDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - */ - public Builder clearAcquireDate() { - if (acquireDateBuilder_ == null) { - acquireDate_ = null; - onChanged(); - } else { - acquireDate_ = null; - acquireDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - */ - public com.google.type.Date.Builder getAcquireDateBuilder() { - - onChanged(); - return getAcquireDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - */ - public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { - if (acquireDateBuilder_ != null) { - return acquireDateBuilder_.getMessageOrBuilder(); - } else { - return acquireDate_ == null ? com.google.type.Date.getDefaultInstance() : acquireDate_; - } - } - /** - * - * - *
-     * Acquisition date or effective date of license or certification.
-     * 
- * - * .google.type.Date acquire_date = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getAcquireDateFieldBuilder() { - if (acquireDateBuilder_ == null) { - acquireDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getAcquireDate(), getParentForChildren(), isClean()); - acquireDate_ = null; - } - return acquireDateBuilder_; - } - - private com.google.type.Date expireDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - expireDateBuilder_; - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - * - * @return Whether the expireDate field is set. - */ - public boolean hasExpireDate() { - return expireDateBuilder_ != null || expireDate_ != null; - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - * - * @return The expireDate. - */ - public com.google.type.Date getExpireDate() { - if (expireDateBuilder_ == null) { - return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; - } else { - return expireDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - */ - public Builder setExpireDate(com.google.type.Date value) { - if (expireDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireDate_ = value; - onChanged(); - } else { - expireDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - */ - public Builder setExpireDate(com.google.type.Date.Builder builderForValue) { - if (expireDateBuilder_ == null) { - expireDate_ = builderForValue.build(); - onChanged(); - } else { - expireDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - */ - public Builder mergeExpireDate(com.google.type.Date value) { - if (expireDateBuilder_ == null) { - if (expireDate_ != null) { - expireDate_ = - com.google.type.Date.newBuilder(expireDate_).mergeFrom(value).buildPartial(); - } else { - expireDate_ = value; - } - onChanged(); - } else { - expireDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - */ - public Builder clearExpireDate() { - if (expireDateBuilder_ == null) { - expireDate_ = null; - onChanged(); - } else { - expireDate_ = null; - expireDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - */ - public com.google.type.Date.Builder getExpireDateBuilder() { - - onChanged(); - return getExpireDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - */ - public com.google.type.DateOrBuilder getExpireDateOrBuilder() { - if (expireDateBuilder_ != null) { - return expireDateBuilder_.getMessageOrBuilder(); - } else { - return expireDate_ == null ? com.google.type.Date.getDefaultInstance() : expireDate_; - } - } - /** - * - * - *
-     * Expiration date of license of certification.
-     * 
- * - * .google.type.Date expire_date = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getExpireDateFieldBuilder() { - if (expireDateBuilder_ == null) { - expireDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getExpireDate(), getParentForChildren(), isClean()); - expireDate_ = null; - } - return expireDateBuilder_; - } - - private java.lang.Object authority_ = ""; - /** - * - * - *
-     * Authority of license, such as government.
-     * Number of characters allowed is 100.
-     * 
- * - * string authority = 4; - * - * @return The authority. - */ - public java.lang.String getAuthority() { - java.lang.Object ref = authority_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authority_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Authority of license, such as government.
-     * Number of characters allowed is 100.
-     * 
- * - * string authority = 4; - * - * @return The bytes for authority. - */ - public com.google.protobuf.ByteString getAuthorityBytes() { - java.lang.Object ref = authority_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authority_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Authority of license, such as government.
-     * Number of characters allowed is 100.
-     * 
- * - * string authority = 4; - * - * @param value The authority to set. - * @return This builder for chaining. - */ - public Builder setAuthority(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authority_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Authority of license, such as government.
-     * Number of characters allowed is 100.
-     * 
- * - * string authority = 4; - * - * @return This builder for chaining. - */ - public Builder clearAuthority() { - - authority_ = getDefaultInstance().getAuthority(); - onChanged(); - return this; - } - /** - * - * - *
-     * Authority of license, such as government.
-     * Number of characters allowed is 100.
-     * 
- * - * string authority = 4; - * - * @param value The bytes for authority to set. - * @return This builder for chaining. - */ - public Builder setAuthorityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authority_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * Description of license or certification.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 5; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Description of license or certification.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 5; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Description of license or certification.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 5; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Description of license or certification.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 5; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * Description of license or certification.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 5; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Certification) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Certification) - private static final com.google.cloud.talent.v4beta1.Certification DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Certification(); - } - - public static com.google.cloud.talent.v4beta1.Certification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Certification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Certification(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Certification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java deleted file mode 100644 index dcd41e75..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -public interface CertificationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Certification) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of license or certification.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Name of license or certification.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Acquisition date or effective date of license or certification.
-   * 
- * - * .google.type.Date acquire_date = 2; - * - * @return Whether the acquireDate field is set. - */ - boolean hasAcquireDate(); - /** - * - * - *
-   * Acquisition date or effective date of license or certification.
-   * 
- * - * .google.type.Date acquire_date = 2; - * - * @return The acquireDate. - */ - com.google.type.Date getAcquireDate(); - /** - * - * - *
-   * Acquisition date or effective date of license or certification.
-   * 
- * - * .google.type.Date acquire_date = 2; - */ - com.google.type.DateOrBuilder getAcquireDateOrBuilder(); - - /** - * - * - *
-   * Expiration date of license of certification.
-   * 
- * - * .google.type.Date expire_date = 3; - * - * @return Whether the expireDate field is set. - */ - boolean hasExpireDate(); - /** - * - * - *
-   * Expiration date of license of certification.
-   * 
- * - * .google.type.Date expire_date = 3; - * - * @return The expireDate. - */ - com.google.type.Date getExpireDate(); - /** - * - * - *
-   * Expiration date of license of certification.
-   * 
- * - * .google.type.Date expire_date = 3; - */ - com.google.type.DateOrBuilder getExpireDateOrBuilder(); - - /** - * - * - *
-   * Authority of license, such as government.
-   * Number of characters allowed is 100.
-   * 
- * - * string authority = 4; - * - * @return The authority. - */ - java.lang.String getAuthority(); - /** - * - * - *
-   * Authority of license, such as government.
-   * Number of characters allowed is 100.
-   * 
- * - * string authority = 4; - * - * @return The bytes for authority. - */ - com.google.protobuf.ByteString getAuthorityBytes(); - - /** - * - * - *
-   * Description of license or certification.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 5; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * Description of license or certification.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 5; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java index bb52c64e..2463a36f 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java @@ -121,22 +121,6 @@ private ClientEvent( eventCase_ = 5; break; } - case 50: - { - com.google.cloud.talent.v4beta1.ProfileEvent.Builder subBuilder = null; - if (eventCase_ == 6) { - subBuilder = ((com.google.cloud.talent.v4beta1.ProfileEvent) event_).toBuilder(); - } - event_ = - input.readMessage( - com.google.cloud.talent.v4beta1.ProfileEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) event_); - event_ = subBuilder.buildPartial(); - } - eventCase_ = 6; - break; - } case 74: { java.lang.String s = input.readStringRequireUtf8(); @@ -188,7 +172,6 @@ public enum EventCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { JOB_EVENT(5), - PROFILE_EVENT(6), EVENT_NOT_SET(0); private final int value; @@ -209,8 +192,6 @@ public static EventCase forNumber(int value) { switch (value) { case 5: return JOB_EVENT; - case 6: - return PROFILE_EVENT; case 0: return EVENT_NOT_SET; default: @@ -432,60 +413,6 @@ public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() return com.google.cloud.talent.v4beta1.JobEvent.getDefaultInstance(); } - public static final int PROFILE_EVENT_FIELD_NUMBER = 6; - /** - * - * - *
-   * An event issued when a profile searcher interacts with the application
-   * that implements Cloud Talent Solution.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * - * @return Whether the profileEvent field is set. - */ - @java.lang.Override - public boolean hasProfileEvent() { - return eventCase_ == 6; - } - /** - * - * - *
-   * An event issued when a profile searcher interacts with the application
-   * that implements Cloud Talent Solution.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * - * @return The profileEvent. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { - if (eventCase_ == 6) { - return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; - } - return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); - } - /** - * - * - *
-   * An event issued when a profile searcher interacts with the application
-   * that implements Cloud Talent Solution.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { - if (eventCase_ == 6) { - return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; - } - return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); - } - public static final int EVENT_NOTES_FIELD_NUMBER = 9; private volatile java.lang.Object eventNotes_; /** @@ -563,9 +490,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (eventCase_ == 5) { output.writeMessage(5, (com.google.cloud.talent.v4beta1.JobEvent) event_); } - if (eventCase_ == 6) { - output.writeMessage(6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); - } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventNotes_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, eventNotes_); } @@ -592,11 +516,6 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.cloud.talent.v4beta1.JobEvent) event_); } - if (eventCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); - } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventNotes_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, eventNotes_); } @@ -628,9 +547,6 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getJobEvent().equals(other.getJobEvent())) return false; break; - case 6: - if (!getProfileEvent().equals(other.getProfileEvent())) return false; - break; case 0: default: } @@ -660,10 +576,6 @@ public int hashCode() { hash = (37 * hash) + JOB_EVENT_FIELD_NUMBER; hash = (53 * hash) + getJobEvent().hashCode(); break; - case 6: - hash = (37 * hash) + PROFILE_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getProfileEvent().hashCode(); - break; case 0: default: } @@ -871,13 +783,6 @@ public com.google.cloud.talent.v4beta1.ClientEvent buildPartial() { result.event_ = jobEventBuilder_.build(); } } - if (eventCase_ == 6) { - if (profileEventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = profileEventBuilder_.build(); - } - } result.eventNotes_ = eventNotes_; result.eventCase_ = eventCase_; onBuilt(); @@ -950,11 +855,6 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.ClientEvent other) { mergeJobEvent(other.getJobEvent()); break; } - case PROFILE_EVENT: - { - mergeProfileEvent(other.getProfileEvent()); - break; - } case EVENT_NOT_SET: { break; @@ -1635,225 +1535,6 @@ public com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder() return jobEventBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ProfileEvent, - com.google.cloud.talent.v4beta1.ProfileEvent.Builder, - com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> - profileEventBuilder_; - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * - * @return Whether the profileEvent field is set. - */ - @java.lang.Override - public boolean hasProfileEvent() { - return eventCase_ == 6; - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * - * @return The profileEvent. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent() { - if (profileEventBuilder_ == null) { - if (eventCase_ == 6) { - return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; - } - return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); - } else { - if (eventCase_ == 6) { - return profileEventBuilder_.getMessage(); - } - return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); - } - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - public Builder setProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { - if (profileEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - profileEventBuilder_.setMessage(value); - } - eventCase_ = 6; - return this; - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - public Builder setProfileEvent( - com.google.cloud.talent.v4beta1.ProfileEvent.Builder builderForValue) { - if (profileEventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - profileEventBuilder_.setMessage(builderForValue.build()); - } - eventCase_ = 6; - return this; - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - public Builder mergeProfileEvent(com.google.cloud.talent.v4beta1.ProfileEvent value) { - if (profileEventBuilder_ == null) { - if (eventCase_ == 6 - && event_ != com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) { - event_ = - com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder( - (com.google.cloud.talent.v4beta1.ProfileEvent) event_) - .mergeFrom(value) - .buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - if (eventCase_ == 6) { - profileEventBuilder_.mergeFrom(value); - } else { - profileEventBuilder_.setMessage(value); - } - } - eventCase_ = 6; - return this; - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - public Builder clearProfileEvent() { - if (profileEventBuilder_ == null) { - if (eventCase_ == 6) { - eventCase_ = 0; - event_ = null; - onChanged(); - } - } else { - if (eventCase_ == 6) { - eventCase_ = 0; - event_ = null; - } - profileEventBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - public com.google.cloud.talent.v4beta1.ProfileEvent.Builder getProfileEventBuilder() { - return getProfileEventFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder() { - if ((eventCase_ == 6) && (profileEventBuilder_ != null)) { - return profileEventBuilder_.getMessageOrBuilder(); - } else { - if (eventCase_ == 6) { - return (com.google.cloud.talent.v4beta1.ProfileEvent) event_; - } - return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); - } - } - /** - * - * - *
-     * An event issued when a profile searcher interacts with the application
-     * that implements Cloud Talent Solution.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ProfileEvent, - com.google.cloud.talent.v4beta1.ProfileEvent.Builder, - com.google.cloud.talent.v4beta1.ProfileEventOrBuilder> - getProfileEventFieldBuilder() { - if (profileEventBuilder_ == null) { - if (!(eventCase_ == 6)) { - event_ = com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); - } - profileEventBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ProfileEvent, - com.google.cloud.talent.v4beta1.ProfileEvent.Builder, - com.google.cloud.talent.v4beta1.ProfileEventOrBuilder>( - (com.google.cloud.talent.v4beta1.ProfileEvent) event_, - getParentForChildren(), - isClean()); - event_ = null; - } - eventCase_ = 6; - onChanged(); - ; - return profileEventBuilder_; - } - private java.lang.Object eventNotes_ = ""; /** * diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java index 6934e0aa..1be2def8 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java @@ -153,44 +153,6 @@ public interface ClientEventOrBuilder */ com.google.cloud.talent.v4beta1.JobEventOrBuilder getJobEventOrBuilder(); - /** - * - * - *
-   * An event issued when a profile searcher interacts with the application
-   * that implements Cloud Talent Solution.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * - * @return Whether the profileEvent field is set. - */ - boolean hasProfileEvent(); - /** - * - * - *
-   * An event issued when a profile searcher interacts with the application
-   * that implements Cloud Talent Solution.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - * - * @return The profileEvent. - */ - com.google.cloud.talent.v4beta1.ProfileEvent getProfileEvent(); - /** - * - * - *
-   * An event issued when a profile searcher interacts with the application
-   * that implements Cloud Talent Solution.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileEvent profile_event = 6; - */ - com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBuilder(); - /** * * diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java index 4e0c4774..dbe85a81 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java @@ -67,22 +67,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Certification_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Skill_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Interview_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Interview_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Rating_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Rating_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_talent_v4beta1_BatchOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -100,163 +84,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\022\033google.cloud.talent.v4beta1\032\037google/" + "api/field_behavior.proto\032\037google/protobu" + "f/timestamp.proto\032\036google/protobuf/wrapp" - + "ers.proto\032\026google/type/date.proto\032\030googl" - + "e/type/latlng.proto\032\027google/type/money.p" - + "roto\032 google/type/postal_address.proto\032\033" - + "google/type/timeofday.proto\032\034google/api/" - + "annotations.proto\"n\n\016TimestampRange\022.\n\ns" - + "tart_time\030\001 \001(\0132\032.google.protobuf.Timest" - + "amp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf." - + "Timestamp\"\267\003\n\010Location\022I\n\rlocation_type\030" - + "\001 \001(\01622.google.cloud.talent.v4beta1.Loca" - + "tion.LocationType\0222\n\016postal_address\030\002 \001(" - + "\0132\032.google.type.PostalAddress\022$\n\007lat_lng" - + "\030\003 \001(\0132\023.google.type.LatLng\022\024\n\014radius_mi" - + "les\030\004 \001(\001\"\357\001\n\014LocationType\022\035\n\031LOCATION_T" - + "YPE_UNSPECIFIED\020\000\022\013\n\007COUNTRY\020\001\022\027\n\023ADMINI" - + "STRATIVE_AREA\020\002\022\033\n\027SUB_ADMINISTRATIVE_AR" - + "EA\020\003\022\014\n\010LOCALITY\020\004\022\017\n\013POSTAL_CODE\020\005\022\020\n\014S" - + "UB_LOCALITY\020\006\022\022\n\016SUB_LOCALITY_1\020\007\022\022\n\016SUB" - + "_LOCALITY_2\020\010\022\020\n\014NEIGHBORHOOD\020\t\022\022\n\016STREE" - + "T_ADDRESS\020\n\"\237\001\n\017RequestMetadata\022\016\n\006domai" - + "n\030\001 \001(\t\022\022\n\nsession_id\030\002 \001(\t\022\017\n\007user_id\030\003" - + " \001(\t\022\031\n\021allow_missing_ids\030\004 \001(\010\022<\n\013devic" - + "e_info\030\005 \001(\0132\'.google.cloud.talent.v4bet" - + "a1.DeviceInfo\"&\n\020ResponseMetadata\022\022\n\nreq" - + "uest_id\030\001 \001(\t\"\317\001\n\nDeviceInfo\022G\n\013device_t" - + "ype\030\001 \001(\01622.google.cloud.talent.v4beta1." - + "DeviceInfo.DeviceType\022\n\n\002id\030\002 \001(\t\"l\n\nDev" - + "iceType\022\033\n\027DEVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003" - + "WEB\020\001\022\016\n\nMOBILE_WEB\020\002\022\013\n\007ANDROID\020\003\022\007\n\003IO" - + "S\020\004\022\007\n\003BOT\020\005\022\t\n\005OTHER\020\006\"Q\n\017CustomAttribu" - + "te\022\025\n\rstring_values\030\001 \003(\t\022\023\n\013long_values" - + "\030\002 \003(\003\022\022\n\nfilterable\030\003 \001(\010\"W\n\022SpellingCo" - + "rrection\022\021\n\tcorrected\030\001 \001(\010\022\026\n\016corrected" - + "_text\030\002 \001(\t\022\026\n\016corrected_html\030\003 \001(\t\"\246\t\n\020" - + "CompensationInfo\022P\n\007entries\030\001 \003(\0132?.goog" - + "le.cloud.talent.v4beta1.CompensationInfo" - + ".CompensationEntry\022p\n\"annualized_base_co" - + "mpensation_range\030\002 \001(\0132?.google.cloud.ta" - + "lent.v4beta1.CompensationInfo.Compensati" - + "onRangeB\003\340A\003\022q\n#annualized_total_compens" - + "ation_range\030\003 \001(\0132?.google.cloud.talent." - + "v4beta1.CompensationInfo.CompensationRan" - + "geB\003\340A\003\032\222\003\n\021CompensationEntry\022L\n\004type\030\001 " - + "\001(\0162>.google.cloud.talent.v4beta1.Compen" - + "sationInfo.CompensationType\022L\n\004unit\030\002 \001(" - + "\0162>.google.cloud.talent.v4beta1.Compensa" - + "tionInfo.CompensationUnit\022$\n\006amount\030\003 \001(" - + "\0132\022.google.type.MoneyH\000\022P\n\005range\030\004 \001(\0132?" - + ".google.cloud.talent.v4beta1.Compensatio" - + "nInfo.CompensationRangeH\000\022\023\n\013description" - + "\030\005 \001(\t\022=\n\027expected_units_per_year\030\006 \001(\0132" - + "\034.google.protobuf.DoubleValueB\025\n\023compens" - + "ation_amount\032o\n\021CompensationRange\022,\n\020max" - + "_compensation\030\002 \001(\0132\022.google.type.Money\022" - + ",\n\020min_compensation\030\001 \001(\0132\022.google.type." - + "Money\"\265\001\n\020CompensationType\022!\n\035COMPENSATI" - + "ON_TYPE_UNSPECIFIED\020\000\022\010\n\004BASE\020\001\022\t\n\005BONUS" - + "\020\002\022\021\n\rSIGNING_BONUS\020\003\022\n\n\006EQUITY\020\004\022\022\n\016PRO" - + "FIT_SHARING\020\005\022\017\n\013COMMISSIONS\020\006\022\010\n\004TIPS\020\007" - + "\022\033\n\027OTHER_COMPENSATION_TYPE\020\010\"\234\001\n\020Compen" - + "sationUnit\022!\n\035COMPENSATION_UNIT_UNSPECIF" - + "IED\020\000\022\n\n\006HOURLY\020\001\022\t\n\005DAILY\020\002\022\n\n\006WEEKLY\020\003" - + "\022\013\n\007MONTHLY\020\004\022\n\n\006YEARLY\020\005\022\014\n\010ONE_TIME\020\006\022" - + "\033\n\027OTHER_COMPENSATION_UNIT\020\007\"\236\001\n\rCertifi" - + "cation\022\024\n\014display_name\030\001 \001(\t\022\'\n\014acquire_" - + "date\030\002 \001(\0132\021.google.type.Date\022&\n\013expire_" - + "date\030\003 \001(\0132\021.google.type.Date\022\021\n\tauthori" - + "ty\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\"\275\001\n\005Skill\022" - + "\024\n\014display_name\030\001 \001(\t\022)\n\016last_used_date\030" - + "\002 \001(\0132\021.google.type.Date\022A\n\005level\030\003 \001(\0162" - + "2.google.cloud.talent.v4beta1.SkillProfi" - + "ciencyLevel\022\017\n\007context\030\004 \001(\t\022\037\n\022skill_na" - + "me_snippet\030\005 \001(\tB\003\340A\003\"|\n\tInterview\0223\n\006ra" - + "ting\030\006 \001(\0132#.google.cloud.talent.v4beta1" - + ".Rating\022:\n\007outcome\030\007 \001(\0162$.google.cloud." - + "talent.v4beta1.OutcomeB\003\340A\002\"E\n\006Rating\022\017\n" - + "\007overall\030\001 \001(\001\022\013\n\003min\030\002 \001(\001\022\013\n\003max\030\003 \001(\001" - + "\022\020\n\010interval\030\004 \001(\001\"\314\003\n\026BatchOperationMet" - + "adata\022H\n\005state\030\001 \001(\01629.google.cloud.tale" - + "nt.v4beta1.BatchOperationMetadata.State\022" - + "\031\n\021state_description\030\002 \001(\t\022\025\n\rsuccess_co" - + "unt\030\003 \001(\005\022\025\n\rfailure_count\030\004 \001(\005\022\023\n\013tota" - + "l_count\030\005 \001(\005\022/\n\013create_time\030\006 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022/\n\013update_time\030\007 " - + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" - + "ime\030\010 \001(\0132\032.google.protobuf.Timestamp\"z\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014INITIAL" - + "IZING\020\001\022\016\n\nPROCESSING\020\002\022\r\n\tSUCCEEDED\020\003\022\n" - + "\n\006FAILED\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCANCELLED\020" - + "\006*y\n\013CompanySize\022\034\n\030COMPANY_SIZE_UNSPECI" - + "FIED\020\000\022\010\n\004MINI\020\001\022\t\n\005SMALL\020\002\022\013\n\007SMEDIUM\020\003" - + "\022\n\n\006MEDIUM\020\004\022\007\n\003BIG\020\005\022\n\n\006BIGGER\020\006\022\t\n\005GIA" - + "NT\020\007*\342\001\n\nJobBenefit\022\033\n\027JOB_BENEFIT_UNSPE" - + "CIFIED\020\000\022\016\n\nCHILD_CARE\020\001\022\n\n\006DENTAL\020\002\022\024\n\020" - + "DOMESTIC_PARTNER\020\003\022\022\n\016FLEXIBLE_HOURS\020\004\022\013" - + "\n\007MEDICAL\020\005\022\022\n\016LIFE_INSURANCE\020\006\022\022\n\016PAREN" - + "TAL_LEAVE\020\007\022\023\n\017RETIREMENT_PLAN\020\010\022\r\n\tSICK" - + "_DAYS\020\t\022\014\n\010VACATION\020\n\022\n\n\006VISION\020\013*\216\002\n\nDe" - + "greeType\022\033\n\027DEGREE_TYPE_UNSPECIFIED\020\000\022\025\n" - + "\021PRIMARY_EDUCATION\020\001\022\035\n\031LOWER_SECONDARY_" - + "EDUCATION\020\002\022\035\n\031UPPER_SECONDARY_EDUCATION" - + "\020\003\022\034\n\030ADULT_REMEDIAL_EDUCATION\020\004\022\034\n\030ASSO" - + "CIATES_OR_EQUIVALENT\020\005\022\033\n\027BACHELORS_OR_E" - + "QUIVALENT\020\006\022\031\n\025MASTERS_OR_EQUIVALENT\020\007\022\032" - + "\n\026DOCTORAL_OR_EQUIVALENT\020\010*\334\001\n\016Employmen" - + "tType\022\037\n\033EMPLOYMENT_TYPE_UNSPECIFIED\020\000\022\r" - + "\n\tFULL_TIME\020\001\022\r\n\tPART_TIME\020\002\022\016\n\nCONTRACT" - + "OR\020\003\022\024\n\020CONTRACT_TO_HIRE\020\004\022\r\n\tTEMPORARY\020" - + "\005\022\n\n\006INTERN\020\006\022\r\n\tVOLUNTEER\020\007\022\014\n\010PER_DIEM" - + "\020\010\022\022\n\016FLY_IN_FLY_OUT\020\t\022\031\n\025OTHER_EMPLOYME" - + "NT_TYPE\020\n*q\n\010JobLevel\022\031\n\025JOB_LEVEL_UNSPE" - + "CIFIED\020\000\022\017\n\013ENTRY_LEVEL\020\001\022\017\n\013EXPERIENCED" - + "\020\002\022\013\n\007MANAGER\020\003\022\014\n\010DIRECTOR\020\004\022\r\n\tEXECUTI" - + "VE\020\005*\272\006\n\013JobCategory\022\034\n\030JOB_CATEGORY_UNS" - + "PECIFIED\020\000\022\032\n\026ACCOUNTING_AND_FINANCE\020\001\022\035" - + "\n\031ADMINISTRATIVE_AND_OFFICE\020\002\022\035\n\031ADVERTI" - + "SING_AND_MARKETING\020\003\022\017\n\013ANIMAL_CARE\020\004\022\032\n" - + "\026ART_FASHION_AND_DESIGN\020\005\022\027\n\023BUSINESS_OP" - + "ERATIONS\020\006\022\033\n\027CLEANING_AND_FACILITIES\020\007\022" - + "\023\n\017COMPUTER_AND_IT\020\010\022\020\n\014CONSTRUCTION\020\t\022\024" - + "\n\020CUSTOMER_SERVICE\020\n\022\r\n\tEDUCATION\020\013\022\034\n\030E" - + "NTERTAINMENT_AND_TRAVEL\020\014\022\030\n\024FARMING_AND" - + "_OUTDOORS\020\r\022\016\n\nHEALTHCARE\020\016\022\023\n\017HUMAN_RES" - + "OURCES\020\017\022\'\n#INSTALLATION_MAINTENANCE_AND" - + "_REPAIR\020\020\022\t\n\005LEGAL\020\021\022\016\n\nMANAGEMENT\020\022\022\037\n\033" - + "MANUFACTURING_AND_WAREHOUSE\020\023\022$\n MEDIA_C" - + "OMMUNICATIONS_AND_WRITING\020\024\022\026\n\022OIL_GAS_A" - + "ND_MINING\020\025\022\036\n\032PERSONAL_CARE_AND_SERVICE" - + "S\020\026\022\027\n\023PROTECTIVE_SERVICES\020\027\022\017\n\013REAL_EST" - + "ATE\020\030\022\036\n\032RESTAURANT_AND_HOSPITALITY\020\031\022\024\n" - + "\020SALES_AND_RETAIL\020\032\022\033\n\027SCIENCE_AND_ENGIN" - + "EERING\020\033\022\"\n\036SOCIAL_SERVICES_AND_NON_PROF" - + "IT\020\034\022!\n\035SPORTS_FITNESS_AND_RECREATION\020\035\022" - + " \n\034TRANSPORTATION_AND_LOGISTICS\020\036*e\n\rPos" - + "tingRegion\022\036\n\032POSTING_REGION_UNSPECIFIED" - + "\020\000\022\027\n\023ADMINISTRATIVE_AREA\020\001\022\n\n\006NATION\020\002\022" - + "\017\n\013TELECOMMUTE\020\003*n\n\nVisibility\022\032\n\026VISIBI" - + "LITY_UNSPECIFIED\020\000\022\020\n\014ACCOUNT_ONLY\020\001\022\026\n\022" - + "SHARED_WITH_GOOGLE\020\002\022\026\n\022SHARED_WITH_PUBL" - + "IC\020\003\032\002\030\001*Z\n\020ContactInfoUsage\022\"\n\036CONTACT_" - + "INFO_USAGE_UNSPECIFIED\020\000\022\014\n\010PERSONAL\020\001\022\010" - + "\n\004WORK\020\002\022\n\n\006SCHOOL\020\003*q\n\020HtmlSanitization" - + "\022!\n\035HTML_SANITIZATION_UNSPECIFIED\020\000\022\036\n\032H" - + "TML_SANITIZATION_DISABLED\020\001\022\032\n\026SIMPLE_FO" - + "RMATTING_ONLY\020\002*c\n\rCommuteMethod\022\036\n\032COMM" - + "UTE_METHOD_UNSPECIFIED\020\000\022\013\n\007DRIVING\020\001\022\013\n" - + "\007TRANSIT\020\002\022\013\n\007WALKING\020\003\022\013\n\007CYCLING\020\004*\242\001\n" - + "\025SkillProficiencyLevel\022\'\n#SKILL_PROFICIE" - + "NCY_LEVEL_UNSPECIFIED\020\000\022\r\n\tUNSKILLED\020\006\022\031" - + "\n\025FUNDAMENTAL_AWARENESS\020\001\022\n\n\006NOVICE\020\002\022\020\n" - + "\014INTERMEDIATE\020\003\022\014\n\010ADVANCED\020\004\022\n\n\006EXPERT\020" - + "\005*f\n\007Outcome\022\027\n\023OUTCOME_UNSPECIFIED\020\000\022\014\n" - + "\010POSITIVE\020\001\022\013\n\007NEUTRAL\020\002\022\014\n\010NEGATIVE\020\003\022\031" - + "\n\025OUTCOME_NOT_AVAILABLE\020\004*\227\001\n\026Availabili" - + "tySignalType\022(\n$AVAILABILITY_SIGNAL_TYPE" - + "_UNSPECIFIED\020\000\022\023\n\017JOB_APPLICATION\020\001\022\021\n\rR" - + "ESUME_UPDATE\020\002\022\024\n\020CANDIDATE_UPDATE\020\003\022\025\n\021" - + "CLIENT_SUBMISSION\020\004By\n\037com.google.cloud." + + "ers.proto\032\030google/type/latlng.proto\032\027goo" + + "gle/type/money.proto\032 google/type/postal" + + "_address.proto\"n\n\016TimestampRange\022.\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\"\267\003\n\010Location\022I\n\rlocation_type\030\001 \001" + + "(\01622.google.cloud.talent.v4beta1.Locatio" + + "n.LocationType\0222\n\016postal_address\030\002 \001(\0132\032" + + ".google.type.PostalAddress\022$\n\007lat_lng\030\003 " + + "\001(\0132\023.google.type.LatLng\022\024\n\014radius_miles" + + "\030\004 \001(\001\"\357\001\n\014LocationType\022\035\n\031LOCATION_TYPE" + + "_UNSPECIFIED\020\000\022\013\n\007COUNTRY\020\001\022\027\n\023ADMINISTR" + + "ATIVE_AREA\020\002\022\033\n\027SUB_ADMINISTRATIVE_AREA\020" + + "\003\022\014\n\010LOCALITY\020\004\022\017\n\013POSTAL_CODE\020\005\022\020\n\014SUB_" + + "LOCALITY\020\006\022\022\n\016SUB_LOCALITY_1\020\007\022\022\n\016SUB_LO" + + "CALITY_2\020\010\022\020\n\014NEIGHBORHOOD\020\t\022\022\n\016STREET_A" + + "DDRESS\020\n\"\237\001\n\017RequestMetadata\022\016\n\006domain\030\001" + + " \001(\t\022\022\n\nsession_id\030\002 \001(\t\022\017\n\007user_id\030\003 \001(" + + "\t\022\031\n\021allow_missing_ids\030\004 \001(\010\022<\n\013device_i" + + "nfo\030\005 \001(\0132\'.google.cloud.talent.v4beta1." + + "DeviceInfo\"&\n\020ResponseMetadata\022\022\n\nreques" + + "t_id\030\001 \001(\t\"\317\001\n\nDeviceInfo\022G\n\013device_type" + + "\030\001 \001(\01622.google.cloud.talent.v4beta1.Dev" + + "iceInfo.DeviceType\022\n\n\002id\030\002 \001(\t\"l\n\nDevice" + + "Type\022\033\n\027DEVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003WEB" + + "\020\001\022\016\n\nMOBILE_WEB\020\002\022\013\n\007ANDROID\020\003\022\007\n\003IOS\020\004" + + "\022\007\n\003BOT\020\005\022\t\n\005OTHER\020\006\"m\n\017CustomAttribute\022" + + "\025\n\rstring_values\030\001 \003(\t\022\023\n\013long_values\030\002 " + + "\003(\003\022\022\n\nfilterable\030\003 \001(\010\022\032\n\022keyword_searc" + + "hable\030\004 \001(\010\"W\n\022SpellingCorrection\022\021\n\tcor" + + "rected\030\001 \001(\010\022\026\n\016corrected_text\030\002 \001(\t\022\026\n\016" + + "corrected_html\030\003 \001(\t\"\246\t\n\020CompensationInf" + + "o\022P\n\007entries\030\001 \003(\0132?.google.cloud.talent" + + ".v4beta1.CompensationInfo.CompensationEn" + + "try\022p\n\"annualized_base_compensation_rang" + + "e\030\002 \001(\0132?.google.cloud.talent.v4beta1.Co" + + "mpensationInfo.CompensationRangeB\003\340A\003\022q\n" + + "#annualized_total_compensation_range\030\003 \001" + + "(\0132?.google.cloud.talent.v4beta1.Compens" + + "ationInfo.CompensationRangeB\003\340A\003\032\222\003\n\021Com" + + "pensationEntry\022L\n\004type\030\001 \001(\0162>.google.cl" + + "oud.talent.v4beta1.CompensationInfo.Comp" + + "ensationType\022L\n\004unit\030\002 \001(\0162>.google.clou" + + "d.talent.v4beta1.CompensationInfo.Compen" + + "sationUnit\022$\n\006amount\030\003 \001(\0132\022.google.type" + + ".MoneyH\000\022P\n\005range\030\004 \001(\0132?.google.cloud.t" + + "alent.v4beta1.CompensationInfo.Compensat" + + "ionRangeH\000\022\023\n\013description\030\005 \001(\t\022=\n\027expec" + + "ted_units_per_year\030\006 \001(\0132\034.google.protob" + + "uf.DoubleValueB\025\n\023compensation_amount\032o\n" + + "\021CompensationRange\022,\n\020max_compensation\030\002" + + " \001(\0132\022.google.type.Money\022,\n\020min_compensa" + + "tion\030\001 \001(\0132\022.google.type.Money\"\265\001\n\020Compe" + + "nsationType\022!\n\035COMPENSATION_TYPE_UNSPECI" + + "FIED\020\000\022\010\n\004BASE\020\001\022\t\n\005BONUS\020\002\022\021\n\rSIGNING_B" + + "ONUS\020\003\022\n\n\006EQUITY\020\004\022\022\n\016PROFIT_SHARING\020\005\022\017" + + "\n\013COMMISSIONS\020\006\022\010\n\004TIPS\020\007\022\033\n\027OTHER_COMPE" + + "NSATION_TYPE\020\010\"\234\001\n\020CompensationUnit\022!\n\035C" + + "OMPENSATION_UNIT_UNSPECIFIED\020\000\022\n\n\006HOURLY" + + "\020\001\022\t\n\005DAILY\020\002\022\n\n\006WEEKLY\020\003\022\013\n\007MONTHLY\020\004\022\n" + + "\n\006YEARLY\020\005\022\014\n\010ONE_TIME\020\006\022\033\n\027OTHER_COMPEN" + + "SATION_UNIT\020\007\"\314\003\n\026BatchOperationMetadata" + + "\022H\n\005state\030\001 \001(\01629.google.cloud.talent.v4" + + "beta1.BatchOperationMetadata.State\022\031\n\021st" + + "ate_description\030\002 \001(\t\022\025\n\rsuccess_count\030\003" + + " \001(\005\022\025\n\rfailure_count\030\004 \001(\005\022\023\n\013total_cou" + + "nt\030\005 \001(\005\022/\n\013create_time\030\006 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\007 \001(\0132\032" + + ".google.protobuf.Timestamp\022,\n\010end_time\030\010" + + " \001(\0132\032.google.protobuf.Timestamp\"z\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\020\n\014INITIALIZING" + + "\020\001\022\016\n\nPROCESSING\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAI" + + "LED\020\004\022\016\n\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006*y\n\013" + + "CompanySize\022\034\n\030COMPANY_SIZE_UNSPECIFIED\020" + + "\000\022\010\n\004MINI\020\001\022\t\n\005SMALL\020\002\022\013\n\007SMEDIUM\020\003\022\n\n\006M" + + "EDIUM\020\004\022\007\n\003BIG\020\005\022\n\n\006BIGGER\020\006\022\t\n\005GIANT\020\007*" + + "\342\001\n\nJobBenefit\022\033\n\027JOB_BENEFIT_UNSPECIFIE" + + "D\020\000\022\016\n\nCHILD_CARE\020\001\022\n\n\006DENTAL\020\002\022\024\n\020DOMES" + + "TIC_PARTNER\020\003\022\022\n\016FLEXIBLE_HOURS\020\004\022\013\n\007MED" + + "ICAL\020\005\022\022\n\016LIFE_INSURANCE\020\006\022\022\n\016PARENTAL_L" + + "EAVE\020\007\022\023\n\017RETIREMENT_PLAN\020\010\022\r\n\tSICK_DAYS" + + "\020\t\022\014\n\010VACATION\020\n\022\n\n\006VISION\020\013*\216\002\n\nDegreeT" + + "ype\022\033\n\027DEGREE_TYPE_UNSPECIFIED\020\000\022\025\n\021PRIM" + + "ARY_EDUCATION\020\001\022\035\n\031LOWER_SECONDARY_EDUCA" + + "TION\020\002\022\035\n\031UPPER_SECONDARY_EDUCATION\020\003\022\034\n" + + "\030ADULT_REMEDIAL_EDUCATION\020\004\022\034\n\030ASSOCIATE" + + "S_OR_EQUIVALENT\020\005\022\033\n\027BACHELORS_OR_EQUIVA" + + "LENT\020\006\022\031\n\025MASTERS_OR_EQUIVALENT\020\007\022\032\n\026DOC" + + "TORAL_OR_EQUIVALENT\020\010*\334\001\n\016EmploymentType" + + "\022\037\n\033EMPLOYMENT_TYPE_UNSPECIFIED\020\000\022\r\n\tFUL" + + "L_TIME\020\001\022\r\n\tPART_TIME\020\002\022\016\n\nCONTRACTOR\020\003\022" + + "\024\n\020CONTRACT_TO_HIRE\020\004\022\r\n\tTEMPORARY\020\005\022\n\n\006" + + "INTERN\020\006\022\r\n\tVOLUNTEER\020\007\022\014\n\010PER_DIEM\020\010\022\022\n" + + "\016FLY_IN_FLY_OUT\020\t\022\031\n\025OTHER_EMPLOYMENT_TY" + + "PE\020\n*q\n\010JobLevel\022\031\n\025JOB_LEVEL_UNSPECIFIE" + + "D\020\000\022\017\n\013ENTRY_LEVEL\020\001\022\017\n\013EXPERIENCED\020\002\022\013\n" + + "\007MANAGER\020\003\022\014\n\010DIRECTOR\020\004\022\r\n\tEXECUTIVE\020\005*" + + "\272\006\n\013JobCategory\022\034\n\030JOB_CATEGORY_UNSPECIF" + + "IED\020\000\022\032\n\026ACCOUNTING_AND_FINANCE\020\001\022\035\n\031ADM" + + "INISTRATIVE_AND_OFFICE\020\002\022\035\n\031ADVERTISING_" + + "AND_MARKETING\020\003\022\017\n\013ANIMAL_CARE\020\004\022\032\n\026ART_" + + "FASHION_AND_DESIGN\020\005\022\027\n\023BUSINESS_OPERATI" + + "ONS\020\006\022\033\n\027CLEANING_AND_FACILITIES\020\007\022\023\n\017CO" + + "MPUTER_AND_IT\020\010\022\020\n\014CONSTRUCTION\020\t\022\024\n\020CUS" + + "TOMER_SERVICE\020\n\022\r\n\tEDUCATION\020\013\022\034\n\030ENTERT" + + "AINMENT_AND_TRAVEL\020\014\022\030\n\024FARMING_AND_OUTD" + + "OORS\020\r\022\016\n\nHEALTHCARE\020\016\022\023\n\017HUMAN_RESOURCE" + + "S\020\017\022\'\n#INSTALLATION_MAINTENANCE_AND_REPA" + + "IR\020\020\022\t\n\005LEGAL\020\021\022\016\n\nMANAGEMENT\020\022\022\037\n\033MANUF" + + "ACTURING_AND_WAREHOUSE\020\023\022$\n MEDIA_COMMUN" + + "ICATIONS_AND_WRITING\020\024\022\026\n\022OIL_GAS_AND_MI" + + "NING\020\025\022\036\n\032PERSONAL_CARE_AND_SERVICES\020\026\022\027" + + "\n\023PROTECTIVE_SERVICES\020\027\022\017\n\013REAL_ESTATE\020\030" + + "\022\036\n\032RESTAURANT_AND_HOSPITALITY\020\031\022\024\n\020SALE" + + "S_AND_RETAIL\020\032\022\033\n\027SCIENCE_AND_ENGINEERIN" + + "G\020\033\022\"\n\036SOCIAL_SERVICES_AND_NON_PROFIT\020\034\022" + + "!\n\035SPORTS_FITNESS_AND_RECREATION\020\035\022 \n\034TR" + + "ANSPORTATION_AND_LOGISTICS\020\036*e\n\rPostingR" + + "egion\022\036\n\032POSTING_REGION_UNSPECIFIED\020\000\022\027\n" + + "\023ADMINISTRATIVE_AREA\020\001\022\n\n\006NATION\020\002\022\017\n\013TE" + + "LECOMMUTE\020\003*n\n\nVisibility\022\032\n\026VISIBILITY_" + + "UNSPECIFIED\020\000\022\020\n\014ACCOUNT_ONLY\020\001\022\026\n\022SHARE" + + "D_WITH_GOOGLE\020\002\022\026\n\022SHARED_WITH_PUBLIC\020\003\032" + + "\002\030\001*q\n\020HtmlSanitization\022!\n\035HTML_SANITIZA" + + "TION_UNSPECIFIED\020\000\022\036\n\032HTML_SANITIZATION_" + + "DISABLED\020\001\022\032\n\026SIMPLE_FORMATTING_ONLY\020\002*c" + + "\n\rCommuteMethod\022\036\n\032COMMUTE_METHOD_UNSPEC" + + "IFIED\020\000\022\013\n\007DRIVING\020\001\022\013\n\007TRANSIT\020\002\022\013\n\007WAL" + + "KING\020\003\022\013\n\007CYCLING\020\004By\n\037com.google.cloud." + "talent.v4beta1B\013CommonProtoP\001ZAgoogle.go" + "lang.org/genproto/googleapis/cloud/talen" + "t/v4beta1;talent\242\002\003CTSb\006proto3" @@ -268,12 +224,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), com.google.type.LatLngProto.getDescriptor(), com.google.type.MoneyProto.getDescriptor(), com.google.type.PostalAddressProto.getDescriptor(), - com.google.type.TimeOfDayProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor = getDescriptor().getMessageTypes().get(0); @@ -321,7 +274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_CustomAttribute_descriptor, new java.lang.String[] { - "StringValues", "LongValues", "Filterable", + "StringValues", "LongValues", "Filterable", "KeywordSearchable", }); internal_static_google_cloud_talent_v4beta1_SpellingCorrection_descriptor = getDescriptor().getMessageTypes().get(6); @@ -365,40 +318,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MaxCompensation", "MinCompensation", }); - internal_static_google_cloud_talent_v4beta1_Certification_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Certification_descriptor, - new java.lang.String[] { - "DisplayName", "AcquireDate", "ExpireDate", "Authority", "Description", - }); - internal_static_google_cloud_talent_v4beta1_Skill_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Skill_descriptor, - new java.lang.String[] { - "DisplayName", "LastUsedDate", "Level", "Context", "SkillNameSnippet", - }); - internal_static_google_cloud_talent_v4beta1_Interview_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_talent_v4beta1_Interview_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Interview_descriptor, - new java.lang.String[] { - "Rating", "Outcome", - }); - internal_static_google_cloud_talent_v4beta1_Rating_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_talent_v4beta1_Rating_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Rating_descriptor, - new java.lang.String[] { - "Overall", "Min", "Max", "Interval", - }); internal_static_google_cloud_talent_v4beta1_BatchOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_talent_v4beta1_BatchOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_BatchOperationMetadata_descriptor, @@ -420,12 +341,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); com.google.type.LatLngProto.getDescriptor(); com.google.type.MoneyProto.getDescriptor(); com.google.type.PostalAddressProto.getDescriptor(); - com.google.type.TimeOfDayProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java index d1a02fdc..d2ac3914 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java @@ -197,7 +197,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(10); + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(9); } private static final CommuteMethod[] VALUES = values(); diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java index a7c4487b..d1abb755 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java @@ -48,27 +48,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\022\033google.cloud.talent.v4beta1\032\037google" + "/api/field_behavior.proto\032\031google/api/re" + "source.proto\032(google/cloud/talent/v4beta" - + "1/common.proto\032\034google/api/annotations.p" - + "roto\"\374\004\n\007Company\022\014\n\004name\030\001 \001(\t\022\031\n\014displa" - + "y_name\030\002 \001(\tB\003\340A\002\022\030\n\013external_id\030\003 \001(\tB\003" - + "\340A\002\0226\n\004size\030\004 \001(\0162(.google.cloud.talent." - + "v4beta1.CompanySize\022\034\n\024headquarters_addr" - + "ess\030\005 \001(\t\022\025\n\rhiring_agency\030\006 \001(\010\022\020\n\010eeo_" - + "text\030\007 \001(\t\022\023\n\013website_uri\030\010 \001(\t\022\027\n\017caree" - + "r_site_uri\030\t \001(\t\022\021\n\timage_uri\030\n \001(\t\0220\n(k" - + "eyword_searchable_job_custom_attributes\030" - + "\013 \003(\t\022K\n\014derived_info\030\014 \001(\01320.google.clo" - + "ud.talent.v4beta1.Company.DerivedInfoB\003\340" - + "A\003\022\026\n\tsuspended\030\r \001(\010B\003\340A\003\032S\n\013DerivedInf" - + "o\022D\n\025headquarters_location\030\001 \001(\0132%.googl" - + "e.cloud.talent.v4beta1.Location:\201\001\352A~\n\033j" - + "obs.googleapis.com/Company\0227projects/{pr" - + "oject}/tenants/{tenant}/companies/{compa" - + "ny}\022&projects/{project}/companies/{compa" - + "ny}B\202\001\n\037com.google.cloud.talent.v4beta1B" - + "\024CompanyResourceProtoP\001ZAgoogle.golang.o" - + "rg/genproto/googleapis/cloud/talent/v4be" - + "ta1;talent\242\002\003CTSb\006proto3" + + "1/common.proto\"\374\004\n\007Company\022\014\n\004name\030\001 \001(\t" + + "\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\030\n\013external_" + + "id\030\003 \001(\tB\003\340A\002\0226\n\004size\030\004 \001(\0162(.google.clo" + + "ud.talent.v4beta1.CompanySize\022\034\n\024headqua" + + "rters_address\030\005 \001(\t\022\025\n\rhiring_agency\030\006 \001" + + "(\010\022\020\n\010eeo_text\030\007 \001(\t\022\023\n\013website_uri\030\010 \001(" + + "\t\022\027\n\017career_site_uri\030\t \001(\t\022\021\n\timage_uri\030" + + "\n \001(\t\0220\n(keyword_searchable_job_custom_a" + + "ttributes\030\013 \003(\t\022K\n\014derived_info\030\014 \001(\01320." + + "google.cloud.talent.v4beta1.Company.Deri" + + "vedInfoB\003\340A\003\022\026\n\tsuspended\030\r \001(\010B\003\340A\003\032S\n\013" + + "DerivedInfo\022D\n\025headquarters_location\030\001 \001" + + "(\0132%.google.cloud.talent.v4beta1.Locatio" + + "n:\201\001\352A~\n\033jobs.googleapis.com/Company\0227pr" + + "ojects/{project}/tenants/{tenant}/compan" + + "ies/{company}\022&projects/{project}/compan" + + "ies/{company}B\202\001\n\037com.google.cloud.talen" + + "t.v4beta1B\024CompanyResourceProtoP\001ZAgoogl" + + "e.golang.org/genproto/googleapis/cloud/t" + + "alent/v4beta1;talent\242\002\003CTSb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -77,7 +76,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_talent_v4beta1_Company_descriptor = getDescriptor().getMessageTypes().get(0); @@ -116,7 +114,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java index 63b52425..35802954 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java @@ -50,10 +50,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n4google/cloud/talent/v4beta1/completion" + "_service.proto\022\033google.cloud.talent.v4be" - + "ta1\032\034google/api/annotations.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\032(google/cloud/talent/v4bet" - + "a1/common.proto\032\027google/api/client.proto" + + "ta1\032\034google/api/annotations.proto\032\027googl" + + "e/api/client.proto\032\037google/api/field_beh" + + "avior.proto\032\031google/api/resource.proto\032(" + + "google/cloud/talent/v4beta1/common.proto" + "\"\223\004\n\024CompleteQueryRequest\0223\n\006parent\030\001 \001(" + "\tB#\340A\002\372A\035\022\033jobs.googleapis.com/Company\022\022" + "\n\005query\030\002 \001(\tB\003\340A\002\022\026\n\016language_codes\030\003 \003" @@ -94,10 +94,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), }); internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -135,10 +135,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java deleted file mode 100644 index bdd01fba..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Enum that represents the usage of the contact information.
- * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.ContactInfoUsage} - */ -public enum ContactInfoUsage implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value.
-   * 
- * - * CONTACT_INFO_USAGE_UNSPECIFIED = 0; - */ - CONTACT_INFO_USAGE_UNSPECIFIED(0), - /** - * - * - *
-   * Personal use.
-   * 
- * - * PERSONAL = 1; - */ - PERSONAL(1), - /** - * - * - *
-   * Work use.
-   * 
- * - * WORK = 2; - */ - WORK(2), - /** - * - * - *
-   * School use.
-   * 
- * - * SCHOOL = 3; - */ - SCHOOL(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value.
-   * 
- * - * CONTACT_INFO_USAGE_UNSPECIFIED = 0; - */ - public static final int CONTACT_INFO_USAGE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Personal use.
-   * 
- * - * PERSONAL = 1; - */ - public static final int PERSONAL_VALUE = 1; - /** - * - * - *
-   * Work use.
-   * 
- * - * WORK = 2; - */ - public static final int WORK_VALUE = 2; - /** - * - * - *
-   * School use.
-   * 
- * - * SCHOOL = 3; - */ - public static final int SCHOOL_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ContactInfoUsage valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ContactInfoUsage forNumber(int value) { - switch (value) { - case 0: - return CONTACT_INFO_USAGE_UNSPECIFIED; - case 1: - return PERSONAL; - case 2: - return WORK; - case 3: - return SCHOOL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ContactInfoUsage findValueByNumber(int number) { - return ContactInfoUsage.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(8); - } - - private static final ContactInfoUsage[] VALUES = values(); - - public static ContactInfoUsage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ContactInfoUsage(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ContactInfoUsage) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java deleted file mode 100644 index 2b5065f8..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java +++ /dev/null @@ -1,976 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * The Request of the CreateApplication method.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.CreateApplicationRequest} - */ -public final class CreateApplicationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateApplicationRequest) - CreateApplicationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateApplicationRequest.newBuilder() to construct. - private CreateApplicationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateApplicationRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateApplicationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateApplicationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.talent.v4beta1.Application.Builder subBuilder = null; - if (application_ != null) { - subBuilder = application_.toBuilder(); - } - application_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Application.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(application_); - application_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.CreateApplicationRequest.class, - com.google.cloud.talent.v4beta1.CreateApplicationRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APPLICATION_FIELD_NUMBER = 2; - private com.google.cloud.talent.v4beta1.Application application_; - /** - * - * - *
-   * Required. The application to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the application field is set. - */ - @java.lang.Override - public boolean hasApplication() { - return application_ != null; - } - /** - * - * - *
-   * Required. The application to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The application. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application getApplication() { - return application_ == null - ? com.google.cloud.talent.v4beta1.Application.getDefaultInstance() - : application_; - } - /** - * - * - *
-   * Required. The application to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder() { - return getApplication(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (application_ != null) { - output.writeMessage(2, getApplication()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (application_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getApplication()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateApplicationRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.CreateApplicationRequest other = - (com.google.cloud.talent.v4beta1.CreateApplicationRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasApplication() != other.hasApplication()) return false; - if (hasApplication()) { - if (!getApplication().equals(other.getApplication())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasApplication()) { - hash = (37 * hash) + APPLICATION_FIELD_NUMBER; - hash = (53 * hash) + getApplication().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.CreateApplicationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The Request of the CreateApplication method.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.CreateApplicationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateApplicationRequest) - com.google.cloud.talent.v4beta1.CreateApplicationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.CreateApplicationRequest.class, - com.google.cloud.talent.v4beta1.CreateApplicationRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.CreateApplicationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (applicationBuilder_ == null) { - application_ = null; - } else { - application_ = null; - applicationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateApplicationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateApplicationRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.CreateApplicationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateApplicationRequest build() { - com.google.cloud.talent.v4beta1.CreateApplicationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateApplicationRequest buildPartial() { - com.google.cloud.talent.v4beta1.CreateApplicationRequest result = - new com.google.cloud.talent.v4beta1.CreateApplicationRequest(this); - result.parent_ = parent_; - if (applicationBuilder_ == null) { - result.application_ = application_; - } else { - result.application_ = applicationBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.CreateApplicationRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.CreateApplicationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateApplicationRequest other) { - if (other == com.google.cloud.talent.v4beta1.CreateApplicationRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasApplication()) { - mergeApplication(other.getApplication()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.CreateApplicationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.CreateApplicationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.Application application_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder> - applicationBuilder_; - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the application field is set. - */ - public boolean hasApplication() { - return applicationBuilder_ != null || application_ != null; - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The application. - */ - public com.google.cloud.talent.v4beta1.Application getApplication() { - if (applicationBuilder_ == null) { - return application_ == null - ? com.google.cloud.talent.v4beta1.Application.getDefaultInstance() - : application_; - } else { - return applicationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setApplication(com.google.cloud.talent.v4beta1.Application value) { - if (applicationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - application_ = value; - onChanged(); - } else { - applicationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setApplication( - com.google.cloud.talent.v4beta1.Application.Builder builderForValue) { - if (applicationBuilder_ == null) { - application_ = builderForValue.build(); - onChanged(); - } else { - applicationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeApplication(com.google.cloud.talent.v4beta1.Application value) { - if (applicationBuilder_ == null) { - if (application_ != null) { - application_ = - com.google.cloud.talent.v4beta1.Application.newBuilder(application_) - .mergeFrom(value) - .buildPartial(); - } else { - application_ = value; - } - onChanged(); - } else { - applicationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearApplication() { - if (applicationBuilder_ == null) { - application_ = null; - onChanged(); - } else { - application_ = null; - applicationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.Application.Builder getApplicationBuilder() { - - onChanged(); - return getApplicationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder() { - if (applicationBuilder_ != null) { - return applicationBuilder_.getMessageOrBuilder(); - } else { - return application_ == null - ? com.google.cloud.talent.v4beta1.Application.getDefaultInstance() - : application_; - } - } - /** - * - * - *
-     * Required. The application to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder> - getApplicationFieldBuilder() { - if (applicationBuilder_ == null) { - applicationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder>( - getApplication(), getParentForChildren(), isClean()); - application_ = null; - } - return applicationBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateApplicationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateApplicationRequest) - private static final com.google.cloud.talent.v4beta1.CreateApplicationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateApplicationRequest(); - } - - public static com.google.cloud.talent.v4beta1.CreateApplicationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateApplicationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateApplicationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateApplicationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java deleted file mode 100644 index f66f8beb..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface CreateApplicationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateApplicationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The application to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the application field is set. - */ - boolean hasApplication(); - /** - * - * - *
-   * Required. The application to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The application. - */ - com.google.cloud.talent.v4beta1.Application getApplication(); - /** - * - * - *
-   * Required. The application to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java deleted file mode 100644 index 939bf65a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java +++ /dev/null @@ -1,967 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Create profile request.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} - */ -public final class CreateProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CreateProfileRequest) - CreateProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateProfileRequest.newBuilder() to construct. - private CreateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateProfileRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateProfileRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateProfileRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; - if (profile_ != null) { - subBuilder = profile_.toBuilder(); - } - profile_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(profile_); - profile_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.CreateProfileRequest.class, - com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROFILE_FIELD_NUMBER = 2; - private com.google.cloud.talent.v4beta1.Profile profile_; - /** - * - * - *
-   * Required. The profile to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the profile field is set. - */ - @java.lang.Override - public boolean hasProfile() { - return profile_ != null; - } - /** - * - * - *
-   * Required. The profile to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The profile. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile getProfile() { - return profile_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : profile_; - } - /** - * - * - *
-   * Required. The profile to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { - return getProfile(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (profile_ != null) { - output.writeMessage(2, getProfile()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (profile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProfile()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.CreateProfileRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.CreateProfileRequest other = - (com.google.cloud.talent.v4beta1.CreateProfileRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasProfile() != other.hasProfile()) return false; - if (hasProfile()) { - if (!getProfile().equals(other.getProfile())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasProfile()) { - hash = (37 * hash) + PROFILE_FIELD_NUMBER; - hash = (53 * hash) + getProfile().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.CreateProfileRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Create profile request.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.CreateProfileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CreateProfileRequest) - com.google.cloud.talent.v4beta1.CreateProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.CreateProfileRequest.class, - com.google.cloud.talent.v4beta1.CreateProfileRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.CreateProfileRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (profileBuilder_ == null) { - profile_ = null; - } else { - profile_ = null; - profileBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateProfileRequest build() { - com.google.cloud.talent.v4beta1.CreateProfileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateProfileRequest buildPartial() { - com.google.cloud.talent.v4beta1.CreateProfileRequest result = - new com.google.cloud.talent.v4beta1.CreateProfileRequest(this); - result.parent_ = parent_; - if (profileBuilder_ == null) { - result.profile_ = profile_; - } else { - result.profile_ = profileBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.CreateProfileRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.CreateProfileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.CreateProfileRequest other) { - if (other == com.google.cloud.talent.v4beta1.CreateProfileRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasProfile()) { - mergeProfile(other.getProfile()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.CreateProfileRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.CreateProfileRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.Profile profile_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - profileBuilder_; - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the profile field is set. - */ - public boolean hasProfile() { - return profileBuilder_ != null || profile_ != null; - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The profile. - */ - public com.google.cloud.talent.v4beta1.Profile getProfile() { - if (profileBuilder_ == null) { - return profile_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : profile_; - } else { - return profileBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { - if (profileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - profile_ = value; - onChanged(); - } else { - profileBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profileBuilder_ == null) { - profile_ = builderForValue.build(); - onChanged(); - } else { - profileBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { - if (profileBuilder_ == null) { - if (profile_ != null) { - profile_ = - com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) - .mergeFrom(value) - .buildPartial(); - } else { - profile_ = value; - } - onChanged(); - } else { - profileBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearProfile() { - if (profileBuilder_ == null) { - profile_ = null; - onChanged(); - } else { - profile_ = null; - profileBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { - - onChanged(); - return getProfileFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { - if (profileBuilder_ != null) { - return profileBuilder_.getMessageOrBuilder(); - } else { - return profile_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : profile_; - } - } - /** - * - * - *
-     * Required. The profile to be created.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - getProfileFieldBuilder() { - if (profileBuilder_ == null) { - profileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder>( - getProfile(), getParentForChildren(), isClean()); - profile_ = null; - } - return profileBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CreateProfileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CreateProfileRequest) - private static final com.google.cloud.talent.v4beta1.CreateProfileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CreateProfileRequest(); - } - - public static com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateProfileRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.CreateProfileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java deleted file mode 100644 index f848e0b3..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface CreateProfileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CreateProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The profile to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the profile field is set. - */ - boolean hasProfile(); - /** - * - * - *
-   * Required. The profile to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The profile. - */ - com.google.cloud.talent.v4beta1.Profile getProfile(); - /** - * - * - *
-   * Required. The profile to be created.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java index ef42ecab..035cd6b8 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java @@ -110,6 +110,11 @@ private CustomAttribute( filterable_ = input.readBool(); break; } + case 32: + { + keywordSearchable_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -305,8 +310,9 @@ public long getLongValues(int index) { * * *
-   * 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.
    * 
* @@ -319,6 +325,27 @@ public boolean getFilterable() { return filterable_; } + public static final int KEYWORD_SEARCHABLE_FIELD_NUMBER = 4; + private boolean keywordSearchable_; + /** + * + * + *
+   * 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.
+   * 
+ * + * bool keyword_searchable = 4; + * + * @return The keywordSearchable. + */ + @java.lang.Override + public boolean getKeywordSearchable() { + return keywordSearchable_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -347,6 +374,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (filterable_ != false) { output.writeBool(3, filterable_); } + if (keywordSearchable_ != false) { + output.writeBool(4, keywordSearchable_); + } unknownFields.writeTo(output); } @@ -380,6 +410,9 @@ public int getSerializedSize() { if (filterable_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, filterable_); } + if (keywordSearchable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, keywordSearchable_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -399,6 +432,7 @@ public boolean equals(final java.lang.Object obj) { if (!getStringValuesList().equals(other.getStringValuesList())) return false; if (!getLongValuesList().equals(other.getLongValuesList())) return false; if (getFilterable() != other.getFilterable()) return false; + if (getKeywordSearchable() != other.getKeywordSearchable()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -420,6 +454,8 @@ public int hashCode() { } hash = (37 * hash) + FILTERABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFilterable()); + hash = (37 * hash) + KEYWORD_SEARCHABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeywordSearchable()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -571,6 +607,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000002); filterable_ = false; + keywordSearchable_ = false; + return this; } @@ -610,6 +648,7 @@ public com.google.cloud.talent.v4beta1.CustomAttribute buildPartial() { } result.longValues_ = longValues_; result.filterable_ = filterable_; + result.keywordSearchable_ = keywordSearchable_; onBuilt(); return result; } @@ -683,6 +722,9 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.CustomAttribute other) if (other.getFilterable() != false) { setFilterable(other.getFilterable()); } + if (other.getKeywordSearchable() != false) { + setKeywordSearchable(other.getKeywordSearchable()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1097,8 +1139,9 @@ public Builder clearLongValues() { * * *
-     * 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.
      * 
* @@ -1114,8 +1157,9 @@ public boolean 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.
      * 
* @@ -1134,8 +1178,9 @@ public Builder setFilterable(boolean value) { * * *
-     * 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.
      * 
* @@ -1150,6 +1195,67 @@ public Builder clearFilterable() { return this; } + private boolean keywordSearchable_; + /** + * + * + *
+     * 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.
+     * 
+ * + * bool keyword_searchable = 4; + * + * @return The keywordSearchable. + */ + @java.lang.Override + public boolean getKeywordSearchable() { + return keywordSearchable_; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * bool keyword_searchable = 4; + * + * @param value The keywordSearchable to set. + * @return This builder for chaining. + */ + public Builder setKeywordSearchable(boolean value) { + + keywordSearchable_ = value; + onChanged(); + 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.
+     * 
+ * + * bool keyword_searchable = 4; + * + * @return This builder for chaining. + */ + public Builder clearKeywordSearchable() { + + keywordSearchable_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java index f00d2360..9a1302e5 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java @@ -153,8 +153,9 @@ public interface CustomAttributeOrBuilder * * *
-   * 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.
    * 
* @@ -163,4 +164,20 @@ public interface CustomAttributeOrBuilder * @return The filterable. */ boolean getFilterable(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * bool keyword_searchable = 4; + * + * @return The keywordSearchable. + */ + boolean getKeywordSearchable(); } diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java deleted file mode 100644 index 8a9cb958..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a degree pursuing or acquired by a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Degree} - */ -public final class Degree extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Degree) - DegreeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Degree.newBuilder() to construct. - private Degree(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Degree() { - degreeType_ = 0; - degreeName_ = ""; - fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Degree(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Degree( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - degreeType_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - degreeName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - fieldsOfStudy_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Degree.class, - com.google.cloud.talent.v4beta1.Degree.Builder.class); - } - - public static final int DEGREE_TYPE_FIELD_NUMBER = 1; - private int degreeType_; - /** - * - * - *
-   * ISCED degree type.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @return The enum numeric value on the wire for degreeType. - */ - @java.lang.Override - public int getDegreeTypeValue() { - return degreeType_; - } - /** - * - * - *
-   * ISCED degree type.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @return The degreeType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.DegreeType result = - com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); - return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; - } - - public static final int DEGREE_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object degreeName_; - /** - * - * - *
-   * Full Degree name.
-   * For example, "B.S.", "Master of Arts", and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_name = 2; - * - * @return The degreeName. - */ - @java.lang.Override - public java.lang.String getDegreeName() { - java.lang.Object ref = degreeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - degreeName_ = s; - return s; - } - } - /** - * - * - *
-   * Full Degree name.
-   * For example, "B.S.", "Master of Arts", and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_name = 2; - * - * @return The bytes for degreeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDegreeNameBytes() { - java.lang.Object ref = degreeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - degreeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_OF_STUDY_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList fieldsOfStudy_; - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @return A list containing the fieldsOfStudy. - */ - public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { - return fieldsOfStudy_; - } - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @return The count of fieldsOfStudy. - */ - public int getFieldsOfStudyCount() { - return fieldsOfStudy_.size(); - } - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @param index The index of the element to return. - * @return The fieldsOfStudy at the given index. - */ - public java.lang.String getFieldsOfStudy(int index) { - return fieldsOfStudy_.get(index); - } - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @param index The index of the value to return. - * @return The bytes of the fieldsOfStudy at the given index. - */ - public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { - return fieldsOfStudy_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (degreeType_ - != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, degreeType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(degreeName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, degreeName_); - } - for (int i = 0; i < fieldsOfStudy_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fieldsOfStudy_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (degreeType_ - != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, degreeType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(degreeName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, degreeName_); - } - { - int dataSize = 0; - for (int i = 0; i < fieldsOfStudy_.size(); i++) { - dataSize += computeStringSizeNoTag(fieldsOfStudy_.getRaw(i)); - } - size += dataSize; - size += 1 * getFieldsOfStudyList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Degree)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Degree other = (com.google.cloud.talent.v4beta1.Degree) obj; - - if (degreeType_ != other.degreeType_) return false; - if (!getDegreeName().equals(other.getDegreeName())) return false; - if (!getFieldsOfStudyList().equals(other.getFieldsOfStudyList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + degreeType_; - hash = (37 * hash) + DEGREE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDegreeName().hashCode(); - if (getFieldsOfStudyCount() > 0) { - hash = (37 * hash) + FIELDS_OF_STUDY_FIELD_NUMBER; - hash = (53 * hash) + getFieldsOfStudyList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Degree parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Degree parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Degree parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Degree prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a degree pursuing or acquired by a candidate.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Degree} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Degree) - com.google.cloud.talent.v4beta1.DegreeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Degree.class, - com.google.cloud.talent.v4beta1.Degree.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Degree.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - degreeType_ = 0; - - degreeName_ = ""; - - fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Degree_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Degree build() { - com.google.cloud.talent.v4beta1.Degree result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Degree buildPartial() { - com.google.cloud.talent.v4beta1.Degree result = - new com.google.cloud.talent.v4beta1.Degree(this); - int from_bitField0_ = bitField0_; - result.degreeType_ = degreeType_; - result.degreeName_ = degreeName_; - if (((bitField0_ & 0x00000001) != 0)) { - fieldsOfStudy_ = fieldsOfStudy_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.fieldsOfStudy_ = fieldsOfStudy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Degree) { - return mergeFrom((com.google.cloud.talent.v4beta1.Degree) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Degree other) { - if (other == com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) return this; - if (other.degreeType_ != 0) { - setDegreeTypeValue(other.getDegreeTypeValue()); - } - if (!other.getDegreeName().isEmpty()) { - degreeName_ = other.degreeName_; - onChanged(); - } - if (!other.fieldsOfStudy_.isEmpty()) { - if (fieldsOfStudy_.isEmpty()) { - fieldsOfStudy_ = other.fieldsOfStudy_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFieldsOfStudyIsMutable(); - fieldsOfStudy_.addAll(other.fieldsOfStudy_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Degree parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Degree) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int degreeType_ = 0; - /** - * - * - *
-     * ISCED degree type.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @return The enum numeric value on the wire for degreeType. - */ - @java.lang.Override - public int getDegreeTypeValue() { - return degreeType_; - } - /** - * - * - *
-     * ISCED degree type.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @param value The enum numeric value on the wire for degreeType to set. - * @return This builder for chaining. - */ - public Builder setDegreeTypeValue(int value) { - - degreeType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ISCED degree type.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @return The degreeType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.DegreeType result = - com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); - return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * ISCED degree type.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @param value The degreeType to set. - * @return This builder for chaining. - */ - public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { - if (value == null) { - throw new NullPointerException(); - } - - degreeType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * ISCED degree type.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearDegreeType() { - - degreeType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object degreeName_ = ""; - /** - * - * - *
-     * Full Degree name.
-     * For example, "B.S.", "Master of Arts", and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_name = 2; - * - * @return The degreeName. - */ - public java.lang.String getDegreeName() { - java.lang.Object ref = degreeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - degreeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Full Degree name.
-     * For example, "B.S.", "Master of Arts", and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_name = 2; - * - * @return The bytes for degreeName. - */ - public com.google.protobuf.ByteString getDegreeNameBytes() { - java.lang.Object ref = degreeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - degreeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Full Degree name.
-     * For example, "B.S.", "Master of Arts", and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_name = 2; - * - * @param value The degreeName to set. - * @return This builder for chaining. - */ - public Builder setDegreeName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - degreeName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Full Degree name.
-     * For example, "B.S.", "Master of Arts", and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearDegreeName() { - - degreeName_ = getDefaultInstance().getDegreeName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Full Degree name.
-     * For example, "B.S.", "Master of Arts", and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_name = 2; - * - * @param value The bytes for degreeName to set. - * @return This builder for chaining. - */ - public Builder setDegreeNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - degreeName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList fieldsOfStudy_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureFieldsOfStudyIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - fieldsOfStudy_ = new com.google.protobuf.LazyStringArrayList(fieldsOfStudy_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @return A list containing the fieldsOfStudy. - */ - public com.google.protobuf.ProtocolStringList getFieldsOfStudyList() { - return fieldsOfStudy_.getUnmodifiableView(); - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @return The count of fieldsOfStudy. - */ - public int getFieldsOfStudyCount() { - return fieldsOfStudy_.size(); - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @param index The index of the element to return. - * @return The fieldsOfStudy at the given index. - */ - public java.lang.String getFieldsOfStudy(int index) { - return fieldsOfStudy_.get(index); - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @param index The index of the value to return. - * @return The bytes of the fieldsOfStudy at the given index. - */ - public com.google.protobuf.ByteString getFieldsOfStudyBytes(int index) { - return fieldsOfStudy_.getByteString(index); - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @param index The index to set the value at. - * @param value The fieldsOfStudy to set. - * @return This builder for chaining. - */ - public Builder setFieldsOfStudy(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsOfStudyIsMutable(); - fieldsOfStudy_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @param value The fieldsOfStudy to add. - * @return This builder for chaining. - */ - public Builder addFieldsOfStudy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldsOfStudyIsMutable(); - fieldsOfStudy_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @param values The fieldsOfStudy to add. - * @return This builder for chaining. - */ - public Builder addAllFieldsOfStudy(java.lang.Iterable values) { - ensureFieldsOfStudyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldsOfStudy_); - onChanged(); - return this; - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @return This builder for chaining. - */ - public Builder clearFieldsOfStudy() { - fieldsOfStudy_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Fields of study for the degree.
-     * For example, "Computer science", "engineering".
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string fields_of_study = 3; - * - * @param value The bytes of the fieldsOfStudy to add. - * @return This builder for chaining. - */ - public Builder addFieldsOfStudyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFieldsOfStudyIsMutable(); - fieldsOfStudy_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Degree) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Degree) - private static final com.google.cloud.talent.v4beta1.Degree DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Degree(); - } - - public static com.google.cloud.talent.v4beta1.Degree getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Degree parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Degree(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Degree getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java deleted file mode 100644 index 7c61d618..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface DegreeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Degree) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * ISCED degree type.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @return The enum numeric value on the wire for degreeType. - */ - int getDegreeTypeValue(); - /** - * - * - *
-   * ISCED degree type.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 1; - * - * @return The degreeType. - */ - com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); - - /** - * - * - *
-   * Full Degree name.
-   * For example, "B.S.", "Master of Arts", and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_name = 2; - * - * @return The degreeName. - */ - java.lang.String getDegreeName(); - /** - * - * - *
-   * Full Degree name.
-   * For example, "B.S.", "Master of Arts", and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_name = 2; - * - * @return The bytes for degreeName. - */ - com.google.protobuf.ByteString getDegreeNameBytes(); - - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @return A list containing the fieldsOfStudy. - */ - java.util.List getFieldsOfStudyList(); - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @return The count of fieldsOfStudy. - */ - int getFieldsOfStudyCount(); - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @param index The index of the element to return. - * @return The fieldsOfStudy at the given index. - */ - java.lang.String getFieldsOfStudy(int index); - /** - * - * - *
-   * Fields of study for the degree.
-   * For example, "Computer science", "engineering".
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string fields_of_study = 3; - * - * @param index The index of the value to return. - * @return The bytes of the fieldsOfStudy at the given index. - */ - com.google.protobuf.ByteString getFieldsOfStudyBytes(int index); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java deleted file mode 100644 index 19aeaf8b..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java +++ /dev/null @@ -1,674 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Request to delete a application.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.DeleteApplicationRequest} - */ -public final class DeleteApplicationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteApplicationRequest) - DeleteApplicationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteApplicationRequest.newBuilder() to construct. - private DeleteApplicationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteApplicationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteApplicationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteApplicationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.DeleteApplicationRequest.class, - com.google.cloud.talent.v4beta1.DeleteApplicationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteApplicationRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.DeleteApplicationRequest other = - (com.google.cloud.talent.v4beta1.DeleteApplicationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.DeleteApplicationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request to delete a application.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.DeleteApplicationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteApplicationRequest) - com.google.cloud.talent.v4beta1.DeleteApplicationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.DeleteApplicationRequest.class, - com.google.cloud.talent.v4beta1.DeleteApplicationRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.DeleteApplicationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteApplicationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteApplicationRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.DeleteApplicationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteApplicationRequest build() { - com.google.cloud.talent.v4beta1.DeleteApplicationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteApplicationRequest buildPartial() { - com.google.cloud.talent.v4beta1.DeleteApplicationRequest result = - new com.google.cloud.talent.v4beta1.DeleteApplicationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.DeleteApplicationRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.DeleteApplicationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteApplicationRequest other) { - if (other == com.google.cloud.talent.v4beta1.DeleteApplicationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.DeleteApplicationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.DeleteApplicationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteApplicationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteApplicationRequest) - private static final com.google.cloud.talent.v4beta1.DeleteApplicationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteApplicationRequest(); - } - - public static com.google.cloud.talent.v4beta1.DeleteApplicationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteApplicationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteApplicationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteApplicationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java deleted file mode 100644 index 4b71fc0a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface DeleteApplicationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteApplicationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java deleted file mode 100644 index 68c5ec08..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java +++ /dev/null @@ -1,673 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Delete profile request.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} - */ -public final class DeleteProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) - DeleteProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteProfileRequest.newBuilder() to construct. - private DeleteProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteProfileRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteProfileRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteProfileRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, - com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.DeleteProfileRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.DeleteProfileRequest other = - (com.google.cloud.talent.v4beta1.DeleteProfileRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.DeleteProfileRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Delete profile request.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.DeleteProfileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.DeleteProfileRequest) - com.google.cloud.talent.v4beta1.DeleteProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.DeleteProfileRequest.class, - com.google.cloud.talent.v4beta1.DeleteProfileRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.DeleteProfileRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteProfileRequest build() { - com.google.cloud.talent.v4beta1.DeleteProfileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteProfileRequest buildPartial() { - com.google.cloud.talent.v4beta1.DeleteProfileRequest result = - new com.google.cloud.talent.v4beta1.DeleteProfileRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.DeleteProfileRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.DeleteProfileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.DeleteProfileRequest other) { - if (other == com.google.cloud.talent.v4beta1.DeleteProfileRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.DeleteProfileRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.DeleteProfileRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.DeleteProfileRequest) - private static final com.google.cloud.talent.v4beta1.DeleteProfileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.DeleteProfileRequest(); - } - - public static com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteProfileRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.DeleteProfileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java deleted file mode 100644 index 2bf1a1b1..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface DeleteProfileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.DeleteProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java deleted file mode 100644 index 80c08434..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java +++ /dev/null @@ -1,1090 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Education filter of the search.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} - */ -public final class EducationFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationFilter) - EducationFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use EducationFilter.newBuilder() to construct. - private EducationFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EducationFilter() { - school_ = ""; - fieldOfStudy_ = ""; - degreeType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EducationFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EducationFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - school_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - fieldOfStudy_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - degreeType_ = rawValue; - break; - } - case 48: - { - negated_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EducationFilter.class, - com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); - } - - public static final int SCHOOL_FIELD_NUMBER = 1; - private volatile java.lang.Object school_; - /** - * - * - *
-   * The school name. For example "MIT", "University of California, Berkeley".
-   * 
- * - * string school = 1; - * - * @return The school. - */ - @java.lang.Override - public java.lang.String getSchool() { - java.lang.Object ref = school_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - school_ = s; - return s; - } - } - /** - * - * - *
-   * The school name. For example "MIT", "University of California, Berkeley".
-   * 
- * - * string school = 1; - * - * @return The bytes for school. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSchoolBytes() { - java.lang.Object ref = school_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - school_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_OF_STUDY_FIELD_NUMBER = 2; - private volatile java.lang.Object fieldOfStudy_; - /** - * - * - *
-   * 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".
-   * 
- * - * string field_of_study = 2; - * - * @return The fieldOfStudy. - */ - @java.lang.Override - public java.lang.String getFieldOfStudy() { - java.lang.Object ref = fieldOfStudy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldOfStudy_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * string field_of_study = 2; - * - * @return The bytes for fieldOfStudy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFieldOfStudyBytes() { - java.lang.Object ref = fieldOfStudy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldOfStudy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEGREE_TYPE_FIELD_NUMBER = 3; - private int degreeType_; - /** - * - * - *
-   * 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.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @return The enum numeric value on the wire for degreeType. - */ - @java.lang.Override - public int getDegreeTypeValue() { - return degreeType_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @return The degreeType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.DegreeType result = - com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); - return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; - } - - public static final int NEGATED_FIELD_NUMBER = 6; - private boolean negated_; - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * is excluded.
-   * 
- * - * bool negated = 6; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(school_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, school_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldOfStudy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldOfStudy_); - } - if (degreeType_ - != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, degreeType_); - } - if (negated_ != false) { - output.writeBool(6, negated_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(school_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, school_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldOfStudy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldOfStudy_); - } - if (degreeType_ - != com.google.cloud.talent.v4beta1.DegreeType.DEGREE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, degreeType_); - } - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, negated_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.EducationFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.EducationFilter other = - (com.google.cloud.talent.v4beta1.EducationFilter) obj; - - if (!getSchool().equals(other.getSchool())) return false; - if (!getFieldOfStudy().equals(other.getFieldOfStudy())) return false; - if (degreeType_ != other.degreeType_) return false; - if (getNegated() != other.getNegated()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SCHOOL_FIELD_NUMBER; - hash = (53 * hash) + getSchool().hashCode(); - hash = (37 * hash) + FIELD_OF_STUDY_FIELD_NUMBER; - hash = (53 * hash) + getFieldOfStudy().hashCode(); - hash = (37 * hash) + DEGREE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + degreeType_; - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.EducationFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Education filter of the search.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EducationFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationFilter) - com.google.cloud.talent.v4beta1.EducationFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EducationFilter.class, - com.google.cloud.talent.v4beta1.EducationFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.EducationFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - school_ = ""; - - fieldOfStudy_ = ""; - - degreeType_ = 0; - - negated_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationFilter build() { - com.google.cloud.talent.v4beta1.EducationFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationFilter buildPartial() { - com.google.cloud.talent.v4beta1.EducationFilter result = - new com.google.cloud.talent.v4beta1.EducationFilter(this); - result.school_ = school_; - result.fieldOfStudy_ = fieldOfStudy_; - result.degreeType_ = degreeType_; - result.negated_ = negated_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.EducationFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.EducationFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationFilter other) { - if (other == com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()) - return this; - if (!other.getSchool().isEmpty()) { - school_ = other.school_; - onChanged(); - } - if (!other.getFieldOfStudy().isEmpty()) { - fieldOfStudy_ = other.fieldOfStudy_; - onChanged(); - } - if (other.degreeType_ != 0) { - setDegreeTypeValue(other.getDegreeTypeValue()); - } - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.EducationFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.EducationFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object school_ = ""; - /** - * - * - *
-     * The school name. For example "MIT", "University of California, Berkeley".
-     * 
- * - * string school = 1; - * - * @return The school. - */ - public java.lang.String getSchool() { - java.lang.Object ref = school_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - school_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The school name. For example "MIT", "University of California, Berkeley".
-     * 
- * - * string school = 1; - * - * @return The bytes for school. - */ - public com.google.protobuf.ByteString getSchoolBytes() { - java.lang.Object ref = school_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - school_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The school name. For example "MIT", "University of California, Berkeley".
-     * 
- * - * string school = 1; - * - * @param value The school to set. - * @return This builder for chaining. - */ - public Builder setSchool(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - school_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The school name. For example "MIT", "University of California, Berkeley".
-     * 
- * - * string school = 1; - * - * @return This builder for chaining. - */ - public Builder clearSchool() { - - school_ = getDefaultInstance().getSchool(); - onChanged(); - return this; - } - /** - * - * - *
-     * The school name. For example "MIT", "University of California, Berkeley".
-     * 
- * - * string school = 1; - * - * @param value The bytes for school to set. - * @return This builder for chaining. - */ - public Builder setSchoolBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - school_ = value; - onChanged(); - return this; - } - - private java.lang.Object fieldOfStudy_ = ""; - /** - * - * - *
-     * 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".
-     * 
- * - * string field_of_study = 2; - * - * @return The fieldOfStudy. - */ - public java.lang.String getFieldOfStudy() { - java.lang.Object ref = fieldOfStudy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldOfStudy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string field_of_study = 2; - * - * @return The bytes for fieldOfStudy. - */ - public com.google.protobuf.ByteString getFieldOfStudyBytes() { - java.lang.Object ref = fieldOfStudy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldOfStudy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string field_of_study = 2; - * - * @param value The fieldOfStudy to set. - * @return This builder for chaining. - */ - public Builder setFieldOfStudy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fieldOfStudy_ = value; - onChanged(); - 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".
-     * 
- * - * string field_of_study = 2; - * - * @return This builder for chaining. - */ - public Builder clearFieldOfStudy() { - - fieldOfStudy_ = getDefaultInstance().getFieldOfStudy(); - onChanged(); - 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".
-     * 
- * - * string field_of_study = 2; - * - * @param value The bytes for fieldOfStudy to set. - * @return This builder for chaining. - */ - public Builder setFieldOfStudyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fieldOfStudy_ = value; - onChanged(); - return this; - } - - private int degreeType_ = 0; - /** - * - * - *
-     * 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.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @return The enum numeric value on the wire for degreeType. - */ - @java.lang.Override - public int getDegreeTypeValue() { - return degreeType_; - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @param value The enum numeric value on the wire for degreeType to set. - * @return This builder for chaining. - */ - public Builder setDegreeTypeValue(int value) { - - degreeType_ = value; - onChanged(); - 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.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @return The degreeType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.DegreeType getDegreeType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.DegreeType result = - com.google.cloud.talent.v4beta1.DegreeType.valueOf(degreeType_); - return result == null ? com.google.cloud.talent.v4beta1.DegreeType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @param value The degreeType to set. - * @return This builder for chaining. - */ - public Builder setDegreeType(com.google.cloud.talent.v4beta1.DegreeType value) { - if (value == null) { - throw new NullPointerException(); - } - - degreeType_ = value.getNumber(); - onChanged(); - 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.
-     * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @return This builder for chaining. - */ - public Builder clearDegreeType() { - - degreeType_ = 0; - onChanged(); - return this; - } - - private boolean negated_; - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * is excluded.
-     * 
- * - * bool negated = 6; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * is excluded.
-     * 
- * - * bool negated = 6; - * - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * is excluded.
-     * 
- * - * bool negated = 6; - * - * @return This builder for chaining. - */ - public Builder clearNegated() { - - negated_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationFilter) - private static final com.google.cloud.talent.v4beta1.EducationFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationFilter(); - } - - public static com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EducationFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EducationFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java deleted file mode 100644 index 43a925d8..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface EducationFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The school name. For example "MIT", "University of California, Berkeley".
-   * 
- * - * string school = 1; - * - * @return The school. - */ - java.lang.String getSchool(); - /** - * - * - *
-   * The school name. For example "MIT", "University of California, Berkeley".
-   * 
- * - * string school = 1; - * - * @return The bytes for school. - */ - com.google.protobuf.ByteString getSchoolBytes(); - - /** - * - * - *
-   * 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".
-   * 
- * - * string field_of_study = 2; - * - * @return The fieldOfStudy. - */ - java.lang.String getFieldOfStudy(); - /** - * - * - *
-   * 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".
-   * 
- * - * string field_of_study = 2; - * - * @return The bytes for fieldOfStudy. - */ - com.google.protobuf.ByteString getFieldOfStudyBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @return The enum numeric value on the wire for degreeType. - */ - int getDegreeTypeValue(); - /** - * - * - *
-   * 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.
-   * 
- * - * .google.cloud.talent.v4beta1.DegreeType degree_type = 3; - * - * @return The degreeType. - */ - com.google.cloud.talent.v4beta1.DegreeType getDegreeType(); - - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * is excluded.
-   * 
- * - * bool negated = 6; - * - * @return The negated. - */ - boolean getNegated(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java deleted file mode 100644 index 1c3ab656..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java +++ /dev/null @@ -1,3194 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents an education record of a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} - */ -public final class EducationRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EducationRecord) - EducationRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use EducationRecord.newBuilder() to construct. - private EducationRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EducationRecord() { - schoolName_ = ""; - description_ = ""; - schoolNameSnippet_ = ""; - degreeSnippet_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EducationRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EducationRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.type.Date.Builder subBuilder = null; - if (startDate_ != null) { - subBuilder = startDate_.toBuilder(); - } - startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startDate_); - startDate_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.type.Date.Builder subBuilder = null; - if (endDate_ != null) { - subBuilder = endDate_.toBuilder(); - } - endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endDate_); - endDate_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.type.Date.Builder subBuilder = null; - if (expectedGraduationDate_ != null) { - subBuilder = expectedGraduationDate_.toBuilder(); - } - expectedGraduationDate_ = - input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectedGraduationDate_); - expectedGraduationDate_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - schoolName_ = s; - break; - } - case 42: - { - com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; - if (address_ != null) { - subBuilder = address_.toBuilder(); - } - address_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(address_); - address_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - degreeCase_ = 6; - degree_ = s; - break; - } - case 58: - { - com.google.cloud.talent.v4beta1.Degree.Builder subBuilder = null; - if (degreeCase_ == 7) { - subBuilder = ((com.google.cloud.talent.v4beta1.Degree) degree_).toBuilder(); - } - degree_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Degree.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.talent.v4beta1.Degree) degree_); - degree_ = subBuilder.buildPartial(); - } - degreeCase_ = 7; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 74: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isCurrent_ != null) { - subBuilder = isCurrent_.toBuilder(); - } - isCurrent_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isCurrent_); - isCurrent_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - schoolNameSnippet_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - degreeSnippet_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EducationRecord.class, - com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); - } - - private int degreeCase_ = 0; - private java.lang.Object degree_; - - public enum DegreeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DEGREE_DESCRIPTION(6), - STRUCTURED_DEGREE(7), - DEGREE_NOT_SET(0); - private final int value; - - private DegreeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DegreeCase valueOf(int value) { - return forNumber(value); - } - - public static DegreeCase forNumber(int value) { - switch (value) { - case 6: - return DEGREE_DESCRIPTION; - case 7: - return STRUCTURED_DEGREE; - case 0: - return DEGREE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DegreeCase getDegreeCase() { - return DegreeCase.forNumber(degreeCase_); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - private com.google.type.Date startDate_; - /** - * - * - *
-   * The start date of the education.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - @java.lang.Override - public boolean hasStartDate() { - return startDate_ != null; - } - /** - * - * - *
-   * The start date of the education.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - @java.lang.Override - public com.google.type.Date getStartDate() { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - /** - * - * - *
-   * The start date of the education.
-   * 
- * - * .google.type.Date start_date = 1; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - return getStartDate(); - } - - public static final int END_DATE_FIELD_NUMBER = 2; - private com.google.type.Date endDate_; - /** - * - * - *
-   * The end date of the education.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - @java.lang.Override - public boolean hasEndDate() { - return endDate_ != null; - } - /** - * - * - *
-   * The end date of the education.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - @java.lang.Override - public com.google.type.Date getEndDate() { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - /** - * - * - *
-   * The end date of the education.
-   * 
- * - * .google.type.Date end_date = 2; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - return getEndDate(); - } - - public static final int EXPECTED_GRADUATION_DATE_FIELD_NUMBER = 3; - private com.google.type.Date expectedGraduationDate_; - /** - * - * - *
-   * The expected graduation date if currently pursuing a degree.
-   * 
- * - * .google.type.Date expected_graduation_date = 3; - * - * @return Whether the expectedGraduationDate field is set. - */ - @java.lang.Override - public boolean hasExpectedGraduationDate() { - return expectedGraduationDate_ != null; - } - /** - * - * - *
-   * The expected graduation date if currently pursuing a degree.
-   * 
- * - * .google.type.Date expected_graduation_date = 3; - * - * @return The expectedGraduationDate. - */ - @java.lang.Override - public com.google.type.Date getExpectedGraduationDate() { - return expectedGraduationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : expectedGraduationDate_; - } - /** - * - * - *
-   * The expected graduation date if currently pursuing a degree.
-   * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { - return getExpectedGraduationDate(); - } - - public static final int SCHOOL_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object schoolName_; - /** - * - * - *
-   * The name of the school or institution.
-   * For example, "Stanford University", "UC Berkeley", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string school_name = 4; - * - * @return The schoolName. - */ - @java.lang.Override - public java.lang.String getSchoolName() { - java.lang.Object ref = schoolName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schoolName_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the school or institution.
-   * For example, "Stanford University", "UC Berkeley", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string school_name = 4; - * - * @return The bytes for schoolName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSchoolNameBytes() { - java.lang.Object ref = schoolName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schoolName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDRESS_FIELD_NUMBER = 5; - private com.google.cloud.talent.v4beta1.Address address_; - /** - * - * - *
-   * The physical address of the education institution.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return Whether the address field is set. - */ - @java.lang.Override - public boolean hasAddress() { - return address_ != null; - } - /** - * - * - *
-   * The physical address of the education institution.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return The address. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Address getAddress() { - return address_ == null - ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() - : address_; - } - /** - * - * - *
-   * The physical address of the education institution.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { - return getAddress(); - } - - public static final int DEGREE_DESCRIPTION_FIELD_NUMBER = 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.
-   * 
- * - * string degree_description = 6; - * - * @return Whether the degreeDescription field is set. - */ - public boolean hasDegreeDescription() { - return degreeCase_ == 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.
-   * 
- * - * string degree_description = 6; - * - * @return The degreeDescription. - */ - public java.lang.String getDegreeDescription() { - java.lang.Object ref = ""; - if (degreeCase_ == 6) { - ref = degree_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (degreeCase_ == 6) { - degree_ = s; - } - return s; - } - } - /** - * - * - *
-   * The full description of the degree.
-   * For example, "Master of Science in Computer Science", "B.S in Math".
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_description = 6; - * - * @return The bytes for degreeDescription. - */ - public com.google.protobuf.ByteString getDegreeDescriptionBytes() { - java.lang.Object ref = ""; - if (degreeCase_ == 6) { - ref = degree_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (degreeCase_ == 6) { - degree_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRUCTURED_DEGREE_FIELD_NUMBER = 7; - /** - * - * - *
-   * The structured notation of the degree.
-   * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * - * @return Whether the structuredDegree field is set. - */ - @java.lang.Override - public boolean hasStructuredDegree() { - return degreeCase_ == 7; - } - /** - * - * - *
-   * The structured notation of the degree.
-   * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * - * @return The structuredDegree. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { - if (degreeCase_ == 7) { - return (com.google.cloud.talent.v4beta1.Degree) degree_; - } - return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); - } - /** - * - * - *
-   * The structured notation of the degree.
-   * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { - if (degreeCase_ == 7) { - return (com.google.cloud.talent.v4beta1.Degree) degree_; - } - return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object description_; - /** - * - * - *
-   * The description of the education.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 8; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * The description of the education.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_CURRENT_FIELD_NUMBER = 9; - private com.google.protobuf.BoolValue isCurrent_; - /** - * - * - *
-   * If this education is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 9; - * - * @return Whether the isCurrent field is set. - */ - @java.lang.Override - public boolean hasIsCurrent() { - return isCurrent_ != null; - } - /** - * - * - *
-   * If this education is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 9; - * - * @return The isCurrent. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getIsCurrent() { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; - } - /** - * - * - *
-   * If this education is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { - return getIsCurrent(); - } - - public static final int SCHOOL_NAME_SNIPPET_FIELD_NUMBER = 10; - private volatile java.lang.Object schoolNameSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The schoolNameSnippet. - */ - @java.lang.Override - public java.lang.String getSchoolNameSnippet() { - java.lang.Object ref = schoolNameSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schoolNameSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for schoolNameSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { - java.lang.Object ref = schoolNameSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schoolNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEGREE_SNIPPET_FIELD_NUMBER = 11; - private volatile java.lang.Object degreeSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The degreeSnippet. - */ - @java.lang.Override - public java.lang.String getDegreeSnippet() { - java.lang.Object ref = degreeSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - degreeSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for degreeSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDegreeSnippetBytes() { - java.lang.Object ref = degreeSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - degreeSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startDate_ != null) { - output.writeMessage(1, getStartDate()); - } - if (endDate_ != null) { - output.writeMessage(2, getEndDate()); - } - if (expectedGraduationDate_ != null) { - output.writeMessage(3, getExpectedGraduationDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schoolName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, schoolName_); - } - if (address_ != null) { - output.writeMessage(5, getAddress()); - } - if (degreeCase_ == 6) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, degree_); - } - if (degreeCase_ == 7) { - output.writeMessage(7, (com.google.cloud.talent.v4beta1.Degree) degree_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); - } - if (isCurrent_ != null) { - output.writeMessage(9, getIsCurrent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schoolNameSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, schoolNameSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(degreeSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, degreeSnippet_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); - } - if (endDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); - } - if (expectedGraduationDate_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpectedGraduationDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schoolName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, schoolName_); - } - if (address_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); - } - if (degreeCase_ == 6) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, degree_); - } - if (degreeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.talent.v4beta1.Degree) degree_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); - } - if (isCurrent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsCurrent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schoolNameSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, schoolNameSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(degreeSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, degreeSnippet_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.EducationRecord)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.EducationRecord other = - (com.google.cloud.talent.v4beta1.EducationRecord) obj; - - if (hasStartDate() != other.hasStartDate()) return false; - if (hasStartDate()) { - if (!getStartDate().equals(other.getStartDate())) return false; - } - if (hasEndDate() != other.hasEndDate()) return false; - if (hasEndDate()) { - if (!getEndDate().equals(other.getEndDate())) return false; - } - if (hasExpectedGraduationDate() != other.hasExpectedGraduationDate()) return false; - if (hasExpectedGraduationDate()) { - if (!getExpectedGraduationDate().equals(other.getExpectedGraduationDate())) return false; - } - if (!getSchoolName().equals(other.getSchoolName())) return false; - if (hasAddress() != other.hasAddress()) return false; - if (hasAddress()) { - if (!getAddress().equals(other.getAddress())) return false; - } - if (!getDescription().equals(other.getDescription())) return false; - if (hasIsCurrent() != other.hasIsCurrent()) return false; - if (hasIsCurrent()) { - if (!getIsCurrent().equals(other.getIsCurrent())) return false; - } - if (!getSchoolNameSnippet().equals(other.getSchoolNameSnippet())) return false; - if (!getDegreeSnippet().equals(other.getDegreeSnippet())) return false; - if (!getDegreeCase().equals(other.getDegreeCase())) return false; - switch (degreeCase_) { - case 6: - if (!getDegreeDescription().equals(other.getDegreeDescription())) return false; - break; - case 7: - if (!getStructuredDegree().equals(other.getStructuredDegree())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartDate()) { - hash = (37 * hash) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - } - if (hasEndDate()) { - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - } - if (hasExpectedGraduationDate()) { - hash = (37 * hash) + EXPECTED_GRADUATION_DATE_FIELD_NUMBER; - hash = (53 * hash) + getExpectedGraduationDate().hashCode(); - } - hash = (37 * hash) + SCHOOL_NAME_FIELD_NUMBER; - hash = (53 * hash) + getSchoolName().hashCode(); - if (hasAddress()) { - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasIsCurrent()) { - hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getIsCurrent().hashCode(); - } - hash = (37 * hash) + SCHOOL_NAME_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getSchoolNameSnippet().hashCode(); - hash = (37 * hash) + DEGREE_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getDegreeSnippet().hashCode(); - switch (degreeCase_) { - case 6: - hash = (37 * hash) + DEGREE_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDegreeDescription().hashCode(); - break; - case 7: - hash = (37 * hash) + STRUCTURED_DEGREE_FIELD_NUMBER; - hash = (53 * hash) + getStructuredDegree().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.EducationRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents an education record of a candidate.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EducationRecord} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EducationRecord) - com.google.cloud.talent.v4beta1.EducationRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EducationRecord.class, - com.google.cloud.talent.v4beta1.EducationRecord.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.EducationRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (startDateBuilder_ == null) { - startDate_ = null; - } else { - startDate_ = null; - startDateBuilder_ = null; - } - if (endDateBuilder_ == null) { - endDate_ = null; - } else { - endDate_ = null; - endDateBuilder_ = null; - } - if (expectedGraduationDateBuilder_ == null) { - expectedGraduationDate_ = null; - } else { - expectedGraduationDate_ = null; - expectedGraduationDateBuilder_ = null; - } - schoolName_ = ""; - - if (addressBuilder_ == null) { - address_ = null; - } else { - address_ = null; - addressBuilder_ = null; - } - description_ = ""; - - if (isCurrentBuilder_ == null) { - isCurrent_ = null; - } else { - isCurrent_ = null; - isCurrentBuilder_ = null; - } - schoolNameSnippet_ = ""; - - degreeSnippet_ = ""; - - degreeCase_ = 0; - degree_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationRecord build() { - com.google.cloud.talent.v4beta1.EducationRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationRecord buildPartial() { - com.google.cloud.talent.v4beta1.EducationRecord result = - new com.google.cloud.talent.v4beta1.EducationRecord(this); - if (startDateBuilder_ == null) { - result.startDate_ = startDate_; - } else { - result.startDate_ = startDateBuilder_.build(); - } - if (endDateBuilder_ == null) { - result.endDate_ = endDate_; - } else { - result.endDate_ = endDateBuilder_.build(); - } - if (expectedGraduationDateBuilder_ == null) { - result.expectedGraduationDate_ = expectedGraduationDate_; - } else { - result.expectedGraduationDate_ = expectedGraduationDateBuilder_.build(); - } - result.schoolName_ = schoolName_; - if (addressBuilder_ == null) { - result.address_ = address_; - } else { - result.address_ = addressBuilder_.build(); - } - if (degreeCase_ == 6) { - result.degree_ = degree_; - } - if (degreeCase_ == 7) { - if (structuredDegreeBuilder_ == null) { - result.degree_ = degree_; - } else { - result.degree_ = structuredDegreeBuilder_.build(); - } - } - result.description_ = description_; - if (isCurrentBuilder_ == null) { - result.isCurrent_ = isCurrent_; - } else { - result.isCurrent_ = isCurrentBuilder_.build(); - } - result.schoolNameSnippet_ = schoolNameSnippet_; - result.degreeSnippet_ = degreeSnippet_; - result.degreeCase_ = degreeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.EducationRecord) { - return mergeFrom((com.google.cloud.talent.v4beta1.EducationRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.EducationRecord other) { - if (other == com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()) - return this; - if (other.hasStartDate()) { - mergeStartDate(other.getStartDate()); - } - if (other.hasEndDate()) { - mergeEndDate(other.getEndDate()); - } - if (other.hasExpectedGraduationDate()) { - mergeExpectedGraduationDate(other.getExpectedGraduationDate()); - } - if (!other.getSchoolName().isEmpty()) { - schoolName_ = other.schoolName_; - onChanged(); - } - if (other.hasAddress()) { - mergeAddress(other.getAddress()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.hasIsCurrent()) { - mergeIsCurrent(other.getIsCurrent()); - } - if (!other.getSchoolNameSnippet().isEmpty()) { - schoolNameSnippet_ = other.schoolNameSnippet_; - onChanged(); - } - if (!other.getDegreeSnippet().isEmpty()) { - degreeSnippet_ = other.degreeSnippet_; - onChanged(); - } - switch (other.getDegreeCase()) { - case DEGREE_DESCRIPTION: - { - degreeCase_ = 6; - degree_ = other.degree_; - onChanged(); - break; - } - case STRUCTURED_DEGREE: - { - mergeStructuredDegree(other.getStructuredDegree()); - break; - } - case DEGREE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.EducationRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.EducationRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int degreeCase_ = 0; - private java.lang.Object degree_; - - public DegreeCase getDegreeCase() { - return DegreeCase.forNumber(degreeCase_); - } - - public Builder clearDegree() { - degreeCase_ = 0; - degree_ = null; - onChanged(); - return this; - } - - private com.google.type.Date startDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - public boolean hasStartDate() { - return startDateBuilder_ != null || startDate_ != null; - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - public com.google.type.Date getStartDate() { - if (startDateBuilder_ == null) { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } else { - return startDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startDate_ = value; - onChanged(); - } else { - startDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { - if (startDateBuilder_ == null) { - startDate_ = builderForValue.build(); - onChanged(); - } else { - startDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder mergeStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (startDate_ != null) { - startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); - } else { - startDate_ = value; - } - onChanged(); - } else { - startDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder clearStartDate() { - if (startDateBuilder_ == null) { - startDate_ = null; - onChanged(); - } else { - startDate_ = null; - startDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public com.google.type.Date.Builder getStartDateBuilder() { - - onChanged(); - return getStartDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - if (startDateBuilder_ != null) { - return startDateBuilder_.getMessageOrBuilder(); - } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - } - /** - * - * - *
-     * The start date of the education.
-     * 
- * - * .google.type.Date start_date = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getStartDateFieldBuilder() { - if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); - startDate_ = null; - } - return startDateBuilder_; - } - - private com.google.type.Date endDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - public boolean hasEndDate() { - return endDateBuilder_ != null || endDate_ != null; - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - public com.google.type.Date getEndDate() { - if (endDateBuilder_ == null) { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } else { - return endDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endDate_ = value; - onChanged(); - } else { - endDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date.Builder builderForValue) { - if (endDateBuilder_ == null) { - endDate_ = builderForValue.build(); - onChanged(); - } else { - endDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder mergeEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (endDate_ != null) { - endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); - } else { - endDate_ = value; - } - onChanged(); - } else { - endDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder clearEndDate() { - if (endDateBuilder_ == null) { - endDate_ = null; - onChanged(); - } else { - endDate_ = null; - endDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public com.google.type.Date.Builder getEndDateBuilder() { - - onChanged(); - return getEndDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - if (endDateBuilder_ != null) { - return endDateBuilder_.getMessageOrBuilder(); - } else { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - } - /** - * - * - *
-     * The end date of the education.
-     * 
- * - * .google.type.Date end_date = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getEndDateFieldBuilder() { - if (endDateBuilder_ == null) { - endDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getEndDate(), getParentForChildren(), isClean()); - endDate_ = null; - } - return endDateBuilder_; - } - - private com.google.type.Date expectedGraduationDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - expectedGraduationDateBuilder_; - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - * - * @return Whether the expectedGraduationDate field is set. - */ - public boolean hasExpectedGraduationDate() { - return expectedGraduationDateBuilder_ != null || expectedGraduationDate_ != null; - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - * - * @return The expectedGraduationDate. - */ - public com.google.type.Date getExpectedGraduationDate() { - if (expectedGraduationDateBuilder_ == null) { - return expectedGraduationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : expectedGraduationDate_; - } else { - return expectedGraduationDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - public Builder setExpectedGraduationDate(com.google.type.Date value) { - if (expectedGraduationDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectedGraduationDate_ = value; - onChanged(); - } else { - expectedGraduationDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - public Builder setExpectedGraduationDate(com.google.type.Date.Builder builderForValue) { - if (expectedGraduationDateBuilder_ == null) { - expectedGraduationDate_ = builderForValue.build(); - onChanged(); - } else { - expectedGraduationDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - public Builder mergeExpectedGraduationDate(com.google.type.Date value) { - if (expectedGraduationDateBuilder_ == null) { - if (expectedGraduationDate_ != null) { - expectedGraduationDate_ = - com.google.type.Date.newBuilder(expectedGraduationDate_) - .mergeFrom(value) - .buildPartial(); - } else { - expectedGraduationDate_ = value; - } - onChanged(); - } else { - expectedGraduationDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - public Builder clearExpectedGraduationDate() { - if (expectedGraduationDateBuilder_ == null) { - expectedGraduationDate_ = null; - onChanged(); - } else { - expectedGraduationDate_ = null; - expectedGraduationDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - public com.google.type.Date.Builder getExpectedGraduationDateBuilder() { - - onChanged(); - return getExpectedGraduationDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - public com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder() { - if (expectedGraduationDateBuilder_ != null) { - return expectedGraduationDateBuilder_.getMessageOrBuilder(); - } else { - return expectedGraduationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : expectedGraduationDate_; - } - } - /** - * - * - *
-     * The expected graduation date if currently pursuing a degree.
-     * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getExpectedGraduationDateFieldBuilder() { - if (expectedGraduationDateBuilder_ == null) { - expectedGraduationDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getExpectedGraduationDate(), getParentForChildren(), isClean()); - expectedGraduationDate_ = null; - } - return expectedGraduationDateBuilder_; - } - - private java.lang.Object schoolName_ = ""; - /** - * - * - *
-     * The name of the school or institution.
-     * For example, "Stanford University", "UC Berkeley", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string school_name = 4; - * - * @return The schoolName. - */ - public java.lang.String getSchoolName() { - java.lang.Object ref = schoolName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schoolName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the school or institution.
-     * For example, "Stanford University", "UC Berkeley", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string school_name = 4; - * - * @return The bytes for schoolName. - */ - public com.google.protobuf.ByteString getSchoolNameBytes() { - java.lang.Object ref = schoolName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schoolName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the school or institution.
-     * For example, "Stanford University", "UC Berkeley", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string school_name = 4; - * - * @param value The schoolName to set. - * @return This builder for chaining. - */ - public Builder setSchoolName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schoolName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the school or institution.
-     * For example, "Stanford University", "UC Berkeley", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string school_name = 4; - * - * @return This builder for chaining. - */ - public Builder clearSchoolName() { - - schoolName_ = getDefaultInstance().getSchoolName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the school or institution.
-     * For example, "Stanford University", "UC Berkeley", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string school_name = 4; - * - * @param value The bytes for schoolName to set. - * @return This builder for chaining. - */ - public Builder setSchoolNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schoolName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.Address address_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder> - addressBuilder_; - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return Whether the address field is set. - */ - public boolean hasAddress() { - return addressBuilder_ != null || address_ != null; - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return The address. - */ - public com.google.cloud.talent.v4beta1.Address getAddress() { - if (addressBuilder_ == null) { - return address_ == null - ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() - : address_; - } else { - return addressBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { - if (addressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - address_ = value; - onChanged(); - } else { - addressBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { - if (addressBuilder_ == null) { - address_ = builderForValue.build(); - onChanged(); - } else { - addressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { - if (addressBuilder_ == null) { - if (address_ != null) { - address_ = - com.google.cloud.talent.v4beta1.Address.newBuilder(address_) - .mergeFrom(value) - .buildPartial(); - } else { - address_ = value; - } - onChanged(); - } else { - addressBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder clearAddress() { - if (addressBuilder_ == null) { - address_ = null; - onChanged(); - } else { - address_ = null; - addressBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { - - onChanged(); - return getAddressFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { - if (addressBuilder_ != null) { - return addressBuilder_.getMessageOrBuilder(); - } else { - return address_ == null - ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() - : address_; - } - } - /** - * - * - *
-     * The physical address of the education institution.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder> - getAddressFieldBuilder() { - if (addressBuilder_ == null) { - addressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder>( - getAddress(), getParentForChildren(), isClean()); - address_ = null; - } - return addressBuilder_; - } - - /** - * - * - *
-     * The full description of the degree.
-     * For example, "Master of Science in Computer Science", "B.S in Math".
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_description = 6; - * - * @return Whether the degreeDescription field is set. - */ - @java.lang.Override - public boolean hasDegreeDescription() { - return degreeCase_ == 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.
-     * 
- * - * string degree_description = 6; - * - * @return The degreeDescription. - */ - @java.lang.Override - public java.lang.String getDegreeDescription() { - java.lang.Object ref = ""; - if (degreeCase_ == 6) { - ref = degree_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (degreeCase_ == 6) { - degree_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The full description of the degree.
-     * For example, "Master of Science in Computer Science", "B.S in Math".
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_description = 6; - * - * @return The bytes for degreeDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDegreeDescriptionBytes() { - java.lang.Object ref = ""; - if (degreeCase_ == 6) { - ref = degree_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (degreeCase_ == 6) { - degree_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The full description of the degree.
-     * For example, "Master of Science in Computer Science", "B.S in Math".
-     * Number of characters allowed is 100.
-     * 
- * - * string degree_description = 6; - * - * @param value The degreeDescription to set. - * @return This builder for chaining. - */ - public Builder setDegreeDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - degreeCase_ = 6; - degree_ = value; - onChanged(); - 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.
-     * 
- * - * string degree_description = 6; - * - * @return This builder for chaining. - */ - public Builder clearDegreeDescription() { - if (degreeCase_ == 6) { - degreeCase_ = 0; - degree_ = null; - onChanged(); - } - 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.
-     * 
- * - * string degree_description = 6; - * - * @param value The bytes for degreeDescription to set. - * @return This builder for chaining. - */ - public Builder setDegreeDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - degreeCase_ = 6; - degree_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Degree, - com.google.cloud.talent.v4beta1.Degree.Builder, - com.google.cloud.talent.v4beta1.DegreeOrBuilder> - structuredDegreeBuilder_; - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * - * @return Whether the structuredDegree field is set. - */ - @java.lang.Override - public boolean hasStructuredDegree() { - return degreeCase_ == 7; - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * - * @return The structuredDegree. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Degree getStructuredDegree() { - if (structuredDegreeBuilder_ == null) { - if (degreeCase_ == 7) { - return (com.google.cloud.talent.v4beta1.Degree) degree_; - } - return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); - } else { - if (degreeCase_ == 7) { - return structuredDegreeBuilder_.getMessage(); - } - return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); - } - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - public Builder setStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { - if (structuredDegreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - degree_ = value; - onChanged(); - } else { - structuredDegreeBuilder_.setMessage(value); - } - degreeCase_ = 7; - return this; - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - public Builder setStructuredDegree( - com.google.cloud.talent.v4beta1.Degree.Builder builderForValue) { - if (structuredDegreeBuilder_ == null) { - degree_ = builderForValue.build(); - onChanged(); - } else { - structuredDegreeBuilder_.setMessage(builderForValue.build()); - } - degreeCase_ = 7; - return this; - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - public Builder mergeStructuredDegree(com.google.cloud.talent.v4beta1.Degree value) { - if (structuredDegreeBuilder_ == null) { - if (degreeCase_ == 7 - && degree_ != com.google.cloud.talent.v4beta1.Degree.getDefaultInstance()) { - degree_ = - com.google.cloud.talent.v4beta1.Degree.newBuilder( - (com.google.cloud.talent.v4beta1.Degree) degree_) - .mergeFrom(value) - .buildPartial(); - } else { - degree_ = value; - } - onChanged(); - } else { - if (degreeCase_ == 7) { - structuredDegreeBuilder_.mergeFrom(value); - } else { - structuredDegreeBuilder_.setMessage(value); - } - } - degreeCase_ = 7; - return this; - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - public Builder clearStructuredDegree() { - if (structuredDegreeBuilder_ == null) { - if (degreeCase_ == 7) { - degreeCase_ = 0; - degree_ = null; - onChanged(); - } - } else { - if (degreeCase_ == 7) { - degreeCase_ = 0; - degree_ = null; - } - structuredDegreeBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - public com.google.cloud.talent.v4beta1.Degree.Builder getStructuredDegreeBuilder() { - return getStructuredDegreeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder() { - if ((degreeCase_ == 7) && (structuredDegreeBuilder_ != null)) { - return structuredDegreeBuilder_.getMessageOrBuilder(); - } else { - if (degreeCase_ == 7) { - return (com.google.cloud.talent.v4beta1.Degree) degree_; - } - return com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); - } - } - /** - * - * - *
-     * The structured notation of the degree.
-     * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Degree, - com.google.cloud.talent.v4beta1.Degree.Builder, - com.google.cloud.talent.v4beta1.DegreeOrBuilder> - getStructuredDegreeFieldBuilder() { - if (structuredDegreeBuilder_ == null) { - if (!(degreeCase_ == 7)) { - degree_ = com.google.cloud.talent.v4beta1.Degree.getDefaultInstance(); - } - structuredDegreeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Degree, - com.google.cloud.talent.v4beta1.Degree.Builder, - com.google.cloud.talent.v4beta1.DegreeOrBuilder>( - (com.google.cloud.talent.v4beta1.Degree) degree_, - getParentForChildren(), - isClean()); - degree_ = null; - } - degreeCase_ = 7; - onChanged(); - ; - return structuredDegreeBuilder_; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the education.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 8; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of the education.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of the education.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 8; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the education.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 8; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the education.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 8; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue isCurrent_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isCurrentBuilder_; - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - * - * @return Whether the isCurrent field is set. - */ - public boolean hasIsCurrent() { - return isCurrentBuilder_ != null || isCurrent_ != null; - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - * - * @return The isCurrent. - */ - public com.google.protobuf.BoolValue getIsCurrent() { - if (isCurrentBuilder_ == null) { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; - } else { - return isCurrentBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - public Builder setIsCurrent(com.google.protobuf.BoolValue value) { - if (isCurrentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - isCurrent_ = value; - onChanged(); - } else { - isCurrentBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isCurrentBuilder_ == null) { - isCurrent_ = builderForValue.build(); - onChanged(); - } else { - isCurrentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { - if (isCurrentBuilder_ == null) { - if (isCurrent_ != null) { - isCurrent_ = - com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); - } else { - isCurrent_ = value; - } - onChanged(); - } else { - isCurrentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - public Builder clearIsCurrent() { - if (isCurrentBuilder_ == null) { - isCurrent_ = null; - onChanged(); - } else { - isCurrent_ = null; - isCurrentBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { - - onChanged(); - return getIsCurrentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { - if (isCurrentBuilder_ != null) { - return isCurrentBuilder_.getMessageOrBuilder(); - } else { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; - } - } - /** - * - * - *
-     * If this education is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getIsCurrentFieldBuilder() { - if (isCurrentBuilder_ == null) { - isCurrentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsCurrent(), getParentForChildren(), isClean()); - isCurrent_ = null; - } - return isCurrentBuilder_; - } - - private java.lang.Object schoolNameSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The schoolNameSnippet. - */ - public java.lang.String getSchoolNameSnippet() { - java.lang.Object ref = schoolNameSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schoolNameSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for schoolNameSnippet. - */ - public com.google.protobuf.ByteString getSchoolNameSnippetBytes() { - java.lang.Object ref = schoolNameSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - schoolNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The schoolNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setSchoolNameSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schoolNameSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSchoolNameSnippet() { - - schoolNameSnippet_ = getDefaultInstance().getSchoolNameSnippet(); - onChanged(); - 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.
-     * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for schoolNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setSchoolNameSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schoolNameSnippet_ = value; - onChanged(); - return this; - } - - private java.lang.Object degreeSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The degreeSnippet. - */ - public java.lang.String getDegreeSnippet() { - java.lang.Object ref = degreeSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - degreeSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for degreeSnippet. - */ - public com.google.protobuf.ByteString getDegreeSnippetBytes() { - java.lang.Object ref = degreeSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - degreeSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The degreeSnippet to set. - * @return This builder for chaining. - */ - public Builder setDegreeSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - degreeSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearDegreeSnippet() { - - degreeSnippet_ = getDefaultInstance().getDegreeSnippet(); - onChanged(); - 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.
-     * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for degreeSnippet to set. - * @return This builder for chaining. - */ - public Builder setDegreeSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - degreeSnippet_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EducationRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EducationRecord) - private static final com.google.cloud.talent.v4beta1.EducationRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EducationRecord(); - } - - public static com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EducationRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EducationRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java deleted file mode 100644 index ff8cfdda..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java +++ /dev/null @@ -1,394 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface EducationRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EducationRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The start date of the education.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - boolean hasStartDate(); - /** - * - * - *
-   * The start date of the education.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - com.google.type.Date getStartDate(); - /** - * - * - *
-   * The start date of the education.
-   * 
- * - * .google.type.Date start_date = 1; - */ - com.google.type.DateOrBuilder getStartDateOrBuilder(); - - /** - * - * - *
-   * The end date of the education.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - boolean hasEndDate(); - /** - * - * - *
-   * The end date of the education.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - com.google.type.Date getEndDate(); - /** - * - * - *
-   * The end date of the education.
-   * 
- * - * .google.type.Date end_date = 2; - */ - com.google.type.DateOrBuilder getEndDateOrBuilder(); - - /** - * - * - *
-   * The expected graduation date if currently pursuing a degree.
-   * 
- * - * .google.type.Date expected_graduation_date = 3; - * - * @return Whether the expectedGraduationDate field is set. - */ - boolean hasExpectedGraduationDate(); - /** - * - * - *
-   * The expected graduation date if currently pursuing a degree.
-   * 
- * - * .google.type.Date expected_graduation_date = 3; - * - * @return The expectedGraduationDate. - */ - com.google.type.Date getExpectedGraduationDate(); - /** - * - * - *
-   * The expected graduation date if currently pursuing a degree.
-   * 
- * - * .google.type.Date expected_graduation_date = 3; - */ - com.google.type.DateOrBuilder getExpectedGraduationDateOrBuilder(); - - /** - * - * - *
-   * The name of the school or institution.
-   * For example, "Stanford University", "UC Berkeley", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string school_name = 4; - * - * @return The schoolName. - */ - java.lang.String getSchoolName(); - /** - * - * - *
-   * The name of the school or institution.
-   * For example, "Stanford University", "UC Berkeley", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string school_name = 4; - * - * @return The bytes for schoolName. - */ - com.google.protobuf.ByteString getSchoolNameBytes(); - - /** - * - * - *
-   * The physical address of the education institution.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return Whether the address field is set. - */ - boolean hasAddress(); - /** - * - * - *
-   * The physical address of the education institution.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return The address. - */ - com.google.cloud.talent.v4beta1.Address getAddress(); - /** - * - * - *
-   * The physical address of the education institution.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); - - /** - * - * - *
-   * The full description of the degree.
-   * For example, "Master of Science in Computer Science", "B.S in Math".
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_description = 6; - * - * @return Whether the degreeDescription field is set. - */ - boolean hasDegreeDescription(); - /** - * - * - *
-   * The full description of the degree.
-   * For example, "Master of Science in Computer Science", "B.S in Math".
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_description = 6; - * - * @return The degreeDescription. - */ - java.lang.String getDegreeDescription(); - /** - * - * - *
-   * The full description of the degree.
-   * For example, "Master of Science in Computer Science", "B.S in Math".
-   * Number of characters allowed is 100.
-   * 
- * - * string degree_description = 6; - * - * @return The bytes for degreeDescription. - */ - com.google.protobuf.ByteString getDegreeDescriptionBytes(); - - /** - * - * - *
-   * The structured notation of the degree.
-   * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * - * @return Whether the structuredDegree field is set. - */ - boolean hasStructuredDegree(); - /** - * - * - *
-   * The structured notation of the degree.
-   * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - * - * @return The structuredDegree. - */ - com.google.cloud.talent.v4beta1.Degree getStructuredDegree(); - /** - * - * - *
-   * The structured notation of the degree.
-   * 
- * - * .google.cloud.talent.v4beta1.Degree structured_degree = 7; - */ - com.google.cloud.talent.v4beta1.DegreeOrBuilder getStructuredDegreeOrBuilder(); - - /** - * - * - *
-   * The description of the education.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 8; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the education.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 8; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * If this education is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 9; - * - * @return Whether the isCurrent field is set. - */ - boolean hasIsCurrent(); - /** - * - * - *
-   * If this education is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 9; - * - * @return The isCurrent. - */ - com.google.protobuf.BoolValue getIsCurrent(); - /** - * - * - *
-   * If this education is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 9; - */ - com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The schoolNameSnippet. - */ - java.lang.String getSchoolNameSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string school_name_snippet = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for schoolNameSnippet. - */ - com.google.protobuf.ByteString getSchoolNameSnippetBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The degreeSnippet. - */ - java.lang.String getDegreeSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string degree_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for degreeSnippet. - */ - com.google.protobuf.ByteString getDegreeSnippetBytes(); - - public com.google.cloud.talent.v4beta1.EducationRecord.DegreeCase getDegreeCase(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java deleted file mode 100644 index 95d4c6f5..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java +++ /dev/null @@ -1,797 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a person's email address.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Email} - */ -public final class Email extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Email) - EmailOrBuilder { - private static final long serialVersionUID = 0L; - // Use Email.newBuilder() to construct. - private Email(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Email() { - usage_ = 0; - emailAddress_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Email(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Email( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - usage_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - emailAddress_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Email_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Email.class, - com.google.cloud.talent.v4beta1.Email.Builder.class); - } - - public static final int USAGE_FIELD_NUMBER = 1; - private int usage_; - /** - * - * - *
-   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; - } - - public static final int EMAIL_ADDRESS_FIELD_NUMBER = 2; - private volatile java.lang.Object emailAddress_; - /** - * - * - *
-   * Email address.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - @java.lang.Override - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Email address.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, usage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Email)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Email other = (com.google.cloud.talent.v4beta1.Email) obj; - - if (usage_ != other.usage_) return false; - if (!getEmailAddress().equals(other.getEmailAddress())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + usage_; - hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddress().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Email parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Email parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Email parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Email prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a person's email address.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Email} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Email) - com.google.cloud.talent.v4beta1.EmailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Email_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Email.class, - com.google.cloud.talent.v4beta1.Email.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Email.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - usage_ = 0; - - emailAddress_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Email_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Email getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Email.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Email build() { - com.google.cloud.talent.v4beta1.Email result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Email buildPartial() { - com.google.cloud.talent.v4beta1.Email result = - new com.google.cloud.talent.v4beta1.Email(this); - result.usage_ = usage_; - result.emailAddress_ = emailAddress_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Email) { - return mergeFrom((com.google.cloud.talent.v4beta1.Email) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Email other) { - if (other == com.google.cloud.talent.v4beta1.Email.getDefaultInstance()) return this; - if (other.usage_ != 0) { - setUsageValue(other.getUsageValue()); - } - if (!other.getEmailAddress().isEmpty()) { - emailAddress_ = other.emailAddress_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Email parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Email) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int usage_ = 0; - /** - * - * - *
-     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The enum numeric value on the wire for usage to set. - * @return This builder for chaining. - */ - public Builder setUsageValue(int value) { - - usage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null - ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The usage to set. - * @return This builder for chaining. - */ - public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { - if (value == null) { - throw new NullPointerException(); - } - - usage_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return This builder for chaining. - */ - public Builder clearUsage() { - - usage_ = 0; - onChanged(); - return this; - } - - private java.lang.Object emailAddress_ = ""; - /** - * - * - *
-     * Email address.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Email address.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Email address.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string email_address = 2; - * - * @param value The emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - emailAddress_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Email address.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string email_address = 2; - * - * @return This builder for chaining. - */ - public Builder clearEmailAddress() { - - emailAddress_ = getDefaultInstance().getEmailAddress(); - onChanged(); - return this; - } - /** - * - * - *
-     * Email address.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string email_address = 2; - * - * @param value The bytes for emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - emailAddress_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Email) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Email) - private static final com.google.cloud.talent.v4beta1.Email DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Email(); - } - - public static com.google.cloud.talent.v4beta1.Email getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Email parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Email(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Email getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java deleted file mode 100644 index ef8323b6..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface EmailOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Email) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - int getUsageValue(); - /** - * - * - *
-   * The usage of the email address. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); - - /** - * - * - *
-   * Email address.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * Email address.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java deleted file mode 100644 index 7e9aeeec..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java +++ /dev/null @@ -1,1083 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Employer filter of the search.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} - */ -public final class EmployerFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmployerFilter) - EmployerFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmployerFilter.newBuilder() to construct. - private EmployerFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EmployerFilter() { - employer_ = ""; - mode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EmployerFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EmployerFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - employer_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - mode_ = rawValue; - break; - } - case 24: - { - negated_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EmployerFilter.class, - com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); - } - - /** - * - * - *
-   * Enum indicating which set of [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records] to search
-   * against.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode} - */ - public enum EmployerFilterMode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; - */ - EMPLOYER_FILTER_MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Apply to all employers in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
-     * 
- * - * ALL_EMPLOYMENT_RECORDS = 1; - */ - ALL_EMPLOYMENT_RECORDS(1), - /** - * - * - *
-     * Apply only to current employer in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
-     * 
- * - * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; - */ - CURRENT_EMPLOYMENT_RECORDS_ONLY(2), - /** - * - * - *
-     * Apply only to past (not current) employers in
-     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
-     * 
- * - * PAST_EMPLOYMENT_RECORDS_ONLY = 3; - */ - PAST_EMPLOYMENT_RECORDS_ONLY(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; - */ - public static final int EMPLOYER_FILTER_MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Apply to all employers in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
-     * 
- * - * ALL_EMPLOYMENT_RECORDS = 1; - */ - public static final int ALL_EMPLOYMENT_RECORDS_VALUE = 1; - /** - * - * - *
-     * Apply only to current employer in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
-     * 
- * - * CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; - */ - public static final int CURRENT_EMPLOYMENT_RECORDS_ONLY_VALUE = 2; - /** - * - * - *
-     * Apply only to past (not current) employers in
-     * [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records].
-     * 
- * - * PAST_EMPLOYMENT_RECORDS_ONLY = 3; - */ - public static final int PAST_EMPLOYMENT_RECORDS_ONLY_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EmployerFilterMode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EmployerFilterMode forNumber(int value) { - switch (value) { - case 0: - return EMPLOYER_FILTER_MODE_UNSPECIFIED; - case 1: - return ALL_EMPLOYMENT_RECORDS; - case 2: - return CURRENT_EMPLOYMENT_RECORDS_ONLY; - case 3: - return PAST_EMPLOYMENT_RECORDS_ONLY; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EmployerFilterMode findValueByNumber(int number) { - return EmployerFilterMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.EmployerFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final EmployerFilterMode[] VALUES = values(); - - public static EmployerFilterMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EmployerFilterMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode) - } - - public static final int EMPLOYER_FIELD_NUMBER = 1; - private volatile java.lang.Object employer_; - /** - * - * - *
-   * Required. The name of the employer, for example "Google", "Alphabet".
-   * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The employer. - */ - @java.lang.Override - public java.lang.String getEmployer() { - java.lang.Object ref = employer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - employer_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the employer, for example "Google", "Alphabet".
-   * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for employer. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmployerBytes() { - java.lang.Object ref = employer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - employer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODE_FIELD_NUMBER = 2; - private 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].
-   * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return 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].
-   * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = - com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); - return result == null - ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED - : result; - } - - public static final int NEGATED_FIELD_NUMBER = 3; - private boolean negated_; - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * is excluded.
-   * 
- * - * bool negated = 3; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employer_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, employer_); - } - if (mode_ - != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode - .EMPLOYER_FILTER_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, mode_); - } - if (negated_ != false) { - output.writeBool(3, negated_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employer_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, employer_); - } - if (mode_ - != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode - .EMPLOYER_FILTER_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); - } - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, negated_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.EmployerFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.EmployerFilter other = - (com.google.cloud.talent.v4beta1.EmployerFilter) obj; - - if (!getEmployer().equals(other.getEmployer())) return false; - if (mode_ != other.mode_) return false; - if (getNegated() != other.getNegated()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EMPLOYER_FIELD_NUMBER; - hash = (53 * hash) + getEmployer().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.EmployerFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Employer filter of the search.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EmployerFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmployerFilter) - com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EmployerFilter.class, - com.google.cloud.talent.v4beta1.EmployerFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.EmployerFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - employer_ = ""; - - mode_ = 0; - - negated_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilter build() { - com.google.cloud.talent.v4beta1.EmployerFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilter buildPartial() { - com.google.cloud.talent.v4beta1.EmployerFilter result = - new com.google.cloud.talent.v4beta1.EmployerFilter(this); - result.employer_ = employer_; - result.mode_ = mode_; - result.negated_ = negated_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.EmployerFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.EmployerFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmployerFilter other) { - if (other == com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()) return this; - if (!other.getEmployer().isEmpty()) { - employer_ = other.employer_; - onChanged(); - } - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.EmployerFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.EmployerFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object employer_ = ""; - /** - * - * - *
-     * Required. The name of the employer, for example "Google", "Alphabet".
-     * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The employer. - */ - public java.lang.String getEmployer() { - java.lang.Object ref = employer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - employer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the employer, for example "Google", "Alphabet".
-     * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for employer. - */ - public com.google.protobuf.ByteString getEmployerBytes() { - java.lang.Object ref = employer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - employer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the employer, for example "Google", "Alphabet".
-     * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The employer to set. - * @return This builder for chaining. - */ - public Builder setEmployer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - employer_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the employer, for example "Google", "Alphabet".
-     * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEmployer() { - - employer_ = getDefaultInstance().getEmployer(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the employer, for example "Google", "Alphabet".
-     * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for employer to set. - * @return This builder for chaining. - */ - public Builder setEmployerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - employer_ = value; - onChanged(); - return this; - } - - private int mode_ = 0; - /** - * - * - *
-     * 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].
-     * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return 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].
-     * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @param value The enum numeric value on the wire for mode to set. - * @return This builder for chaining. - */ - public Builder setModeValue(int value) { - - mode_ = value; - onChanged(); - 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].
-     * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode result = - com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.valueOf(mode_); - return result == null - ? com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * 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].
-     * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode( - com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - 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].
-     * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - - private boolean negated_; - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * is excluded.
-     * 
- * - * bool negated = 3; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * is excluded.
-     * 
- * - * bool negated = 3; - * - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * is excluded.
-     * 
- * - * bool negated = 3; - * - * @return This builder for chaining. - */ - public Builder clearNegated() { - - negated_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmployerFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmployerFilter) - private static final com.google.cloud.talent.v4beta1.EmployerFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmployerFilter(); - } - - public static com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmployerFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmployerFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java deleted file mode 100644 index 1105f68a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface EmployerFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmployerFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the employer, for example "Google", "Alphabet".
-   * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The employer. - */ - java.lang.String getEmployer(); - /** - * - * - *
-   * Required. The name of the employer, for example "Google", "Alphabet".
-   * 
- * - * string employer = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for employer. - */ - com.google.protobuf.ByteString getEmployerBytes(); - - /** - * - * - *
-   * 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].
-   * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - /** - * - * - *
-   * 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].
-   * 
- * - * .google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode mode = 2; - * - * @return The mode. - */ - com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode getMode(); - - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * is excluded.
-   * 
- * - * bool negated = 3; - * - * @return The negated. - */ - boolean getNegated(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java deleted file mode 100644 index bc757eb3..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java +++ /dev/null @@ -1,3424 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents an employment record of a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} - */ -public final class EmploymentRecord extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.EmploymentRecord) - EmploymentRecordOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmploymentRecord.newBuilder() to construct. - private EmploymentRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EmploymentRecord() { - employerName_ = ""; - divisionName_ = ""; - jobTitle_ = ""; - jobDescription_ = ""; - jobTitleSnippet_ = ""; - jobDescriptionSnippet_ = ""; - employerNameSnippet_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EmploymentRecord(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private EmploymentRecord( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.type.Date.Builder subBuilder = null; - if (startDate_ != null) { - subBuilder = startDate_.toBuilder(); - } - startDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startDate_); - startDate_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.type.Date.Builder subBuilder = null; - if (endDate_ != null) { - subBuilder = endDate_.toBuilder(); - } - endDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endDate_); - endDate_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - employerName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - divisionName_ = s; - break; - } - case 42: - { - com.google.cloud.talent.v4beta1.Address.Builder subBuilder = null; - if (address_ != null) { - subBuilder = address_.toBuilder(); - } - address_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(address_); - address_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobTitle_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobDescription_ = s; - break; - } - case 66: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isSupervisor_ != null) { - subBuilder = isSupervisor_.toBuilder(); - } - isSupervisor_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isSupervisor_); - isSupervisor_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isSelfEmployed_ != null) { - subBuilder = isSelfEmployed_.toBuilder(); - } - isSelfEmployed_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isSelfEmployed_); - isSelfEmployed_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isCurrent_ != null) { - subBuilder = isCurrent_.toBuilder(); - } - isCurrent_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isCurrent_); - isCurrent_ = subBuilder.buildPartial(); - } - - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobTitleSnippet_ = s; - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobDescriptionSnippet_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - employerNameSnippet_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EmploymentRecord.class, - com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - private com.google.type.Date startDate_; - /** - * - * - *
-   * Start date of the employment.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - @java.lang.Override - public boolean hasStartDate() { - return startDate_ != null; - } - /** - * - * - *
-   * Start date of the employment.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - @java.lang.Override - public com.google.type.Date getStartDate() { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - /** - * - * - *
-   * Start date of the employment.
-   * 
- * - * .google.type.Date start_date = 1; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - return getStartDate(); - } - - public static final int END_DATE_FIELD_NUMBER = 2; - private com.google.type.Date endDate_; - /** - * - * - *
-   * End date of the employment.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - @java.lang.Override - public boolean hasEndDate() { - return endDate_ != null; - } - /** - * - * - *
-   * End date of the employment.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - @java.lang.Override - public com.google.type.Date getEndDate() { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - /** - * - * - *
-   * End date of the employment.
-   * 
- * - * .google.type.Date end_date = 2; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - return getEndDate(); - } - - public static final int EMPLOYER_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object employerName_; - /** - * - * - *
-   * The name of the employer company/organization.
-   * For example, "Google", "Alphabet", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string employer_name = 3; - * - * @return The employerName. - */ - @java.lang.Override - public java.lang.String getEmployerName() { - java.lang.Object ref = employerName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - employerName_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the employer company/organization.
-   * For example, "Google", "Alphabet", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string employer_name = 3; - * - * @return The bytes for employerName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmployerNameBytes() { - java.lang.Object ref = employerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - employerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIVISION_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object divisionName_; - /** - * - * - *
-   * The division name of the employment.
-   * For example, division, department, client, and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string division_name = 4; - * - * @return The divisionName. - */ - @java.lang.Override - public java.lang.String getDivisionName() { - java.lang.Object ref = divisionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - divisionName_ = s; - return s; - } - } - /** - * - * - *
-   * The division name of the employment.
-   * For example, division, department, client, and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string division_name = 4; - * - * @return The bytes for divisionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDivisionNameBytes() { - java.lang.Object ref = divisionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - divisionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDRESS_FIELD_NUMBER = 5; - private com.google.cloud.talent.v4beta1.Address address_; - /** - * - * - *
-   * The physical address of the employer.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return Whether the address field is set. - */ - @java.lang.Override - public boolean hasAddress() { - return address_ != null; - } - /** - * - * - *
-   * The physical address of the employer.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return The address. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Address getAddress() { - return address_ == null - ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() - : address_; - } - /** - * - * - *
-   * The physical address of the employer.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { - return getAddress(); - } - - public static final int JOB_TITLE_FIELD_NUMBER = 6; - private volatile java.lang.Object jobTitle_; - /** - * - * - *
-   * The job title of the employment.
-   * For example, "Software Engineer", "Data Scientist", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string job_title = 6; - * - * @return The jobTitle. - */ - @java.lang.Override - public java.lang.String getJobTitle() { - java.lang.Object ref = jobTitle_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitle_ = s; - return s; - } - } - /** - * - * - *
-   * The job title of the employment.
-   * For example, "Software Engineer", "Data Scientist", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string job_title = 6; - * - * @return The bytes for jobTitle. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobTitleBytes() { - java.lang.Object ref = jobTitle_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_DESCRIPTION_FIELD_NUMBER = 7; - private volatile java.lang.Object jobDescription_; - /** - * - * - *
-   * The description of job content.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string job_description = 7; - * - * @return The jobDescription. - */ - @java.lang.Override - public java.lang.String getJobDescription() { - java.lang.Object ref = jobDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobDescription_ = s; - return s; - } - } - /** - * - * - *
-   * The description of job content.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string job_description = 7; - * - * @return The bytes for jobDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobDescriptionBytes() { - java.lang.Object ref = jobDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_SUPERVISOR_FIELD_NUMBER = 8; - private com.google.protobuf.BoolValue isSupervisor_; - /** - * - * - *
-   * If the jobs is a supervisor position.
-   * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - * - * @return Whether the isSupervisor field is set. - */ - @java.lang.Override - public boolean hasIsSupervisor() { - return isSupervisor_ != null; - } - /** - * - * - *
-   * If the jobs is a supervisor position.
-   * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - * - * @return The isSupervisor. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getIsSupervisor() { - return isSupervisor_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSupervisor_; - } - /** - * - * - *
-   * If the jobs is a supervisor position.
-   * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getIsSupervisorOrBuilder() { - return getIsSupervisor(); - } - - public static final int IS_SELF_EMPLOYED_FIELD_NUMBER = 9; - private com.google.protobuf.BoolValue isSelfEmployed_; - /** - * - * - *
-   * If this employment is self-employed.
-   * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - * - * @return Whether the isSelfEmployed field is set. - */ - @java.lang.Override - public boolean hasIsSelfEmployed() { - return isSelfEmployed_ != null; - } - /** - * - * - *
-   * If this employment is self-employed.
-   * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - * - * @return The isSelfEmployed. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getIsSelfEmployed() { - return isSelfEmployed_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSelfEmployed_; - } - /** - * - * - *
-   * If this employment is self-employed.
-   * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { - return getIsSelfEmployed(); - } - - public static final int IS_CURRENT_FIELD_NUMBER = 10; - private com.google.protobuf.BoolValue isCurrent_; - /** - * - * - *
-   * If this employment is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 10; - * - * @return Whether the isCurrent field is set. - */ - @java.lang.Override - public boolean hasIsCurrent() { - return isCurrent_ != null; - } - /** - * - * - *
-   * If this employment is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 10; - * - * @return The isCurrent. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getIsCurrent() { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; - } - /** - * - * - *
-   * If this employment is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { - return getIsCurrent(); - } - - public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 11; - private volatile java.lang.Object jobTitleSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobTitleSnippet. - */ - @java.lang.Override - public java.lang.String getJobTitleSnippet() { - java.lang.Object ref = jobTitleSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitleSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobTitleSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobTitleSnippetBytes() { - java.lang.Object ref = jobTitleSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitleSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER = 12; - private volatile java.lang.Object jobDescriptionSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobDescriptionSnippet. - */ - @java.lang.Override - public java.lang.String getJobDescriptionSnippet() { - java.lang.Object ref = jobDescriptionSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobDescriptionSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobDescriptionSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { - java.lang.Object ref = jobDescriptionSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobDescriptionSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMPLOYER_NAME_SNIPPET_FIELD_NUMBER = 13; - private volatile java.lang.Object employerNameSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The employerNameSnippet. - */ - @java.lang.Override - public java.lang.String getEmployerNameSnippet() { - java.lang.Object ref = employerNameSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - employerNameSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for employerNameSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { - java.lang.Object ref = employerNameSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - employerNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startDate_ != null) { - output.writeMessage(1, getStartDate()); - } - if (endDate_ != null) { - output.writeMessage(2, getEndDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employerName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, employerName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(divisionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, divisionName_); - } - if (address_ != null) { - output.writeMessage(5, getAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jobTitle_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, jobDescription_); - } - if (isSupervisor_ != null) { - output.writeMessage(8, getIsSupervisor()); - } - if (isSelfEmployed_ != null) { - output.writeMessage(9, getIsSelfEmployed()); - } - if (isCurrent_ != null) { - output.writeMessage(10, getIsCurrent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitleSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, jobTitleSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobDescriptionSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, jobDescriptionSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employerNameSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, employerNameSnippet_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartDate()); - } - if (endDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employerName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, employerName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(divisionName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, divisionName_); - } - if (address_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAddress()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, jobTitle_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, jobDescription_); - } - if (isSupervisor_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIsSupervisor()); - } - if (isSelfEmployed_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsSelfEmployed()); - } - if (isCurrent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIsCurrent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitleSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, jobTitleSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobDescriptionSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, jobDescriptionSnippet_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(employerNameSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, employerNameSnippet_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.EmploymentRecord)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.EmploymentRecord other = - (com.google.cloud.talent.v4beta1.EmploymentRecord) obj; - - if (hasStartDate() != other.hasStartDate()) return false; - if (hasStartDate()) { - if (!getStartDate().equals(other.getStartDate())) return false; - } - if (hasEndDate() != other.hasEndDate()) return false; - if (hasEndDate()) { - if (!getEndDate().equals(other.getEndDate())) return false; - } - if (!getEmployerName().equals(other.getEmployerName())) return false; - if (!getDivisionName().equals(other.getDivisionName())) return false; - if (hasAddress() != other.hasAddress()) return false; - if (hasAddress()) { - if (!getAddress().equals(other.getAddress())) return false; - } - if (!getJobTitle().equals(other.getJobTitle())) return false; - if (!getJobDescription().equals(other.getJobDescription())) return false; - if (hasIsSupervisor() != other.hasIsSupervisor()) return false; - if (hasIsSupervisor()) { - if (!getIsSupervisor().equals(other.getIsSupervisor())) return false; - } - if (hasIsSelfEmployed() != other.hasIsSelfEmployed()) return false; - if (hasIsSelfEmployed()) { - if (!getIsSelfEmployed().equals(other.getIsSelfEmployed())) return false; - } - if (hasIsCurrent() != other.hasIsCurrent()) return false; - if (hasIsCurrent()) { - if (!getIsCurrent().equals(other.getIsCurrent())) return false; - } - if (!getJobTitleSnippet().equals(other.getJobTitleSnippet())) return false; - if (!getJobDescriptionSnippet().equals(other.getJobDescriptionSnippet())) return false; - if (!getEmployerNameSnippet().equals(other.getEmployerNameSnippet())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartDate()) { - hash = (37 * hash) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - } - if (hasEndDate()) { - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - } - hash = (37 * hash) + EMPLOYER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEmployerName().hashCode(); - hash = (37 * hash) + DIVISION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDivisionName().hashCode(); - if (hasAddress()) { - hash = (37 * hash) + ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getAddress().hashCode(); - } - hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; - hash = (53 * hash) + getJobTitle().hashCode(); - hash = (37 * hash) + JOB_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getJobDescription().hashCode(); - if (hasIsSupervisor()) { - hash = (37 * hash) + IS_SUPERVISOR_FIELD_NUMBER; - hash = (53 * hash) + getIsSupervisor().hashCode(); - } - if (hasIsSelfEmployed()) { - hash = (37 * hash) + IS_SELF_EMPLOYED_FIELD_NUMBER; - hash = (53 * hash) + getIsSelfEmployed().hashCode(); - } - if (hasIsCurrent()) { - hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getIsCurrent().hashCode(); - } - hash = (37 * hash) + JOB_TITLE_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getJobTitleSnippet().hashCode(); - hash = (37 * hash) + JOB_DESCRIPTION_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getJobDescriptionSnippet().hashCode(); - hash = (37 * hash) + EMPLOYER_NAME_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getEmployerNameSnippet().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.EmploymentRecord prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents an employment record of a candidate.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.EmploymentRecord} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.EmploymentRecord) - com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.EmploymentRecord.class, - com.google.cloud.talent.v4beta1.EmploymentRecord.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.EmploymentRecord.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (startDateBuilder_ == null) { - startDate_ = null; - } else { - startDate_ = null; - startDateBuilder_ = null; - } - if (endDateBuilder_ == null) { - endDate_ = null; - } else { - endDate_ = null; - endDateBuilder_ = null; - } - employerName_ = ""; - - divisionName_ = ""; - - if (addressBuilder_ == null) { - address_ = null; - } else { - address_ = null; - addressBuilder_ = null; - } - jobTitle_ = ""; - - jobDescription_ = ""; - - if (isSupervisorBuilder_ == null) { - isSupervisor_ = null; - } else { - isSupervisor_ = null; - isSupervisorBuilder_ = null; - } - if (isSelfEmployedBuilder_ == null) { - isSelfEmployed_ = null; - } else { - isSelfEmployed_ = null; - isSelfEmployedBuilder_ = null; - } - if (isCurrentBuilder_ == null) { - isCurrent_ = null; - } else { - isCurrent_ = null; - isCurrentBuilder_ = null; - } - jobTitleSnippet_ = ""; - - jobDescriptionSnippet_ = ""; - - employerNameSnippet_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmploymentRecord build() { - com.google.cloud.talent.v4beta1.EmploymentRecord result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmploymentRecord buildPartial() { - com.google.cloud.talent.v4beta1.EmploymentRecord result = - new com.google.cloud.talent.v4beta1.EmploymentRecord(this); - if (startDateBuilder_ == null) { - result.startDate_ = startDate_; - } else { - result.startDate_ = startDateBuilder_.build(); - } - if (endDateBuilder_ == null) { - result.endDate_ = endDate_; - } else { - result.endDate_ = endDateBuilder_.build(); - } - result.employerName_ = employerName_; - result.divisionName_ = divisionName_; - if (addressBuilder_ == null) { - result.address_ = address_; - } else { - result.address_ = addressBuilder_.build(); - } - result.jobTitle_ = jobTitle_; - result.jobDescription_ = jobDescription_; - if (isSupervisorBuilder_ == null) { - result.isSupervisor_ = isSupervisor_; - } else { - result.isSupervisor_ = isSupervisorBuilder_.build(); - } - if (isSelfEmployedBuilder_ == null) { - result.isSelfEmployed_ = isSelfEmployed_; - } else { - result.isSelfEmployed_ = isSelfEmployedBuilder_.build(); - } - if (isCurrentBuilder_ == null) { - result.isCurrent_ = isCurrent_; - } else { - result.isCurrent_ = isCurrentBuilder_.build(); - } - result.jobTitleSnippet_ = jobTitleSnippet_; - result.jobDescriptionSnippet_ = jobDescriptionSnippet_; - result.employerNameSnippet_ = employerNameSnippet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.EmploymentRecord) { - return mergeFrom((com.google.cloud.talent.v4beta1.EmploymentRecord) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmploymentRecord other) { - if (other == com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()) - return this; - if (other.hasStartDate()) { - mergeStartDate(other.getStartDate()); - } - if (other.hasEndDate()) { - mergeEndDate(other.getEndDate()); - } - if (!other.getEmployerName().isEmpty()) { - employerName_ = other.employerName_; - onChanged(); - } - if (!other.getDivisionName().isEmpty()) { - divisionName_ = other.divisionName_; - onChanged(); - } - if (other.hasAddress()) { - mergeAddress(other.getAddress()); - } - if (!other.getJobTitle().isEmpty()) { - jobTitle_ = other.jobTitle_; - onChanged(); - } - if (!other.getJobDescription().isEmpty()) { - jobDescription_ = other.jobDescription_; - onChanged(); - } - if (other.hasIsSupervisor()) { - mergeIsSupervisor(other.getIsSupervisor()); - } - if (other.hasIsSelfEmployed()) { - mergeIsSelfEmployed(other.getIsSelfEmployed()); - } - if (other.hasIsCurrent()) { - mergeIsCurrent(other.getIsCurrent()); - } - if (!other.getJobTitleSnippet().isEmpty()) { - jobTitleSnippet_ = other.jobTitleSnippet_; - onChanged(); - } - if (!other.getJobDescriptionSnippet().isEmpty()) { - jobDescriptionSnippet_ = other.jobDescriptionSnippet_; - onChanged(); - } - if (!other.getEmployerNameSnippet().isEmpty()) { - employerNameSnippet_ = other.employerNameSnippet_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.EmploymentRecord parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.EmploymentRecord) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.type.Date startDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - startDateBuilder_; - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - public boolean hasStartDate() { - return startDateBuilder_ != null || startDate_ != null; - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - public com.google.type.Date getStartDate() { - if (startDateBuilder_ == null) { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } else { - return startDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startDate_ = value; - onChanged(); - } else { - startDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder setStartDate(com.google.type.Date.Builder builderForValue) { - if (startDateBuilder_ == null) { - startDate_ = builderForValue.build(); - onChanged(); - } else { - startDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder mergeStartDate(com.google.type.Date value) { - if (startDateBuilder_ == null) { - if (startDate_ != null) { - startDate_ = com.google.type.Date.newBuilder(startDate_).mergeFrom(value).buildPartial(); - } else { - startDate_ = value; - } - onChanged(); - } else { - startDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public Builder clearStartDate() { - if (startDateBuilder_ == null) { - startDate_ = null; - onChanged(); - } else { - startDate_ = null; - startDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public com.google.type.Date.Builder getStartDateBuilder() { - - onChanged(); - return getStartDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - */ - public com.google.type.DateOrBuilder getStartDateOrBuilder() { - if (startDateBuilder_ != null) { - return startDateBuilder_.getMessageOrBuilder(); - } else { - return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; - } - } - /** - * - * - *
-     * Start date of the employment.
-     * 
- * - * .google.type.Date start_date = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getStartDateFieldBuilder() { - if (startDateBuilder_ == null) { - startDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getStartDate(), getParentForChildren(), isClean()); - startDate_ = null; - } - return startDateBuilder_; - } - - private com.google.type.Date endDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - endDateBuilder_; - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - public boolean hasEndDate() { - return endDateBuilder_ != null || endDate_ != null; - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - public com.google.type.Date getEndDate() { - if (endDateBuilder_ == null) { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } else { - return endDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endDate_ = value; - onChanged(); - } else { - endDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder setEndDate(com.google.type.Date.Builder builderForValue) { - if (endDateBuilder_ == null) { - endDate_ = builderForValue.build(); - onChanged(); - } else { - endDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder mergeEndDate(com.google.type.Date value) { - if (endDateBuilder_ == null) { - if (endDate_ != null) { - endDate_ = com.google.type.Date.newBuilder(endDate_).mergeFrom(value).buildPartial(); - } else { - endDate_ = value; - } - onChanged(); - } else { - endDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public Builder clearEndDate() { - if (endDateBuilder_ == null) { - endDate_ = null; - onChanged(); - } else { - endDate_ = null; - endDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public com.google.type.Date.Builder getEndDateBuilder() { - - onChanged(); - return getEndDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - */ - public com.google.type.DateOrBuilder getEndDateOrBuilder() { - if (endDateBuilder_ != null) { - return endDateBuilder_.getMessageOrBuilder(); - } else { - return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; - } - } - /** - * - * - *
-     * End date of the employment.
-     * 
- * - * .google.type.Date end_date = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getEndDateFieldBuilder() { - if (endDateBuilder_ == null) { - endDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getEndDate(), getParentForChildren(), isClean()); - endDate_ = null; - } - return endDateBuilder_; - } - - private java.lang.Object employerName_ = ""; - /** - * - * - *
-     * The name of the employer company/organization.
-     * For example, "Google", "Alphabet", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string employer_name = 3; - * - * @return The employerName. - */ - public java.lang.String getEmployerName() { - java.lang.Object ref = employerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - employerName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the employer company/organization.
-     * For example, "Google", "Alphabet", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string employer_name = 3; - * - * @return The bytes for employerName. - */ - public com.google.protobuf.ByteString getEmployerNameBytes() { - java.lang.Object ref = employerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - employerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the employer company/organization.
-     * For example, "Google", "Alphabet", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string employer_name = 3; - * - * @param value The employerName to set. - * @return This builder for chaining. - */ - public Builder setEmployerName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - employerName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the employer company/organization.
-     * For example, "Google", "Alphabet", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string employer_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearEmployerName() { - - employerName_ = getDefaultInstance().getEmployerName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the employer company/organization.
-     * For example, "Google", "Alphabet", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string employer_name = 3; - * - * @param value The bytes for employerName to set. - * @return This builder for chaining. - */ - public Builder setEmployerNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - employerName_ = value; - onChanged(); - return this; - } - - private java.lang.Object divisionName_ = ""; - /** - * - * - *
-     * The division name of the employment.
-     * For example, division, department, client, and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string division_name = 4; - * - * @return The divisionName. - */ - public java.lang.String getDivisionName() { - java.lang.Object ref = divisionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - divisionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The division name of the employment.
-     * For example, division, department, client, and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string division_name = 4; - * - * @return The bytes for divisionName. - */ - public com.google.protobuf.ByteString getDivisionNameBytes() { - java.lang.Object ref = divisionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - divisionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The division name of the employment.
-     * For example, division, department, client, and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string division_name = 4; - * - * @param value The divisionName to set. - * @return This builder for chaining. - */ - public Builder setDivisionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - divisionName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The division name of the employment.
-     * For example, division, department, client, and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string division_name = 4; - * - * @return This builder for chaining. - */ - public Builder clearDivisionName() { - - divisionName_ = getDefaultInstance().getDivisionName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The division name of the employment.
-     * For example, division, department, client, and so on.
-     * Number of characters allowed is 100.
-     * 
- * - * string division_name = 4; - * - * @param value The bytes for divisionName to set. - * @return This builder for chaining. - */ - public Builder setDivisionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - divisionName_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.Address address_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder> - addressBuilder_; - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return Whether the address field is set. - */ - public boolean hasAddress() { - return addressBuilder_ != null || address_ != null; - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return The address. - */ - public com.google.cloud.talent.v4beta1.Address getAddress() { - if (addressBuilder_ == null) { - return address_ == null - ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() - : address_; - } else { - return addressBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder setAddress(com.google.cloud.talent.v4beta1.Address value) { - if (addressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - address_ = value; - onChanged(); - } else { - addressBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder setAddress(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { - if (addressBuilder_ == null) { - address_ = builderForValue.build(); - onChanged(); - } else { - addressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder mergeAddress(com.google.cloud.talent.v4beta1.Address value) { - if (addressBuilder_ == null) { - if (address_ != null) { - address_ = - com.google.cloud.talent.v4beta1.Address.newBuilder(address_) - .mergeFrom(value) - .buildPartial(); - } else { - address_ = value; - } - onChanged(); - } else { - addressBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public Builder clearAddress() { - if (addressBuilder_ == null) { - address_ = null; - onChanged(); - } else { - address_ = null; - addressBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public com.google.cloud.talent.v4beta1.Address.Builder getAddressBuilder() { - - onChanged(); - return getAddressFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder() { - if (addressBuilder_ != null) { - return addressBuilder_.getMessageOrBuilder(); - } else { - return address_ == null - ? com.google.cloud.talent.v4beta1.Address.getDefaultInstance() - : address_; - } - } - /** - * - * - *
-     * The physical address of the employer.
-     * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder> - getAddressFieldBuilder() { - if (addressBuilder_ == null) { - addressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder>( - getAddress(), getParentForChildren(), isClean()); - address_ = null; - } - return addressBuilder_; - } - - private java.lang.Object jobTitle_ = ""; - /** - * - * - *
-     * The job title of the employment.
-     * For example, "Software Engineer", "Data Scientist", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string job_title = 6; - * - * @return The jobTitle. - */ - public java.lang.String getJobTitle() { - java.lang.Object ref = jobTitle_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitle_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The job title of the employment.
-     * For example, "Software Engineer", "Data Scientist", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string job_title = 6; - * - * @return The bytes for jobTitle. - */ - public com.google.protobuf.ByteString getJobTitleBytes() { - java.lang.Object ref = jobTitle_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The job title of the employment.
-     * For example, "Software Engineer", "Data Scientist", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string job_title = 6; - * - * @param value The jobTitle to set. - * @return This builder for chaining. - */ - public Builder setJobTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobTitle_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The job title of the employment.
-     * For example, "Software Engineer", "Data Scientist", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string job_title = 6; - * - * @return This builder for chaining. - */ - public Builder clearJobTitle() { - - jobTitle_ = getDefaultInstance().getJobTitle(); - onChanged(); - return this; - } - /** - * - * - *
-     * The job title of the employment.
-     * For example, "Software Engineer", "Data Scientist", and so on.
-     * Number of characters allowed is 250.
-     * 
- * - * string job_title = 6; - * - * @param value The bytes for jobTitle to set. - * @return This builder for chaining. - */ - public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobTitle_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobDescription_ = ""; - /** - * - * - *
-     * The description of job content.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string job_description = 7; - * - * @return The jobDescription. - */ - public java.lang.String getJobDescription() { - java.lang.Object ref = jobDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of job content.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string job_description = 7; - * - * @return The bytes for jobDescription. - */ - public com.google.protobuf.ByteString getJobDescriptionBytes() { - java.lang.Object ref = jobDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of job content.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string job_description = 7; - * - * @param value The jobDescription to set. - * @return This builder for chaining. - */ - public Builder setJobDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobDescription_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of job content.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string job_description = 7; - * - * @return This builder for chaining. - */ - public Builder clearJobDescription() { - - jobDescription_ = getDefaultInstance().getJobDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of job content.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string job_description = 7; - * - * @param value The bytes for jobDescription to set. - * @return This builder for chaining. - */ - public Builder setJobDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobDescription_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue isSupervisor_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isSupervisorBuilder_; - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - * - * @return Whether the isSupervisor field is set. - */ - public boolean hasIsSupervisor() { - return isSupervisorBuilder_ != null || isSupervisor_ != null; - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - * - * @return The isSupervisor. - */ - public com.google.protobuf.BoolValue getIsSupervisor() { - if (isSupervisorBuilder_ == null) { - return isSupervisor_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSupervisor_; - } else { - return isSupervisorBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - public Builder setIsSupervisor(com.google.protobuf.BoolValue value) { - if (isSupervisorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - isSupervisor_ = value; - onChanged(); - } else { - isSupervisorBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - public Builder setIsSupervisor(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isSupervisorBuilder_ == null) { - isSupervisor_ = builderForValue.build(); - onChanged(); - } else { - isSupervisorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - public Builder mergeIsSupervisor(com.google.protobuf.BoolValue value) { - if (isSupervisorBuilder_ == null) { - if (isSupervisor_ != null) { - isSupervisor_ = - com.google.protobuf.BoolValue.newBuilder(isSupervisor_) - .mergeFrom(value) - .buildPartial(); - } else { - isSupervisor_ = value; - } - onChanged(); - } else { - isSupervisorBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - public Builder clearIsSupervisor() { - if (isSupervisorBuilder_ == null) { - isSupervisor_ = null; - onChanged(); - } else { - isSupervisor_ = null; - isSupervisorBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - public com.google.protobuf.BoolValue.Builder getIsSupervisorBuilder() { - - onChanged(); - return getIsSupervisorFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - public com.google.protobuf.BoolValueOrBuilder getIsSupervisorOrBuilder() { - if (isSupervisorBuilder_ != null) { - return isSupervisorBuilder_.getMessageOrBuilder(); - } else { - return isSupervisor_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSupervisor_; - } - } - /** - * - * - *
-     * If the jobs is a supervisor position.
-     * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getIsSupervisorFieldBuilder() { - if (isSupervisorBuilder_ == null) { - isSupervisorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsSupervisor(), getParentForChildren(), isClean()); - isSupervisor_ = null; - } - return isSupervisorBuilder_; - } - - private com.google.protobuf.BoolValue isSelfEmployed_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isSelfEmployedBuilder_; - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - * - * @return Whether the isSelfEmployed field is set. - */ - public boolean hasIsSelfEmployed() { - return isSelfEmployedBuilder_ != null || isSelfEmployed_ != null; - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - * - * @return The isSelfEmployed. - */ - public com.google.protobuf.BoolValue getIsSelfEmployed() { - if (isSelfEmployedBuilder_ == null) { - return isSelfEmployed_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSelfEmployed_; - } else { - return isSelfEmployedBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - public Builder setIsSelfEmployed(com.google.protobuf.BoolValue value) { - if (isSelfEmployedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - isSelfEmployed_ = value; - onChanged(); - } else { - isSelfEmployedBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - public Builder setIsSelfEmployed(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isSelfEmployedBuilder_ == null) { - isSelfEmployed_ = builderForValue.build(); - onChanged(); - } else { - isSelfEmployedBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - public Builder mergeIsSelfEmployed(com.google.protobuf.BoolValue value) { - if (isSelfEmployedBuilder_ == null) { - if (isSelfEmployed_ != null) { - isSelfEmployed_ = - com.google.protobuf.BoolValue.newBuilder(isSelfEmployed_) - .mergeFrom(value) - .buildPartial(); - } else { - isSelfEmployed_ = value; - } - onChanged(); - } else { - isSelfEmployedBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - public Builder clearIsSelfEmployed() { - if (isSelfEmployedBuilder_ == null) { - isSelfEmployed_ = null; - onChanged(); - } else { - isSelfEmployed_ = null; - isSelfEmployedBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - public com.google.protobuf.BoolValue.Builder getIsSelfEmployedBuilder() { - - onChanged(); - return getIsSelfEmployedFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - public com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder() { - if (isSelfEmployedBuilder_ != null) { - return isSelfEmployedBuilder_.getMessageOrBuilder(); - } else { - return isSelfEmployed_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSelfEmployed_; - } - } - /** - * - * - *
-     * If this employment is self-employed.
-     * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getIsSelfEmployedFieldBuilder() { - if (isSelfEmployedBuilder_ == null) { - isSelfEmployedBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsSelfEmployed(), getParentForChildren(), isClean()); - isSelfEmployed_ = null; - } - return isSelfEmployedBuilder_; - } - - private com.google.protobuf.BoolValue isCurrent_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isCurrentBuilder_; - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - * - * @return Whether the isCurrent field is set. - */ - public boolean hasIsCurrent() { - return isCurrentBuilder_ != null || isCurrent_ != null; - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - * - * @return The isCurrent. - */ - public com.google.protobuf.BoolValue getIsCurrent() { - if (isCurrentBuilder_ == null) { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; - } else { - return isCurrentBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - public Builder setIsCurrent(com.google.protobuf.BoolValue value) { - if (isCurrentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - isCurrent_ = value; - onChanged(); - } else { - isCurrentBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isCurrentBuilder_ == null) { - isCurrent_ = builderForValue.build(); - onChanged(); - } else { - isCurrentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { - if (isCurrentBuilder_ == null) { - if (isCurrent_ != null) { - isCurrent_ = - com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); - } else { - isCurrent_ = value; - } - onChanged(); - } else { - isCurrentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - public Builder clearIsCurrent() { - if (isCurrentBuilder_ == null) { - isCurrent_ = null; - onChanged(); - } else { - isCurrent_ = null; - isCurrentBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { - - onChanged(); - return getIsCurrentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { - if (isCurrentBuilder_ != null) { - return isCurrentBuilder_.getMessageOrBuilder(); - } else { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; - } - } - /** - * - * - *
-     * If this employment is current.
-     * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getIsCurrentFieldBuilder() { - if (isCurrentBuilder_ == null) { - isCurrentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsCurrent(), getParentForChildren(), isClean()); - isCurrent_ = null; - } - return isCurrentBuilder_; - } - - private java.lang.Object jobTitleSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobTitleSnippet. - */ - public java.lang.String getJobTitleSnippet() { - java.lang.Object ref = jobTitleSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitleSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobTitleSnippet. - */ - public com.google.protobuf.ByteString getJobTitleSnippetBytes() { - java.lang.Object ref = jobTitleSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitleSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The jobTitleSnippet to set. - * @return This builder for chaining. - */ - public Builder setJobTitleSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobTitleSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearJobTitleSnippet() { - - jobTitleSnippet_ = getDefaultInstance().getJobTitleSnippet(); - onChanged(); - 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.
-     * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for jobTitleSnippet to set. - * @return This builder for chaining. - */ - public Builder setJobTitleSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobTitleSnippet_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobDescriptionSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The jobDescriptionSnippet. - */ - public java.lang.String getJobDescriptionSnippet() { - java.lang.Object ref = jobDescriptionSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobDescriptionSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for jobDescriptionSnippet. - */ - public com.google.protobuf.ByteString getJobDescriptionSnippetBytes() { - java.lang.Object ref = jobDescriptionSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobDescriptionSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The jobDescriptionSnippet to set. - * @return This builder for chaining. - */ - public Builder setJobDescriptionSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobDescriptionSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearJobDescriptionSnippet() { - - jobDescriptionSnippet_ = getDefaultInstance().getJobDescriptionSnippet(); - onChanged(); - 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.
-     * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes for jobDescriptionSnippet to set. - * @return This builder for chaining. - */ - public Builder setJobDescriptionSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobDescriptionSnippet_ = value; - onChanged(); - return this; - } - - private java.lang.Object employerNameSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The employerNameSnippet. - */ - public java.lang.String getEmployerNameSnippet() { - java.lang.Object ref = employerNameSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - employerNameSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for employerNameSnippet. - */ - public com.google.protobuf.ByteString getEmployerNameSnippetBytes() { - java.lang.Object ref = employerNameSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - employerNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The employerNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setEmployerNameSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - employerNameSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearEmployerNameSnippet() { - - employerNameSnippet_ = getDefaultInstance().getEmployerNameSnippet(); - onChanged(); - 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.
-     * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for employerNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setEmployerNameSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - employerNameSnippet_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.EmploymentRecord) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.EmploymentRecord) - private static final com.google.cloud.talent.v4beta1.EmploymentRecord DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.EmploymentRecord(); - } - - public static com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmploymentRecord parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmploymentRecord(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmploymentRecord getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java deleted file mode 100644 index 106c175c..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java +++ /dev/null @@ -1,436 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface EmploymentRecordOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.EmploymentRecord) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Start date of the employment.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return Whether the startDate field is set. - */ - boolean hasStartDate(); - /** - * - * - *
-   * Start date of the employment.
-   * 
- * - * .google.type.Date start_date = 1; - * - * @return The startDate. - */ - com.google.type.Date getStartDate(); - /** - * - * - *
-   * Start date of the employment.
-   * 
- * - * .google.type.Date start_date = 1; - */ - com.google.type.DateOrBuilder getStartDateOrBuilder(); - - /** - * - * - *
-   * End date of the employment.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return Whether the endDate field is set. - */ - boolean hasEndDate(); - /** - * - * - *
-   * End date of the employment.
-   * 
- * - * .google.type.Date end_date = 2; - * - * @return The endDate. - */ - com.google.type.Date getEndDate(); - /** - * - * - *
-   * End date of the employment.
-   * 
- * - * .google.type.Date end_date = 2; - */ - com.google.type.DateOrBuilder getEndDateOrBuilder(); - - /** - * - * - *
-   * The name of the employer company/organization.
-   * For example, "Google", "Alphabet", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string employer_name = 3; - * - * @return The employerName. - */ - java.lang.String getEmployerName(); - /** - * - * - *
-   * The name of the employer company/organization.
-   * For example, "Google", "Alphabet", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string employer_name = 3; - * - * @return The bytes for employerName. - */ - com.google.protobuf.ByteString getEmployerNameBytes(); - - /** - * - * - *
-   * The division name of the employment.
-   * For example, division, department, client, and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string division_name = 4; - * - * @return The divisionName. - */ - java.lang.String getDivisionName(); - /** - * - * - *
-   * The division name of the employment.
-   * For example, division, department, client, and so on.
-   * Number of characters allowed is 100.
-   * 
- * - * string division_name = 4; - * - * @return The bytes for divisionName. - */ - com.google.protobuf.ByteString getDivisionNameBytes(); - - /** - * - * - *
-   * The physical address of the employer.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return Whether the address field is set. - */ - boolean hasAddress(); - /** - * - * - *
-   * The physical address of the employer.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - * - * @return The address. - */ - com.google.cloud.talent.v4beta1.Address getAddress(); - /** - * - * - *
-   * The physical address of the employer.
-   * 
- * - * .google.cloud.talent.v4beta1.Address address = 5; - */ - com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressOrBuilder(); - - /** - * - * - *
-   * The job title of the employment.
-   * For example, "Software Engineer", "Data Scientist", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string job_title = 6; - * - * @return The jobTitle. - */ - java.lang.String getJobTitle(); - /** - * - * - *
-   * The job title of the employment.
-   * For example, "Software Engineer", "Data Scientist", and so on.
-   * Number of characters allowed is 250.
-   * 
- * - * string job_title = 6; - * - * @return The bytes for jobTitle. - */ - com.google.protobuf.ByteString getJobTitleBytes(); - - /** - * - * - *
-   * The description of job content.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string job_description = 7; - * - * @return The jobDescription. - */ - java.lang.String getJobDescription(); - /** - * - * - *
-   * The description of job content.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string job_description = 7; - * - * @return The bytes for jobDescription. - */ - com.google.protobuf.ByteString getJobDescriptionBytes(); - - /** - * - * - *
-   * If the jobs is a supervisor position.
-   * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - * - * @return Whether the isSupervisor field is set. - */ - boolean hasIsSupervisor(); - /** - * - * - *
-   * If the jobs is a supervisor position.
-   * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - * - * @return The isSupervisor. - */ - com.google.protobuf.BoolValue getIsSupervisor(); - /** - * - * - *
-   * If the jobs is a supervisor position.
-   * 
- * - * .google.protobuf.BoolValue is_supervisor = 8; - */ - com.google.protobuf.BoolValueOrBuilder getIsSupervisorOrBuilder(); - - /** - * - * - *
-   * If this employment is self-employed.
-   * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - * - * @return Whether the isSelfEmployed field is set. - */ - boolean hasIsSelfEmployed(); - /** - * - * - *
-   * If this employment is self-employed.
-   * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - * - * @return The isSelfEmployed. - */ - com.google.protobuf.BoolValue getIsSelfEmployed(); - /** - * - * - *
-   * If this employment is self-employed.
-   * 
- * - * .google.protobuf.BoolValue is_self_employed = 9; - */ - com.google.protobuf.BoolValueOrBuilder getIsSelfEmployedOrBuilder(); - - /** - * - * - *
-   * If this employment is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 10; - * - * @return Whether the isCurrent field is set. - */ - boolean hasIsCurrent(); - /** - * - * - *
-   * If this employment is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 10; - * - * @return The isCurrent. - */ - com.google.protobuf.BoolValue getIsCurrent(); - /** - * - * - *
-   * If this employment is current.
-   * 
- * - * .google.protobuf.BoolValue is_current = 10; - */ - com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobTitleSnippet. - */ - java.lang.String getJobTitleSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string job_title_snippet = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobTitleSnippet. - */ - com.google.protobuf.ByteString getJobTitleSnippetBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The jobDescriptionSnippet. - */ - java.lang.String getJobDescriptionSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string job_description_snippet = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for jobDescriptionSnippet. - */ - com.google.protobuf.ByteString getJobDescriptionSnippetBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The employerNameSnippet. - */ - java.lang.String getEmployerNameSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string employer_name_snippet = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for employerNameSnippet. - */ - com.google.protobuf.ByteString getEmployerNameSnippetBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java index 95a50ab0..9bf3bda8 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java @@ -35,10 +35,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -51,36 +47,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n\'google/cloud/talent/v4beta1/event.prot" + "o\022\033google.cloud.talent.v4beta1\032\037google/a" + "pi/field_behavior.proto\032\037google/protobuf" - + "/timestamp.proto\032\034google/api/annotations" - + ".proto\"\214\002\n\013ClientEvent\022\022\n\nrequest_id\030\001 \001" - + "(\t\022\025\n\010event_id\030\002 \001(\tB\003\340A\002\0224\n\013create_time" - + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022" - + ":\n\tjob_event\030\005 \001(\0132%.google.cloud.talent" - + ".v4beta1.JobEventH\000\022B\n\rprofile_event\030\006 \001" - + "(\0132).google.cloud.talent.v4beta1.Profile" - + "EventH\000\022\023\n\013event_notes\030\t \001(\tB\007\n\005event\"\366\003" - + "\n\010JobEvent\022E\n\004type\030\001 \001(\01622.google.cloud." - + "talent.v4beta1.JobEvent.JobEventTypeB\003\340A" - + "\002\022\021\n\004jobs\030\002 \003(\tB\003\340A\002\022\017\n\007profile\030\003 \001(\t\"\376\002" - + "\n\014JobEventType\022\036\n\032JOB_EVENT_TYPE_UNSPECI" - + "FIED\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004VIEW\020\002\022\021\n\rVIEW" - + "_REDIRECT\020\003\022\025\n\021APPLICATION_START\020\004\022\026\n\022AP" - + "PLICATION_FINISH\020\005\022 \n\034APPLICATION_QUICK_" - + "SUBMISSION\020\006\022\030\n\024APPLICATION_REDIRECT\020\007\022!" - + "\n\035APPLICATION_START_FROM_SEARCH\020\010\022$\n APP" - + "LICATION_REDIRECT_FROM_SEARCH\020\t\022\036\n\032APPLI" - + "CATION_COMPANY_SUBMIT\020\n\022\014\n\010BOOKMARK\020\013\022\020\n" - + "\014NOTIFICATION\020\014\022\t\n\005HIRED\020\r\022\013\n\007SENT_CV\020\016\022" - + "\025\n\021INTERVIEW_GRANTED\020\017\"\342\001\n\014ProfileEvent\022" - + "M\n\004type\030\001 \001(\0162:.google.cloud.talent.v4be" - + "ta1.ProfileEvent.ProfileEventTypeB\003\340A\002\022\025" - + "\n\010profiles\030\002 \003(\tB\003\340A\002\022\014\n\004jobs\030\006 \003(\t\"^\n\020P" - + "rofileEventType\022\"\n\036PROFILE_EVENT_TYPE_UN" - + "SPECIFIED\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004VIEW\020\002\022\014\n" - + "\010BOOKMARK\020\003Bx\n\037com.google.cloud.talent.v" - + "4beta1B\nEventProtoP\001ZAgoogle.golang.org/" - + "genproto/googleapis/cloud/talent/v4beta1" - + ";talent\242\002\003CTSb\006proto3" + + "/timestamp.proto\"\310\001\n\013ClientEvent\022\022\n\nrequ" + + "est_id\030\001 \001(\t\022\025\n\010event_id\030\002 \001(\tB\003\340A\002\0224\n\013c" + + "reate_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\002\022:\n\tjob_event\030\005 \001(\0132%.google.cl" + + "oud.talent.v4beta1.JobEventH\000\022\023\n\013event_n" + + "otes\030\t \001(\tB\007\n\005event\"\366\003\n\010JobEvent\022E\n\004type" + + "\030\001 \001(\01622.google.cloud.talent.v4beta1.Job" + + "Event.JobEventTypeB\003\340A\002\022\021\n\004jobs\030\002 \003(\tB\003\340" + + "A\002\022\017\n\007profile\030\003 \001(\t\"\376\002\n\014JobEventType\022\036\n\032" + + "JOB_EVENT_TYPE_UNSPECIFIED\020\000\022\016\n\nIMPRESSI" + + "ON\020\001\022\010\n\004VIEW\020\002\022\021\n\rVIEW_REDIRECT\020\003\022\025\n\021APP" + + "LICATION_START\020\004\022\026\n\022APPLICATION_FINISH\020\005" + + "\022 \n\034APPLICATION_QUICK_SUBMISSION\020\006\022\030\n\024AP" + + "PLICATION_REDIRECT\020\007\022!\n\035APPLICATION_STAR" + + "T_FROM_SEARCH\020\010\022$\n APPLICATION_REDIRECT_" + + "FROM_SEARCH\020\t\022\036\n\032APPLICATION_COMPANY_SUB" + + "MIT\020\n\022\014\n\010BOOKMARK\020\013\022\020\n\014NOTIFICATION\020\014\022\t\n" + + "\005HIRED\020\r\022\013\n\007SENT_CV\020\016\022\025\n\021INTERVIEW_GRANT" + + "ED\020\017Bx\n\037com.google.cloud.talent.v4beta1B" + + "\nEventProtoP\001ZAgoogle.golang.org/genprot" + + "o/googleapis/cloud/talent/v4beta1;talent" + + "\242\002\003CTSb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -88,7 +76,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor = getDescriptor().getMessageTypes().get(0); @@ -96,13 +83,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor, new java.lang.String[] { - "RequestId", - "EventId", - "CreateTime", - "JobEvent", - "ProfileEvent", - "EventNotes", - "Event", + "RequestId", "EventId", "CreateTime", "JobEvent", "EventNotes", "Event", }); internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor = getDescriptor().getMessageTypes().get(1); @@ -112,14 +93,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Type", "Jobs", "Profile", }); - internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor, - new java.lang.String[] { - "Type", "Profiles", "Jobs", - }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -127,7 +100,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java index 6bc84f4f..63e204fd 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java @@ -31,10 +31,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -47,54 +43,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_PersonNameFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_PersonNameFilter_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -108,129 +56,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\022\033google.cloud.talent.v4beta1\032\037google" + "/api/field_behavior.proto\032(google/cloud/" + "talent/v4beta1/common.proto\032\036google/prot" - + "obuf/duration.proto\032 google/protobuf/fie" - + "ld_mask.proto\032\037google/protobuf/timestamp" - + ".proto\032\036google/protobuf/wrappers.proto\032\026" - + "google/type/date.proto\032\030google/type/latl" - + "ng.proto\032\033google/type/timeofday.proto\032\034g" - + "oogle/api/annotations.proto\"\200\005\n\010JobQuery" - + "\022\r\n\005query\030\001 \001(\t\022\033\n\023query_language_code\030\016" - + " \001(\t\022\021\n\tcompanies\030\002 \003(\t\022E\n\020location_filt" - + "ers\030\003 \003(\0132+.google.cloud.talent.v4beta1." - + "LocationFilter\022@\n\016job_categories\030\004 \003(\0162(" - + ".google.cloud.talent.v4beta1.JobCategory" - + "\022B\n\016commute_filter\030\005 \001(\0132*.google.cloud." - + "talent.v4beta1.CommuteFilter\022\035\n\025company_" - + "display_names\030\006 \003(\t\022L\n\023compensation_filt" - + "er\030\007 \001(\0132/.google.cloud.talent.v4beta1.C" - + "ompensationFilter\022\037\n\027custom_attribute_fi" - + "lter\030\010 \001(\t\022\033\n\023disable_spell_check\030\t \001(\010\022" - + "E\n\020employment_types\030\n \003(\0162+.google.cloud" - + ".talent.v4beta1.EmploymentType\022\026\n\016langua" - + "ge_codes\030\013 \003(\t\022G\n\022publish_time_range\030\014 \001" - + "(\0132+.google.cloud.talent.v4beta1.Timesta" - + "mpRange\022\025\n\rexcluded_jobs\030\r \003(\t\"\365\010\n\014Profi" - + "leQuery\022\r\n\005query\030\001 \001(\t\022E\n\020location_filte" - + "rs\030\002 \003(\0132+.google.cloud.talent.v4beta1.L" - + "ocationFilter\022F\n\021job_title_filters\030\003 \003(\013" - + "2+.google.cloud.talent.v4beta1.JobTitleF" - + "ilter\022E\n\020employer_filters\030\004 \003(\0132+.google" - + ".cloud.talent.v4beta1.EmployerFilter\022G\n\021" - + "education_filters\030\005 \003(\0132,.google.cloud.t" - + "alent.v4beta1.EducationFilter\022?\n\rskill_f" - + "ilters\030\006 \003(\0132(.google.cloud.talent.v4bet" - + "a1.SkillFilter\022Q\n\026work_experience_filter" - + "\030\007 \003(\01321.google.cloud.talent.v4beta1.Wor" - + "kExperienceFilter\022=\n\014time_filters\030\010 \003(\0132" - + "\'.google.cloud.talent.v4beta1.TimeFilter" - + "\0222\n\016hirable_filter\030\t \001(\0132\032.google.protob" - + "uf.BoolValue\022T\n\030application_date_filters" - + "\030\n \003(\01322.google.cloud.talent.v4beta1.App" - + "licationDateFilter\022e\n!application_outcom" - + "e_notes_filters\030\013 \003(\0132:.google.cloud.tal" - + "ent.v4beta1.ApplicationOutcomeNotesFilte" - + "r\022R\n\027application_job_filters\030\r \003(\01321.goo" - + "gle.cloud.talent.v4beta1.ApplicationJobF" - + "ilter\022\037\n\027custom_attribute_filter\030\017 \001(\t\022c" - + "\n\035candidate_availability_filter\030\020 \001(\01328." - + "google.cloud.talent.v4beta1.CandidateAva" - + "ilabilityFilterB\002\030\001\022M\n\024availability_filt" - + "ers\030\022 \003(\0132/.google.cloud.talent.v4beta1." - + "AvailabilityFilter\022J\n\023person_name_filter" - + "s\030\021 \003(\0132-.google.cloud.talent.v4beta1.Pe" - + "rsonNameFilter\"\337\002\n\016LocationFilter\022\017\n\007add" - + "ress\030\001 \001(\t\022\023\n\013region_code\030\002 \001(\t\022$\n\007lat_l" - + "ng\030\003 \001(\0132\023.google.type.LatLng\022\031\n\021distanc" - + "e_in_miles\030\004 \001(\001\022a\n\026telecommute_preferen" - + "ce\030\005 \001(\0162A.google.cloud.talent.v4beta1.L" - + "ocationFilter.TelecommutePreference\022\017\n\007n" - + "egated\030\006 \001(\010\"r\n\025TelecommutePreference\022&\n" - + "\"TELECOMMUTE_PREFERENCE_UNSPECIFIED\020\000\022\030\n" - + "\024TELECOMMUTE_EXCLUDED\020\001\022\027\n\023TELECOMMUTE_A" - + "LLOWED\020\002\"\312\003\n\022CompensationFilter\022M\n\004type\030" - + "\001 \001(\0162:.google.cloud.talent.v4beta1.Comp" - + "ensationFilter.FilterTypeB\003\340A\002\022R\n\005units\030" - + "\002 \003(\0162>.google.cloud.talent.v4beta1.Comp" - + "ensationInfo.CompensationUnitB\003\340A\002\022N\n\005ra" - + "nge\030\003 \001(\0132?.google.cloud.talent.v4beta1." - + "CompensationInfo.CompensationRange\0228\n0in" - + "clude_jobs_with_unspecified_compensation" - + "_range\030\004 \001(\010\"\206\001\n\nFilterType\022\033\n\027FILTER_TY" - + "PE_UNSPECIFIED\020\000\022\r\n\tUNIT_ONLY\020\001\022\023\n\017UNIT_" - + "AND_AMOUNT\020\002\022\032\n\026ANNUALIZED_BASE_AMOUNT\020\003" - + "\022\033\n\027ANNUALIZED_TOTAL_AMOUNT\020\004\"\313\003\n\rCommut" - + "eFilter\022G\n\016commute_method\030\001 \001(\0162*.google" - + ".cloud.talent.v4beta1.CommuteMethodB\003\340A\002" - + "\0223\n\021start_coordinates\030\002 \001(\0132\023.google.typ" - + "e.LatLngB\003\340A\002\0227\n\017travel_duration\030\003 \001(\0132\031" - + ".google.protobuf.DurationB\003\340A\002\022!\n\031allow_" - + "imprecise_addresses\030\004 \001(\010\022N\n\014road_traffi" - + "c\030\005 \001(\01626.google.cloud.talent.v4beta1.Co" - + "mmuteFilter.RoadTrafficH\000\0220\n\016departure_t" - + "ime\030\006 \001(\0132\026.google.type.TimeOfDayH\000\"L\n\013R" - + "oadTraffic\022\034\n\030ROAD_TRAFFIC_UNSPECIFIED\020\000" - + "\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tBUSY_HOUR\020\002B\020\n\016tra" - + "ffic_option\"9\n\016JobTitleFilter\022\026\n\tjob_tit" - + "le\030\001 \001(\tB\003\340A\002\022\017\n\007negated\030\002 \001(\010\"2\n\013SkillF" - + "ilter\022\022\n\005skill\030\001 \001(\tB\003\340A\002\022\017\n\007negated\030\002 \001" - + "(\010\"\246\002\n\016EmployerFilter\022\025\n\010employer\030\001 \001(\tB" - + "\003\340A\002\022L\n\004mode\030\002 \001(\0162>.google.cloud.talent" - + ".v4beta1.EmployerFilter.EmployerFilterMo" - + "de\022\017\n\007negated\030\003 \001(\010\"\235\001\n\022EmployerFilterMo" - + "de\022$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\020\000" - + "\022\032\n\026ALL_EMPLOYMENT_RECORDS\020\001\022#\n\037CURRENT_" - + "EMPLOYMENT_RECORDS_ONLY\020\002\022 \n\034PAST_EMPLOY" - + "MENT_RECORDS_ONLY\020\003\"\210\001\n\017EducationFilter\022" - + "\016\n\006school\030\001 \001(\t\022\026\n\016field_of_study\030\002 \001(\t\022" - + "<\n\013degree_type\030\003 \001(\0162\'.google.cloud.tale" - + "nt.v4beta1.DegreeType\022\017\n\007negated\030\006 \001(\010\"|" - + "\n\024WorkExperienceFilter\0221\n\016min_experience" - + "\030\001 \001(\0132\031.google.protobuf.Duration\0221\n\016max" - + "_experience\030\002 \001(\0132\031.google.protobuf.Dura" - + "tion\"c\n\025ApplicationDateFilter\022%\n\nstart_d" - + "ate\030\001 \001(\0132\021.google.type.Date\022#\n\010end_date" - + "\030\002 \001(\0132\021.google.type.Date\"L\n\035Application" - + "OutcomeNotesFilter\022\032\n\routcome_notes\030\001 \001(" - + "\tB\003\340A\002\022\017\n\007negated\030\002 \001(\010\"V\n\024ApplicationJo" - + "bFilter\022\032\n\022job_requisition_id\030\002 \001(\t\022\021\n\tj" - + "ob_title\030\003 \001(\t\022\017\n\007negated\030\004 \001(\010\"\374\001\n\nTime" - + "Filter\022.\n\nstart_time\030\001 \001(\0132\032.google.prot" - + "obuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022E\n\ntime_field\030\003 \001(\016" - + "21.google.cloud.talent.v4beta1.TimeFilte" - + "r.TimeField\"I\n\tTimeField\022\032\n\026TIME_FIELD_U" - + "NSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013UPDATE_" - + "TIME\020\002\"2\n\033CandidateAvailabilityFilter\022\017\n" - + "\007negated\030\001 \001(\010:\002\030\001\"\266\001\n\022AvailabilityFilte" - + "r\022M\n\013signal_type\030\001 \001(\01623.google.cloud.ta" - + "lent.v4beta1.AvailabilitySignalTypeB\003\340A\002" - + "\022?\n\005range\030\002 \001(\0132+.google.cloud.talent.v4" - + "beta1.TimestampRangeB\003\340A\002\022\020\n\010required\030\003 " - + "\001(\010\",\n\020PersonNameFilter\022\030\n\013person_name\030\001" - + " \001(\tB\003\340A\002Bz\n\037com.google.cloud.talent.v4b" - + "eta1B\014FiltersProtoP\001ZAgoogle.golang.org/" - + "genproto/googleapis/cloud/talent/v4beta1" - + ";talent\242\002\003CTSb\006proto3" + + "obuf/duration.proto\032\030google/type/latlng." + + "proto\032\033google/type/timeofday.proto\"\200\005\n\010J" + + "obQuery\022\r\n\005query\030\001 \001(\t\022\033\n\023query_language" + + "_code\030\016 \001(\t\022\021\n\tcompanies\030\002 \003(\t\022E\n\020locati" + + "on_filters\030\003 \003(\0132+.google.cloud.talent.v" + + "4beta1.LocationFilter\022@\n\016job_categories\030" + + "\004 \003(\0162(.google.cloud.talent.v4beta1.JobC" + + "ategory\022B\n\016commute_filter\030\005 \001(\0132*.google" + + ".cloud.talent.v4beta1.CommuteFilter\022\035\n\025c" + + "ompany_display_names\030\006 \003(\t\022L\n\023compensati" + + "on_filter\030\007 \001(\0132/.google.cloud.talent.v4" + + "beta1.CompensationFilter\022\037\n\027custom_attri" + + "bute_filter\030\010 \001(\t\022\033\n\023disable_spell_check" + + "\030\t \001(\010\022E\n\020employment_types\030\n \003(\0162+.googl" + + "e.cloud.talent.v4beta1.EmploymentType\022\026\n" + + "\016language_codes\030\013 \003(\t\022G\n\022publish_time_ra" + + "nge\030\014 \001(\0132+.google.cloud.talent.v4beta1." + + "TimestampRange\022\025\n\rexcluded_jobs\030\r \003(\t\"\203\003" + + "\n\016LocationFilter\022\017\n\007address\030\001 \001(\t\022\023\n\013reg" + + "ion_code\030\002 \001(\t\022$\n\007lat_lng\030\003 \001(\0132\023.google" + + ".type.LatLng\022\031\n\021distance_in_miles\030\004 \001(\001\022" + + "a\n\026telecommute_preference\030\005 \001(\0162A.google" + + ".cloud.talent.v4beta1.LocationFilter.Tel" + + "ecommutePreference\022\017\n\007negated\030\006 \001(\010\"\225\001\n\025" + + "TelecommutePreference\022&\n\"TELECOMMUTE_PRE" + + "FERENCE_UNSPECIFIED\020\000\022\034\n\024TELECOMMUTE_EXC" + + "LUDED\020\001\032\002\010\001\022\027\n\023TELECOMMUTE_ALLOWED\020\002\022\035\n\031" + + "TELECOMMUTE_JOBS_EXCLUDED\020\003\"\312\003\n\022Compensa" + + "tionFilter\022M\n\004type\030\001 \001(\0162:.google.cloud." + + "talent.v4beta1.CompensationFilter.Filter" + + "TypeB\003\340A\002\022R\n\005units\030\002 \003(\0162>.google.cloud." + + "talent.v4beta1.CompensationInfo.Compensa" + + "tionUnitB\003\340A\002\022N\n\005range\030\003 \001(\0132?.google.cl" + + "oud.talent.v4beta1.CompensationInfo.Comp" + + "ensationRange\0228\n0include_jobs_with_unspe" + + "cified_compensation_range\030\004 \001(\010\"\206\001\n\nFilt" + + "erType\022\033\n\027FILTER_TYPE_UNSPECIFIED\020\000\022\r\n\tU" + + "NIT_ONLY\020\001\022\023\n\017UNIT_AND_AMOUNT\020\002\022\032\n\026ANNUA" + + "LIZED_BASE_AMOUNT\020\003\022\033\n\027ANNUALIZED_TOTAL_" + + "AMOUNT\020\004\"\313\003\n\rCommuteFilter\022G\n\016commute_me" + + "thod\030\001 \001(\0162*.google.cloud.talent.v4beta1" + + ".CommuteMethodB\003\340A\002\0223\n\021start_coordinates" + + "\030\002 \001(\0132\023.google.type.LatLngB\003\340A\002\0227\n\017trav" + + "el_duration\030\003 \001(\0132\031.google.protobuf.Dura" + + "tionB\003\340A\002\022!\n\031allow_imprecise_addresses\030\004" + + " \001(\010\022N\n\014road_traffic\030\005 \001(\01626.google.clou" + + "d.talent.v4beta1.CommuteFilter.RoadTraff" + + "icH\000\0220\n\016departure_time\030\006 \001(\0132\026.google.ty" + + "pe.TimeOfDayH\000\"L\n\013RoadTraffic\022\034\n\030ROAD_TR" + + "AFFIC_UNSPECIFIED\020\000\022\020\n\014TRAFFIC_FREE\020\001\022\r\n" + + "\tBUSY_HOUR\020\002B\020\n\016traffic_optionBz\n\037com.go" + + "ogle.cloud.talent.v4beta1B\014FiltersProtoP" + + "\001ZAgoogle.golang.org/genproto/googleapis" + + "/cloud/talent/v4beta1;talent\242\002\003CTSb\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -239,13 +119,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), com.google.type.LatLngProto.getDescriptor(), com.google.type.TimeOfDayProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor = getDescriptor().getMessageTypes().get(0); @@ -268,31 +143,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PublishTimeRange", "ExcludedJobs", }); - internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor, - new java.lang.String[] { - "Query", - "LocationFilters", - "JobTitleFilters", - "EmployerFilters", - "EducationFilters", - "SkillFilters", - "WorkExperienceFilter", - "TimeFilters", - "HirableFilter", - "ApplicationDateFilters", - "ApplicationOutcomeNotesFilters", - "ApplicationJobFilters", - "CustomAttributeFilter", - "CandidateAvailabilityFilter", - "AvailabilityFilters", - "PersonNameFilters", - }); internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_talent_v4beta1_LocationFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_LocationFilter_descriptor, @@ -305,7 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Negated", }); internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_talent_v4beta1_CompensationFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_CompensationFilter_descriptor, @@ -313,7 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Units", "Range", "IncludeJobsWithUnspecifiedCompensationRange", }); internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_talent_v4beta1_CommuteFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_CommuteFilter_descriptor, @@ -326,102 +178,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DepartureTime", "TrafficOption", }); - internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor, - new java.lang.String[] { - "JobTitle", "Negated", - }); - internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor, - new java.lang.String[] { - "Skill", "Negated", - }); - internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_talent_v4beta1_EmployerFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_EmployerFilter_descriptor, - new java.lang.String[] { - "Employer", "Mode", "Negated", - }); - internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_talent_v4beta1_EducationFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_EducationFilter_descriptor, - new java.lang.String[] { - "School", "FieldOfStudy", "DegreeType", "Negated", - }); - internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor, - new java.lang.String[] { - "MinExperience", "MaxExperience", - }); - internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ApplicationDateFilter_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", - }); - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor, - new java.lang.String[] { - "OutcomeNotes", "Negated", - }); - internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor, - new java.lang.String[] { - "JobRequisitionId", "JobTitle", "Negated", - }); - internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", "TimeField", - }); - internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_CandidateAvailabilityFilter_descriptor, - new java.lang.String[] { - "Negated", - }); - internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_AvailabilityFilter_descriptor, - new java.lang.String[] { - "SignalType", "Range", "Required", - }); - internal_static_google_cloud_talent_v4beta1_PersonNameFilter_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_talent_v4beta1_PersonNameFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_PersonNameFilter_descriptor, - new java.lang.String[] { - "PersonName", - }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -430,13 +186,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); com.google.type.LatLngProto.getDescriptor(); com.google.type.TimeOfDayProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java deleted file mode 100644 index 5ff0cc30..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java +++ /dev/null @@ -1,674 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Request for getting a application by name.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.GetApplicationRequest} - */ -public final class GetApplicationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetApplicationRequest) - GetApplicationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetApplicationRequest.newBuilder() to construct. - private GetApplicationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetApplicationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetApplicationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetApplicationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.GetApplicationRequest.class, - com.google.cloud.talent.v4beta1.GetApplicationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.GetApplicationRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.GetApplicationRequest other = - (com.google.cloud.talent.v4beta1.GetApplicationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.GetApplicationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for getting a application by name.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.GetApplicationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetApplicationRequest) - com.google.cloud.talent.v4beta1.GetApplicationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.GetApplicationRequest.class, - com.google.cloud.talent.v4beta1.GetApplicationRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.GetApplicationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetApplicationRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.GetApplicationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetApplicationRequest build() { - com.google.cloud.talent.v4beta1.GetApplicationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetApplicationRequest buildPartial() { - com.google.cloud.talent.v4beta1.GetApplicationRequest result = - new com.google.cloud.talent.v4beta1.GetApplicationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.GetApplicationRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.GetApplicationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetApplicationRequest other) { - if (other == com.google.cloud.talent.v4beta1.GetApplicationRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.GetApplicationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.GetApplicationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetApplicationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetApplicationRequest) - private static final com.google.cloud.talent.v4beta1.GetApplicationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetApplicationRequest(); - } - - public static com.google.cloud.talent.v4beta1.GetApplicationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetApplicationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApplicationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetApplicationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java deleted file mode 100644 index 2e7ae27a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface GetApplicationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetApplicationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java deleted file mode 100644 index 7b4f390b..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java +++ /dev/null @@ -1,673 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Get profile request.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} - */ -public final class GetProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetProfileRequest) - GetProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetProfileRequest.newBuilder() to construct. - private GetProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetProfileRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetProfileRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetProfileRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.GetProfileRequest.class, - com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.GetProfileRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.GetProfileRequest other = - (com.google.cloud.talent.v4beta1.GetProfileRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.GetProfileRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Get profile request.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.GetProfileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.GetProfileRequest) - com.google.cloud.talent.v4beta1.GetProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.GetProfileRequest.class, - com.google.cloud.talent.v4beta1.GetProfileRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.GetProfileRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetProfileRequest build() { - com.google.cloud.talent.v4beta1.GetProfileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetProfileRequest buildPartial() { - com.google.cloud.talent.v4beta1.GetProfileRequest result = - new com.google.cloud.talent.v4beta1.GetProfileRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.GetProfileRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.GetProfileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetProfileRequest other) { - if (other == com.google.cloud.talent.v4beta1.GetProfileRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.GetProfileRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.GetProfileRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetProfileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.GetProfileRequest) - private static final com.google.cloud.talent.v4beta1.GetProfileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetProfileRequest(); - } - - public static com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetProfileRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.GetProfileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java deleted file mode 100644 index 205c8af1..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface GetProfileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.GetProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java index dd5c17c6..c036e0f5 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java @@ -49,24 +49,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n+google/cloud/talent/v4beta1/histogram." - + "proto\022\033google.cloud.talent.v4beta1\032\034goog" - + "le/api/annotations.proto\")\n\016HistogramQue" - + "ry\022\027\n\017histogram_query\030\001 \001(\t\"\266\001\n\024Histogra" - + "mQueryResult\022\027\n\017histogram_query\030\001 \001(\t\022S\n" - + "\thistogram\030\002 \003(\0132@.google.cloud.talent.v" - + "4beta1.HistogramQueryResult.HistogramEnt" - + "ry\0320\n\016HistogramEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\003:\0028\001B|\n\037com.google.cloud.talent." - + "v4beta1B\016HistogramProtoP\001ZAgoogle.golang" - + ".org/genproto/googleapis/cloud/talent/v4" - + "beta1;talent\242\002\003CTSb\006proto3" + + "proto\022\033google.cloud.talent.v4beta1\")\n\016Hi" + + "stogramQuery\022\027\n\017histogram_query\030\001 \001(\t\"\266\001" + + "\n\024HistogramQueryResult\022\027\n\017histogram_quer" + + "y\030\001 \001(\t\022S\n\thistogram\030\002 \003(\0132@.google.clou" + + "d.talent.v4beta1.HistogramQueryResult.Hi" + + "stogramEntry\0320\n\016HistogramEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001B|\n\037com.google.clo" + + "ud.talent.v4beta1B\016HistogramProtoP\001ZAgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/talent/v4beta1;talent\242\002\003CTSb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_talent_v4beta1_HistogramQuery_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_talent_v4beta1_HistogramQuery_fieldAccessorTable = @@ -93,7 +89,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java index 99aaaa5d..1ba1e845 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java @@ -155,7 +155,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(9); + return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(8); } private static final HtmlSanitization[] VALUES = values(); diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java deleted file mode 100644 index 63540f0f..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java +++ /dev/null @@ -1,903 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Details of an interview.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Interview} - */ -public final class Interview extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Interview) - InterviewOrBuilder { - private static final long serialVersionUID = 0L; - // Use Interview.newBuilder() to construct. - private Interview(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Interview() { - outcome_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Interview(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Interview( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 50: - { - com.google.cloud.talent.v4beta1.Rating.Builder subBuilder = null; - if (rating_ != null) { - subBuilder = rating_.toBuilder(); - } - rating_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Rating.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rating_); - rating_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - int rawValue = input.readEnum(); - - outcome_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Interview_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Interview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Interview.class, - com.google.cloud.talent.v4beta1.Interview.Builder.class); - } - - public static final int RATING_FIELD_NUMBER = 6; - private com.google.cloud.talent.v4beta1.Rating rating_; - /** - * - * - *
-   * The rating on this interview.
-   * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - * - * @return Whether the rating field is set. - */ - @java.lang.Override - public boolean hasRating() { - return rating_ != null; - } - /** - * - * - *
-   * The rating on this interview.
-   * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - * - * @return The rating. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Rating getRating() { - return rating_ == null ? com.google.cloud.talent.v4beta1.Rating.getDefaultInstance() : rating_; - } - /** - * - * - *
-   * The rating on this interview.
-   * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.RatingOrBuilder getRatingOrBuilder() { - return getRating(); - } - - public static final int OUTCOME_FIELD_NUMBER = 7; - private int outcome_; - /** - * - * - *
-   * Required. The overall decision resulting from this interview (positive, negative,
-   * nuetral).
-   * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for outcome. - */ - @java.lang.Override - public int getOutcomeValue() { - return outcome_; - } - /** - * - * - *
-   * Required. The overall decision resulting from this interview (positive, negative,
-   * nuetral).
-   * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outcome. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Outcome getOutcome() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Outcome result = - com.google.cloud.talent.v4beta1.Outcome.valueOf(outcome_); - return result == null ? com.google.cloud.talent.v4beta1.Outcome.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (rating_ != null) { - output.writeMessage(6, getRating()); - } - if (outcome_ != com.google.cloud.talent.v4beta1.Outcome.OUTCOME_UNSPECIFIED.getNumber()) { - output.writeEnum(7, outcome_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rating_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRating()); - } - if (outcome_ != com.google.cloud.talent.v4beta1.Outcome.OUTCOME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, outcome_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Interview)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Interview other = - (com.google.cloud.talent.v4beta1.Interview) obj; - - if (hasRating() != other.hasRating()) return false; - if (hasRating()) { - if (!getRating().equals(other.getRating())) return false; - } - if (outcome_ != other.outcome_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRating()) { - hash = (37 * hash) + RATING_FIELD_NUMBER; - hash = (53 * hash) + getRating().hashCode(); - } - hash = (37 * hash) + OUTCOME_FIELD_NUMBER; - hash = (53 * hash) + outcome_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Interview parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Interview parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Interview parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Interview prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Details of an interview.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Interview} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Interview) - com.google.cloud.talent.v4beta1.InterviewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Interview_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Interview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Interview.class, - com.google.cloud.talent.v4beta1.Interview.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Interview.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (ratingBuilder_ == null) { - rating_ = null; - } else { - rating_ = null; - ratingBuilder_ = null; - } - outcome_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Interview_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Interview getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Interview.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Interview build() { - com.google.cloud.talent.v4beta1.Interview result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Interview buildPartial() { - com.google.cloud.talent.v4beta1.Interview result = - new com.google.cloud.talent.v4beta1.Interview(this); - if (ratingBuilder_ == null) { - result.rating_ = rating_; - } else { - result.rating_ = ratingBuilder_.build(); - } - result.outcome_ = outcome_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Interview) { - return mergeFrom((com.google.cloud.talent.v4beta1.Interview) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Interview other) { - if (other == com.google.cloud.talent.v4beta1.Interview.getDefaultInstance()) return this; - if (other.hasRating()) { - mergeRating(other.getRating()); - } - if (other.outcome_ != 0) { - setOutcomeValue(other.getOutcomeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Interview parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Interview) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.talent.v4beta1.Rating rating_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Rating, - com.google.cloud.talent.v4beta1.Rating.Builder, - com.google.cloud.talent.v4beta1.RatingOrBuilder> - ratingBuilder_; - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - * - * @return Whether the rating field is set. - */ - public boolean hasRating() { - return ratingBuilder_ != null || rating_ != null; - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - * - * @return The rating. - */ - public com.google.cloud.talent.v4beta1.Rating getRating() { - if (ratingBuilder_ == null) { - return rating_ == null - ? com.google.cloud.talent.v4beta1.Rating.getDefaultInstance() - : rating_; - } else { - return ratingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - public Builder setRating(com.google.cloud.talent.v4beta1.Rating value) { - if (ratingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rating_ = value; - onChanged(); - } else { - ratingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - public Builder setRating(com.google.cloud.talent.v4beta1.Rating.Builder builderForValue) { - if (ratingBuilder_ == null) { - rating_ = builderForValue.build(); - onChanged(); - } else { - ratingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - public Builder mergeRating(com.google.cloud.talent.v4beta1.Rating value) { - if (ratingBuilder_ == null) { - if (rating_ != null) { - rating_ = - com.google.cloud.talent.v4beta1.Rating.newBuilder(rating_) - .mergeFrom(value) - .buildPartial(); - } else { - rating_ = value; - } - onChanged(); - } else { - ratingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - public Builder clearRating() { - if (ratingBuilder_ == null) { - rating_ = null; - onChanged(); - } else { - rating_ = null; - ratingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - public com.google.cloud.talent.v4beta1.Rating.Builder getRatingBuilder() { - - onChanged(); - return getRatingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - public com.google.cloud.talent.v4beta1.RatingOrBuilder getRatingOrBuilder() { - if (ratingBuilder_ != null) { - return ratingBuilder_.getMessageOrBuilder(); - } else { - return rating_ == null - ? com.google.cloud.talent.v4beta1.Rating.getDefaultInstance() - : rating_; - } - } - /** - * - * - *
-     * The rating on this interview.
-     * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Rating, - com.google.cloud.talent.v4beta1.Rating.Builder, - com.google.cloud.talent.v4beta1.RatingOrBuilder> - getRatingFieldBuilder() { - if (ratingBuilder_ == null) { - ratingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Rating, - com.google.cloud.talent.v4beta1.Rating.Builder, - com.google.cloud.talent.v4beta1.RatingOrBuilder>( - getRating(), getParentForChildren(), isClean()); - rating_ = null; - } - return ratingBuilder_; - } - - private int outcome_ = 0; - /** - * - * - *
-     * Required. The overall decision resulting from this interview (positive, negative,
-     * nuetral).
-     * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for outcome. - */ - @java.lang.Override - public int getOutcomeValue() { - return outcome_; - } - /** - * - * - *
-     * Required. The overall decision resulting from this interview (positive, negative,
-     * nuetral).
-     * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for outcome to set. - * @return This builder for chaining. - */ - public Builder setOutcomeValue(int value) { - - outcome_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The overall decision resulting from this interview (positive, negative,
-     * nuetral).
-     * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outcome. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Outcome getOutcome() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Outcome result = - com.google.cloud.talent.v4beta1.Outcome.valueOf(outcome_); - return result == null ? com.google.cloud.talent.v4beta1.Outcome.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Required. The overall decision resulting from this interview (positive, negative,
-     * nuetral).
-     * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The outcome to set. - * @return This builder for chaining. - */ - public Builder setOutcome(com.google.cloud.talent.v4beta1.Outcome value) { - if (value == null) { - throw new NullPointerException(); - } - - outcome_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The overall decision resulting from this interview (positive, negative,
-     * nuetral).
-     * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearOutcome() { - - outcome_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Interview) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Interview) - private static final com.google.cloud.talent.v4beta1.Interview DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Interview(); - } - - public static com.google.cloud.talent.v4beta1.Interview getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Interview parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Interview(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Interview getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java deleted file mode 100644 index 2ec20d4e..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -public interface InterviewOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Interview) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The rating on this interview.
-   * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - * - * @return Whether the rating field is set. - */ - boolean hasRating(); - /** - * - * - *
-   * The rating on this interview.
-   * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - * - * @return The rating. - */ - com.google.cloud.talent.v4beta1.Rating getRating(); - /** - * - * - *
-   * The rating on this interview.
-   * 
- * - * .google.cloud.talent.v4beta1.Rating rating = 6; - */ - com.google.cloud.talent.v4beta1.RatingOrBuilder getRatingOrBuilder(); - - /** - * - * - *
-   * Required. The overall decision resulting from this interview (positive, negative,
-   * nuetral).
-   * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for outcome. - */ - int getOutcomeValue(); - /** - * - * - *
-   * Required. The overall decision resulting from this interview (positive, negative,
-   * nuetral).
-   * 
- * - * - * .google.cloud.talent.v4beta1.Outcome outcome = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The outcome. - */ - com.google.cloud.talent.v4beta1.Outcome getOutcome(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java index b7fe6cde..5ba8a01e 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java @@ -5634,7 +5634,7 @@ public com.google.cloud.talent.v4beta1.PostingRegion getPostingRegion() { * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @return The enum numeric value on the wire for visibility. */ @java.lang.Override @@ -5654,7 +5654,7 @@ public int getVisibilityValue() { * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @return The visibility. */ @java.lang.Override @@ -10451,7 +10451,7 @@ public Builder clearPostingRegion() { * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @return The enum numeric value on the wire for visibility. */ @java.lang.Override @@ -10471,7 +10471,7 @@ public int getVisibilityValue() { * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @param value The enum numeric value on the wire for visibility to set. * @return This builder for chaining. */ @@ -10494,7 +10494,7 @@ public Builder setVisibilityValue(int value) { * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @return The visibility. */ @java.lang.Override @@ -10517,7 +10517,7 @@ public com.google.cloud.talent.v4beta1.Visibility getVisibility() { * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @param value The visibility to set. * @return This builder for chaining. */ @@ -10543,7 +10543,7 @@ public Builder setVisibility(com.google.cloud.talent.v4beta1.Visibility value) { * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java index b4b0fe80..65c62132 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java @@ -949,7 +949,7 @@ com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @return The enum numeric value on the wire for visibility. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( * .google.cloud.talent.v4beta1.Visibility visibility = 21 [deprecated = true]; * * @deprecated google.cloud.talent.v4beta1.Job.visibility is deprecated. See - * google/cloud/talent/v4beta1/job.proto;l=277 + * google/cloud/talent/v4beta1/job.proto;l=275 * @return The visibility. */ @java.lang.Deprecated diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java index 6ef93165..f6740aae 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java @@ -823,8 +823,20 @@ public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOr * * *
-   * 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
@@ -843,8 +855,20 @@ public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() {
    *
    *
    * 
-   * 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
@@ -863,8 +887,20 @@ public int getCompanyDisplayNamesCount() {
    *
    *
    * 
-   * 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
@@ -884,8 +920,20 @@ public java.lang.String getCompanyDisplayNames(int index) {
    *
    *
    * 
-   * 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
@@ -982,7 +1030,7 @@ public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter(
    * 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`
@@ -1021,7 +1069,7 @@ public java.lang.String 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`
@@ -3632,8 +3680,20 @@ private void ensureCompanyDisplayNamesIsMutable() {
      *
      *
      * 
-     * 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
@@ -3652,8 +3712,20 @@ public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() {
      *
      *
      * 
-     * 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
@@ -3672,8 +3744,20 @@ public int getCompanyDisplayNamesCount() {
      *
      *
      * 
-     * 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
@@ -3693,8 +3777,20 @@ public java.lang.String getCompanyDisplayNames(int index) {
      *
      *
      * 
-     * 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
@@ -3714,8 +3810,20 @@ public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) {
      *
      *
      * 
-     * 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
@@ -3742,8 +3850,20 @@ public Builder setCompanyDisplayNames(int index, java.lang.String value) {
      *
      *
      * 
-     * 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
@@ -3769,8 +3889,20 @@ public Builder addCompanyDisplayNames(java.lang.String value) {
      *
      *
      * 
-     * 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
@@ -3793,8 +3925,20 @@ public Builder addAllCompanyDisplayNames(java.lang.Iterable va
      *
      *
      * 
-     * 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
@@ -3816,8 +3960,20 @@ public Builder clearCompanyDisplayNames() {
      *
      *
      * 
-     * 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
@@ -4084,7 +4240,7 @@ public Builder clearCompensationFilter() {
      * 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`
@@ -4122,7 +4278,7 @@ public java.lang.String 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`
@@ -4160,7 +4316,7 @@ public com.google.protobuf.ByteString getCustomAttributeFilterBytes() {
      * 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`
@@ -4197,7 +4353,7 @@ public Builder setCustomAttributeFilter(java.lang.String value) {
      * 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`
@@ -4230,7 +4386,7 @@ public Builder clearCustomAttributeFilter() {
      * 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/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java
index 11e95d9f..2036ea00 100644
--- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java
+++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java
@@ -406,8 +406,20 @@ public interface JobQueryOrBuilder
    *
    *
    * 
-   * 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
@@ -424,8 +436,20 @@ public interface JobQueryOrBuilder
    *
    *
    * 
-   * 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
@@ -442,8 +466,20 @@ public interface JobQueryOrBuilder
    *
    *
    * 
-   * 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
@@ -461,8 +497,20 @@ public interface JobQueryOrBuilder
    *
    *
    * 
-   * 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
@@ -541,7 +589,7 @@ public interface JobQueryOrBuilder
    * 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`
@@ -569,7 +617,7 @@ public interface JobQueryOrBuilder
    * 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/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java
index 2058c80b..8985ac65 100644
--- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java
+++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java
@@ -61,62 +61,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "/field_behavior.proto\032\031google/api/resour"
           + "ce.proto\032(google/cloud/talent/v4beta1/co"
           + "mmon.proto\032\037google/protobuf/timestamp.pr"
-          + "oto\032 google/type/postal_address.proto\032\034g"
-          + "oogle/api/annotations.proto\"\340\017\n\003Job\022\014\n\004n"
-          + "ame\030\001 \001(\t\0224\n\007company\030\002 \001(\tB#\340A\002\372A\035\n\033jobs"
-          + ".googleapis.com/Company\022\033\n\016requisition_i"
-          + "d\030\003 \001(\tB\003\340A\002\022\022\n\005title\030\004 \001(\tB\003\340A\002\022\030\n\013desc"
-          + "ription\030\005 \001(\tB\003\340A\002\022\021\n\taddresses\030\006 \003(\t\022J\n"
-          + "\020application_info\030\007 \001(\01320.google.cloud.t"
-          + "alent.v4beta1.Job.ApplicationInfo\022=\n\014job"
-          + "_benefits\030\010 \003(\0162\'.google.cloud.talent.v4"
-          + "beta1.JobBenefit\022H\n\021compensation_info\030\t "
-          + "\001(\0132-.google.cloud.talent.v4beta1.Compen"
-          + "sationInfo\022Q\n\021custom_attributes\030\n \003(\01326."
-          + "google.cloud.talent.v4beta1.Job.CustomAt"
-          + "tributesEntry\022=\n\014degree_types\030\013 \003(\0162\'.go"
-          + "ogle.cloud.talent.v4beta1.DegreeType\022\022\n\n"
-          + "department\030\014 \001(\t\022E\n\020employment_types\030\r \003"
-          + "(\0162+.google.cloud.talent.v4beta1.Employm"
-          + "entType\022\022\n\nincentives\030\016 \001(\t\022\025\n\rlanguage_"
-          + "code\030\017 \001(\t\0228\n\tjob_level\030\020 \001(\0162%.google.c"
-          + "loud.talent.v4beta1.JobLevel\022\027\n\017promotio"
-          + "n_value\030\021 \001(\005\022\026\n\016qualifications\030\022 \001(\t\022\030\n"
-          + "\020responsibilities\030\023 \001(\t\022B\n\016posting_regio"
-          + "n\030\024 \001(\0162*.google.cloud.talent.v4beta1.Po"
-          + "stingRegion\022?\n\nvisibility\030\025 \001(\0162\'.google"
-          + ".cloud.talent.v4beta1.VisibilityB\002\030\001\0222\n\016"
-          + "job_start_time\030\026 \001(\0132\032.google.protobuf.T"
-          + "imestamp\0220\n\014job_end_time\030\027 \001(\0132\032.google."
-          + "protobuf.Timestamp\0228\n\024posting_publish_ti"
-          + "me\030\030 \001(\0132\032.google.protobuf.Timestamp\0227\n\023"
-          + "posting_expire_time\030\031 \001(\0132\032.google.proto"
-          + "buf.Timestamp\022<\n\023posting_create_time\030\032 \001"
-          + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n\023p"
-          + "osting_update_time\030\033 \001(\0132\032.google.protob"
-          + "uf.TimestampB\003\340A\003\022!\n\024company_display_nam"
-          + "e\030\034 \001(\tB\003\340A\003\022G\n\014derived_info\030\035 \001(\0132,.goo"
-          + "gle.cloud.talent.v4beta1.Job.DerivedInfo"
-          + "B\003\340A\003\022N\n\022processing_options\030\036 \001(\01322.goog"
-          + "le.cloud.talent.v4beta1.Job.ProcessingOp"
-          + "tions\032D\n\017ApplicationInfo\022\016\n\006emails\030\001 \003(\t"
-          + "\022\023\n\013instruction\030\002 \001(\t\022\014\n\004uris\030\003 \003(\t\032\211\001\n\013"
-          + "DerivedInfo\0228\n\tlocations\030\001 \003(\0132%.google."
-          + "cloud.talent.v4beta1.Location\022@\n\016job_cat"
-          + "egories\030\003 \003(\0162(.google.cloud.talent.v4be"
-          + "ta1.JobCategory\032\210\001\n\021ProcessingOptions\022)\n"
-          + "!disable_street_address_resolution\030\001 \001(\010"
-          + "\022H\n\021html_sanitization\030\002 \001(\0162-.google.clo"
-          + "ud.talent.v4beta1.HtmlSanitization\032e\n\025Cu"
-          + "stomAttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005valu"
-          + "e\030\002 \001(\0132,.google.cloud.talent.v4beta1.Cu"
-          + "stomAttribute:\0028\001:k\352Ah\n\027jobs.googleapis."
-          + "com/Job\022.projects/{project}/tenants/{ten"
-          + "ant}/jobs/{job}\022\035projects/{project}/jobs"
-          + "/{job}B~\n\037com.google.cloud.talent.v4beta"
-          + "1B\020JobResourceProtoP\001ZAgoogle.golang.org"
-          + "/genproto/googleapis/cloud/talent/v4beta"
-          + "1;talent\242\002\003CTSb\006proto3"
+          + "oto\"\340\017\n\003Job\022\014\n\004name\030\001 \001(\t\0224\n\007company\030\002 \001"
+          + "(\tB#\340A\002\372A\035\n\033jobs.googleapis.com/Company\022"
+          + "\033\n\016requisition_id\030\003 \001(\tB\003\340A\002\022\022\n\005title\030\004 "
+          + "\001(\tB\003\340A\002\022\030\n\013description\030\005 \001(\tB\003\340A\002\022\021\n\tad"
+          + "dresses\030\006 \003(\t\022J\n\020application_info\030\007 \001(\0132"
+          + "0.google.cloud.talent.v4beta1.Job.Applic"
+          + "ationInfo\022=\n\014job_benefits\030\010 \003(\0162\'.google"
+          + ".cloud.talent.v4beta1.JobBenefit\022H\n\021comp"
+          + "ensation_info\030\t \001(\0132-.google.cloud.talen"
+          + "t.v4beta1.CompensationInfo\022Q\n\021custom_att"
+          + "ributes\030\n \003(\01326.google.cloud.talent.v4be"
+          + "ta1.Job.CustomAttributesEntry\022=\n\014degree_"
+          + "types\030\013 \003(\0162\'.google.cloud.talent.v4beta"
+          + "1.DegreeType\022\022\n\ndepartment\030\014 \001(\t\022E\n\020empl"
+          + "oyment_types\030\r \003(\0162+.google.cloud.talent"
+          + ".v4beta1.EmploymentType\022\022\n\nincentives\030\016 "
+          + "\001(\t\022\025\n\rlanguage_code\030\017 \001(\t\0228\n\tjob_level\030"
+          + "\020 \001(\0162%.google.cloud.talent.v4beta1.JobL"
+          + "evel\022\027\n\017promotion_value\030\021 \001(\005\022\026\n\016qualifi"
+          + "cations\030\022 \001(\t\022\030\n\020responsibilities\030\023 \001(\t\022"
+          + "B\n\016posting_region\030\024 \001(\0162*.google.cloud.t"
+          + "alent.v4beta1.PostingRegion\022?\n\nvisibilit"
+          + "y\030\025 \001(\0162\'.google.cloud.talent.v4beta1.Vi"
+          + "sibilityB\002\030\001\0222\n\016job_start_time\030\026 \001(\0132\032.g"
+          + "oogle.protobuf.Timestamp\0220\n\014job_end_time"
+          + "\030\027 \001(\0132\032.google.protobuf.Timestamp\0228\n\024po"
+          + "sting_publish_time\030\030 \001(\0132\032.google.protob"
+          + "uf.Timestamp\0227\n\023posting_expire_time\030\031 \001("
+          + "\0132\032.google.protobuf.Timestamp\022<\n\023posting"
+          + "_create_time\030\032 \001(\0132\032.google.protobuf.Tim"
+          + "estampB\003\340A\003\022<\n\023posting_update_time\030\033 \001(\013"
+          + "2\032.google.protobuf.TimestampB\003\340A\003\022!\n\024com"
+          + "pany_display_name\030\034 \001(\tB\003\340A\003\022G\n\014derived_"
+          + "info\030\035 \001(\0132,.google.cloud.talent.v4beta1"
+          + ".Job.DerivedInfoB\003\340A\003\022N\n\022processing_opti"
+          + "ons\030\036 \001(\01322.google.cloud.talent.v4beta1."
+          + "Job.ProcessingOptions\032D\n\017ApplicationInfo"
+          + "\022\016\n\006emails\030\001 \003(\t\022\023\n\013instruction\030\002 \001(\t\022\014\n"
+          + "\004uris\030\003 \003(\t\032\211\001\n\013DerivedInfo\0228\n\tlocations"
+          + "\030\001 \003(\0132%.google.cloud.talent.v4beta1.Loc"
+          + "ation\022@\n\016job_categories\030\003 \003(\0162(.google.c"
+          + "loud.talent.v4beta1.JobCategory\032\210\001\n\021Proc"
+          + "essingOptions\022)\n!disable_street_address_"
+          + "resolution\030\001 \001(\010\022H\n\021html_sanitization\030\002 "
+          + "\001(\0162-.google.cloud.talent.v4beta1.HtmlSa"
+          + "nitization\032e\n\025CustomAttributesEntry\022\013\n\003k"
+          + "ey\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.t"
+          + "alent.v4beta1.CustomAttribute:\0028\001:k\352Ah\n\027"
+          + "jobs.googleapis.com/Job\022.projects/{proje"
+          + "ct}/tenants/{tenant}/jobs/{job}\022\035project"
+          + "s/{project}/jobs/{job}B~\n\037com.google.clo"
+          + "ud.talent.v4beta1B\020JobResourceProtoP\001ZAg"
+          + "oogle.golang.org/genproto/googleapis/clo"
+          + "ud/talent/v4beta1;talent\242\002\003CTSb\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -126,8 +124,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.api.ResourceProto.getDescriptor(),
               com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(),
               com.google.protobuf.TimestampProto.getDescriptor(),
-              com.google.type.PostalAddressProto.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
             });
     internal_static_google_cloud_talent_v4beta1_Job_descriptor =
         getDescriptor().getMessageTypes().get(0);
@@ -209,8 +205,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.api.ResourceProto.getDescriptor();
     com.google.cloud.talent.v4beta1.CommonProto.getDescriptor();
     com.google.protobuf.TimestampProto.getDescriptor();
-    com.google.type.PostalAddressProto.getDescriptor();
-    com.google.api.AnnotationsProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java
index 60b409f7..e513814b 100644
--- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java
+++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java
@@ -109,162 +109,168 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "e/cloud/talent/v4beta1/filters.proto\032+go"
           + "ogle/cloud/talent/v4beta1/histogram.prot"
           + "o\032%google/cloud/talent/v4beta1/job.proto"
-          + "\032#google/longrunning/operations.proto\032\031g"
-          + "oogle/protobuf/any.proto\032\036google/protobu"
-          + "f/duration.proto\032\033google/protobuf/empty."
-          + "proto\032 google/protobuf/field_mask.proto\032"
-          + "\027google/rpc/status.proto\"w\n\020CreateJobReq"
-          + "uest\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A\031\022\027jobs.googl"
-          + "eapis.com/Job\0222\n\003job\030\002 \001(\0132 .google.clou"
-          + "d.talent.v4beta1.JobB\003\340A\002\">\n\rGetJobReque"
-          + "st\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027jobs.googleapi"
-          + "s.com/Job\"w\n\020UpdateJobRequest\0222\n\003job\030\001 \001"
-          + "(\0132 .google.cloud.talent.v4beta1.JobB\003\340A"
-          + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf"
-          + ".FieldMask\"A\n\020DeleteJobRequest\022-\n\004name\030\001"
-          + " \001(\tB\037\340A\002\372A\031\n\027jobs.googleapis.com/Job\"^\n"
-          + "\026BatchDeleteJobsRequest\022/\n\006parent\030\001 \001(\tB"
-          + "\037\340A\002\372A\031\022\027jobs.googleapis.com/Job\022\023\n\006filt"
-          + "er\030\002 \001(\tB\003\340A\002\"\266\001\n\017ListJobsRequest\022/\n\006par"
-          + "ent\030\001 \001(\tB\037\340A\002\372A\031\022\027jobs.googleapis.com/J"
-          + "ob\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\npage_token\030\003 "
-          + "\001(\t\022\021\n\tpage_size\030\004 \001(\005\0226\n\010job_view\030\005 \001(\016"
-          + "2$.google.cloud.talent.v4beta1.JobView\"\234"
-          + "\001\n\020ListJobsResponse\022.\n\004jobs\030\001 \003(\0132 .goog"
-          + "le.cloud.talent.v4beta1.Job\022\027\n\017next_page"
-          + "_token\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google."
-          + "cloud.talent.v4beta1.ResponseMetadata\"\320\t"
-          + "\n\021SearchJobsRequest\022/\n\006parent\030\001 \001(\tB\037\340A\002"
-          + "\372A\031\022\027jobs.googleapis.com/Job\022N\n\013search_m"
-          + "ode\030\002 \001(\01629.google.cloud.talent.v4beta1."
-          + "SearchJobsRequest.SearchMode\022K\n\020request_"
-          + "metadata\030\003 \001(\0132,.google.cloud.talent.v4b"
-          + "eta1.RequestMetadataB\003\340A\002\0228\n\tjob_query\030\004"
-          + " \001(\0132%.google.cloud.talent.v4beta1.JobQu"
-          + "ery\022\031\n\021enable_broadening\030\005 \001(\010\022#\n\033requir"
-          + "e_precise_result_size\030\006 \001(\010\022F\n\021histogram"
-          + "_queries\030\007 \003(\0132+.google.cloud.talent.v4b"
-          + "eta1.HistogramQuery\0226\n\010job_view\030\010 \001(\0162$."
-          + "google.cloud.talent.v4beta1.JobView\022\016\n\006o"
-          + "ffset\030\t \001(\005\022\021\n\tpage_size\030\n \001(\005\022\022\n\npage_t"
-          + "oken\030\013 \001(\t\022\020\n\010order_by\030\014 \001(\t\022b\n\025diversif"
-          + "ication_level\030\r \001(\0162C.google.cloud.talen"
-          + "t.v4beta1.SearchJobsRequest.Diversificat"
-          + "ionLevel\022]\n\023custom_ranking_info\030\016 \001(\0132@."
-          + "google.cloud.talent.v4beta1.SearchJobsRe"
-          + "quest.CustomRankingInfo\022\035\n\025disable_keywo"
-          + "rd_match\030\020 \001(\010\032\232\002\n\021CustomRankingInfo\022o\n\020"
-          + "importance_level\030\001 \001(\0162P.google.cloud.ta"
-          + "lent.v4beta1.SearchJobsRequest.CustomRan"
-          + "kingInfo.ImportanceLevelB\003\340A\002\022\037\n\022ranking"
-          + "_expression\030\002 \001(\tB\003\340A\002\"s\n\017ImportanceLeve"
-          + "l\022 \n\034IMPORTANCE_LEVEL_UNSPECIFIED\020\000\022\010\n\004N"
-          + "ONE\020\001\022\007\n\003LOW\020\002\022\010\n\004MILD\020\003\022\n\n\006MEDIUM\020\004\022\010\n\004"
-          + "HIGH\020\005\022\013\n\007EXTREME\020\006\"R\n\nSearchMode\022\033\n\027SEA"
-          + "RCH_MODE_UNSPECIFIED\020\000\022\016\n\nJOB_SEARCH\020\001\022\027"
-          + "\n\023FEATURED_JOB_SEARCH\020\002\"W\n\024Diversificati"
-          + "onLevel\022%\n!DIVERSIFICATION_LEVEL_UNSPECI"
-          + "FIED\020\000\022\014\n\010DISABLED\020\001\022\n\n\006SIMPLE\020\002\"\327\006\n\022Sea"
-          + "rchJobsResponse\022R\n\rmatching_jobs\030\001 \003(\0132;"
-          + ".google.cloud.talent.v4beta1.SearchJobsR"
-          + "esponse.MatchingJob\022R\n\027histogram_query_r"
-          + "esults\030\002 \003(\01321.google.cloud.talent.v4bet"
-          + "a1.HistogramQueryResult\022\027\n\017next_page_tok"
-          + "en\030\003 \001(\t\022?\n\020location_filters\030\004 \003(\0132%.goo"
-          + "gle.cloud.talent.v4beta1.Location\022\034\n\024est"
-          + "imated_total_size\030\005 \001(\005\022\022\n\ntotal_size\030\006 "
-          + "\001(\005\022?\n\010metadata\030\007 \001(\0132-.google.cloud.tal"
-          + "ent.v4beta1.ResponseMetadata\022\"\n\032broadene"
-          + "d_query_jobs_count\030\010 \001(\005\022I\n\020spell_correc"
-          + "tion\030\t \001(\0132/.google.cloud.talent.v4beta1"
-          + ".SpellingCorrection\032\334\001\n\013MatchingJob\022-\n\003j"
-          + "ob\030\001 \001(\0132 .google.cloud.talent.v4beta1.J"
-          + "ob\022\023\n\013job_summary\030\002 \001(\t\022\031\n\021job_title_sni"
-          + "ppet\030\003 \001(\t\022\033\n\023search_text_snippet\030\004 \001(\t\022"
-          + "Q\n\014commute_info\030\005 \001(\0132;.google.cloud.tal"
-          + "ent.v4beta1.SearchJobsResponse.CommuteIn"
-          + "fo\032~\n\013CommuteInfo\022;\n\014job_location\030\001 \001(\0132"
-          + "%.google.cloud.talent.v4beta1.Location\0222"
-          + "\n\017travel_duration\030\002 \001(\0132\031.google.protobu"
-          + "f.Duration\"~\n\026BatchCreateJobsRequest\022/\n\006"
+          + "\032#google/longrunning/operations.proto\032\036g"
+          + "oogle/protobuf/duration.proto\032\033google/pr"
+          + "otobuf/empty.proto\032 google/protobuf/fiel"
+          + "d_mask.proto\032\027google/rpc/status.proto\"w\n"
+          + "\020CreateJobRequest\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A"
+          + "\031\022\027jobs.googleapis.com/Job\0222\n\003job\030\002 \001(\0132"
+          + " .google.cloud.talent.v4beta1.JobB\003\340A\002\">"
+          + "\n\rGetJobRequest\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027j"
+          + "obs.googleapis.com/Job\"w\n\020UpdateJobReque"
+          + "st\0222\n\003job\030\001 \001(\0132 .google.cloud.talent.v4"
+          + "beta1.JobB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.go"
+          + "ogle.protobuf.FieldMask\"A\n\020DeleteJobRequ"
+          + "est\022-\n\004name\030\001 \001(\tB\037\340A\002\372A\031\n\027jobs.googleap"
+          + "is.com/Job\"^\n\026BatchDeleteJobsRequest\022/\n\006"
           + "parent\030\001 \001(\tB\037\340A\002\372A\031\022\027jobs.googleapis.co"
-          + "m/Job\0223\n\004jobs\030\002 \003(\0132 .google.cloud.talen"
-          + "t.v4beta1.JobB\003\340A\002\"\257\001\n\026BatchUpdateJobsRe"
-          + "quest\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A\031\022\027jobs.goog"
-          + "leapis.com/Job\0223\n\004jobs\030\002 \003(\0132 .google.cl"
-          + "oud.talent.v4beta1.JobB\003\340A\002\022/\n\013update_ma"
-          + "sk\030\003 \001(\0132\032.google.protobuf.FieldMask\"\304\001\n"
-          + "\022JobOperationResult\022N\n\013job_results\030\001 \003(\013"
-          + "29.google.cloud.talent.v4beta1.JobOperat"
-          + "ionResult.JobResult\032^\n\tJobResult\022-\n\003job\030"
-          + "\001 \001(\0132 .google.cloud.talent.v4beta1.Job\022"
-          + "\"\n\006status\030\002 \001(\0132\022.google.rpc.Status*v\n\007J"
-          + "obView\022\030\n\024JOB_VIEW_UNSPECIFIED\020\000\022\024\n\020JOB_"
-          + "VIEW_ID_ONLY\020\001\022\024\n\020JOB_VIEW_MINIMAL\020\002\022\022\n\016"
-          + "JOB_VIEW_SMALL\020\003\022\021\n\rJOB_VIEW_FULL\020\0042\316\022\n\n"
-          + "JobService\022\311\001\n\tCreateJob\022-.google.cloud."
-          + "talent.v4beta1.CreateJobRequest\032 .google"
-          + ".cloud.talent.v4beta1.Job\"k\202\323\344\223\002X\"+/v4be"
-          + "ta1/{parent=projects/*/tenants/*}/jobs:\001"
-          + "*Z&\"!/v4beta1/{parent=projects/*}/jobs:\001"
-          + "*\332A\nparent,job\022\233\002\n\017BatchCreateJobs\0223.goo"
-          + "gle.cloud.talent.v4beta1.BatchCreateJobs"
-          + "Request\032\035.google.longrunning.Operation\"\263"
-          + "\001\202\323\344\223\002p\"7/v4beta1/{parent=projects/*/ten"
-          + "ants/*}/jobs:batchCreate:\001*Z2\"-/v4beta1/"
-          + "{parent=projects/*}/jobs:batchCreate:\001*\332"
-          + "A\013parent,jobs\312A,\n\022JobOperationResult\022\026Ba"
-          + "tchOperationMetadata\022\267\001\n\006GetJob\022*.google"
-          + ".cloud.talent.v4beta1.GetJobRequest\032 .go"
-          + "ogle.cloud.talent.v4beta1.Job\"_\202\323\344\223\002R\022+/"
-          + "v4beta1/{name=projects/*/tenants/*/jobs/"
-          + "*}Z#\022!/v4beta1/{name=projects/*/jobs/*}\332"
-          + "A\004name\022\312\001\n\tUpdateJob\022-.google.cloud.tale"
-          + "nt.v4beta1.UpdateJobRequest\032 .google.clo"
-          + "ud.talent.v4beta1.Job\"l\202\323\344\223\002`2//v4beta1/"
-          + "{job.name=projects/*/tenants/*/jobs/*}:\001"
-          + "*Z*2%/v4beta1/{job.name=projects/*/jobs/"
-          + "*}:\001*\332A\003job\022\233\002\n\017BatchUpdateJobs\0223.google"
-          + ".cloud.talent.v4beta1.BatchUpdateJobsReq"
-          + "uest\032\035.google.longrunning.Operation\"\263\001\202\323"
-          + "\344\223\002p\"7/v4beta1/{parent=projects/*/tenant"
-          + "s/*}/jobs:batchUpdate:\001*Z2\"-/v4beta1/{pa"
-          + "rent=projects/*}/jobs:batchUpdate:\001*\332A\013p"
-          + "arent,jobs\312A,\n\022JobOperationResult\022\026Batch"
-          + "OperationMetadata\022\263\001\n\tDeleteJob\022-.google"
-          + ".cloud.talent.v4beta1.DeleteJobRequest\032\026"
-          + ".google.protobuf.Empty\"_\202\323\344\223\002R*+/v4beta1"
-          + "/{name=projects/*/tenants/*/jobs/*}Z#*!/"
-          + "v4beta1/{name=projects/*/jobs/*}\332A\004name\022"
-          + "\344\001\n\017BatchDeleteJobs\0223.google.cloud.talen"
-          + "t.v4beta1.BatchDeleteJobsRequest\032\026.googl"
-          + "e.protobuf.Empty\"\203\001\202\323\344\223\002m\"7/v4beta1/{par"
-          + "ent=projects/*/tenants/*}/jobs:batchDele"
-          + "te:\001*Z/\"-/v4beta1/{parent=projects/*}/jo"
-          + "bs:batchDelete\332A\rparent,filter\022\321\001\n\010ListJ"
-          + "obs\022,.google.cloud.talent.v4beta1.ListJo"
-          + "bsRequest\032-.google.cloud.talent.v4beta1."
-          + "ListJobsResponse\"h\202\323\344\223\002R\022+/v4beta1/{pare"
-          + "nt=projects/*/tenants/*}/jobsZ#\022!/v4beta"
-          + "1/{parent=projects/*}/jobs\332A\rparent,filt"
-          + "er\022\333\001\n\nSearchJobs\022..google.cloud.talent."
-          + "v4beta1.SearchJobsRequest\032/.google.cloud"
-          + ".talent.v4beta1.SearchJobsResponse\"l\202\323\344\223"
-          + "\002f\"2/v4beta1/{parent=projects/*/tenants/"
-          + "*}/jobs:search:\001*Z-\"(/v4beta1/{parent=pr"
-          + "ojects/*}/jobs:search:\001*\022\363\001\n\022SearchJobsF"
-          + "orAlert\022..google.cloud.talent.v4beta1.Se"
-          + "archJobsRequest\032/.google.cloud.talent.v4"
-          + "beta1.SearchJobsResponse\"|\202\323\344\223\002v\":/v4bet"
-          + "a1/{parent=projects/*/tenants/*}/jobs:se"
-          + "archForAlert:\001*Z5\"0/v4beta1/{parent=proj"
-          + "ects/*}/jobs:searchForAlert:\001*\032l\312A\023jobs."
-          + "googleapis.com\322AShttps://www.googleapis."
-          + "com/auth/cloud-platform,https://www.goog"
-          + "leapis.com/auth/jobsB}\n\037com.google.cloud"
-          + ".talent.v4beta1B\017JobServiceProtoP\001ZAgoog"
-          + "le.golang.org/genproto/googleapis/cloud/"
-          + "talent/v4beta1;talent\242\002\003CTSb\006proto3"
+          + "m/Job\022\023\n\006filter\030\002 \001(\tB\003\340A\002\"\266\001\n\017ListJobsR"
+          + "equest\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A\031\022\027jobs.goo"
+          + "gleapis.com/Job\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\022\n\n"
+          + "page_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\0226\n\010j"
+          + "ob_view\030\005 \001(\0162$.google.cloud.talent.v4be"
+          + "ta1.JobView\"\234\001\n\020ListJobsResponse\022.\n\004jobs"
+          + "\030\001 \003(\0132 .google.cloud.talent.v4beta1.Job"
+          + "\022\027\n\017next_page_token\030\002 \001(\t\022?\n\010metadata\030\003 "
+          + "\001(\0132-.google.cloud.talent.v4beta1.Respon"
+          + "seMetadata\"\273\013\n\021SearchJobsRequest\022/\n\006pare"
+          + "nt\030\001 \001(\tB\037\340A\002\372A\031\022\027jobs.googleapis.com/Jo"
+          + "b\022N\n\013search_mode\030\002 \001(\01629.google.cloud.ta"
+          + "lent.v4beta1.SearchJobsRequest.SearchMod"
+          + "e\022K\n\020request_metadata\030\003 \001(\0132,.google.clo"
+          + "ud.talent.v4beta1.RequestMetadataB\003\340A\002\0228"
+          + "\n\tjob_query\030\004 \001(\0132%.google.cloud.talent."
+          + "v4beta1.JobQuery\022\031\n\021enable_broadening\030\005 "
+          + "\001(\010\022\'\n\033require_precise_result_size\030\006 \001(\010"
+          + "B\002\030\001\022F\n\021histogram_queries\030\007 \003(\0132+.google"
+          + ".cloud.talent.v4beta1.HistogramQuery\0226\n\010"
+          + "job_view\030\010 \001(\0162$.google.cloud.talent.v4b"
+          + "eta1.JobView\022\016\n\006offset\030\t \001(\005\022\021\n\tpage_siz"
+          + "e\030\n \001(\005\022\022\n\npage_token\030\013 \001(\t\022\020\n\010order_by\030"
+          + "\014 \001(\t\022b\n\025diversification_level\030\r \001(\0162C.g"
+          + "oogle.cloud.talent.v4beta1.SearchJobsReq"
+          + "uest.DiversificationLevel\022]\n\023custom_rank"
+          + "ing_info\030\016 \001(\0132@.google.cloud.talent.v4b"
+          + "eta1.SearchJobsRequest.CustomRankingInfo"
+          + "\022\035\n\025disable_keyword_match\030\020 \001(\010\022[\n\022keywo"
+          + "rd_match_mode\030\022 \001(\0162?.google.cloud.talen"
+          + "t.v4beta1.SearchJobsRequest.KeywordMatch"
+          + "Mode\032\232\002\n\021CustomRankingInfo\022o\n\020importance"
+          + "_level\030\001 \001(\0162P.google.cloud.talent.v4bet"
+          + "a1.SearchJobsRequest.CustomRankingInfo.I"
+          + "mportanceLevelB\003\340A\002\022\037\n\022ranking_expressio"
+          + "n\030\002 \001(\tB\003\340A\002\"s\n\017ImportanceLevel\022 \n\034IMPOR"
+          + "TANCE_LEVEL_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\007\n\003L"
+          + "OW\020\002\022\010\n\004MILD\020\003\022\n\n\006MEDIUM\020\004\022\010\n\004HIGH\020\005\022\013\n\007"
+          + "EXTREME\020\006\"R\n\nSearchMode\022\033\n\027SEARCH_MODE_U"
+          + "NSPECIFIED\020\000\022\016\n\nJOB_SEARCH\020\001\022\027\n\023FEATURED"
+          + "_JOB_SEARCH\020\002\"W\n\024DiversificationLevel\022%\n"
+          + "!DIVERSIFICATION_LEVEL_UNSPECIFIED\020\000\022\014\n\010"
+          + "DISABLED\020\001\022\n\n\006SIMPLE\020\002\"\207\001\n\020KeywordMatchM"
+          + "ode\022\"\n\036KEYWORD_MATCH_MODE_UNSPECIFIED\020\000\022"
+          + "\032\n\026KEYWORD_MATCH_DISABLED\020\001\022\025\n\021KEYWORD_M"
+          + "ATCH_ALL\020\002\022\034\n\030KEYWORD_MATCH_TITLE_ONLY\020\003"
+          + "\"\327\006\n\022SearchJobsResponse\022R\n\rmatching_jobs"
+          + "\030\001 \003(\0132;.google.cloud.talent.v4beta1.Sea"
+          + "rchJobsResponse.MatchingJob\022R\n\027histogram"
+          + "_query_results\030\002 \003(\01321.google.cloud.tale"
+          + "nt.v4beta1.HistogramQueryResult\022\027\n\017next_"
+          + "page_token\030\003 \001(\t\022?\n\020location_filters\030\004 \003"
+          + "(\0132%.google.cloud.talent.v4beta1.Locatio"
+          + "n\022\034\n\024estimated_total_size\030\005 \001(\005\022\022\n\ntotal"
+          + "_size\030\006 \001(\005\022?\n\010metadata\030\007 \001(\0132-.google.c"
+          + "loud.talent.v4beta1.ResponseMetadata\022\"\n\032"
+          + "broadened_query_jobs_count\030\010 \001(\005\022I\n\020spel"
+          + "l_correction\030\t \001(\0132/.google.cloud.talent"
+          + ".v4beta1.SpellingCorrection\032\334\001\n\013Matching"
+          + "Job\022-\n\003job\030\001 \001(\0132 .google.cloud.talent.v"
+          + "4beta1.Job\022\023\n\013job_summary\030\002 \001(\t\022\031\n\021job_t"
+          + "itle_snippet\030\003 \001(\t\022\033\n\023search_text_snippe"
+          + "t\030\004 \001(\t\022Q\n\014commute_info\030\005 \001(\0132;.google.c"
+          + "loud.talent.v4beta1.SearchJobsResponse.C"
+          + "ommuteInfo\032~\n\013CommuteInfo\022;\n\014job_locatio"
+          + "n\030\001 \001(\0132%.google.cloud.talent.v4beta1.Lo"
+          + "cation\0222\n\017travel_duration\030\002 \001(\0132\031.google"
+          + ".protobuf.Duration\"~\n\026BatchCreateJobsReq"
+          + "uest\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A\031\022\027jobs.googl"
+          + "eapis.com/Job\0223\n\004jobs\030\002 \003(\0132 .google.clo"
+          + "ud.talent.v4beta1.JobB\003\340A\002\"\257\001\n\026BatchUpda"
+          + "teJobsRequest\022/\n\006parent\030\001 \001(\tB\037\340A\002\372A\031\022\027j"
+          + "obs.googleapis.com/Job\0223\n\004jobs\030\002 \003(\0132 .g"
+          + "oogle.cloud.talent.v4beta1.JobB\003\340A\002\022/\n\013u"
+          + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field"
+          + "Mask\"\304\001\n\022JobOperationResult\022N\n\013job_resul"
+          + "ts\030\001 \003(\01329.google.cloud.talent.v4beta1.J"
+          + "obOperationResult.JobResult\032^\n\tJobResult"
+          + "\022-\n\003job\030\001 \001(\0132 .google.cloud.talent.v4be"
+          + "ta1.Job\022\"\n\006status\030\002 \001(\0132\022.google.rpc.Sta"
+          + "tus*v\n\007JobView\022\030\n\024JOB_VIEW_UNSPECIFIED\020\000"
+          + "\022\024\n\020JOB_VIEW_ID_ONLY\020\001\022\024\n\020JOB_VIEW_MINIM"
+          + "AL\020\002\022\022\n\016JOB_VIEW_SMALL\020\003\022\021\n\rJOB_VIEW_FUL"
+          + "L\020\0042\316\022\n\nJobService\022\311\001\n\tCreateJob\022-.googl"
+          + "e.cloud.talent.v4beta1.CreateJobRequest\032"
+          + " .google.cloud.talent.v4beta1.Job\"k\202\323\344\223\002"
+          + "X\"+/v4beta1/{parent=projects/*/tenants/*"
+          + "}/jobs:\001*Z&\"!/v4beta1/{parent=projects/*"
+          + "}/jobs:\001*\332A\nparent,job\022\233\002\n\017BatchCreateJo"
+          + "bs\0223.google.cloud.talent.v4beta1.BatchCr"
+          + "eateJobsRequest\032\035.google.longrunning.Ope"
+          + "ration\"\263\001\202\323\344\223\002p\"7/v4beta1/{parent=projec"
+          + "ts/*/tenants/*}/jobs:batchCreate:\001*Z2\"-/"
+          + "v4beta1/{parent=projects/*}/jobs:batchCr"
+          + "eate:\001*\332A\013parent,jobs\312A,\n\022JobOperationRe"
+          + "sult\022\026BatchOperationMetadata\022\267\001\n\006GetJob\022"
+          + "*.google.cloud.talent.v4beta1.GetJobRequ"
+          + "est\032 .google.cloud.talent.v4beta1.Job\"_\202"
+          + "\323\344\223\002R\022+/v4beta1/{name=projects/*/tenants"
+          + "/*/jobs/*}Z#\022!/v4beta1/{name=projects/*/"
+          + "jobs/*}\332A\004name\022\312\001\n\tUpdateJob\022-.google.cl"
+          + "oud.talent.v4beta1.UpdateJobRequest\032 .go"
+          + "ogle.cloud.talent.v4beta1.Job\"l\202\323\344\223\002`2//"
+          + "v4beta1/{job.name=projects/*/tenants/*/j"
+          + "obs/*}:\001*Z*2%/v4beta1/{job.name=projects"
+          + "/*/jobs/*}:\001*\332A\003job\022\233\002\n\017BatchUpdateJobs\022"
+          + "3.google.cloud.talent.v4beta1.BatchUpdat"
+          + "eJobsRequest\032\035.google.longrunning.Operat"
+          + "ion\"\263\001\202\323\344\223\002p\"7/v4beta1/{parent=projects/"
+          + "*/tenants/*}/jobs:batchUpdate:\001*Z2\"-/v4b"
+          + "eta1/{parent=projects/*}/jobs:batchUpdat"
+          + "e:\001*\332A\013parent,jobs\312A,\n\022JobOperationResul"
+          + "t\022\026BatchOperationMetadata\022\263\001\n\tDeleteJob\022"
+          + "-.google.cloud.talent.v4beta1.DeleteJobR"
+          + "equest\032\026.google.protobuf.Empty\"_\202\323\344\223\002R*+"
+          + "/v4beta1/{name=projects/*/tenants/*/jobs"
+          + "/*}Z#*!/v4beta1/{name=projects/*/jobs/*}"
+          + "\332A\004name\022\344\001\n\017BatchDeleteJobs\0223.google.clo"
+          + "ud.talent.v4beta1.BatchDeleteJobsRequest"
+          + "\032\026.google.protobuf.Empty\"\203\001\202\323\344\223\002m\"7/v4be"
+          + "ta1/{parent=projects/*/tenants/*}/jobs:b"
+          + "atchDelete:\001*Z/\"-/v4beta1/{parent=projec"
+          + "ts/*}/jobs:batchDelete\332A\rparent,filter\022\321"
+          + "\001\n\010ListJobs\022,.google.cloud.talent.v4beta"
+          + "1.ListJobsRequest\032-.google.cloud.talent."
+          + "v4beta1.ListJobsResponse\"h\202\323\344\223\002R\022+/v4bet"
+          + "a1/{parent=projects/*/tenants/*}/jobsZ#\022"
+          + "!/v4beta1/{parent=projects/*}/jobs\332A\rpar"
+          + "ent,filter\022\333\001\n\nSearchJobs\022..google.cloud"
+          + ".talent.v4beta1.SearchJobsRequest\032/.goog"
+          + "le.cloud.talent.v4beta1.SearchJobsRespon"
+          + "se\"l\202\323\344\223\002f\"2/v4beta1/{parent=projects/*/"
+          + "tenants/*}/jobs:search:\001*Z-\"(/v4beta1/{p"
+          + "arent=projects/*}/jobs:search:\001*\022\363\001\n\022Sea"
+          + "rchJobsForAlert\022..google.cloud.talent.v4"
+          + "beta1.SearchJobsRequest\032/.google.cloud.t"
+          + "alent.v4beta1.SearchJobsResponse\"|\202\323\344\223\002v"
+          + "\":/v4beta1/{parent=projects/*/tenants/*}"
+          + "/jobs:searchForAlert:\001*Z5\"0/v4beta1/{par"
+          + "ent=projects/*}/jobs:searchForAlert:\001*\032l"
+          + "\312A\023jobs.googleapis.com\322AShttps://www.goo"
+          + "gleapis.com/auth/cloud-platform,https://"
+          + "www.googleapis.com/auth/jobsB}\n\037com.goog"
+          + "le.cloud.talent.v4beta1B\017JobServiceProto"
+          + "P\001ZAgoogle.golang.org/genproto/googleapi"
+          + "s/cloud/talent/v4beta1;talent\242\002\003CTSb\006pro"
+          + "to3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -279,7 +285,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(),
               com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(),
               com.google.longrunning.OperationsProto.getDescriptor(),
-              com.google.protobuf.AnyProto.getDescriptor(),
               com.google.protobuf.DurationProto.getDescriptor(),
               com.google.protobuf.EmptyProto.getDescriptor(),
               com.google.protobuf.FieldMaskProto.getDescriptor(),
@@ -362,6 +367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               "DiversificationLevel",
               "CustomRankingInfo",
               "DisableKeywordMatch",
+              "KeywordMatchMode",
             });
     internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_CustomRankingInfo_descriptor =
         internal_static_google_cloud_talent_v4beta1_SearchJobsRequest_descriptor
@@ -463,7 +469,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor();
     com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor();
     com.google.longrunning.OperationsProto.getDescriptor();
-    com.google.protobuf.AnyProto.getDescriptor();
     com.google.protobuf.DurationProto.getDescriptor();
     com.google.protobuf.EmptyProto.getDescriptor();
     com.google.protobuf.FieldMaskProto.getDescriptor();
diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java
deleted file mode 100644
index d5c100ff..00000000
--- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java
+++ /dev/null
@@ -1,730 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/talent/v4beta1/filters.proto
-
-package com.google.cloud.talent.v4beta1;
-
-/**
- *
- *
- * 
- * Job title of the search.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} - */ -public final class JobTitleFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobTitleFilter) - JobTitleFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobTitleFilter.newBuilder() to construct. - private JobTitleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobTitleFilter() { - jobTitle_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JobTitleFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private JobTitleFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobTitle_ = s; - break; - } - case 16: - { - negated_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.JobTitleFilter.class, - com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); - } - - public static final int JOB_TITLE_FIELD_NUMBER = 1; - private volatile java.lang.Object jobTitle_; - /** - * - * - *
-   * Required. The job title. For example, "Software engineer", or "Product manager".
-   * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobTitle. - */ - @java.lang.Override - public java.lang.String getJobTitle() { - java.lang.Object ref = jobTitle_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitle_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The job title. For example, "Software engineer", or "Product manager".
-   * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobTitle. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobTitleBytes() { - java.lang.Object ref = jobTitle_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEGATED_FIELD_NUMBER = 2; - private boolean negated_; - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * are excluded.
-   * 
- * - * bool negated = 2; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobTitle_); - } - if (negated_ != false) { - output.writeBool(2, negated_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobTitle_); - } - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.JobTitleFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.JobTitleFilter other = - (com.google.cloud.talent.v4beta1.JobTitleFilter) obj; - - if (!getJobTitle().equals(other.getJobTitle())) return false; - if (getNegated() != other.getNegated()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; - hash = (53 * hash) + getJobTitle().hashCode(); - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobTitleFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Job title of the search.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.JobTitleFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobTitleFilter) - com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.JobTitleFilter.class, - com.google.cloud.talent.v4beta1.JobTitleFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.JobTitleFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - jobTitle_ = ""; - - negated_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_JobTitleFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobTitleFilter build() { - com.google.cloud.talent.v4beta1.JobTitleFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobTitleFilter buildPartial() { - com.google.cloud.talent.v4beta1.JobTitleFilter result = - new com.google.cloud.talent.v4beta1.JobTitleFilter(this); - result.jobTitle_ = jobTitle_; - result.negated_ = negated_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.JobTitleFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.JobTitleFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobTitleFilter other) { - if (other == com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()) return this; - if (!other.getJobTitle().isEmpty()) { - jobTitle_ = other.jobTitle_; - onChanged(); - } - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.JobTitleFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.JobTitleFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object jobTitle_ = ""; - /** - * - * - *
-     * Required. The job title. For example, "Software engineer", or "Product manager".
-     * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobTitle. - */ - public java.lang.String getJobTitle() { - java.lang.Object ref = jobTitle_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobTitle_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The job title. For example, "Software engineer", or "Product manager".
-     * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobTitle. - */ - public com.google.protobuf.ByteString getJobTitleBytes() { - java.lang.Object ref = jobTitle_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobTitle_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The job title. For example, "Software engineer", or "Product manager".
-     * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The jobTitle to set. - * @return This builder for chaining. - */ - public Builder setJobTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobTitle_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job title. For example, "Software engineer", or "Product manager".
-     * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearJobTitle() { - - jobTitle_ = getDefaultInstance().getJobTitle(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The job title. For example, "Software engineer", or "Product manager".
-     * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for jobTitle to set. - * @return This builder for chaining. - */ - public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobTitle_ = value; - onChanged(); - return this; - } - - private boolean negated_; - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * are excluded.
-     * 
- * - * bool negated = 2; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * are excluded.
-     * 
- * - * bool negated = 2; - * - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * are excluded.
-     * 
- * - * bool negated = 2; - * - * @return This builder for chaining. - */ - public Builder clearNegated() { - - negated_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobTitleFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobTitleFilter) - private static final com.google.cloud.talent.v4beta1.JobTitleFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobTitleFilter(); - } - - public static com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobTitleFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobTitleFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobTitleFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java deleted file mode 100644 index a3cd6919..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface JobTitleFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobTitleFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The job title. For example, "Software engineer", or "Product manager".
-   * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The jobTitle. - */ - java.lang.String getJobTitle(); - /** - * - * - *
-   * Required. The job title. For example, "Software engineer", or "Product manager".
-   * 
- * - * string job_title = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for jobTitle. - */ - com.google.protobuf.ByteString getJobTitleBytes(); - - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * are excluded.
-   * 
- * - * bool negated = 2; - * - * @return The negated. - */ - boolean getNegated(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java deleted file mode 100644 index 64f1ecdb..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java +++ /dev/null @@ -1,947 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * List applications for which the client has ACL visibility.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListApplicationsRequest} - */ -public final class ListApplicationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListApplicationsRequest) - ListApplicationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListApplicationsRequest.newBuilder() to construct. - private ListApplicationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListApplicationsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListApplicationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListApplicationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListApplicationsRequest.class, - com.google.cloud.talent.v4beta1.ListApplicationsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * The starting indicator from which to return results.
-   * 
- * - * string page_token = 2; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * The starting indicator from which to return results.
-   * 
- * - * string page_token = 2; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * The maximum number of applications to be returned, at most 100.
-   * Default is 100 if a non-positive number is provided.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ListApplicationsRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ListApplicationsRequest other = - (com.google.cloud.talent.v4beta1.ListApplicationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.ListApplicationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * List applications for which the client has ACL visibility.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListApplicationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListApplicationsRequest) - com.google.cloud.talent.v4beta1.ListApplicationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListApplicationsRequest.class, - com.google.cloud.talent.v4beta1.ListApplicationsRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ListApplicationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageToken_ = ""; - - pageSize_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ListApplicationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsRequest build() { - com.google.cloud.talent.v4beta1.ListApplicationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsRequest buildPartial() { - com.google.cloud.talent.v4beta1.ListApplicationsRequest result = - new com.google.cloud.talent.v4beta1.ListApplicationsRequest(this); - result.parent_ = parent_; - result.pageToken_ = pageToken_; - result.pageSize_ = pageSize_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ListApplicationsRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.ListApplicationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListApplicationsRequest other) { - if (other == com.google.cloud.talent.v4beta1.ListApplicationsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ListApplicationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ListApplicationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * The starting indicator from which to return results.
-     * 
- * - * string page_token = 2; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The starting indicator from which to return results.
-     * 
- * - * string page_token = 2; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The starting indicator from which to return results.
-     * 
- * - * string page_token = 2; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The starting indicator from which to return results.
-     * 
- * - * string page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * The starting indicator from which to return results.
-     * 
- * - * string page_token = 2; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of applications to be returned, at most 100.
-     * Default is 100 if a non-positive number is provided.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of applications to be returned, at most 100.
-     * Default is 100 if a non-positive number is provided.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of applications to be returned, at most 100.
-     * Default is 100 if a non-positive number is provided.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListApplicationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListApplicationsRequest) - private static final com.google.cloud.talent.v4beta1.ListApplicationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListApplicationsRequest(); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApplicationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApplicationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java deleted file mode 100644 index 3bcbcc1b..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface ListApplicationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListApplicationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The starting indicator from which to return results.
-   * 
- * - * string page_token = 2; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * The starting indicator from which to return results.
-   * 
- * - * string page_token = 2; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * The maximum number of applications to be returned, at most 100.
-   * Default is 100 if a non-positive number is provided.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java deleted file mode 100644 index c3f2ddf9..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java +++ /dev/null @@ -1,1425 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * The List applications response object.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListApplicationsResponse} - */ -public final class ListApplicationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListApplicationsResponse) - ListApplicationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListApplicationsResponse.newBuilder() to construct. - private ListApplicationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListApplicationsResponse() { - applications_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListApplicationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListApplicationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - applications_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - applications_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Application.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: - { - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - applications_ = java.util.Collections.unmodifiableList(applications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListApplicationsResponse.class, - com.google.cloud.talent.v4beta1.ListApplicationsResponse.Builder.class); - } - - public static final int APPLICATIONS_FIELD_NUMBER = 1; - private java.util.List applications_; - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - @java.lang.Override - public java.util.List getApplicationsList() { - return applications_; - } - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - @java.lang.Override - public java.util.List - getApplicationsOrBuilderList() { - return applications_; - } - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - @java.lang.Override - public int getApplicationsCount() { - return applications_.size(); - } - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application getApplications(int index) { - return applications_.get(index); - } - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index) { - return applications_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 3; - private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < applications_.size(); i++) { - output.writeMessage(1, applications_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < applications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, applications_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ListApplicationsResponse)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ListApplicationsResponse other = - (com.google.cloud.talent.v4beta1.ListApplicationsResponse) obj; - - if (!getApplicationsList().equals(other.getApplicationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getApplicationsCount() > 0) { - hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getApplicationsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.ListApplicationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The List applications response object.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListApplicationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListApplicationsResponse) - com.google.cloud.talent.v4beta1.ListApplicationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListApplicationsResponse.class, - com.google.cloud.talent.v4beta1.ListApplicationsResponse.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ListApplicationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getApplicationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (applicationsBuilder_ == null) { - applications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - applicationsBuilder_.clear(); - } - nextPageToken_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_ListApplicationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsResponse getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ListApplicationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsResponse build() { - com.google.cloud.talent.v4beta1.ListApplicationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsResponse buildPartial() { - com.google.cloud.talent.v4beta1.ListApplicationsResponse result = - new com.google.cloud.talent.v4beta1.ListApplicationsResponse(this); - int from_bitField0_ = bitField0_; - if (applicationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - applications_ = java.util.Collections.unmodifiableList(applications_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.applications_ = applications_; - } else { - result.applications_ = applicationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ListApplicationsResponse) { - return mergeFrom((com.google.cloud.talent.v4beta1.ListApplicationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListApplicationsResponse other) { - if (other == com.google.cloud.talent.v4beta1.ListApplicationsResponse.getDefaultInstance()) - return this; - if (applicationsBuilder_ == null) { - if (!other.applications_.isEmpty()) { - if (applications_.isEmpty()) { - applications_ = other.applications_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureApplicationsIsMutable(); - applications_.addAll(other.applications_); - } - onChanged(); - } - } else { - if (!other.applications_.isEmpty()) { - if (applicationsBuilder_.isEmpty()) { - applicationsBuilder_.dispose(); - applicationsBuilder_ = null; - applications_ = other.applications_; - bitField0_ = (bitField0_ & ~0x00000001); - applicationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApplicationsFieldBuilder() - : null; - } else { - applicationsBuilder_.addAllMessages(other.applications_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ListApplicationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ListApplicationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List applications_ = - java.util.Collections.emptyList(); - - private void ensureApplicationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - applications_ = - new java.util.ArrayList(applications_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder> - applicationsBuilder_; - - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public java.util.List getApplicationsList() { - if (applicationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(applications_); - } else { - return applicationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public int getApplicationsCount() { - if (applicationsBuilder_ == null) { - return applications_.size(); - } else { - return applicationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public com.google.cloud.talent.v4beta1.Application getApplications(int index) { - if (applicationsBuilder_ == null) { - return applications_.get(index); - } else { - return applicationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder setApplications(int index, com.google.cloud.talent.v4beta1.Application value) { - if (applicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationsIsMutable(); - applications_.set(index, value); - onChanged(); - } else { - applicationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder setApplications( - int index, com.google.cloud.talent.v4beta1.Application.Builder builderForValue) { - if (applicationsBuilder_ == null) { - ensureApplicationsIsMutable(); - applications_.set(index, builderForValue.build()); - onChanged(); - } else { - applicationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder addApplications(com.google.cloud.talent.v4beta1.Application value) { - if (applicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationsIsMutable(); - applications_.add(value); - onChanged(); - } else { - applicationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder addApplications(int index, com.google.cloud.talent.v4beta1.Application value) { - if (applicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationsIsMutable(); - applications_.add(index, value); - onChanged(); - } else { - applicationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder addApplications( - com.google.cloud.talent.v4beta1.Application.Builder builderForValue) { - if (applicationsBuilder_ == null) { - ensureApplicationsIsMutable(); - applications_.add(builderForValue.build()); - onChanged(); - } else { - applicationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder addApplications( - int index, com.google.cloud.talent.v4beta1.Application.Builder builderForValue) { - if (applicationsBuilder_ == null) { - ensureApplicationsIsMutable(); - applications_.add(index, builderForValue.build()); - onChanged(); - } else { - applicationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder addAllApplications( - java.lang.Iterable values) { - if (applicationsBuilder_ == null) { - ensureApplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applications_); - onChanged(); - } else { - applicationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder clearApplications() { - if (applicationsBuilder_ == null) { - applications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - applicationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public Builder removeApplications(int index) { - if (applicationsBuilder_ == null) { - ensureApplicationsIsMutable(); - applications_.remove(index); - onChanged(); - } else { - applicationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public com.google.cloud.talent.v4beta1.Application.Builder getApplicationsBuilder(int index) { - return getApplicationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder( - int index) { - if (applicationsBuilder_ == null) { - return applications_.get(index); - } else { - return applicationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public java.util.List - getApplicationsOrBuilderList() { - if (applicationsBuilder_ != null) { - return applicationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(applications_); - } - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public com.google.cloud.talent.v4beta1.Application.Builder addApplicationsBuilder() { - return getApplicationsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Application.getDefaultInstance()); - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public com.google.cloud.talent.v4beta1.Application.Builder addApplicationsBuilder(int index) { - return getApplicationsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Application.getDefaultInstance()); - } - /** - * - * - *
-     * Applications for the current client.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - public java.util.List - getApplicationsBuilderList() { - return getApplicationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder> - getApplicationsFieldBuilder() { - if (applicationsBuilder_ == null) { - applicationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder>( - applications_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - applications_ = null; - } - return applicationsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve the next page of results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ResponseMetadata, - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return The metadata. - */ - public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder setMetadata( - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ResponseMetadata, - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ResponseMetadata, - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListApplicationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListApplicationsResponse) - private static final com.google.cloud.talent.v4beta1.ListApplicationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListApplicationsResponse(); - } - - public static com.google.cloud.talent.v4beta1.ListApplicationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListApplicationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListApplicationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListApplicationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java deleted file mode 100644 index a8aa4f2a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface ListApplicationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListApplicationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - java.util.List getApplicationsList(); - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - com.google.cloud.talent.v4beta1.Application getApplications(int index); - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - int getApplicationsCount(); - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - java.util.List - getApplicationsOrBuilderList(); - /** - * - * - *
-   * Applications for the current client.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Application applications = 1; - */ - com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationsOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve the next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return The metadata. - */ - com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java index e394343c..7267f596 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java @@ -210,16 +210,20 @@ public com.google.protobuf.ByteString getParentBytes() { * 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -245,16 +249,20 @@ public java.lang.String 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -902,16 +910,20 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -936,16 +948,20 @@ public java.lang.String 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -970,16 +986,20 @@ public com.google.protobuf.ByteString getFilterBytes() { * 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1003,16 +1023,20 @@ public Builder setFilter(java.lang.String value) { * 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1032,16 +1056,20 @@ public Builder clearFilter() { * 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java index 14722286..e69c59d4 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java @@ -65,16 +65,20 @@ public interface ListJobsRequestOrBuilder * 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -89,16 +93,20 @@ public interface ListJobsRequestOrBuilder * 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" *
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java deleted file mode 100644 index 55d6ff33..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java +++ /dev/null @@ -1,1506 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * List profiles request.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} - */ -public final class ListProfilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesRequest) - ListProfilesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListProfilesRequest.newBuilder() to construct. - private ListProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListProfilesRequest() { - parent_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListProfilesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListProfilesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (readMask_ != null) { - subBuilder = readMask_.toBuilder(); - } - readMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readMask_); - readMask_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListProfilesRequest.class, - com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object 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"
-   * 
- * - * string filter = 5; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * 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"
-   * 
- * - * string filter = 5; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 2; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 2; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * The maximum number of profiles to be returned, at most 100.
-   * Default is 100 unless a positive number smaller than 100 is specified.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int READ_MASK_FIELD_NUMBER = 4; - private com.google.protobuf.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
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return readMask_ != null; - } - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : 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
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (readMask_ != null) { - output.writeMessage(4, getReadMask()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadMask()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ListProfilesRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ListProfilesRequest other = - (com.google.cloud.talent.v4beta1.ListProfilesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - if (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListProfilesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * List profiles request.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesRequest) - com.google.cloud.talent.v4beta1.ListProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListProfilesRequest.class, - com.google.cloud.talent.v4beta1.ListProfilesRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ListProfilesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - filter_ = ""; - - pageToken_ = ""; - - pageSize_ = 0; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesRequest build() { - com.google.cloud.talent.v4beta1.ListProfilesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesRequest buildPartial() { - com.google.cloud.talent.v4beta1.ListProfilesRequest result = - new com.google.cloud.talent.v4beta1.ListProfilesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageToken_ = pageToken_; - result.pageSize_ = pageSize_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesRequest other) { - if (other == com.google.cloud.talent.v4beta1.ListProfilesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (other.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ListProfilesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ListProfilesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object 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"
-     * 
- * - * string filter = 5; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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"
-     * 
- * - * string filter = 5; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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"
-     * 
- * - * string filter = 5; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - 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"
-     * 
- * - * string filter = 5; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - 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"
-     * 
- * - * string filter = 5; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string page_token = 2; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string page_token = 2; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string page_token = 2; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - 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.
-     * 
- * - * string page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - 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.
-     * 
- * - * string page_token = 2; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The maximum number of profiles to be returned, at most 100.
-     * Default is 100 unless a positive number smaller than 100 is specified.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The maximum number of profiles to be returned, at most 100.
-     * Default is 100 unless a positive number smaller than 100 is specified.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - 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.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - onChanged(); - } else { - readMaskBuilder_.setMessage(value); - } - - 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - onChanged(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - - 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); - } else { - readMask_ = value; - } - onChanged(); - } else { - readMaskBuilder_.mergeFrom(value); - } - - 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - - 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - - onChanged(); - return getReadMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : 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
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesRequest) - private static final com.google.cloud.talent.v4beta1.ListProfilesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesRequest(); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProfilesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java deleted file mode 100644 index ca080a4e..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface ListProfilesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * 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"
-   * 
- * - * string filter = 5; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * 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"
-   * 
- * - * string filter = 5; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 2; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 2; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * The maximum number of profiles to be returned, at most 100.
-   * Default is 100 unless a positive number smaller than 100 is specified.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - /** - * - * - *
-   * 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
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java deleted file mode 100644 index 00baadfe..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java +++ /dev/null @@ -1,1137 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * The List profiles response object.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} - */ -public final class ListProfilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ListProfilesResponse) - ListProfilesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListProfilesResponse.newBuilder() to construct. - private ListProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListProfilesResponse() { - profiles_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListProfilesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListProfilesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - profiles_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = java.util.Collections.unmodifiableList(profiles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListProfilesResponse.class, - com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); - } - - public static final int PROFILES_FIELD_NUMBER = 1; - private java.util.List profiles_; - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public java.util.List getProfilesList() { - return profiles_; - } - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public java.util.List - getProfilesOrBuilderList() { - return profiles_; - } - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public int getProfilesCount() { - return profiles_.size(); - } - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { - return profiles_.get(index); - } - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { - return profiles_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < profiles_.size(); i++) { - output.writeMessage(1, profiles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < profiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ListProfilesResponse)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ListProfilesResponse other = - (com.google.cloud.talent.v4beta1.ListProfilesResponse) obj; - - if (!getProfilesList().equals(other.getProfilesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getProfilesCount() > 0) { - hash = (37 * hash) + PROFILES_FIELD_NUMBER; - hash = (53 * hash) + getProfilesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.ListProfilesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The List profiles response object.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ListProfilesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ListProfilesResponse) - com.google.cloud.talent.v4beta1.ListProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ListProfilesResponse.class, - com.google.cloud.talent.v4beta1.ListProfilesResponse.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ListProfilesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getProfilesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (profilesBuilder_ == null) { - profiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - profilesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesResponse build() { - com.google.cloud.talent.v4beta1.ListProfilesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesResponse buildPartial() { - com.google.cloud.talent.v4beta1.ListProfilesResponse result = - new com.google.cloud.talent.v4beta1.ListProfilesResponse(this); - int from_bitField0_ = bitField0_; - if (profilesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - profiles_ = java.util.Collections.unmodifiableList(profiles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.profiles_ = profiles_; - } else { - result.profiles_ = profilesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ListProfilesResponse) { - return mergeFrom((com.google.cloud.talent.v4beta1.ListProfilesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesResponse other) { - if (other == com.google.cloud.talent.v4beta1.ListProfilesResponse.getDefaultInstance()) - return this; - if (profilesBuilder_ == null) { - if (!other.profiles_.isEmpty()) { - if (profiles_.isEmpty()) { - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProfilesIsMutable(); - profiles_.addAll(other.profiles_); - } - onChanged(); - } - } else { - if (!other.profiles_.isEmpty()) { - if (profilesBuilder_.isEmpty()) { - profilesBuilder_.dispose(); - profilesBuilder_ = null; - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - profilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProfilesFieldBuilder() - : null; - } else { - profilesBuilder_.addAllMessages(other.profiles_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ListProfilesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ListProfilesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List profiles_ = - java.util.Collections.emptyList(); - - private void ensureProfilesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - profiles_ = new java.util.ArrayList(profiles_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - profilesBuilder_; - - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public java.util.List getProfilesList() { - if (profilesBuilder_ == null) { - return java.util.Collections.unmodifiableList(profiles_); - } else { - return profilesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public int getProfilesCount() { - if (profilesBuilder_ == null) { - return profiles_.size(); - } else { - return profilesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { - if (profilesBuilder_ == null) { - return profiles_.get(index); - } else { - return profilesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.set(index, value); - onChanged(); - } else { - profilesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder setProfiles( - int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.set(index, builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(value); - onChanged(); - } else { - profilesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(index, value); - onChanged(); - } else { - profilesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.add(builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles( - int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.add(index, builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addAllProfiles( - java.lang.Iterable values) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); - onChanged(); - } else { - profilesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder clearProfiles() { - if (profilesBuilder_ == null) { - profiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - profilesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder removeProfiles(int index) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.remove(index); - onChanged(); - } else { - profilesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { - return getProfilesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { - if (profilesBuilder_ == null) { - return profiles_.get(index); - } else { - return profilesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public java.util.List - getProfilesOrBuilderList() { - if (profilesBuilder_ != null) { - return profilesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(profiles_); - } - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { - return getProfilesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { - return getProfilesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); - } - /** - * - * - *
-     * Profiles for the specific tenant.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public java.util.List - getProfilesBuilderList() { - return getProfilesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - getProfilesFieldBuilder() { - if (profilesBuilder_ == null) { - profilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder>( - profiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - profiles_ = null; - } - return profilesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ListProfilesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ListProfilesResponse) - private static final com.google.cloud.talent.v4beta1.ListProfilesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ListProfilesResponse(); - } - - public static com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListProfilesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ListProfilesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java deleted file mode 100644 index 7c96557a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface ListProfilesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ListProfilesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - java.util.List getProfilesList(); - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - com.google.cloud.talent.v4beta1.Profile getProfiles(int index); - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - int getProfilesCount(); - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - java.util.List - getProfilesOrBuilderList(); - /** - * - * - *
-   * Profiles for the specific tenant.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java index 3e227e61..a75dcc21 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java @@ -177,11 +177,13 @@ public enum TelecommutePreference implements com.google.protobuf.ProtocolMessage * * *
-     * Exclude telecommute jobs.
+     * Deprecated: Ignore telecommute status of jobs. Use
+     * TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute jobs.
      * 
* - * TELECOMMUTE_EXCLUDED = 1; + * TELECOMMUTE_EXCLUDED = 1 [deprecated = true]; */ + @java.lang.Deprecated TELECOMMUTE_EXCLUDED(1), /** * @@ -193,6 +195,16 @@ public enum TelecommutePreference implements com.google.protobuf.ProtocolMessage * TELECOMMUTE_ALLOWED = 2; */ TELECOMMUTE_ALLOWED(2), + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_JOBS_EXCLUDED = 3; + */ + TELECOMMUTE_JOBS_EXCLUDED(3), UNRECOGNIZED(-1), ; @@ -210,12 +222,13 @@ public enum TelecommutePreference implements com.google.protobuf.ProtocolMessage * * *
-     * Exclude telecommute jobs.
+     * Deprecated: Ignore telecommute status of jobs. Use
+     * TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute jobs.
      * 
* - * TELECOMMUTE_EXCLUDED = 1; + * TELECOMMUTE_EXCLUDED = 1 [deprecated = true]; */ - public static final int TELECOMMUTE_EXCLUDED_VALUE = 1; + @java.lang.Deprecated public static final int TELECOMMUTE_EXCLUDED_VALUE = 1; /** * * @@ -226,6 +239,16 @@ public enum TelecommutePreference implements com.google.protobuf.ProtocolMessage * TELECOMMUTE_ALLOWED = 2; */ public static final int TELECOMMUTE_ALLOWED_VALUE = 2; + /** + * + * + *
+     * Exclude telecommute jobs.
+     * 
+ * + * TELECOMMUTE_JOBS_EXCLUDED = 3; + */ + public static final int TELECOMMUTE_JOBS_EXCLUDED_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -257,6 +280,8 @@ public static TelecommutePreference forNumber(int value) { return TELECOMMUTE_EXCLUDED; case 2: return TELECOMMUTE_ALLOWED; + case 3: + return TELECOMMUTE_JOBS_EXCLUDED; default: return null; } @@ -368,16 +393,18 @@ public com.google.protobuf.ByteString getAddressBytes() { * * *
-   * 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.
    * 
* * string region_code = 2; @@ -400,16 +427,18 @@ public java.lang.String 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.
    * 
* * string region_code = 2; @@ -506,13 +535,15 @@ public double getDistanceInMiles() { *
    * 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,
@@ -538,13 +569,15 @@ public int getTelecommutePreferenceValue() {
    * 
    * 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,
@@ -580,7 +613,6 @@ public int getTelecommutePreferenceValue() {
    * 
    * Whether to apply negation to the filter so profiles matching the filter
    * are excluded.
-   * Currently only supported in profile search.
    * 
* * bool negated = 6; @@ -1118,16 +1150,18 @@ public Builder setAddressBytes(com.google.protobuf.ByteString value) { * * *
-     * 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.
      * 
* * string region_code = 2; @@ -1149,16 +1183,18 @@ public java.lang.String 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.
      * 
* * string region_code = 2; @@ -1180,16 +1216,18 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { * * *
-     * 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.
      * 
* * string region_code = 2; @@ -1210,16 +1248,18 @@ public Builder setRegionCode(java.lang.String value) { * * *
-     * 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.
      * 
* * string region_code = 2; @@ -1236,16 +1276,18 @@ public Builder clearRegionCode() { * * *
-     * 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.
      * 
* * string region_code = 2; @@ -1511,13 +1553,15 @@ public Builder clearDistanceInMiles() { *
      * 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,
@@ -1543,13 +1587,15 @@ public int getTelecommutePreferenceValue() {
      * 
      * 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,
@@ -1578,13 +1624,15 @@ public Builder setTelecommutePreferenceValue(int value) {
      * 
      * 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,
@@ -1617,13 +1665,15 @@ public Builder setTelecommutePreferenceValue(int value) {
      * 
      * 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,
@@ -1656,13 +1706,15 @@ public Builder setTelecommutePreference(
      * 
      * 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,
@@ -1692,7 +1744,6 @@ public Builder clearTelecommutePreference() {
      * 
      * Whether to apply negation to the filter so profiles matching the filter
      * are excluded.
-     * Currently only supported in profile search.
      * 
* * bool negated = 6; @@ -1709,7 +1760,6 @@ public boolean getNegated() { *
      * Whether to apply negation to the filter so profiles matching the filter
      * are excluded.
-     * Currently only supported in profile search.
      * 
* * bool negated = 6; @@ -1729,7 +1779,6 @@ public Builder setNegated(boolean value) { *
      * Whether to apply negation to the filter so profiles matching the filter
      * are excluded.
-     * Currently only supported in profile search.
      * 
* * bool negated = 6; diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java index c050ae3e..503bb48f 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java @@ -52,16 +52,18 @@ public interface LocationFilterOrBuilder * * *
-   * 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.
    * 
* * string region_code = 2; @@ -73,16 +75,18 @@ public interface LocationFilterOrBuilder * * *
-   * 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.
    * 
* * string region_code = 2; @@ -150,13 +154,15 @@ public interface LocationFilterOrBuilder *
    * 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,
@@ -179,13 +185,15 @@ public interface LocationFilterOrBuilder
    * 
    * 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,
@@ -209,7 +217,6 @@ public interface LocationFilterOrBuilder
    * 
    * Whether to apply negation to the filter so profiles matching the filter
    * are excluded.
-   * Currently only supported in profile search.
    * 
* * bool negated = 6; diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java deleted file mode 100644 index f279a14c..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * The overall outcome /decision / result indicator.
- * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.Outcome} - */ -public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value.
-   * 
- * - * OUTCOME_UNSPECIFIED = 0; - */ - 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).
-   * 
- * - * POSITIVE = 1; - */ - POSITIVE(1), - /** - * - * - *
-   * A neutral outcome / no clear indicator (for example, no strong
-   * reccommendation either to move forward / not move forward, neutral score).
-   * 
- * - * NEUTRAL = 2; - */ - NEUTRAL(2), - /** - * - * - *
-   * A negative outcome / failing indicator (for example, candidate was
-   * recommended to NOT move forward in the hiring process, failed a test).
-   * 
- * - * NEGATIVE = 3; - */ - NEGATIVE(3), - /** - * - * - *
-   * The assessment outcome is not available or otherwise unknown (for example,
-   * candidate did not complete assessment).
-   * 
- * - * OUTCOME_NOT_AVAILABLE = 4; - */ - OUTCOME_NOT_AVAILABLE(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value.
-   * 
- * - * OUTCOME_UNSPECIFIED = 0; - */ - public static final int OUTCOME_UNSPECIFIED_VALUE = 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).
-   * 
- * - * POSITIVE = 1; - */ - public static final int POSITIVE_VALUE = 1; - /** - * - * - *
-   * A neutral outcome / no clear indicator (for example, no strong
-   * reccommendation either to move forward / not move forward, neutral score).
-   * 
- * - * NEUTRAL = 2; - */ - public static final int NEUTRAL_VALUE = 2; - /** - * - * - *
-   * A negative outcome / failing indicator (for example, candidate was
-   * recommended to NOT move forward in the hiring process, failed a test).
-   * 
- * - * NEGATIVE = 3; - */ - public static final int NEGATIVE_VALUE = 3; - /** - * - * - *
-   * The assessment outcome is not available or otherwise unknown (for example,
-   * candidate did not complete assessment).
-   * 
- * - * OUTCOME_NOT_AVAILABLE = 4; - */ - public static final int OUTCOME_NOT_AVAILABLE_VALUE = 4; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Outcome valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Outcome forNumber(int value) { - switch (value) { - case 0: - return OUTCOME_UNSPECIFIED; - case 1: - return POSITIVE; - case 2: - return NEUTRAL; - case 3: - return NEGATIVE; - case 4: - return OUTCOME_NOT_AVAILABLE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Outcome findValueByNumber(int number) { - return Outcome.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(12); - } - - private static final Outcome[] VALUES = values(); - - public static Outcome valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Outcome(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Outcome) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java deleted file mode 100644 index 51a714bb..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java +++ /dev/null @@ -1,2703 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents the patent acquired by a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Patent} - */ -public final class Patent extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Patent) - PatentOrBuilder { - private static final long serialVersionUID = 0L; - // Use Patent.newBuilder() to construct. - private Patent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Patent() { - displayName_ = ""; - inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - patentStatus_ = ""; - patentOffice_ = ""; - patentNumber_ = ""; - patentDescription_ = ""; - skillsUsed_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Patent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Patent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - inventors_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - inventors_.add(s); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - patentStatus_ = s; - break; - } - case 34: - { - com.google.type.Date.Builder subBuilder = null; - if (patentStatusDate_ != null) { - subBuilder = patentStatusDate_.toBuilder(); - } - patentStatusDate_ = - input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(patentStatusDate_); - patentStatusDate_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.type.Date.Builder subBuilder = null; - if (patentFilingDate_ != null) { - subBuilder = patentFilingDate_.toBuilder(); - } - patentFilingDate_ = - input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(patentFilingDate_); - patentFilingDate_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - patentOffice_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - patentNumber_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - patentDescription_ = s; - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - skillsUsed_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - inventors_ = inventors_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Patent.class, - com.google.cloud.talent.v4beta1.Patent.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Name of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Name of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INVENTORS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList inventors_; - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @return A list containing the inventors. - */ - public com.google.protobuf.ProtocolStringList getInventorsList() { - return inventors_; - } - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @return The count of inventors. - */ - public int getInventorsCount() { - return inventors_.size(); - } - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @param index The index of the element to return. - * @return The inventors at the given index. - */ - public java.lang.String getInventors(int index) { - return inventors_.get(index); - } - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @param index The index of the value to return. - * @return The bytes of the inventors at the given index. - */ - public com.google.protobuf.ByteString getInventorsBytes(int index) { - return inventors_.getByteString(index); - } - - public static final int PATENT_STATUS_FIELD_NUMBER = 3; - private volatile java.lang.Object patentStatus_; - /** - * - * - *
-   * The status of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_status = 3; - * - * @return The patentStatus. - */ - @java.lang.Override - public java.lang.String getPatentStatus() { - java.lang.Object ref = patentStatus_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentStatus_ = s; - return s; - } - } - /** - * - * - *
-   * The status of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_status = 3; - * - * @return The bytes for patentStatus. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPatentStatusBytes() { - java.lang.Object ref = patentStatus_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentStatus_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATENT_STATUS_DATE_FIELD_NUMBER = 4; - private com.google.type.Date patentStatusDate_; - /** - * - * - *
-   * The date the last time the status of the patent was checked.
-   * 
- * - * .google.type.Date patent_status_date = 4; - * - * @return Whether the patentStatusDate field is set. - */ - @java.lang.Override - public boolean hasPatentStatusDate() { - return patentStatusDate_ != null; - } - /** - * - * - *
-   * The date the last time the status of the patent was checked.
-   * 
- * - * .google.type.Date patent_status_date = 4; - * - * @return The patentStatusDate. - */ - @java.lang.Override - public com.google.type.Date getPatentStatusDate() { - return patentStatusDate_ == null - ? com.google.type.Date.getDefaultInstance() - : patentStatusDate_; - } - /** - * - * - *
-   * The date the last time the status of the patent was checked.
-   * 
- * - * .google.type.Date patent_status_date = 4; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { - return getPatentStatusDate(); - } - - public static final int PATENT_FILING_DATE_FIELD_NUMBER = 5; - private com.google.type.Date patentFilingDate_; - /** - * - * - *
-   * The date that the patent was filed.
-   * 
- * - * .google.type.Date patent_filing_date = 5; - * - * @return Whether the patentFilingDate field is set. - */ - @java.lang.Override - public boolean hasPatentFilingDate() { - return patentFilingDate_ != null; - } - /** - * - * - *
-   * The date that the patent was filed.
-   * 
- * - * .google.type.Date patent_filing_date = 5; - * - * @return The patentFilingDate. - */ - @java.lang.Override - public com.google.type.Date getPatentFilingDate() { - return patentFilingDate_ == null - ? com.google.type.Date.getDefaultInstance() - : patentFilingDate_; - } - /** - * - * - *
-   * The date that the patent was filed.
-   * 
- * - * .google.type.Date patent_filing_date = 5; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { - return getPatentFilingDate(); - } - - public static final int PATENT_OFFICE_FIELD_NUMBER = 6; - private volatile java.lang.Object patentOffice_; - /** - * - * - *
-   * The name of the patent office.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_office = 6; - * - * @return The patentOffice. - */ - @java.lang.Override - public java.lang.String getPatentOffice() { - java.lang.Object ref = patentOffice_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentOffice_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the patent office.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_office = 6; - * - * @return The bytes for patentOffice. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPatentOfficeBytes() { - java.lang.Object ref = patentOffice_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentOffice_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATENT_NUMBER_FIELD_NUMBER = 7; - private volatile java.lang.Object patentNumber_; - /** - * - * - *
-   * The number of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_number = 7; - * - * @return The patentNumber. - */ - @java.lang.Override - public java.lang.String getPatentNumber() { - java.lang.Object ref = patentNumber_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentNumber_ = s; - return s; - } - } - /** - * - * - *
-   * The number of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_number = 7; - * - * @return The bytes for patentNumber. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPatentNumberBytes() { - java.lang.Object ref = patentNumber_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATENT_DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object patentDescription_; - /** - * - * - *
-   * The description of the patent.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string patent_description = 8; - * - * @return The patentDescription. - */ - @java.lang.Override - public java.lang.String getPatentDescription() { - java.lang.Object ref = patentDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentDescription_ = s; - return s; - } - } - /** - * - * - *
-   * The description of the patent.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string patent_description = 8; - * - * @return The bytes for patentDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPatentDescriptionBytes() { - java.lang.Object ref = patentDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SKILLS_USED_FIELD_NUMBER = 9; - private java.util.List skillsUsed_; - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - @java.lang.Override - public java.util.List getSkillsUsedList() { - return skillsUsed_; - } - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - @java.lang.Override - public java.util.List - getSkillsUsedOrBuilderList() { - return skillsUsed_; - } - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - @java.lang.Override - public int getSkillsUsedCount() { - return skillsUsed_.size(); - } - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { - return skillsUsed_.get(index); - } - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { - return skillsUsed_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - for (int i = 0; i < inventors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inventors_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentStatus_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, patentStatus_); - } - if (patentStatusDate_ != null) { - output.writeMessage(4, getPatentStatusDate()); - } - if (patentFilingDate_ != null) { - output.writeMessage(5, getPatentFilingDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentOffice_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, patentOffice_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, patentNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentDescription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, patentDescription_); - } - for (int i = 0; i < skillsUsed_.size(); i++) { - output.writeMessage(9, skillsUsed_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - { - int dataSize = 0; - for (int i = 0; i < inventors_.size(); i++) { - dataSize += computeStringSizeNoTag(inventors_.getRaw(i)); - } - size += dataSize; - size += 1 * getInventorsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentStatus_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, patentStatus_); - } - if (patentStatusDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPatentStatusDate()); - } - if (patentFilingDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPatentFilingDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentOffice_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, patentOffice_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, patentNumber_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(patentDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, patentDescription_); - } - for (int i = 0; i < skillsUsed_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, skillsUsed_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Patent)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Patent other = (com.google.cloud.talent.v4beta1.Patent) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getInventorsList().equals(other.getInventorsList())) return false; - if (!getPatentStatus().equals(other.getPatentStatus())) return false; - if (hasPatentStatusDate() != other.hasPatentStatusDate()) return false; - if (hasPatentStatusDate()) { - if (!getPatentStatusDate().equals(other.getPatentStatusDate())) return false; - } - if (hasPatentFilingDate() != other.hasPatentFilingDate()) return false; - if (hasPatentFilingDate()) { - if (!getPatentFilingDate().equals(other.getPatentFilingDate())) return false; - } - if (!getPatentOffice().equals(other.getPatentOffice())) return false; - if (!getPatentNumber().equals(other.getPatentNumber())) return false; - if (!getPatentDescription().equals(other.getPatentDescription())) return false; - if (!getSkillsUsedList().equals(other.getSkillsUsedList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (getInventorsCount() > 0) { - hash = (37 * hash) + INVENTORS_FIELD_NUMBER; - hash = (53 * hash) + getInventorsList().hashCode(); - } - hash = (37 * hash) + PATENT_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getPatentStatus().hashCode(); - if (hasPatentStatusDate()) { - hash = (37 * hash) + PATENT_STATUS_DATE_FIELD_NUMBER; - hash = (53 * hash) + getPatentStatusDate().hashCode(); - } - if (hasPatentFilingDate()) { - hash = (37 * hash) + PATENT_FILING_DATE_FIELD_NUMBER; - hash = (53 * hash) + getPatentFilingDate().hashCode(); - } - hash = (37 * hash) + PATENT_OFFICE_FIELD_NUMBER; - hash = (53 * hash) + getPatentOffice().hashCode(); - hash = (37 * hash) + PATENT_NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getPatentNumber().hashCode(); - hash = (37 * hash) + PATENT_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getPatentDescription().hashCode(); - if (getSkillsUsedCount() > 0) { - hash = (37 * hash) + SKILLS_USED_FIELD_NUMBER; - hash = (53 * hash) + getSkillsUsedList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Patent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Patent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Patent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Patent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents the patent acquired by a candidate.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Patent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Patent) - com.google.cloud.talent.v4beta1.PatentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Patent.class, - com.google.cloud.talent.v4beta1.Patent.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Patent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSkillsUsedFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - displayName_ = ""; - - inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - patentStatus_ = ""; - - if (patentStatusDateBuilder_ == null) { - patentStatusDate_ = null; - } else { - patentStatusDate_ = null; - patentStatusDateBuilder_ = null; - } - if (patentFilingDateBuilder_ == null) { - patentFilingDate_ = null; - } else { - patentFilingDate_ = null; - patentFilingDateBuilder_ = null; - } - patentOffice_ = ""; - - patentNumber_ = ""; - - patentDescription_ = ""; - - if (skillsUsedBuilder_ == null) { - skillsUsed_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - skillsUsedBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Patent_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Patent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Patent build() { - com.google.cloud.talent.v4beta1.Patent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Patent buildPartial() { - com.google.cloud.talent.v4beta1.Patent result = - new com.google.cloud.talent.v4beta1.Patent(this); - int from_bitField0_ = bitField0_; - result.displayName_ = displayName_; - if (((bitField0_ & 0x00000001) != 0)) { - inventors_ = inventors_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.inventors_ = inventors_; - result.patentStatus_ = patentStatus_; - if (patentStatusDateBuilder_ == null) { - result.patentStatusDate_ = patentStatusDate_; - } else { - result.patentStatusDate_ = patentStatusDateBuilder_.build(); - } - if (patentFilingDateBuilder_ == null) { - result.patentFilingDate_ = patentFilingDate_; - } else { - result.patentFilingDate_ = patentFilingDateBuilder_.build(); - } - result.patentOffice_ = patentOffice_; - result.patentNumber_ = patentNumber_; - result.patentDescription_ = patentDescription_; - if (skillsUsedBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = java.util.Collections.unmodifiableList(skillsUsed_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.skillsUsed_ = skillsUsed_; - } else { - result.skillsUsed_ = skillsUsedBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Patent) { - return mergeFrom((com.google.cloud.talent.v4beta1.Patent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Patent other) { - if (other == com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.inventors_.isEmpty()) { - if (inventors_.isEmpty()) { - inventors_ = other.inventors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureInventorsIsMutable(); - inventors_.addAll(other.inventors_); - } - onChanged(); - } - if (!other.getPatentStatus().isEmpty()) { - patentStatus_ = other.patentStatus_; - onChanged(); - } - if (other.hasPatentStatusDate()) { - mergePatentStatusDate(other.getPatentStatusDate()); - } - if (other.hasPatentFilingDate()) { - mergePatentFilingDate(other.getPatentFilingDate()); - } - if (!other.getPatentOffice().isEmpty()) { - patentOffice_ = other.patentOffice_; - onChanged(); - } - if (!other.getPatentNumber().isEmpty()) { - patentNumber_ = other.patentNumber_; - onChanged(); - } - if (!other.getPatentDescription().isEmpty()) { - patentDescription_ = other.patentDescription_; - onChanged(); - } - if (skillsUsedBuilder_ == null) { - if (!other.skillsUsed_.isEmpty()) { - if (skillsUsed_.isEmpty()) { - skillsUsed_ = other.skillsUsed_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSkillsUsedIsMutable(); - skillsUsed_.addAll(other.skillsUsed_); - } - onChanged(); - } - } else { - if (!other.skillsUsed_.isEmpty()) { - if (skillsUsedBuilder_.isEmpty()) { - skillsUsedBuilder_.dispose(); - skillsUsedBuilder_ = null; - skillsUsed_ = other.skillsUsed_; - bitField0_ = (bitField0_ & ~0x00000002); - skillsUsedBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSkillsUsedFieldBuilder() - : null; - } else { - skillsUsedBuilder_.addAllMessages(other.skillsUsed_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Patent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Patent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Name of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList inventors_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInventorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - inventors_ = new com.google.protobuf.LazyStringArrayList(inventors_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @return A list containing the inventors. - */ - public com.google.protobuf.ProtocolStringList getInventorsList() { - return inventors_.getUnmodifiableView(); - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @return The count of inventors. - */ - public int getInventorsCount() { - return inventors_.size(); - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @param index The index of the element to return. - * @return The inventors at the given index. - */ - public java.lang.String getInventors(int index) { - return inventors_.get(index); - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @param index The index of the value to return. - * @return The bytes of the inventors at the given index. - */ - public com.google.protobuf.ByteString getInventorsBytes(int index) { - return inventors_.getByteString(index); - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @param index The index to set the value at. - * @param value The inventors to set. - * @return This builder for chaining. - */ - public Builder setInventors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInventorsIsMutable(); - inventors_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @param value The inventors to add. - * @return This builder for chaining. - */ - public Builder addInventors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInventorsIsMutable(); - inventors_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @param values The inventors to add. - * @return This builder for chaining. - */ - public Builder addAllInventors(java.lang.Iterable values) { - ensureInventorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventors_); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @return This builder for chaining. - */ - public Builder clearInventors() { - inventors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of inventors' names.
-     * Number of characters allowed for each is 100.
-     * 
- * - * repeated string inventors = 2; - * - * @param value The bytes of the inventors to add. - * @return This builder for chaining. - */ - public Builder addInventorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInventorsIsMutable(); - inventors_.add(value); - onChanged(); - return this; - } - - private java.lang.Object patentStatus_ = ""; - /** - * - * - *
-     * The status of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_status = 3; - * - * @return The patentStatus. - */ - public java.lang.String getPatentStatus() { - java.lang.Object ref = patentStatus_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentStatus_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The status of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_status = 3; - * - * @return The bytes for patentStatus. - */ - public com.google.protobuf.ByteString getPatentStatusBytes() { - java.lang.Object ref = patentStatus_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentStatus_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The status of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_status = 3; - * - * @param value The patentStatus to set. - * @return This builder for chaining. - */ - public Builder setPatentStatus(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - patentStatus_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The status of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_status = 3; - * - * @return This builder for chaining. - */ - public Builder clearPatentStatus() { - - patentStatus_ = getDefaultInstance().getPatentStatus(); - onChanged(); - return this; - } - /** - * - * - *
-     * The status of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_status = 3; - * - * @param value The bytes for patentStatus to set. - * @return This builder for chaining. - */ - public Builder setPatentStatusBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - patentStatus_ = value; - onChanged(); - return this; - } - - private com.google.type.Date patentStatusDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - patentStatusDateBuilder_; - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - * - * @return Whether the patentStatusDate field is set. - */ - public boolean hasPatentStatusDate() { - return patentStatusDateBuilder_ != null || patentStatusDate_ != null; - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - * - * @return The patentStatusDate. - */ - public com.google.type.Date getPatentStatusDate() { - if (patentStatusDateBuilder_ == null) { - return patentStatusDate_ == null - ? com.google.type.Date.getDefaultInstance() - : patentStatusDate_; - } else { - return patentStatusDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - */ - public Builder setPatentStatusDate(com.google.type.Date value) { - if (patentStatusDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - patentStatusDate_ = value; - onChanged(); - } else { - patentStatusDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - */ - public Builder setPatentStatusDate(com.google.type.Date.Builder builderForValue) { - if (patentStatusDateBuilder_ == null) { - patentStatusDate_ = builderForValue.build(); - onChanged(); - } else { - patentStatusDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - */ - public Builder mergePatentStatusDate(com.google.type.Date value) { - if (patentStatusDateBuilder_ == null) { - if (patentStatusDate_ != null) { - patentStatusDate_ = - com.google.type.Date.newBuilder(patentStatusDate_).mergeFrom(value).buildPartial(); - } else { - patentStatusDate_ = value; - } - onChanged(); - } else { - patentStatusDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - */ - public Builder clearPatentStatusDate() { - if (patentStatusDateBuilder_ == null) { - patentStatusDate_ = null; - onChanged(); - } else { - patentStatusDate_ = null; - patentStatusDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - */ - public com.google.type.Date.Builder getPatentStatusDateBuilder() { - - onChanged(); - return getPatentStatusDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - */ - public com.google.type.DateOrBuilder getPatentStatusDateOrBuilder() { - if (patentStatusDateBuilder_ != null) { - return patentStatusDateBuilder_.getMessageOrBuilder(); - } else { - return patentStatusDate_ == null - ? com.google.type.Date.getDefaultInstance() - : patentStatusDate_; - } - } - /** - * - * - *
-     * The date the last time the status of the patent was checked.
-     * 
- * - * .google.type.Date patent_status_date = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getPatentStatusDateFieldBuilder() { - if (patentStatusDateBuilder_ == null) { - patentStatusDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getPatentStatusDate(), getParentForChildren(), isClean()); - patentStatusDate_ = null; - } - return patentStatusDateBuilder_; - } - - private com.google.type.Date patentFilingDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - patentFilingDateBuilder_; - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - * - * @return Whether the patentFilingDate field is set. - */ - public boolean hasPatentFilingDate() { - return patentFilingDateBuilder_ != null || patentFilingDate_ != null; - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - * - * @return The patentFilingDate. - */ - public com.google.type.Date getPatentFilingDate() { - if (patentFilingDateBuilder_ == null) { - return patentFilingDate_ == null - ? com.google.type.Date.getDefaultInstance() - : patentFilingDate_; - } else { - return patentFilingDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - */ - public Builder setPatentFilingDate(com.google.type.Date value) { - if (patentFilingDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - patentFilingDate_ = value; - onChanged(); - } else { - patentFilingDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - */ - public Builder setPatentFilingDate(com.google.type.Date.Builder builderForValue) { - if (patentFilingDateBuilder_ == null) { - patentFilingDate_ = builderForValue.build(); - onChanged(); - } else { - patentFilingDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - */ - public Builder mergePatentFilingDate(com.google.type.Date value) { - if (patentFilingDateBuilder_ == null) { - if (patentFilingDate_ != null) { - patentFilingDate_ = - com.google.type.Date.newBuilder(patentFilingDate_).mergeFrom(value).buildPartial(); - } else { - patentFilingDate_ = value; - } - onChanged(); - } else { - patentFilingDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - */ - public Builder clearPatentFilingDate() { - if (patentFilingDateBuilder_ == null) { - patentFilingDate_ = null; - onChanged(); - } else { - patentFilingDate_ = null; - patentFilingDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - */ - public com.google.type.Date.Builder getPatentFilingDateBuilder() { - - onChanged(); - return getPatentFilingDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - */ - public com.google.type.DateOrBuilder getPatentFilingDateOrBuilder() { - if (patentFilingDateBuilder_ != null) { - return patentFilingDateBuilder_.getMessageOrBuilder(); - } else { - return patentFilingDate_ == null - ? com.google.type.Date.getDefaultInstance() - : patentFilingDate_; - } - } - /** - * - * - *
-     * The date that the patent was filed.
-     * 
- * - * .google.type.Date patent_filing_date = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getPatentFilingDateFieldBuilder() { - if (patentFilingDateBuilder_ == null) { - patentFilingDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getPatentFilingDate(), getParentForChildren(), isClean()); - patentFilingDate_ = null; - } - return patentFilingDateBuilder_; - } - - private java.lang.Object patentOffice_ = ""; - /** - * - * - *
-     * The name of the patent office.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_office = 6; - * - * @return The patentOffice. - */ - public java.lang.String getPatentOffice() { - java.lang.Object ref = patentOffice_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentOffice_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the patent office.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_office = 6; - * - * @return The bytes for patentOffice. - */ - public com.google.protobuf.ByteString getPatentOfficeBytes() { - java.lang.Object ref = patentOffice_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentOffice_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the patent office.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_office = 6; - * - * @param value The patentOffice to set. - * @return This builder for chaining. - */ - public Builder setPatentOffice(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - patentOffice_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the patent office.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_office = 6; - * - * @return This builder for chaining. - */ - public Builder clearPatentOffice() { - - patentOffice_ = getDefaultInstance().getPatentOffice(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the patent office.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_office = 6; - * - * @param value The bytes for patentOffice to set. - * @return This builder for chaining. - */ - public Builder setPatentOfficeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - patentOffice_ = value; - onChanged(); - return this; - } - - private java.lang.Object patentNumber_ = ""; - /** - * - * - *
-     * The number of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_number = 7; - * - * @return The patentNumber. - */ - public java.lang.String getPatentNumber() { - java.lang.Object ref = patentNumber_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentNumber_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The number of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_number = 7; - * - * @return The bytes for patentNumber. - */ - public com.google.protobuf.ByteString getPatentNumberBytes() { - java.lang.Object ref = patentNumber_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentNumber_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The number of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_number = 7; - * - * @param value The patentNumber to set. - * @return This builder for chaining. - */ - public Builder setPatentNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - patentNumber_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_number = 7; - * - * @return This builder for chaining. - */ - public Builder clearPatentNumber() { - - patentNumber_ = getDefaultInstance().getPatentNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The number of the patent.
-     * Number of characters allowed is 100.
-     * 
- * - * string patent_number = 7; - * - * @param value The bytes for patentNumber to set. - * @return This builder for chaining. - */ - public Builder setPatentNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - patentNumber_ = value; - onChanged(); - return this; - } - - private java.lang.Object patentDescription_ = ""; - /** - * - * - *
-     * The description of the patent.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string patent_description = 8; - * - * @return The patentDescription. - */ - public java.lang.String getPatentDescription() { - java.lang.Object ref = patentDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - patentDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of the patent.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string patent_description = 8; - * - * @return The bytes for patentDescription. - */ - public com.google.protobuf.ByteString getPatentDescriptionBytes() { - java.lang.Object ref = patentDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - patentDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of the patent.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string patent_description = 8; - * - * @param value The patentDescription to set. - * @return This builder for chaining. - */ - public Builder setPatentDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - patentDescription_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the patent.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string patent_description = 8; - * - * @return This builder for chaining. - */ - public Builder clearPatentDescription() { - - patentDescription_ = getDefaultInstance().getPatentDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the patent.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string patent_description = 8; - * - * @param value The bytes for patentDescription to set. - * @return This builder for chaining. - */ - public Builder setPatentDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - patentDescription_ = value; - onChanged(); - return this; - } - - private java.util.List skillsUsed_ = - java.util.Collections.emptyList(); - - private void ensureSkillsUsedIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - skillsUsed_ = new java.util.ArrayList(skillsUsed_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder> - skillsUsedBuilder_; - - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public java.util.List getSkillsUsedList() { - if (skillsUsedBuilder_ == null) { - return java.util.Collections.unmodifiableList(skillsUsed_); - } else { - return skillsUsedBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public int getSkillsUsedCount() { - if (skillsUsedBuilder_ == null) { - return skillsUsed_.size(); - } else { - return skillsUsedBuilder_.getCount(); - } - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index) { - if (skillsUsedBuilder_ == null) { - return skillsUsed_.get(index); - } else { - return skillsUsedBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder setSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { - if (skillsUsedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedIsMutable(); - skillsUsed_.set(index, value); - onChanged(); - } else { - skillsUsedBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder setSkillsUsed( - int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.set(index, builderForValue.build()); - onChanged(); - } else { - skillsUsedBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill value) { - if (skillsUsedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedIsMutable(); - skillsUsed_.add(value); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder addSkillsUsed(int index, com.google.cloud.talent.v4beta1.Skill value) { - if (skillsUsedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsUsedIsMutable(); - skillsUsed_.add(index, value); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder addSkillsUsed(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.add(builderForValue.build()); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder addSkillsUsed( - int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.add(index, builderForValue.build()); - onChanged(); - } else { - skillsUsedBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder addAllSkillsUsed( - java.lang.Iterable values) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillsUsed_); - onChanged(); - } else { - skillsUsedBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder clearSkillsUsed() { - if (skillsUsedBuilder_ == null) { - skillsUsed_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - skillsUsedBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public Builder removeSkillsUsed(int index) { - if (skillsUsedBuilder_ == null) { - ensureSkillsUsedIsMutable(); - skillsUsed_.remove(index); - onChanged(); - } else { - skillsUsedBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsUsedBuilder(int index) { - return getSkillsUsedFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index) { - if (skillsUsedBuilder_ == null) { - return skillsUsed_.get(index); - } else { - return skillsUsedBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public java.util.List - getSkillsUsedOrBuilderList() { - if (skillsUsedBuilder_ != null) { - return skillsUsedBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(skillsUsed_); - } - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder() { - return getSkillsUsedFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsUsedBuilder(int index) { - return getSkillsUsedFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); - } - /** - * - * - *
-     * The skills used in this patent.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - public java.util.List - getSkillsUsedBuilderList() { - return getSkillsUsedFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder> - getSkillsUsedFieldBuilder() { - if (skillsUsedBuilder_ == null) { - skillsUsedBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder>( - skillsUsed_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - skillsUsed_ = null; - } - return skillsUsedBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Patent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Patent) - private static final com.google.cloud.talent.v4beta1.Patent DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Patent(); - } - - public static com.google.cloud.talent.v4beta1.Patent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Patent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Patent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Patent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java deleted file mode 100644 index 99486f5f..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface PatentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Patent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Name of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Name of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @return A list containing the inventors. - */ - java.util.List getInventorsList(); - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @return The count of inventors. - */ - int getInventorsCount(); - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @param index The index of the element to return. - * @return The inventors at the given index. - */ - java.lang.String getInventors(int index); - /** - * - * - *
-   * A list of inventors' names.
-   * Number of characters allowed for each is 100.
-   * 
- * - * repeated string inventors = 2; - * - * @param index The index of the value to return. - * @return The bytes of the inventors at the given index. - */ - com.google.protobuf.ByteString getInventorsBytes(int index); - - /** - * - * - *
-   * The status of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_status = 3; - * - * @return The patentStatus. - */ - java.lang.String getPatentStatus(); - /** - * - * - *
-   * The status of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_status = 3; - * - * @return The bytes for patentStatus. - */ - com.google.protobuf.ByteString getPatentStatusBytes(); - - /** - * - * - *
-   * The date the last time the status of the patent was checked.
-   * 
- * - * .google.type.Date patent_status_date = 4; - * - * @return Whether the patentStatusDate field is set. - */ - boolean hasPatentStatusDate(); - /** - * - * - *
-   * The date the last time the status of the patent was checked.
-   * 
- * - * .google.type.Date patent_status_date = 4; - * - * @return The patentStatusDate. - */ - com.google.type.Date getPatentStatusDate(); - /** - * - * - *
-   * The date the last time the status of the patent was checked.
-   * 
- * - * .google.type.Date patent_status_date = 4; - */ - com.google.type.DateOrBuilder getPatentStatusDateOrBuilder(); - - /** - * - * - *
-   * The date that the patent was filed.
-   * 
- * - * .google.type.Date patent_filing_date = 5; - * - * @return Whether the patentFilingDate field is set. - */ - boolean hasPatentFilingDate(); - /** - * - * - *
-   * The date that the patent was filed.
-   * 
- * - * .google.type.Date patent_filing_date = 5; - * - * @return The patentFilingDate. - */ - com.google.type.Date getPatentFilingDate(); - /** - * - * - *
-   * The date that the patent was filed.
-   * 
- * - * .google.type.Date patent_filing_date = 5; - */ - com.google.type.DateOrBuilder getPatentFilingDateOrBuilder(); - - /** - * - * - *
-   * The name of the patent office.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_office = 6; - * - * @return The patentOffice. - */ - java.lang.String getPatentOffice(); - /** - * - * - *
-   * The name of the patent office.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_office = 6; - * - * @return The bytes for patentOffice. - */ - com.google.protobuf.ByteString getPatentOfficeBytes(); - - /** - * - * - *
-   * The number of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_number = 7; - * - * @return The patentNumber. - */ - java.lang.String getPatentNumber(); - /** - * - * - *
-   * The number of the patent.
-   * Number of characters allowed is 100.
-   * 
- * - * string patent_number = 7; - * - * @return The bytes for patentNumber. - */ - com.google.protobuf.ByteString getPatentNumberBytes(); - - /** - * - * - *
-   * The description of the patent.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string patent_description = 8; - * - * @return The patentDescription. - */ - java.lang.String getPatentDescription(); - /** - * - * - *
-   * The description of the patent.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string patent_description = 8; - * - * @return The bytes for patentDescription. - */ - com.google.protobuf.ByteString getPatentDescriptionBytes(); - - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - java.util.List getSkillsUsedList(); - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - com.google.cloud.talent.v4beta1.Skill getSkillsUsed(int index); - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - int getSkillsUsedCount(); - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - java.util.List - getSkillsUsedOrBuilderList(); - /** - * - * - *
-   * The skills used in this patent.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills_used = 9; - */ - com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsUsedOrBuilder(int index); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java deleted file mode 100644 index 90597a1a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java +++ /dev/null @@ -1,3342 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents the name of a person.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} - */ -public final class PersonName extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName) - PersonNameOrBuilder { - private static final long serialVersionUID = 0L; - // Use PersonName.newBuilder() to construct. - private PersonName(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PersonName() { - preferredName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PersonName(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PersonName( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - personNameCase_ = 1; - personName_ = s; - break; - } - case 18: - { - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder subBuilder = - null; - if (personNameCase_ == 2) { - subBuilder = - ((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) - .toBuilder(); - } - personName_ = - input.readMessage( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); - personName_ = subBuilder.buildPartial(); - } - personNameCase_ = 2; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - preferredName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonName.class, - com.google.cloud.talent.v4beta1.PersonName.Builder.class); - } - - public interface PersonStructuredNameOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * 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.
-     * 
- * - * string given_name = 1; - * - * @return The givenName. - */ - java.lang.String getGivenName(); - /** - * - * - *
-     * 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.
-     * 
- * - * string given_name = 1; - * - * @return The bytes for givenName. - */ - com.google.protobuf.ByteString getGivenNameBytes(); - - /** - * - * - *
-     * Preferred given/first name or nickname.
-     * Number of characters allowed is 100.
-     * 
- * - * string preferred_name = 6; - * - * @return The preferredName. - */ - java.lang.String getPreferredName(); - /** - * - * - *
-     * Preferred given/first name or nickname.
-     * Number of characters allowed is 100.
-     * 
- * - * string preferred_name = 6; - * - * @return The bytes for preferredName. - */ - com.google.protobuf.ByteString getPreferredNameBytes(); - - /** - * - * - *
-     * Middle initial.
-     * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided.
-     * Number of characters allowed is 20.
-     * 
- * - * string middle_initial = 2; - * - * @return The middleInitial. - */ - java.lang.String getMiddleInitial(); - /** - * - * - *
-     * Middle initial.
-     * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided.
-     * Number of characters allowed is 20.
-     * 
- * - * string middle_initial = 2; - * - * @return The bytes for middleInitial. - */ - com.google.protobuf.ByteString getMiddleInitialBytes(); - - /** - * - * - *
-     * 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.
-     * 
- * - * string family_name = 3; - * - * @return The familyName. - */ - java.lang.String getFamilyName(); - /** - * - * - *
-     * 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.
-     * 
- * - * string family_name = 3; - * - * @return The bytes for familyName. - */ - com.google.protobuf.ByteString getFamilyNameBytes(); - - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @return A list containing the suffixes. - */ - java.util.List getSuffixesList(); - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @return The count of suffixes. - */ - int getSuffixesCount(); - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @param index The index of the element to return. - * @return The suffixes at the given index. - */ - java.lang.String getSuffixes(int index); - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @param index The index of the value to return. - * @return The bytes of the suffixes at the given index. - */ - com.google.protobuf.ByteString getSuffixesBytes(int index); - - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @return A list containing the prefixes. - */ - java.util.List getPrefixesList(); - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @return The count of prefixes. - */ - int getPrefixesCount(); - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @param index The index of the element to return. - * @return The prefixes at the given index. - */ - java.lang.String getPrefixes(int index); - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @param index The index of the value to return. - * @return The bytes of the prefixes at the given index. - */ - com.google.protobuf.ByteString getPrefixesBytes(int index); - } - /** - * - * - *
-   * Resource that represents a person's structured name.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} - */ - public static final class PersonStructuredName extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) - PersonStructuredNameOrBuilder { - private static final long serialVersionUID = 0L; - // Use PersonStructuredName.newBuilder() to construct. - private PersonStructuredName(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PersonStructuredName() { - givenName_ = ""; - preferredName_ = ""; - middleInitial_ = ""; - familyName_ = ""; - suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PersonStructuredName(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PersonStructuredName( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - givenName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - middleInitial_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - familyName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - suffixes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - suffixes_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - prefixes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - prefixes_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - preferredName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - suffixes_ = suffixes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - prefixes_ = prefixes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); - } - - public static final int GIVEN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object givenName_; - /** - * - * - *
-     * 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.
-     * 
- * - * string given_name = 1; - * - * @return The givenName. - */ - @java.lang.Override - public java.lang.String getGivenName() { - java.lang.Object ref = givenName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - givenName_ = s; - return s; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string given_name = 1; - * - * @return The bytes for givenName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGivenNameBytes() { - java.lang.Object ref = givenName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - givenName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREFERRED_NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object preferredName_; - /** - * - * - *
-     * Preferred given/first name or nickname.
-     * Number of characters allowed is 100.
-     * 
- * - * string preferred_name = 6; - * - * @return The preferredName. - */ - @java.lang.Override - public java.lang.String getPreferredName() { - java.lang.Object ref = preferredName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredName_ = s; - return s; - } - } - /** - * - * - *
-     * Preferred given/first name or nickname.
-     * Number of characters allowed is 100.
-     * 
- * - * string preferred_name = 6; - * - * @return The bytes for preferredName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPreferredNameBytes() { - java.lang.Object ref = preferredName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preferredName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIDDLE_INITIAL_FIELD_NUMBER = 2; - private volatile java.lang.Object middleInitial_; - /** - * - * - *
-     * Middle initial.
-     * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided.
-     * Number of characters allowed is 20.
-     * 
- * - * string middle_initial = 2; - * - * @return The middleInitial. - */ - @java.lang.Override - public java.lang.String getMiddleInitial() { - java.lang.Object ref = middleInitial_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - middleInitial_ = s; - return s; - } - } - /** - * - * - *
-     * Middle initial.
-     * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided.
-     * Number of characters allowed is 20.
-     * 
- * - * string middle_initial = 2; - * - * @return The bytes for middleInitial. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMiddleInitialBytes() { - java.lang.Object ref = middleInitial_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - middleInitial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FAMILY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object familyName_; - /** - * - * - *
-     * 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.
-     * 
- * - * string family_name = 3; - * - * @return The familyName. - */ - @java.lang.Override - public java.lang.String getFamilyName() { - java.lang.Object ref = familyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - familyName_ = s; - return s; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string family_name = 3; - * - * @return The bytes for familyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFamilyNameBytes() { - java.lang.Object ref = familyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - familyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUFFIXES_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList suffixes_; - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @return A list containing the suffixes. - */ - public com.google.protobuf.ProtocolStringList getSuffixesList() { - return suffixes_; - } - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @return The count of suffixes. - */ - public int getSuffixesCount() { - return suffixes_.size(); - } - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @param index The index of the element to return. - * @return The suffixes at the given index. - */ - public java.lang.String getSuffixes(int index) { - return suffixes_.get(index); - } - /** - * - * - *
-     * Suffixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string suffixes = 4; - * - * @param index The index of the value to return. - * @return The bytes of the suffixes at the given index. - */ - public com.google.protobuf.ByteString getSuffixesBytes(int index) { - return suffixes_.getByteString(index); - } - - public static final int PREFIXES_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList prefixes_; - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @return A list containing the prefixes. - */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { - return prefixes_; - } - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @return The count of prefixes. - */ - public int getPrefixesCount() { - return prefixes_.size(); - } - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @param index The index of the element to return. - * @return The prefixes at the given index. - */ - public java.lang.String getPrefixes(int index) { - return prefixes_.get(index); - } - /** - * - * - *
-     * Prefixes.
-     * Number of characters allowed is 20.
-     * 
- * - * repeated string prefixes = 5; - * - * @param index The index of the value to return. - * @return The bytes of the prefixes at the given index. - */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { - return prefixes_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(givenName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, givenName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(middleInitial_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, middleInitial_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, familyName_); - } - for (int i = 0; i < suffixes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, suffixes_.getRaw(i)); - } - for (int i = 0; i < prefixes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, prefixes_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, preferredName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(givenName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, givenName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(middleInitial_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, middleInitial_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, familyName_); - } - { - int dataSize = 0; - for (int i = 0; i < suffixes_.size(); i++) { - dataSize += computeStringSizeNoTag(suffixes_.getRaw(i)); - } - size += dataSize; - size += 1 * getSuffixesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < prefixes_.size(); i++) { - dataSize += computeStringSizeNoTag(prefixes_.getRaw(i)); - } - size += dataSize; - size += 1 * getPrefixesList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, preferredName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other = - (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) obj; - - if (!getGivenName().equals(other.getGivenName())) return false; - if (!getPreferredName().equals(other.getPreferredName())) return false; - if (!getMiddleInitial().equals(other.getMiddleInitial())) return false; - if (!getFamilyName().equals(other.getFamilyName())) return false; - if (!getSuffixesList().equals(other.getSuffixesList())) return false; - if (!getPrefixesList().equals(other.getPrefixesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGivenName().hashCode(); - hash = (37 * hash) + PREFERRED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPreferredName().hashCode(); - hash = (37 * hash) + MIDDLE_INITIAL_FIELD_NUMBER; - hash = (53 * hash) + getMiddleInitial().hashCode(); - hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFamilyName().hashCode(); - if (getSuffixesCount() > 0) { - hash = (37 * hash) + SUFFIXES_FIELD_NUMBER; - hash = (53 * hash) + getSuffixesList().hashCode(); - } - if (getPrefixesCount() > 0) { - hash = (37 * hash) + PREFIXES_FIELD_NUMBER; - hash = (53 * hash) + getPrefixesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Resource that represents a person's structured name.
-     * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonName.PersonStructuredName} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.class, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder.class); - } - - // Construct using - // com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - givenName_ = ""; - - preferredName_ = ""; - - middleInitial_ = ""; - - familyName_ = ""; - - suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName - getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName build() { - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName buildPartial() { - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName result = - new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(this); - int from_bitField0_ = bitField0_; - result.givenName_ = givenName_; - result.preferredName_ = preferredName_; - result.middleInitial_ = middleInitial_; - result.familyName_ = familyName_; - if (((bitField0_ & 0x00000001) != 0)) { - suffixes_ = suffixes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.suffixes_ = suffixes_; - if (((bitField0_ & 0x00000002) != 0)) { - prefixes_ = prefixes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.prefixes_ = prefixes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) { - return mergeFrom((com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName other) { - if (other - == com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance()) - return this; - if (!other.getGivenName().isEmpty()) { - givenName_ = other.givenName_; - onChanged(); - } - if (!other.getPreferredName().isEmpty()) { - preferredName_ = other.preferredName_; - onChanged(); - } - if (!other.getMiddleInitial().isEmpty()) { - middleInitial_ = other.middleInitial_; - onChanged(); - } - if (!other.getFamilyName().isEmpty()) { - familyName_ = other.familyName_; - onChanged(); - } - if (!other.suffixes_.isEmpty()) { - if (suffixes_.isEmpty()) { - suffixes_ = other.suffixes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSuffixesIsMutable(); - suffixes_.addAll(other.suffixes_); - } - onChanged(); - } - if (!other.prefixes_.isEmpty()) { - if (prefixes_.isEmpty()) { - prefixes_ = other.prefixes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePrefixesIsMutable(); - prefixes_.addAll(other.prefixes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object givenName_ = ""; - /** - * - * - *
-       * 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.
-       * 
- * - * string given_name = 1; - * - * @return The givenName. - */ - public java.lang.String getGivenName() { - java.lang.Object ref = givenName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - givenName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * 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.
-       * 
- * - * string given_name = 1; - * - * @return The bytes for givenName. - */ - public com.google.protobuf.ByteString getGivenNameBytes() { - java.lang.Object ref = givenName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - givenName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * 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.
-       * 
- * - * string given_name = 1; - * - * @param value The givenName to set. - * @return This builder for chaining. - */ - public Builder setGivenName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - givenName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * 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.
-       * 
- * - * string given_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearGivenName() { - - givenName_ = getDefaultInstance().getGivenName(); - onChanged(); - return this; - } - /** - * - * - *
-       * 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.
-       * 
- * - * string given_name = 1; - * - * @param value The bytes for givenName to set. - * @return This builder for chaining. - */ - public Builder setGivenNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - givenName_ = value; - onChanged(); - return this; - } - - private java.lang.Object preferredName_ = ""; - /** - * - * - *
-       * Preferred given/first name or nickname.
-       * Number of characters allowed is 100.
-       * 
- * - * string preferred_name = 6; - * - * @return The preferredName. - */ - public java.lang.String getPreferredName() { - java.lang.Object ref = preferredName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Preferred given/first name or nickname.
-       * Number of characters allowed is 100.
-       * 
- * - * string preferred_name = 6; - * - * @return The bytes for preferredName. - */ - public com.google.protobuf.ByteString getPreferredNameBytes() { - java.lang.Object ref = preferredName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preferredName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Preferred given/first name or nickname.
-       * Number of characters allowed is 100.
-       * 
- * - * string preferred_name = 6; - * - * @param value The preferredName to set. - * @return This builder for chaining. - */ - public Builder setPreferredName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - preferredName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Preferred given/first name or nickname.
-       * Number of characters allowed is 100.
-       * 
- * - * string preferred_name = 6; - * - * @return This builder for chaining. - */ - public Builder clearPreferredName() { - - preferredName_ = getDefaultInstance().getPreferredName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Preferred given/first name or nickname.
-       * Number of characters allowed is 100.
-       * 
- * - * string preferred_name = 6; - * - * @param value The bytes for preferredName to set. - * @return This builder for chaining. - */ - public Builder setPreferredNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - preferredName_ = value; - onChanged(); - return this; - } - - private java.lang.Object middleInitial_ = ""; - /** - * - * - *
-       * Middle initial.
-       * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided.
-       * Number of characters allowed is 20.
-       * 
- * - * string middle_initial = 2; - * - * @return The middleInitial. - */ - public java.lang.String getMiddleInitial() { - java.lang.Object ref = middleInitial_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - middleInitial_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Middle initial.
-       * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided.
-       * Number of characters allowed is 20.
-       * 
- * - * string middle_initial = 2; - * - * @return The bytes for middleInitial. - */ - public com.google.protobuf.ByteString getMiddleInitialBytes() { - java.lang.Object ref = middleInitial_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - middleInitial_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Middle initial.
-       * It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided.
-       * Number of characters allowed is 20.
-       * 
- * - * string middle_initial = 2; - * - * @param value The middleInitial to set. - * @return This builder for chaining. - */ - public Builder setMiddleInitial(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - middleInitial_ = value; - onChanged(); - 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.
-       * 
- * - * string middle_initial = 2; - * - * @return This builder for chaining. - */ - public Builder clearMiddleInitial() { - - middleInitial_ = getDefaultInstance().getMiddleInitial(); - onChanged(); - 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.
-       * 
- * - * string middle_initial = 2; - * - * @param value The bytes for middleInitial to set. - * @return This builder for chaining. - */ - public Builder setMiddleInitialBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - middleInitial_ = value; - onChanged(); - return this; - } - - private java.lang.Object familyName_ = ""; - /** - * - * - *
-       * 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.
-       * 
- * - * string family_name = 3; - * - * @return The familyName. - */ - public java.lang.String getFamilyName() { - java.lang.Object ref = familyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - familyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * 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.
-       * 
- * - * string family_name = 3; - * - * @return The bytes for familyName. - */ - public com.google.protobuf.ByteString getFamilyNameBytes() { - java.lang.Object ref = familyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - familyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * 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.
-       * 
- * - * string family_name = 3; - * - * @param value The familyName to set. - * @return This builder for chaining. - */ - public Builder setFamilyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - familyName_ = value; - onChanged(); - 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.
-       * 
- * - * string family_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearFamilyName() { - - familyName_ = getDefaultInstance().getFamilyName(); - onChanged(); - 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.
-       * 
- * - * string family_name = 3; - * - * @param value The bytes for familyName to set. - * @return This builder for chaining. - */ - public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - familyName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList suffixes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureSuffixesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - suffixes_ = new com.google.protobuf.LazyStringArrayList(suffixes_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @return A list containing the suffixes. - */ - public com.google.protobuf.ProtocolStringList getSuffixesList() { - return suffixes_.getUnmodifiableView(); - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @return The count of suffixes. - */ - public int getSuffixesCount() { - return suffixes_.size(); - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @param index The index of the element to return. - * @return The suffixes at the given index. - */ - public java.lang.String getSuffixes(int index) { - return suffixes_.get(index); - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @param index The index of the value to return. - * @return The bytes of the suffixes at the given index. - */ - public com.google.protobuf.ByteString getSuffixesBytes(int index) { - return suffixes_.getByteString(index); - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @param index The index to set the value at. - * @param value The suffixes to set. - * @return This builder for chaining. - */ - public Builder setSuffixes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuffixesIsMutable(); - suffixes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @param value The suffixes to add. - * @return This builder for chaining. - */ - public Builder addSuffixes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuffixesIsMutable(); - suffixes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @param values The suffixes to add. - * @return This builder for chaining. - */ - public Builder addAllSuffixes(java.lang.Iterable values) { - ensureSuffixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suffixes_); - onChanged(); - return this; - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @return This builder for chaining. - */ - public Builder clearSuffixes() { - suffixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Suffixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string suffixes = 4; - * - * @param value The bytes of the suffixes to add. - * @return This builder for chaining. - */ - public Builder addSuffixesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSuffixesIsMutable(); - suffixes_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList prefixes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensurePrefixesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @return A list containing the prefixes. - */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { - return prefixes_.getUnmodifiableView(); - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @return The count of prefixes. - */ - public int getPrefixesCount() { - return prefixes_.size(); - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @param index The index of the element to return. - * @return The prefixes at the given index. - */ - public java.lang.String getPrefixes(int index) { - return prefixes_.get(index); - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @param index The index of the value to return. - * @return The bytes of the prefixes at the given index. - */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { - return prefixes_.getByteString(index); - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @param index The index to set the value at. - * @param value The prefixes to set. - * @return This builder for chaining. - */ - public Builder setPrefixes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrefixesIsMutable(); - prefixes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @param value The prefixes to add. - * @return This builder for chaining. - */ - public Builder addPrefixes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePrefixesIsMutable(); - prefixes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @param values The prefixes to add. - * @return This builder for chaining. - */ - public Builder addAllPrefixes(java.lang.Iterable values) { - ensurePrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); - onChanged(); - return this; - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @return This builder for chaining. - */ - public Builder clearPrefixes() { - prefixes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Prefixes.
-       * Number of characters allowed is 20.
-       * 
- * - * repeated string prefixes = 5; - * - * @param value The bytes of the prefixes to add. - * @return This builder for chaining. - */ - public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePrefixesIsMutable(); - prefixes_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName.PersonStructuredName) - private static final com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName(); - } - - public static com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersonStructuredName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PersonStructuredName(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int personNameCase_ = 0; - private java.lang.Object personName_; - - public enum PersonNameCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FORMATTED_NAME(1), - STRUCTURED_NAME(2), - PERSONNAME_NOT_SET(0); - private final int value; - - private PersonNameCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PersonNameCase valueOf(int value) { - return forNumber(value); - } - - public static PersonNameCase forNumber(int value) { - switch (value) { - case 1: - return FORMATTED_NAME; - case 2: - return STRUCTURED_NAME; - case 0: - return PERSONNAME_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PersonNameCase getPersonNameCase() { - return PersonNameCase.forNumber(personNameCase_); - } - - public static final int FORMATTED_NAME_FIELD_NUMBER = 1; - /** - * - * - *
-   * A string represents a person's full name. For example, "Dr. John Smith".
-   * Number of characters allowed is 100.
-   * 
- * - * string formatted_name = 1; - * - * @return Whether the formattedName field is set. - */ - public boolean hasFormattedName() { - return personNameCase_ == 1; - } - /** - * - * - *
-   * A string represents a person's full name. For example, "Dr. John Smith".
-   * Number of characters allowed is 100.
-   * 
- * - * string formatted_name = 1; - * - * @return The formattedName. - */ - public java.lang.String getFormattedName() { - java.lang.Object ref = ""; - if (personNameCase_ == 1) { - ref = personName_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (personNameCase_ == 1) { - personName_ = s; - } - return s; - } - } - /** - * - * - *
-   * A string represents a person's full name. For example, "Dr. John Smith".
-   * Number of characters allowed is 100.
-   * 
- * - * string formatted_name = 1; - * - * @return The bytes for formattedName. - */ - public com.google.protobuf.ByteString getFormattedNameBytes() { - java.lang.Object ref = ""; - if (personNameCase_ == 1) { - ref = personName_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (personNameCase_ == 1) { - personName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRUCTURED_NAME_FIELD_NUMBER = 2; - /** - * - * - *
-   * A person's name in a structured way (last name, first name, suffix, and
-   * so on.)
-   * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - * @return Whether the structuredName field is set. - */ - @java.lang.Override - public boolean hasStructuredName() { - return personNameCase_ == 2; - } - /** - * - * - *
-   * A person's name in a structured way (last name, first name, suffix, and
-   * so on.)
-   * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - * @return The structuredName. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { - if (personNameCase_ == 2) { - return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; - } - return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); - } - /** - * - * - *
-   * A person's name in a structured way (last name, first name, suffix, and
-   * so on.)
-   * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder - getStructuredNameOrBuilder() { - if (personNameCase_ == 2) { - return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; - } - return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); - } - - public static final int PREFERRED_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object preferredName_; - /** - * - * - *
-   * 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.
-   * 
- * - * string preferred_name = 3; - * - * @return The preferredName. - */ - @java.lang.Override - public java.lang.String getPreferredName() { - java.lang.Object ref = preferredName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredName_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string preferred_name = 3; - * - * @return The bytes for preferredName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPreferredNameBytes() { - java.lang.Object ref = preferredName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preferredName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (personNameCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, personName_); - } - if (personNameCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, preferredName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (personNameCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, personName_); - } - if (personNameCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, preferredName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonName)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.PersonName other = - (com.google.cloud.talent.v4beta1.PersonName) obj; - - if (!getPreferredName().equals(other.getPreferredName())) return false; - if (!getPersonNameCase().equals(other.getPersonNameCase())) return false; - switch (personNameCase_) { - case 1: - if (!getFormattedName().equals(other.getFormattedName())) return false; - break; - case 2: - if (!getStructuredName().equals(other.getStructuredName())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PREFERRED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPreferredName().hashCode(); - switch (personNameCase_) { - case 1: - hash = (37 * hash) + FORMATTED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFormattedName().hashCode(); - break; - case 2: - hash = (37 * hash) + STRUCTURED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getStructuredName().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonName parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.PersonName prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents the name of a person.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonName} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonName) - com.google.cloud.talent.v4beta1.PersonNameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonName.class, - com.google.cloud.talent.v4beta1.PersonName.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.PersonName.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - preferredName_ = ""; - - personNameCase_ = 0; - personName_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName build() { - com.google.cloud.talent.v4beta1.PersonName result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName buildPartial() { - com.google.cloud.talent.v4beta1.PersonName result = - new com.google.cloud.talent.v4beta1.PersonName(this); - if (personNameCase_ == 1) { - result.personName_ = personName_; - } - if (personNameCase_ == 2) { - if (structuredNameBuilder_ == null) { - result.personName_ = personName_; - } else { - result.personName_ = structuredNameBuilder_.build(); - } - } - result.preferredName_ = preferredName_; - result.personNameCase_ = personNameCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.PersonName) { - return mergeFrom((com.google.cloud.talent.v4beta1.PersonName) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonName other) { - if (other == com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()) return this; - if (!other.getPreferredName().isEmpty()) { - preferredName_ = other.preferredName_; - onChanged(); - } - switch (other.getPersonNameCase()) { - case FORMATTED_NAME: - { - personNameCase_ = 1; - personName_ = other.personName_; - onChanged(); - break; - } - case STRUCTURED_NAME: - { - mergeStructuredName(other.getStructuredName()); - break; - } - case PERSONNAME_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.PersonName parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.PersonName) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int personNameCase_ = 0; - private java.lang.Object personName_; - - public PersonNameCase getPersonNameCase() { - return PersonNameCase.forNumber(personNameCase_); - } - - public Builder clearPersonName() { - personNameCase_ = 0; - personName_ = null; - onChanged(); - return this; - } - - /** - * - * - *
-     * A string represents a person's full name. For example, "Dr. John Smith".
-     * Number of characters allowed is 100.
-     * 
- * - * string formatted_name = 1; - * - * @return Whether the formattedName field is set. - */ - @java.lang.Override - public boolean hasFormattedName() { - return personNameCase_ == 1; - } - /** - * - * - *
-     * A string represents a person's full name. For example, "Dr. John Smith".
-     * Number of characters allowed is 100.
-     * 
- * - * string formatted_name = 1; - * - * @return The formattedName. - */ - @java.lang.Override - public java.lang.String getFormattedName() { - java.lang.Object ref = ""; - if (personNameCase_ == 1) { - ref = personName_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (personNameCase_ == 1) { - personName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A string represents a person's full name. For example, "Dr. John Smith".
-     * Number of characters allowed is 100.
-     * 
- * - * string formatted_name = 1; - * - * @return The bytes for formattedName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFormattedNameBytes() { - java.lang.Object ref = ""; - if (personNameCase_ == 1) { - ref = personName_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (personNameCase_ == 1) { - personName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A string represents a person's full name. For example, "Dr. John Smith".
-     * Number of characters allowed is 100.
-     * 
- * - * string formatted_name = 1; - * - * @param value The formattedName to set. - * @return This builder for chaining. - */ - public Builder setFormattedName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - personNameCase_ = 1; - personName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A string represents a person's full name. For example, "Dr. John Smith".
-     * Number of characters allowed is 100.
-     * 
- * - * string formatted_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearFormattedName() { - if (personNameCase_ == 1) { - personNameCase_ = 0; - personName_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * A string represents a person's full name. For example, "Dr. John Smith".
-     * Number of characters allowed is 100.
-     * 
- * - * string formatted_name = 1; - * - * @param value The bytes for formattedName to set. - * @return This builder for chaining. - */ - public Builder setFormattedNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - personNameCase_ = 1; - personName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> - structuredNameBuilder_; - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - * - * @return Whether the structuredName field is set. - */ - @java.lang.Override - public boolean hasStructuredName() { - return personNameCase_ == 2; - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - * - * @return The structuredName. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName() { - if (structuredNameBuilder_ == null) { - if (personNameCase_ == 2) { - return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; - } - return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); - } else { - if (personNameCase_ == 2) { - return structuredNameBuilder_.getMessage(); - } - return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); - } - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - */ - public Builder setStructuredName( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { - if (structuredNameBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - personName_ = value; - onChanged(); - } else { - structuredNameBuilder_.setMessage(value); - } - personNameCase_ = 2; - return this; - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - */ - public Builder setStructuredName( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder builderForValue) { - if (structuredNameBuilder_ == null) { - personName_ = builderForValue.build(); - onChanged(); - } else { - structuredNameBuilder_.setMessage(builderForValue.build()); - } - personNameCase_ = 2; - return this; - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - */ - public Builder mergeStructuredName( - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName value) { - if (structuredNameBuilder_ == null) { - if (personNameCase_ == 2 - && personName_ - != com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName - .getDefaultInstance()) { - personName_ = - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.newBuilder( - (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_) - .mergeFrom(value) - .buildPartial(); - } else { - personName_ = value; - } - onChanged(); - } else { - if (personNameCase_ == 2) { - structuredNameBuilder_.mergeFrom(value); - } else { - structuredNameBuilder_.setMessage(value); - } - } - personNameCase_ = 2; - return this; - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - */ - public Builder clearStructuredName() { - if (structuredNameBuilder_ == null) { - if (personNameCase_ == 2) { - personNameCase_ = 0; - personName_ = null; - onChanged(); - } - } else { - if (personNameCase_ == 2) { - personNameCase_ = 0; - personName_ = null; - } - structuredNameBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - */ - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder - getStructuredNameBuilder() { - return getStructuredNameFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder - getStructuredNameOrBuilder() { - if ((personNameCase_ == 2) && (structuredNameBuilder_ != null)) { - return structuredNameBuilder_.getMessageOrBuilder(); - } else { - if (personNameCase_ == 2) { - return (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_; - } - return com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); - } - } - /** - * - * - *
-     * A person's name in a structured way (last name, first name, suffix, and
-     * so on.)
-     * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder> - getStructuredNameFieldBuilder() { - if (structuredNameBuilder_ == null) { - if (!(personNameCase_ == 2)) { - personName_ = - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.getDefaultInstance(); - } - structuredNameBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName.Builder, - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder>( - (com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName) personName_, - getParentForChildren(), - isClean()); - personName_ = null; - } - personNameCase_ = 2; - onChanged(); - ; - return structuredNameBuilder_; - } - - private java.lang.Object preferredName_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string preferred_name = 3; - * - * @return The preferredName. - */ - public java.lang.String getPreferredName() { - java.lang.Object ref = preferredName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string preferred_name = 3; - * - * @return The bytes for preferredName. - */ - public com.google.protobuf.ByteString getPreferredNameBytes() { - java.lang.Object ref = preferredName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preferredName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string preferred_name = 3; - * - * @param value The preferredName to set. - * @return This builder for chaining. - */ - public Builder setPreferredName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - preferredName_ = value; - onChanged(); - 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.
-     * 
- * - * string preferred_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearPreferredName() { - - preferredName_ = getDefaultInstance().getPreferredName(); - onChanged(); - 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.
-     * 
- * - * string preferred_name = 3; - * - * @param value The bytes for preferredName to set. - * @return This builder for chaining. - */ - public Builder setPreferredNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - preferredName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonName) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonName) - private static final com.google.cloud.talent.v4beta1.PersonName DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonName(); - } - - public static com.google.cloud.talent.v4beta1.PersonName getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersonName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PersonName(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilter.java deleted file mode 100644 index 7230c1e1..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilter.java +++ /dev/null @@ -1,665 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Filter on person name.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonNameFilter} - */ -public final class PersonNameFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonNameFilter) - PersonNameFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use PersonNameFilter.newBuilder() to construct. - private PersonNameFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PersonNameFilter() { - personName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PersonNameFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PersonNameFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - personName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_PersonNameFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_PersonNameFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonNameFilter.class, - com.google.cloud.talent.v4beta1.PersonNameFilter.Builder.class); - } - - public static final int PERSON_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object personName_; - /** - * - * - *
-   * 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].
-   * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The personName. - */ - @java.lang.Override - public java.lang.String getPersonName() { - java.lang.Object ref = personName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - personName_ = s; - return s; - } - } - /** - * - * - *
-   * 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].
-   * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for personName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPersonNameBytes() { - java.lang.Object ref = personName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - personName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(personName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, personName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(personName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, personName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonNameFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.PersonNameFilter other = - (com.google.cloud.talent.v4beta1.PersonNameFilter) obj; - - if (!getPersonName().equals(other.getPersonName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PERSON_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPersonName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.PersonNameFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Filter on person name.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonNameFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonNameFilter) - com.google.cloud.talent.v4beta1.PersonNameFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_PersonNameFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_PersonNameFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonNameFilter.class, - com.google.cloud.talent.v4beta1.PersonNameFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.PersonNameFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - personName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_PersonNameFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonNameFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.PersonNameFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonNameFilter build() { - com.google.cloud.talent.v4beta1.PersonNameFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonNameFilter buildPartial() { - com.google.cloud.talent.v4beta1.PersonNameFilter result = - new com.google.cloud.talent.v4beta1.PersonNameFilter(this); - result.personName_ = personName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.PersonNameFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.PersonNameFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonNameFilter other) { - if (other == com.google.cloud.talent.v4beta1.PersonNameFilter.getDefaultInstance()) - return this; - if (!other.getPersonName().isEmpty()) { - personName_ = other.personName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.PersonNameFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.PersonNameFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object personName_ = ""; - /** - * - * - *
-     * 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].
-     * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The personName. - */ - public java.lang.String getPersonName() { - java.lang.Object ref = personName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - personName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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].
-     * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for personName. - */ - public com.google.protobuf.ByteString getPersonNameBytes() { - java.lang.Object ref = personName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - personName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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].
-     * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The personName to set. - * @return This builder for chaining. - */ - public Builder setPersonName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - personName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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].
-     * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearPersonName() { - - personName_ = getDefaultInstance().getPersonName(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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].
-     * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for personName to set. - * @return This builder for chaining. - */ - public Builder setPersonNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - personName_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonNameFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonNameFilter) - private static final com.google.cloud.talent.v4beta1.PersonNameFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonNameFilter(); - } - - public static com.google.cloud.talent.v4beta1.PersonNameFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersonNameFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PersonNameFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonNameFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilterOrBuilder.java deleted file mode 100644 index da8381cf..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilterOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface PersonNameFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonNameFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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].
-   * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The personName. - */ - java.lang.String getPersonName(); - /** - * - * - *
-   * 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].
-   * 
- * - * string person_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for personName. - */ - com.google.protobuf.ByteString getPersonNameBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java deleted file mode 100644 index 8c2c54e8..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface PersonNameOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonName) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A string represents a person's full name. For example, "Dr. John Smith".
-   * Number of characters allowed is 100.
-   * 
- * - * string formatted_name = 1; - * - * @return Whether the formattedName field is set. - */ - boolean hasFormattedName(); - /** - * - * - *
-   * A string represents a person's full name. For example, "Dr. John Smith".
-   * Number of characters allowed is 100.
-   * 
- * - * string formatted_name = 1; - * - * @return The formattedName. - */ - java.lang.String getFormattedName(); - /** - * - * - *
-   * A string represents a person's full name. For example, "Dr. John Smith".
-   * Number of characters allowed is 100.
-   * 
- * - * string formatted_name = 1; - * - * @return The bytes for formattedName. - */ - com.google.protobuf.ByteString getFormattedNameBytes(); - - /** - * - * - *
-   * A person's name in a structured way (last name, first name, suffix, and
-   * so on.)
-   * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - * @return Whether the structuredName field is set. - */ - boolean hasStructuredName(); - /** - * - * - *
-   * A person's name in a structured way (last name, first name, suffix, and
-   * so on.)
-   * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - * - * @return The structuredName. - */ - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredName getStructuredName(); - /** - * - * - *
-   * A person's name in a structured way (last name, first name, suffix, and
-   * so on.)
-   * 
- * - * .google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2; - */ - com.google.cloud.talent.v4beta1.PersonName.PersonStructuredNameOrBuilder - getStructuredNameOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string preferred_name = 3; - * - * @return The preferredName. - */ - java.lang.String getPreferredName(); - /** - * - * - *
-   * 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.
-   * 
- * - * string preferred_name = 3; - * - * @return The bytes for preferredName. - */ - com.google.protobuf.ByteString getPreferredNameBytes(); - - public com.google.cloud.talent.v4beta1.PersonName.PersonNameCase getPersonNameCase(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java deleted file mode 100644 index 5c26d128..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java +++ /dev/null @@ -1,643 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a valid URI for a personal use.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} - */ -public final class PersonalUri extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.PersonalUri) - PersonalUriOrBuilder { - private static final long serialVersionUID = 0L; - // Use PersonalUri.newBuilder() to construct. - private PersonalUri(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PersonalUri() { - uri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PersonalUri(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PersonalUri( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonalUri.class, - com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * - * - *
-   * The personal URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 1; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * - * - *
-   * The personal URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 1; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.PersonalUri)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.PersonalUri other = - (com.google.cloud.talent.v4beta1.PersonalUri) obj; - - if (!getUri().equals(other.getUri())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.PersonalUri prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a valid URI for a personal use.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.PersonalUri} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.PersonalUri) - com.google.cloud.talent.v4beta1.PersonalUriOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.PersonalUri.class, - com.google.cloud.talent.v4beta1.PersonalUri.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.PersonalUri.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - uri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonalUri build() { - com.google.cloud.talent.v4beta1.PersonalUri result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonalUri buildPartial() { - com.google.cloud.talent.v4beta1.PersonalUri result = - new com.google.cloud.talent.v4beta1.PersonalUri(this); - result.uri_ = uri_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.PersonalUri) { - return mergeFrom((com.google.cloud.talent.v4beta1.PersonalUri) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.PersonalUri other) { - if (other == com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.PersonalUri parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.PersonalUri) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * - * - *
-     * The personal URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 1; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The personal URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 1; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The personal URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 1; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The personal URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * The personal URI.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string uri = 1; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.PersonalUri) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.PersonalUri) - private static final com.google.cloud.talent.v4beta1.PersonalUri DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.PersonalUri(); - } - - public static com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersonalUri parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PersonalUri(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonalUri getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java deleted file mode 100644 index 40d50056..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface PersonalUriOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.PersonalUri) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The personal URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 1; - * - * @return The uri. - */ - java.lang.String getUri(); - /** - * - * - *
-   * The personal URI.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string uri = 1; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java deleted file mode 100644 index fdb40185..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java +++ /dev/null @@ -1,1486 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a person's telephone number.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Phone} - */ -public final class Phone extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Phone) - PhoneOrBuilder { - private static final long serialVersionUID = 0L; - // Use Phone.newBuilder() to construct. - private Phone(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Phone() { - usage_ = 0; - type_ = 0; - number_ = ""; - whenAvailable_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Phone(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Phone( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - usage_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - number_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - whenAvailable_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Phone.class, - com.google.cloud.talent.v4beta1.Phone.Builder.class); - } - - /** - * - * - *
-   * Enum that represents the type of the telephone.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.Phone.PhoneType} - */ - public enum PhoneType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * PHONE_TYPE_UNSPECIFIED = 0; - */ - PHONE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * A landline.
-     * 
- * - * LANDLINE = 1; - */ - LANDLINE(1), - /** - * - * - *
-     * A mobile.
-     * 
- * - * MOBILE = 2; - */ - MOBILE(2), - /** - * - * - *
-     * A fax.
-     * 
- * - * FAX = 3; - */ - FAX(3), - /** - * - * - *
-     * A pager.
-     * 
- * - * PAGER = 4; - */ - PAGER(4), - /** - * - * - *
-     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
-     * 
- * - * TTY_OR_TDD = 5; - */ - TTY_OR_TDD(5), - /** - * - * - *
-     * A voicemail.
-     * 
- * - * VOICEMAIL = 6; - */ - 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
-     * 
- * - * VIRTUAL = 7; - */ - VIRTUAL(7), - /** - * - * - *
-     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
-     * 
- * - * VOIP = 8; - */ - 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.
-     * 
- * - * MOBILE_OR_LANDLINE = 9; - */ - MOBILE_OR_LANDLINE(9), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * PHONE_TYPE_UNSPECIFIED = 0; - */ - public static final int PHONE_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * A landline.
-     * 
- * - * LANDLINE = 1; - */ - public static final int LANDLINE_VALUE = 1; - /** - * - * - *
-     * A mobile.
-     * 
- * - * MOBILE = 2; - */ - public static final int MOBILE_VALUE = 2; - /** - * - * - *
-     * A fax.
-     * 
- * - * FAX = 3; - */ - public static final int FAX_VALUE = 3; - /** - * - * - *
-     * A pager.
-     * 
- * - * PAGER = 4; - */ - public static final int PAGER_VALUE = 4; - /** - * - * - *
-     * A TTY (test telephone) or TDD (telecommunication device for the deaf).
-     * 
- * - * TTY_OR_TDD = 5; - */ - public static final int TTY_OR_TDD_VALUE = 5; - /** - * - * - *
-     * A voicemail.
-     * 
- * - * VOICEMAIL = 6; - */ - public static final int VOICEMAIL_VALUE = 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
-     * 
- * - * VIRTUAL = 7; - */ - public static final int VIRTUAL_VALUE = 7; - /** - * - * - *
-     * Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
-     * 
- * - * VOIP = 8; - */ - public static final int VOIP_VALUE = 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.
-     * 
- * - * MOBILE_OR_LANDLINE = 9; - */ - public static final int MOBILE_OR_LANDLINE_VALUE = 9; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PhoneType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PhoneType forNumber(int value) { - switch (value) { - case 0: - return PHONE_TYPE_UNSPECIFIED; - case 1: - return LANDLINE; - case 2: - return MOBILE; - case 3: - return FAX; - case 4: - return PAGER; - case 5: - return TTY_OR_TDD; - case 6: - return VOICEMAIL; - case 7: - return VIRTUAL; - case 8: - return VOIP; - case 9: - return MOBILE_OR_LANDLINE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PhoneType findValueByNumber(int number) { - return PhoneType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.Phone.getDescriptor().getEnumTypes().get(0); - } - - private static final PhoneType[] VALUES = values(); - - public static PhoneType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PhoneType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Phone.PhoneType) - } - - public static final int USAGE_FIELD_NUMBER = 1; - private int usage_; - /** - * - * - *
-   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED : result; - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * - * - *
-   * The phone type. For example, LANDLINE, MOBILE, FAX.
-   * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * The phone type. For example, LANDLINE, MOBILE, FAX.
-   * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Phone.PhoneType result = - com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); - return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; - } - - public static final int NUMBER_FIELD_NUMBER = 3; - private volatile java.lang.Object 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.
-   * 
- * - * string number = 3; - * - * @return The number. - */ - @java.lang.Override - public java.lang.String getNumber() { - java.lang.Object ref = number_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - number_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string number = 3; - * - * @return The bytes for number. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNumberBytes() { - java.lang.Object ref = number_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - number_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WHEN_AVAILABLE_FIELD_NUMBER = 4; - private volatile java.lang.Object whenAvailable_; - /** - * - * - *
-   * When this number is available. Any descriptive string is expected.
-   * Number of characters allowed is 100.
-   * 
- * - * string when_available = 4; - * - * @return The whenAvailable. - */ - @java.lang.Override - public java.lang.String getWhenAvailable() { - java.lang.Object ref = whenAvailable_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - whenAvailable_ = s; - return s; - } - } - /** - * - * - *
-   * When this number is available. Any descriptive string is expected.
-   * Number of characters allowed is 100.
-   * 
- * - * string when_available = 4; - * - * @return The bytes for whenAvailable. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWhenAvailableBytes() { - java.lang.Object ref = whenAvailable_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - whenAvailable_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, usage_); - } - if (type_ - != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(number_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, number_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(whenAvailable_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, whenAvailable_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (usage_ - != com.google.cloud.talent.v4beta1.ContactInfoUsage.CONTACT_INFO_USAGE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, usage_); - } - if (type_ - != com.google.cloud.talent.v4beta1.Phone.PhoneType.PHONE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(number_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, number_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(whenAvailable_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, whenAvailable_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Phone)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Phone other = (com.google.cloud.talent.v4beta1.Phone) obj; - - if (usage_ != other.usage_) return false; - if (type_ != other.type_) return false; - if (!getNumber().equals(other.getNumber())) return false; - if (!getWhenAvailable().equals(other.getWhenAvailable())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USAGE_FIELD_NUMBER; - hash = (53 * hash) + usage_; - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + NUMBER_FIELD_NUMBER; - hash = (53 * hash) + getNumber().hashCode(); - hash = (37 * hash) + WHEN_AVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + getWhenAvailable().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Phone parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Phone parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Phone parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Phone prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a person's telephone number.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Phone} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Phone) - com.google.cloud.talent.v4beta1.PhoneOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Phone.class, - com.google.cloud.talent.v4beta1.Phone.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Phone.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - usage_ = 0; - - type_ = 0; - - number_ = ""; - - whenAvailable_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Phone_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Phone.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Phone build() { - com.google.cloud.talent.v4beta1.Phone result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Phone buildPartial() { - com.google.cloud.talent.v4beta1.Phone result = - new com.google.cloud.talent.v4beta1.Phone(this); - result.usage_ = usage_; - result.type_ = type_; - result.number_ = number_; - result.whenAvailable_ = whenAvailable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Phone) { - return mergeFrom((com.google.cloud.talent.v4beta1.Phone) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Phone other) { - if (other == com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()) return this; - if (other.usage_ != 0) { - setUsageValue(other.getUsageValue()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getNumber().isEmpty()) { - number_ = other.number_; - onChanged(); - } - if (!other.getWhenAvailable().isEmpty()) { - whenAvailable_ = other.whenAvailable_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Phone parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Phone) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int usage_ = 0; - /** - * - * - *
-     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - @java.lang.Override - public int getUsageValue() { - return usage_; - } - /** - * - * - *
-     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The enum numeric value on the wire for usage to set. - * @return This builder for chaining. - */ - public Builder setUsageValue(int value) { - - usage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ContactInfoUsage result = - com.google.cloud.talent.v4beta1.ContactInfoUsage.valueOf(usage_); - return result == null - ? com.google.cloud.talent.v4beta1.ContactInfoUsage.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @param value The usage to set. - * @return This builder for chaining. - */ - public Builder setUsage(com.google.cloud.talent.v4beta1.ContactInfoUsage value) { - if (value == null) { - throw new NullPointerException(); - } - - usage_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-     * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return This builder for chaining. - */ - public Builder clearUsage() { - - usage_ = 0; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * The phone type. For example, LANDLINE, MOBILE, FAX.
-     * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * The phone type. For example, LANDLINE, MOBILE, FAX.
-     * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The phone type. For example, LANDLINE, MOBILE, FAX.
-     * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Phone.PhoneType getType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Phone.PhoneType result = - com.google.cloud.talent.v4beta1.Phone.PhoneType.valueOf(type_); - return result == null ? com.google.cloud.talent.v4beta1.Phone.PhoneType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The phone type. For example, LANDLINE, MOBILE, FAX.
-     * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.talent.v4beta1.Phone.PhoneType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The phone type. For example, LANDLINE, MOBILE, FAX.
-     * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object 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.
-     * 
- * - * string number = 3; - * - * @return The number. - */ - public java.lang.String getNumber() { - java.lang.Object ref = number_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - number_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string number = 3; - * - * @return The bytes for number. - */ - public com.google.protobuf.ByteString getNumberBytes() { - java.lang.Object ref = number_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - number_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string number = 3; - * - * @param value The number to set. - * @return This builder for chaining. - */ - public Builder setNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - number_ = value; - onChanged(); - 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.
-     * 
- * - * string number = 3; - * - * @return This builder for chaining. - */ - public Builder clearNumber() { - - number_ = getDefaultInstance().getNumber(); - onChanged(); - 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.
-     * 
- * - * string number = 3; - * - * @param value The bytes for number to set. - * @return This builder for chaining. - */ - public Builder setNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - number_ = value; - onChanged(); - return this; - } - - private java.lang.Object whenAvailable_ = ""; - /** - * - * - *
-     * When this number is available. Any descriptive string is expected.
-     * Number of characters allowed is 100.
-     * 
- * - * string when_available = 4; - * - * @return The whenAvailable. - */ - public java.lang.String getWhenAvailable() { - java.lang.Object ref = whenAvailable_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - whenAvailable_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * When this number is available. Any descriptive string is expected.
-     * Number of characters allowed is 100.
-     * 
- * - * string when_available = 4; - * - * @return The bytes for whenAvailable. - */ - public com.google.protobuf.ByteString getWhenAvailableBytes() { - java.lang.Object ref = whenAvailable_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - whenAvailable_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * When this number is available. Any descriptive string is expected.
-     * Number of characters allowed is 100.
-     * 
- * - * string when_available = 4; - * - * @param value The whenAvailable to set. - * @return This builder for chaining. - */ - public Builder setWhenAvailable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - whenAvailable_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * When this number is available. Any descriptive string is expected.
-     * Number of characters allowed is 100.
-     * 
- * - * string when_available = 4; - * - * @return This builder for chaining. - */ - public Builder clearWhenAvailable() { - - whenAvailable_ = getDefaultInstance().getWhenAvailable(); - onChanged(); - return this; - } - /** - * - * - *
-     * When this number is available. Any descriptive string is expected.
-     * Number of characters allowed is 100.
-     * 
- * - * string when_available = 4; - * - * @param value The bytes for whenAvailable to set. - * @return This builder for chaining. - */ - public Builder setWhenAvailableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - whenAvailable_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Phone) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Phone) - private static final com.google.cloud.talent.v4beta1.Phone DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Phone(); - } - - public static com.google.cloud.talent.v4beta1.Phone getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phone parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phone(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Phone getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java deleted file mode 100644 index ad7000da..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface PhoneOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Phone) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The enum numeric value on the wire for usage. - */ - int getUsageValue(); - /** - * - * - *
-   * The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
-   * 
- * - * .google.cloud.talent.v4beta1.ContactInfoUsage usage = 1; - * - * @return The usage. - */ - com.google.cloud.talent.v4beta1.ContactInfoUsage getUsage(); - - /** - * - * - *
-   * The phone type. For example, LANDLINE, MOBILE, FAX.
-   * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * The phone type. For example, LANDLINE, MOBILE, FAX.
-   * 
- * - * .google.cloud.talent.v4beta1.Phone.PhoneType type = 2; - * - * @return The type. - */ - com.google.cloud.talent.v4beta1.Phone.PhoneType getType(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string number = 3; - * - * @return The number. - */ - java.lang.String getNumber(); - /** - * - * - *
-   * 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.
-   * 
- * - * string number = 3; - * - * @return The bytes for number. - */ - com.google.protobuf.ByteString getNumberBytes(); - - /** - * - * - *
-   * When this number is available. Any descriptive string is expected.
-   * Number of characters allowed is 100.
-   * 
- * - * string when_available = 4; - * - * @return The whenAvailable. - */ - java.lang.String getWhenAvailable(); - /** - * - * - *
-   * When this number is available. Any descriptive string is expected.
-   * Number of characters allowed is 100.
-   * 
- * - * string when_available = 4; - * - * @return The bytes for whenAvailable. - */ - com.google.protobuf.ByteString getWhenAvailableBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java deleted file mode 100644 index febbd2b1..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java +++ /dev/null @@ -1,13382 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * A resource that represents the profile for a job candidate (also referred to
- * as a "single-source profile").
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Profile} - */ -public final class Profile extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Profile) - ProfileOrBuilder { - private static final long serialVersionUID = 0L; - // Use Profile.newBuilder() to construct. - private Profile(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Profile() { - name_ = ""; - externalId_ = ""; - source_ = ""; - uri_ = ""; - groupId_ = ""; - personNames_ = java.util.Collections.emptyList(); - addresses_ = java.util.Collections.emptyList(); - emailAddresses_ = java.util.Collections.emptyList(); - phoneNumbers_ = java.util.Collections.emptyList(); - personalUris_ = java.util.Collections.emptyList(); - additionalContactInfo_ = java.util.Collections.emptyList(); - employmentRecords_ = java.util.Collections.emptyList(); - educationRecords_ = java.util.Collections.emptyList(); - skills_ = java.util.Collections.emptyList(); - activities_ = java.util.Collections.emptyList(); - publications_ = java.util.Collections.emptyList(); - patents_ = java.util.Collections.emptyList(); - certifications_ = java.util.Collections.emptyList(); - applications_ = com.google.protobuf.LazyStringArrayList.EMPTY; - assignments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - keywordSnippet_ = ""; - availabilitySignals_ = java.util.Collections.emptyList(); - derivedAddresses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Profile(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Profile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - externalId_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - source_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - groupId_ = s; - break; - } - case 50: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isHirable_ != null) { - subBuilder = isHirable_.toBuilder(); - } - isHirable_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isHirable_); - isHirable_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - personNames_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - personNames_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.PersonName.parser(), extensionRegistry)); - break; - } - case 98: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - addresses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - addresses_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Address.parser(), extensionRegistry)); - break; - } - case 106: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - emailAddresses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - emailAddresses_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Email.parser(), extensionRegistry)); - break; - } - case 114: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - phoneNumbers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - phoneNumbers_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Phone.parser(), extensionRegistry)); - break; - } - case 122: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - personalUris_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - personalUris_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.PersonalUri.parser(), extensionRegistry)); - break; - } - case 130: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - additionalContactInfo_ = - new java.util.ArrayList< - com.google.cloud.talent.v4beta1.AdditionalContactInfo>(); - mutable_bitField0_ |= 0x00000020; - } - additionalContactInfo_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.AdditionalContactInfo.parser(), - extensionRegistry)); - break; - } - case 138: - { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - employmentRecords_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - employmentRecords_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.EmploymentRecord.parser(), - extensionRegistry)); - break; - } - case 146: - { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - educationRecords_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - educationRecords_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.EducationRecord.parser(), extensionRegistry)); - break; - } - case 154: - { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - skills_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; - } - skills_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Skill.parser(), extensionRegistry)); - break; - } - case 162: - { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - activities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - activities_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Activity.parser(), extensionRegistry)); - break; - } - case 170: - { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { - publications_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; - } - publications_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Publication.parser(), extensionRegistry)); - break; - } - case 178: - { - if (!((mutable_bitField0_ & 0x00000800) != 0)) { - patents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; - } - patents_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Patent.parser(), extensionRegistry)); - break; - } - case 186: - { - if (!((mutable_bitField0_ & 0x00001000) != 0)) { - certifications_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00001000; - } - certifications_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Certification.parser(), extensionRegistry)); - break; - } - case 210: - { - if (!((mutable_bitField0_ & 0x00008000) != 0)) { - customAttributes_ = - com.google.protobuf.MapField.newMapField( - CustomAttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00008000; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - customAttributes__ = - input.readMessage( - CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - customAttributes_ - .getMutableMap() - .put(customAttributes__.getKey(), customAttributes__.getValue()); - break; - } - case 216: - { - processed_ = input.readBool(); - break; - } - case 226: - { - java.lang.String s = input.readStringRequireUtf8(); - - keywordSnippet_ = s; - break; - } - case 378: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00002000) != 0)) { - applications_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00002000; - } - applications_.add(s); - break; - } - case 386: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00004000) != 0)) { - assignments_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00004000; - } - assignments_.add(s); - break; - } - case 426: - { - com.google.cloud.talent.v4beta1.Resume.Builder subBuilder = null; - if (resume_ != null) { - subBuilder = resume_.toBuilder(); - } - resume_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Resume.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resume_); - resume_ = subBuilder.buildPartial(); - } - - break; - } - case 514: - { - if (!((mutable_bitField0_ & 0x00020000) != 0)) { - derivedAddresses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00020000; - } - derivedAddresses_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Location.parser(), extensionRegistry)); - break; - } - case 538: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (candidateUpdateTime_ != null) { - subBuilder = candidateUpdateTime_.toBuilder(); - } - candidateUpdateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(candidateUpdateTime_); - candidateUpdateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 546: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (resumeUpdateTime_ != null) { - subBuilder = resumeUpdateTime_.toBuilder(); - } - resumeUpdateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resumeUpdateTime_); - resumeUpdateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 562: - { - if (!((mutable_bitField0_ & 0x00010000) != 0)) { - availabilitySignals_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00010000; - } - availabilitySignals_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.AvailabilitySignal.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - personNames_ = java.util.Collections.unmodifiableList(personNames_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - personalUris_ = java.util.Collections.unmodifiableList(personalUris_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - skills_ = java.util.Collections.unmodifiableList(skills_); - } - if (((mutable_bitField0_ & 0x00000200) != 0)) { - activities_ = java.util.Collections.unmodifiableList(activities_); - } - if (((mutable_bitField0_ & 0x00000400) != 0)) { - publications_ = java.util.Collections.unmodifiableList(publications_); - } - if (((mutable_bitField0_ & 0x00000800) != 0)) { - patents_ = java.util.Collections.unmodifiableList(patents_); - } - if (((mutable_bitField0_ & 0x00001000) != 0)) { - certifications_ = java.util.Collections.unmodifiableList(certifications_); - } - if (((mutable_bitField0_ & 0x00002000) != 0)) { - applications_ = applications_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00004000) != 0)) { - assignments_ = assignments_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00020000) != 0)) { - derivedAddresses_ = java.util.Collections.unmodifiableList(derivedAddresses_); - } - if (((mutable_bitField0_ & 0x00010000) != 0)) { - availabilitySignals_ = java.util.Collections.unmodifiableList(availabilitySignals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 26: - return internalGetCustomAttributes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Profile.class, - com.google.cloud.talent.v4beta1.Profile.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXTERNAL_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object externalId_; - /** - * - * - *
-   * 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.
-   * 
- * - * string external_id = 2; - * - * @return The externalId. - */ - @java.lang.Override - public java.lang.String getExternalId() { - java.lang.Object ref = externalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalId_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string external_id = 2; - * - * @return The bytes for externalId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { - java.lang.Object ref = externalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - externalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_FIELD_NUMBER = 3; - private volatile java.lang.Object 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.
-   * 
- * - * string source = 3; - * - * @return The source. - */ - @java.lang.Override - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string source = 3; - * - * @return The bytes for source. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URI_FIELD_NUMBER = 4; - private volatile java.lang.Object uri_; - /** - * - * - *
-   * The URI set by clients that links to this profile's client-side copy.
-   * The maximum number of bytes allowed is 4000.
-   * 
- * - * string uri = 4; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * - * - *
-   * The URI set by clients that links to this profile's client-side copy.
-   * The maximum number of bytes allowed is 4000.
-   * 
- * - * string uri = 4; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GROUP_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object groupId_; - /** - * - * - *
-   * 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.
-   * 
- * - * string group_id = 5; - * - * @return The groupId. - */ - @java.lang.Override - public java.lang.String getGroupId() { - java.lang.Object ref = groupId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupId_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string group_id = 5; - * - * @return The bytes for groupId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGroupIdBytes() { - java.lang.Object ref = groupId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - groupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_HIRABLE_FIELD_NUMBER = 6; - private com.google.protobuf.BoolValue isHirable_; - /** - * - * - *
-   * Indicates the hirable status of the candidate.
-   * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - * - * @return Whether the isHirable field is set. - */ - @java.lang.Override - public boolean hasIsHirable() { - return isHirable_ != null; - } - /** - * - * - *
-   * Indicates the hirable status of the candidate.
-   * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - * - * @return The isHirable. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getIsHirable() { - return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; - } - /** - * - * - *
-   * Indicates the hirable status of the candidate.
-   * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { - return getIsHirable(); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * The timestamp when the profile was first created at this source.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * The timestamp when the profile was first created at this source.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * The timestamp when the profile was first created at this source.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * The timestamp when the profile was last updated at this source.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8; - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * The timestamp when the profile was last updated at this source.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8; - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * The timestamp when the profile was last updated at this source.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int CANDIDATE_UPDATE_TIME_FIELD_NUMBER = 67; - private com.google.protobuf.Timestamp candidateUpdateTime_; - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - * - * @return Whether the candidateUpdateTime field is set. - */ - @java.lang.Override - public boolean hasCandidateUpdateTime() { - return candidateUpdateTime_ != 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.
-   * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - * - * @return The candidateUpdateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCandidateUpdateTime() { - return candidateUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : candidateUpdateTime_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCandidateUpdateTimeOrBuilder() { - return getCandidateUpdateTime(); - } - - public static final int RESUME_UPDATE_TIME_FIELD_NUMBER = 68; - private com.google.protobuf.Timestamp resumeUpdateTime_; - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - * - * @return Whether the resumeUpdateTime field is set. - */ - @java.lang.Override - public boolean hasResumeUpdateTime() { - return resumeUpdateTime_ != 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.
-   * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - * - * @return The resumeUpdateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getResumeUpdateTime() { - return resumeUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : resumeUpdateTime_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getResumeUpdateTimeOrBuilder() { - return getResumeUpdateTime(); - } - - public static final int RESUME_FIELD_NUMBER = 53; - private com.google.cloud.talent.v4beta1.Resume resume_; - /** - * - * - *
-   * The resume representing this profile.
-   * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - * - * @return Whether the resume field is set. - */ - @java.lang.Override - public boolean hasResume() { - return resume_ != null; - } - /** - * - * - *
-   * The resume representing this profile.
-   * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - * - * @return The resume. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Resume getResume() { - return resume_ == null ? com.google.cloud.talent.v4beta1.Resume.getDefaultInstance() : resume_; - } - /** - * - * - *
-   * The resume representing this profile.
-   * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ResumeOrBuilder getResumeOrBuilder() { - return getResume(); - } - - public static final int PERSON_NAMES_FIELD_NUMBER = 11; - private java.util.List personNames_; - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - @java.lang.Override - public java.util.List getPersonNamesList() { - return personNames_; - } - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - @java.lang.Override - public java.util.List - getPersonNamesOrBuilderList() { - return personNames_; - } - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - @java.lang.Override - public int getPersonNamesCount() { - return personNames_.size(); - } - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { - return personNames_.get(index); - } - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { - return personNames_.get(index); - } - - public static final int ADDRESSES_FIELD_NUMBER = 12; - private java.util.List 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - @java.lang.Override - public java.util.List getAddressesList() { - return 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - @java.lang.Override - public java.util.List - getAddressesOrBuilderList() { - return 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - @java.lang.Override - public int getAddressesCount() { - return addresses_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { - return addresses_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { - return addresses_.get(index); - } - - public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 13; - private java.util.List emailAddresses_; - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - @java.lang.Override - public java.util.List getEmailAddressesList() { - return emailAddresses_; - } - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - @java.lang.Override - public java.util.List - getEmailAddressesOrBuilderList() { - return emailAddresses_; - } - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - @java.lang.Override - public int getEmailAddressesCount() { - return emailAddresses_.size(); - } - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { - return emailAddresses_.get(index); - } - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { - return emailAddresses_.get(index); - } - - public static final int PHONE_NUMBERS_FIELD_NUMBER = 14; - private java.util.List phoneNumbers_; - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - @java.lang.Override - public java.util.List getPhoneNumbersList() { - return phoneNumbers_; - } - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - @java.lang.Override - public java.util.List - getPhoneNumbersOrBuilderList() { - return phoneNumbers_; - } - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - @java.lang.Override - public int getPhoneNumbersCount() { - return phoneNumbers_.size(); - } - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { - return phoneNumbers_.get(index); - } - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { - return phoneNumbers_.get(index); - } - - public static final int PERSONAL_URIS_FIELD_NUMBER = 15; - private java.util.List personalUris_; - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - @java.lang.Override - public java.util.List getPersonalUrisList() { - return personalUris_; - } - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - @java.lang.Override - public java.util.List - getPersonalUrisOrBuilderList() { - return personalUris_; - } - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - @java.lang.Override - public int getPersonalUrisCount() { - return personalUris_.size(); - } - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { - return personalUris_.get(index); - } - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index) { - return personalUris_.get(index); - } - - public static final int ADDITIONAL_CONTACT_INFO_FIELD_NUMBER = 16; - private java.util.List - additionalContactInfo_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - @java.lang.Override - public java.util.List - getAdditionalContactInfoList() { - return additionalContactInfo_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - @java.lang.Override - public java.util.List - getAdditionalContactInfoOrBuilderList() { - return additionalContactInfo_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - @java.lang.Override - public int getAdditionalContactInfoCount() { - return additionalContactInfo_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index) { - return additionalContactInfo_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder - getAdditionalContactInfoOrBuilder(int index) { - return additionalContactInfo_.get(index); - } - - public static final int EMPLOYMENT_RECORDS_FIELD_NUMBER = 17; - private java.util.List employmentRecords_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - @java.lang.Override - public java.util.List - getEmploymentRecordsList() { - return employmentRecords_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - @java.lang.Override - public java.util.List - getEmploymentRecordsOrBuilderList() { - return employmentRecords_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - @java.lang.Override - public int getEmploymentRecordsCount() { - return employmentRecords_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { - return employmentRecords_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( - int index) { - return employmentRecords_.get(index); - } - - public static final int EDUCATION_RECORDS_FIELD_NUMBER = 18; - private java.util.List educationRecords_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - @java.lang.Override - public java.util.List getEducationRecordsList() { - return educationRecords_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - @java.lang.Override - public java.util.List - getEducationRecordsOrBuilderList() { - return educationRecords_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - @java.lang.Override - public int getEducationRecordsCount() { - return educationRecords_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { - return educationRecords_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( - int index) { - return educationRecords_.get(index); - } - - public static final int SKILLS_FIELD_NUMBER = 19; - private java.util.List 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - @java.lang.Override - public java.util.List getSkillsList() { - return 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - @java.lang.Override - public java.util.List - getSkillsOrBuilderList() { - return 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - @java.lang.Override - public int getSkillsCount() { - return skills_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { - return skills_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { - return skills_.get(index); - } - - public static final int ACTIVITIES_FIELD_NUMBER = 20; - private java.util.List 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - @java.lang.Override - public java.util.List getActivitiesList() { - return 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - @java.lang.Override - public java.util.List - getActivitiesOrBuilderList() { - return 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - @java.lang.Override - public int getActivitiesCount() { - return activities_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { - return activities_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { - return activities_.get(index); - } - - public static final int PUBLICATIONS_FIELD_NUMBER = 21; - private java.util.List publications_; - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - @java.lang.Override - public java.util.List getPublicationsList() { - return publications_; - } - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - @java.lang.Override - public java.util.List - getPublicationsOrBuilderList() { - return publications_; - } - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - @java.lang.Override - public int getPublicationsCount() { - return publications_.size(); - } - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { - return publications_.get(index); - } - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index) { - return publications_.get(index); - } - - public static final int PATENTS_FIELD_NUMBER = 22; - private java.util.List patents_; - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - @java.lang.Override - public java.util.List getPatentsList() { - return patents_; - } - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - @java.lang.Override - public java.util.List - getPatentsOrBuilderList() { - return patents_; - } - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - @java.lang.Override - public int getPatentsCount() { - return patents_.size(); - } - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { - return patents_.get(index); - } - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { - return patents_.get(index); - } - - public static final int CERTIFICATIONS_FIELD_NUMBER = 23; - private java.util.List certifications_; - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - @java.lang.Override - public java.util.List getCertificationsList() { - return certifications_; - } - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - @java.lang.Override - public java.util.List - getCertificationsOrBuilderList() { - return certifications_; - } - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - @java.lang.Override - public int getCertificationsCount() { - return certifications_.size(); - } - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { - return certifications_.get(index); - } - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( - int index) { - return certifications_.get(index); - } - - public static final int APPLICATIONS_FIELD_NUMBER = 47; - private com.google.protobuf.LazyStringList applications_; - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the applications. - */ - public com.google.protobuf.ProtocolStringList getApplicationsList() { - return applications_; - } - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of applications. - */ - public int getApplicationsCount() { - return applications_.size(); - } - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The applications at the given index. - */ - public java.lang.String getApplications(int index) { - return applications_.get(index); - } - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the applications at the given index. - */ - public com.google.protobuf.ByteString getApplicationsBytes(int index) { - return applications_.getByteString(index); - } - - public static final int ASSIGNMENTS_FIELD_NUMBER = 48; - private com.google.protobuf.LazyStringList assignments_; - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the assignments. - */ - public com.google.protobuf.ProtocolStringList getAssignmentsList() { - return assignments_; - } - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of assignments. - */ - public int getAssignmentsCount() { - return assignments_.size(); - } - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The assignments at the given index. - */ - public java.lang.String getAssignments(int index) { - return assignments_.get(index); - } - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the assignments at the given index. - */ - public com.google.protobuf.ByteString getAssignmentsBytes(int index) { - return assignments_.getByteString(index); - } - - public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 26; - - private static final class CustomAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.talent.v4beta1.CustomAttribute.getDefaultInstance()); - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - customAttributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - internalGetCustomAttributes() { - if (customAttributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CustomAttributesDefaultEntryHolder.defaultEntry); - } - return customAttributes_; - } - - public int getCustomAttributesCount() { - return internalGetCustomAttributes().getMap().size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public boolean containsCustomAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetCustomAttributes().getMap().containsKey(key); - } - /** Use {@link #getCustomAttributesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCustomAttributes() { - return getCustomAttributesMap(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public java.util.Map - getCustomAttributesMap() { - return internalGetCustomAttributes().getMap(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( - java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetCustomAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetCustomAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PROCESSED_FIELD_NUMBER = 27; - private boolean 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.
-   * 
- * - * bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The processed. - */ - @java.lang.Override - public boolean getProcessed() { - return processed_; - } - - public static final int KEYWORD_SNIPPET_FIELD_NUMBER = 28; - private volatile java.lang.Object keywordSnippet_; - /** - * - * - *
-   * 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].
-   * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The keywordSnippet. - */ - @java.lang.Override - public java.lang.String getKeywordSnippet() { - java.lang.Object ref = keywordSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keywordSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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].
-   * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for keywordSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeywordSnippetBytes() { - java.lang.Object ref = keywordSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keywordSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AVAILABILITY_SIGNALS_FIELD_NUMBER = 70; - private java.util.List availabilitySignals_; - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getAvailabilitySignalsList() { - return availabilitySignals_; - } - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getAvailabilitySignalsOrBuilderList() { - return availabilitySignals_; - } - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getAvailabilitySignalsCount() { - return availabilitySignals_.size(); - } - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignal getAvailabilitySignals(int index) { - return availabilitySignals_.get(index); - } - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilitySignalOrBuilder - getAvailabilitySignalsOrBuilder(int index) { - return availabilitySignals_.get(index); - } - - public static final int DERIVED_ADDRESSES_FIELD_NUMBER = 64; - private java.util.List derivedAddresses_; - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getDerivedAddressesList() { - return derivedAddresses_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getDerivedAddressesOrBuilderList() { - return derivedAddresses_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getDerivedAddressesCount() { - return derivedAddresses_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Location getDerivedAddresses(int index) { - return derivedAddresses_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.LocationOrBuilder getDerivedAddressesOrBuilder(int index) { - return derivedAddresses_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, externalId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, groupId_); - } - if (isHirable_ != null) { - output.writeMessage(6, getIsHirable()); - } - if (createTime_ != null) { - output.writeMessage(7, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(8, getUpdateTime()); - } - for (int i = 0; i < personNames_.size(); i++) { - output.writeMessage(11, personNames_.get(i)); - } - for (int i = 0; i < addresses_.size(); i++) { - output.writeMessage(12, addresses_.get(i)); - } - for (int i = 0; i < emailAddresses_.size(); i++) { - output.writeMessage(13, emailAddresses_.get(i)); - } - for (int i = 0; i < phoneNumbers_.size(); i++) { - output.writeMessage(14, phoneNumbers_.get(i)); - } - for (int i = 0; i < personalUris_.size(); i++) { - output.writeMessage(15, personalUris_.get(i)); - } - for (int i = 0; i < additionalContactInfo_.size(); i++) { - output.writeMessage(16, additionalContactInfo_.get(i)); - } - for (int i = 0; i < employmentRecords_.size(); i++) { - output.writeMessage(17, employmentRecords_.get(i)); - } - for (int i = 0; i < educationRecords_.size(); i++) { - output.writeMessage(18, educationRecords_.get(i)); - } - for (int i = 0; i < skills_.size(); i++) { - output.writeMessage(19, skills_.get(i)); - } - for (int i = 0; i < activities_.size(); i++) { - output.writeMessage(20, activities_.get(i)); - } - for (int i = 0; i < publications_.size(); i++) { - output.writeMessage(21, publications_.get(i)); - } - for (int i = 0; i < patents_.size(); i++) { - output.writeMessage(22, patents_.get(i)); - } - for (int i = 0; i < certifications_.size(); i++) { - output.writeMessage(23, certifications_.get(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 26); - if (processed_ != false) { - output.writeBool(27, processed_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keywordSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 28, keywordSnippet_); - } - for (int i = 0; i < applications_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 47, applications_.getRaw(i)); - } - for (int i = 0; i < assignments_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 48, assignments_.getRaw(i)); - } - if (resume_ != null) { - output.writeMessage(53, getResume()); - } - for (int i = 0; i < derivedAddresses_.size(); i++) { - output.writeMessage(64, derivedAddresses_.get(i)); - } - if (candidateUpdateTime_ != null) { - output.writeMessage(67, getCandidateUpdateTime()); - } - if (resumeUpdateTime_ != null) { - output.writeMessage(68, getResumeUpdateTime()); - } - for (int i = 0; i < availabilitySignals_.size(); i++) { - output.writeMessage(70, availabilitySignals_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, externalId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, groupId_); - } - if (isHirable_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIsHirable()); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); - } - for (int i = 0; i < personNames_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, personNames_.get(i)); - } - for (int i = 0; i < addresses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, addresses_.get(i)); - } - for (int i = 0; i < emailAddresses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, emailAddresses_.get(i)); - } - for (int i = 0; i < phoneNumbers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, phoneNumbers_.get(i)); - } - for (int i = 0; i < personalUris_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, personalUris_.get(i)); - } - for (int i = 0; i < additionalContactInfo_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, additionalContactInfo_.get(i)); - } - for (int i = 0; i < employmentRecords_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(17, employmentRecords_.get(i)); - } - for (int i = 0; i < educationRecords_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(18, educationRecords_.get(i)); - } - for (int i = 0; i < skills_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, skills_.get(i)); - } - for (int i = 0; i < activities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, activities_.get(i)); - } - for (int i = 0; i < publications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, publications_.get(i)); - } - for (int i = 0; i < patents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, patents_.get(i)); - } - for (int i = 0; i < certifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, certifications_.get(i)); - } - for (java.util.Map.Entry - entry : internalGetCustomAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - customAttributes__ = - CustomAttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, customAttributes__); - } - if (processed_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, processed_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keywordSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, keywordSnippet_); - } - { - int dataSize = 0; - for (int i = 0; i < applications_.size(); i++) { - dataSize += computeStringSizeNoTag(applications_.getRaw(i)); - } - size += dataSize; - size += 2 * getApplicationsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < assignments_.size(); i++) { - dataSize += computeStringSizeNoTag(assignments_.getRaw(i)); - } - size += dataSize; - size += 2 * getAssignmentsList().size(); - } - if (resume_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(53, getResume()); - } - for (int i = 0; i < derivedAddresses_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(64, derivedAddresses_.get(i)); - } - if (candidateUpdateTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(67, getCandidateUpdateTime()); - } - if (resumeUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(68, getResumeUpdateTime()); - } - for (int i = 0; i < availabilitySignals_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(70, availabilitySignals_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Profile)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Profile other = (com.google.cloud.talent.v4beta1.Profile) obj; - - if (!getName().equals(other.getName())) return false; - if (!getExternalId().equals(other.getExternalId())) return false; - if (!getSource().equals(other.getSource())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getGroupId().equals(other.getGroupId())) return false; - if (hasIsHirable() != other.hasIsHirable()) return false; - if (hasIsHirable()) { - if (!getIsHirable().equals(other.getIsHirable())) return false; - } - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (hasCandidateUpdateTime() != other.hasCandidateUpdateTime()) return false; - if (hasCandidateUpdateTime()) { - if (!getCandidateUpdateTime().equals(other.getCandidateUpdateTime())) return false; - } - if (hasResumeUpdateTime() != other.hasResumeUpdateTime()) return false; - if (hasResumeUpdateTime()) { - if (!getResumeUpdateTime().equals(other.getResumeUpdateTime())) return false; - } - if (hasResume() != other.hasResume()) return false; - if (hasResume()) { - if (!getResume().equals(other.getResume())) return false; - } - if (!getPersonNamesList().equals(other.getPersonNamesList())) return false; - if (!getAddressesList().equals(other.getAddressesList())) return false; - if (!getEmailAddressesList().equals(other.getEmailAddressesList())) return false; - if (!getPhoneNumbersList().equals(other.getPhoneNumbersList())) return false; - if (!getPersonalUrisList().equals(other.getPersonalUrisList())) return false; - if (!getAdditionalContactInfoList().equals(other.getAdditionalContactInfoList())) return false; - if (!getEmploymentRecordsList().equals(other.getEmploymentRecordsList())) return false; - if (!getEducationRecordsList().equals(other.getEducationRecordsList())) return false; - if (!getSkillsList().equals(other.getSkillsList())) return false; - if (!getActivitiesList().equals(other.getActivitiesList())) return false; - if (!getPublicationsList().equals(other.getPublicationsList())) return false; - if (!getPatentsList().equals(other.getPatentsList())) return false; - if (!getCertificationsList().equals(other.getCertificationsList())) return false; - if (!getApplicationsList().equals(other.getApplicationsList())) return false; - if (!getAssignmentsList().equals(other.getAssignmentsList())) return false; - if (!internalGetCustomAttributes().equals(other.internalGetCustomAttributes())) return false; - if (getProcessed() != other.getProcessed()) return false; - if (!getKeywordSnippet().equals(other.getKeywordSnippet())) return false; - if (!getAvailabilitySignalsList().equals(other.getAvailabilitySignalsList())) return false; - if (!getDerivedAddressesList().equals(other.getDerivedAddressesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getExternalId().hashCode(); - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getGroupId().hashCode(); - if (hasIsHirable()) { - hash = (37 * hash) + IS_HIRABLE_FIELD_NUMBER; - hash = (53 * hash) + getIsHirable().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (hasCandidateUpdateTime()) { - hash = (37 * hash) + CANDIDATE_UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCandidateUpdateTime().hashCode(); - } - if (hasResumeUpdateTime()) { - hash = (37 * hash) + RESUME_UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getResumeUpdateTime().hashCode(); - } - if (hasResume()) { - hash = (37 * hash) + RESUME_FIELD_NUMBER; - hash = (53 * hash) + getResume().hashCode(); - } - if (getPersonNamesCount() > 0) { - hash = (37 * hash) + PERSON_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getPersonNamesList().hashCode(); - } - if (getAddressesCount() > 0) { - hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getAddressesList().hashCode(); - } - if (getEmailAddressesCount() > 0) { - hash = (37 * hash) + EMAIL_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddressesList().hashCode(); - } - if (getPhoneNumbersCount() > 0) { - hash = (37 * hash) + PHONE_NUMBERS_FIELD_NUMBER; - hash = (53 * hash) + getPhoneNumbersList().hashCode(); - } - if (getPersonalUrisCount() > 0) { - hash = (37 * hash) + PERSONAL_URIS_FIELD_NUMBER; - hash = (53 * hash) + getPersonalUrisList().hashCode(); - } - if (getAdditionalContactInfoCount() > 0) { - hash = (37 * hash) + ADDITIONAL_CONTACT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalContactInfoList().hashCode(); - } - if (getEmploymentRecordsCount() > 0) { - hash = (37 * hash) + EMPLOYMENT_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getEmploymentRecordsList().hashCode(); - } - if (getEducationRecordsCount() > 0) { - hash = (37 * hash) + EDUCATION_RECORDS_FIELD_NUMBER; - hash = (53 * hash) + getEducationRecordsList().hashCode(); - } - if (getSkillsCount() > 0) { - hash = (37 * hash) + SKILLS_FIELD_NUMBER; - hash = (53 * hash) + getSkillsList().hashCode(); - } - if (getActivitiesCount() > 0) { - hash = (37 * hash) + ACTIVITIES_FIELD_NUMBER; - hash = (53 * hash) + getActivitiesList().hashCode(); - } - if (getPublicationsCount() > 0) { - hash = (37 * hash) + PUBLICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getPublicationsList().hashCode(); - } - if (getPatentsCount() > 0) { - hash = (37 * hash) + PATENTS_FIELD_NUMBER; - hash = (53 * hash) + getPatentsList().hashCode(); - } - if (getCertificationsCount() > 0) { - hash = (37 * hash) + CERTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getCertificationsList().hashCode(); - } - if (getApplicationsCount() > 0) { - hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getApplicationsList().hashCode(); - } - if (getAssignmentsCount() > 0) { - hash = (37 * hash) + ASSIGNMENTS_FIELD_NUMBER; - hash = (53 * hash) + getAssignmentsList().hashCode(); - } - if (!internalGetCustomAttributes().getMap().isEmpty()) { - hash = (37 * hash) + CUSTOM_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + internalGetCustomAttributes().hashCode(); - } - hash = (37 * hash) + PROCESSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProcessed()); - hash = (37 * hash) + KEYWORD_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getKeywordSnippet().hashCode(); - if (getAvailabilitySignalsCount() > 0) { - hash = (37 * hash) + AVAILABILITY_SIGNALS_FIELD_NUMBER; - hash = (53 * hash) + getAvailabilitySignalsList().hashCode(); - } - if (getDerivedAddressesCount() > 0) { - hash = (37 * hash) + DERIVED_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + getDerivedAddressesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Profile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Profile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Profile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Profile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A resource that represents the profile for a job candidate (also referred to
-   * as a "single-source profile").
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Profile} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Profile) - com.google.cloud.talent.v4beta1.ProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 26: - return internalGetCustomAttributes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 26: - return internalGetMutableCustomAttributes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Profile.class, - com.google.cloud.talent.v4beta1.Profile.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Profile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPersonNamesFieldBuilder(); - getAddressesFieldBuilder(); - getEmailAddressesFieldBuilder(); - getPhoneNumbersFieldBuilder(); - getPersonalUrisFieldBuilder(); - getAdditionalContactInfoFieldBuilder(); - getEmploymentRecordsFieldBuilder(); - getEducationRecordsFieldBuilder(); - getSkillsFieldBuilder(); - getActivitiesFieldBuilder(); - getPublicationsFieldBuilder(); - getPatentsFieldBuilder(); - getCertificationsFieldBuilder(); - getAvailabilitySignalsFieldBuilder(); - getDerivedAddressesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - externalId_ = ""; - - source_ = ""; - - uri_ = ""; - - groupId_ = ""; - - if (isHirableBuilder_ == null) { - isHirable_ = null; - } else { - isHirable_ = null; - isHirableBuilder_ = null; - } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - if (candidateUpdateTimeBuilder_ == null) { - candidateUpdateTime_ = null; - } else { - candidateUpdateTime_ = null; - candidateUpdateTimeBuilder_ = null; - } - if (resumeUpdateTimeBuilder_ == null) { - resumeUpdateTime_ = null; - } else { - resumeUpdateTime_ = null; - resumeUpdateTimeBuilder_ = null; - } - if (resumeBuilder_ == null) { - resume_ = null; - } else { - resume_ = null; - resumeBuilder_ = null; - } - if (personNamesBuilder_ == null) { - personNames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - personNamesBuilder_.clear(); - } - if (addressesBuilder_ == null) { - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - addressesBuilder_.clear(); - } - if (emailAddressesBuilder_ == null) { - emailAddresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - emailAddressesBuilder_.clear(); - } - if (phoneNumbersBuilder_ == null) { - phoneNumbers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - phoneNumbersBuilder_.clear(); - } - if (personalUrisBuilder_ == null) { - personalUris_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - personalUrisBuilder_.clear(); - } - if (additionalContactInfoBuilder_ == null) { - additionalContactInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - additionalContactInfoBuilder_.clear(); - } - if (employmentRecordsBuilder_ == null) { - employmentRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - employmentRecordsBuilder_.clear(); - } - if (educationRecordsBuilder_ == null) { - educationRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - educationRecordsBuilder_.clear(); - } - if (skillsBuilder_ == null) { - skills_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - } else { - skillsBuilder_.clear(); - } - if (activitiesBuilder_ == null) { - activities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - activitiesBuilder_.clear(); - } - if (publicationsBuilder_ == null) { - publications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - } else { - publicationsBuilder_.clear(); - } - if (patentsBuilder_ == null) { - patents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - } else { - patentsBuilder_.clear(); - } - if (certificationsBuilder_ == null) { - certifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - } else { - certificationsBuilder_.clear(); - } - applications_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00002000); - assignments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00004000); - internalGetMutableCustomAttributes().clear(); - processed_ = false; - - keywordSnippet_ = ""; - - if (availabilitySignalsBuilder_ == null) { - availabilitySignals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - } else { - availabilitySignalsBuilder_.clear(); - } - if (derivedAddressesBuilder_ == null) { - derivedAddresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - } else { - derivedAddressesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Profile_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Profile.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile build() { - com.google.cloud.talent.v4beta1.Profile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile buildPartial() { - com.google.cloud.talent.v4beta1.Profile result = - new com.google.cloud.talent.v4beta1.Profile(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.externalId_ = externalId_; - result.source_ = source_; - result.uri_ = uri_; - result.groupId_ = groupId_; - if (isHirableBuilder_ == null) { - result.isHirable_ = isHirable_; - } else { - result.isHirable_ = isHirableBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - if (candidateUpdateTimeBuilder_ == null) { - result.candidateUpdateTime_ = candidateUpdateTime_; - } else { - result.candidateUpdateTime_ = candidateUpdateTimeBuilder_.build(); - } - if (resumeUpdateTimeBuilder_ == null) { - result.resumeUpdateTime_ = resumeUpdateTime_; - } else { - result.resumeUpdateTime_ = resumeUpdateTimeBuilder_.build(); - } - if (resumeBuilder_ == null) { - result.resume_ = resume_; - } else { - result.resume_ = resumeBuilder_.build(); - } - if (personNamesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - personNames_ = java.util.Collections.unmodifiableList(personNames_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.personNames_ = personNames_; - } else { - result.personNames_ = personNamesBuilder_.build(); - } - if (addressesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - addresses_ = java.util.Collections.unmodifiableList(addresses_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.addresses_ = addresses_; - } else { - result.addresses_ = addressesBuilder_.build(); - } - if (emailAddressesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.emailAddresses_ = emailAddresses_; - } else { - result.emailAddresses_ = emailAddressesBuilder_.build(); - } - if (phoneNumbersBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - phoneNumbers_ = java.util.Collections.unmodifiableList(phoneNumbers_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.phoneNumbers_ = phoneNumbers_; - } else { - result.phoneNumbers_ = phoneNumbersBuilder_.build(); - } - if (personalUrisBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - personalUris_ = java.util.Collections.unmodifiableList(personalUris_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.personalUris_ = personalUris_; - } else { - result.personalUris_ = personalUrisBuilder_.build(); - } - if (additionalContactInfoBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - additionalContactInfo_ = java.util.Collections.unmodifiableList(additionalContactInfo_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.additionalContactInfo_ = additionalContactInfo_; - } else { - result.additionalContactInfo_ = additionalContactInfoBuilder_.build(); - } - if (employmentRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - employmentRecords_ = java.util.Collections.unmodifiableList(employmentRecords_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.employmentRecords_ = employmentRecords_; - } else { - result.employmentRecords_ = employmentRecordsBuilder_.build(); - } - if (educationRecordsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - educationRecords_ = java.util.Collections.unmodifiableList(educationRecords_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.educationRecords_ = educationRecords_; - } else { - result.educationRecords_ = educationRecordsBuilder_.build(); - } - if (skillsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - skills_ = java.util.Collections.unmodifiableList(skills_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.skills_ = skills_; - } else { - result.skills_ = skillsBuilder_.build(); - } - if (activitiesBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - activities_ = java.util.Collections.unmodifiableList(activities_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.activities_ = activities_; - } else { - result.activities_ = activitiesBuilder_.build(); - } - if (publicationsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - publications_ = java.util.Collections.unmodifiableList(publications_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.publications_ = publications_; - } else { - result.publications_ = publicationsBuilder_.build(); - } - if (patentsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - patents_ = java.util.Collections.unmodifiableList(patents_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.patents_ = patents_; - } else { - result.patents_ = patentsBuilder_.build(); - } - if (certificationsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { - certifications_ = java.util.Collections.unmodifiableList(certifications_); - bitField0_ = (bitField0_ & ~0x00001000); - } - result.certifications_ = certifications_; - } else { - result.certifications_ = certificationsBuilder_.build(); - } - if (((bitField0_ & 0x00002000) != 0)) { - applications_ = applications_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.applications_ = applications_; - if (((bitField0_ & 0x00004000) != 0)) { - assignments_ = assignments_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00004000); - } - result.assignments_ = assignments_; - result.customAttributes_ = internalGetCustomAttributes(); - result.customAttributes_.makeImmutable(); - result.processed_ = processed_; - result.keywordSnippet_ = keywordSnippet_; - if (availabilitySignalsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0)) { - availabilitySignals_ = java.util.Collections.unmodifiableList(availabilitySignals_); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.availabilitySignals_ = availabilitySignals_; - } else { - result.availabilitySignals_ = availabilitySignalsBuilder_.build(); - } - if (derivedAddressesBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0)) { - derivedAddresses_ = java.util.Collections.unmodifiableList(derivedAddresses_); - bitField0_ = (bitField0_ & ~0x00020000); - } - result.derivedAddresses_ = derivedAddresses_; - } else { - result.derivedAddresses_ = derivedAddressesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Profile) { - return mergeFrom((com.google.cloud.talent.v4beta1.Profile) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Profile other) { - if (other == com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getExternalId().isEmpty()) { - externalId_ = other.externalId_; - onChanged(); - } - if (!other.getSource().isEmpty()) { - source_ = other.source_; - onChanged(); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (!other.getGroupId().isEmpty()) { - groupId_ = other.groupId_; - onChanged(); - } - if (other.hasIsHirable()) { - mergeIsHirable(other.getIsHirable()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (other.hasCandidateUpdateTime()) { - mergeCandidateUpdateTime(other.getCandidateUpdateTime()); - } - if (other.hasResumeUpdateTime()) { - mergeResumeUpdateTime(other.getResumeUpdateTime()); - } - if (other.hasResume()) { - mergeResume(other.getResume()); - } - if (personNamesBuilder_ == null) { - if (!other.personNames_.isEmpty()) { - if (personNames_.isEmpty()) { - personNames_ = other.personNames_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePersonNamesIsMutable(); - personNames_.addAll(other.personNames_); - } - onChanged(); - } - } else { - if (!other.personNames_.isEmpty()) { - if (personNamesBuilder_.isEmpty()) { - personNamesBuilder_.dispose(); - personNamesBuilder_ = null; - personNames_ = other.personNames_; - bitField0_ = (bitField0_ & ~0x00000001); - personNamesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPersonNamesFieldBuilder() - : null; - } else { - personNamesBuilder_.addAllMessages(other.personNames_); - } - } - } - if (addressesBuilder_ == null) { - if (!other.addresses_.isEmpty()) { - if (addresses_.isEmpty()) { - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAddressesIsMutable(); - addresses_.addAll(other.addresses_); - } - onChanged(); - } - } else { - if (!other.addresses_.isEmpty()) { - if (addressesBuilder_.isEmpty()) { - addressesBuilder_.dispose(); - addressesBuilder_ = null; - addresses_ = other.addresses_; - bitField0_ = (bitField0_ & ~0x00000002); - addressesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAddressesFieldBuilder() - : null; - } else { - addressesBuilder_.addAllMessages(other.addresses_); - } - } - } - if (emailAddressesBuilder_ == null) { - if (!other.emailAddresses_.isEmpty()) { - if (emailAddresses_.isEmpty()) { - emailAddresses_ = other.emailAddresses_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEmailAddressesIsMutable(); - emailAddresses_.addAll(other.emailAddresses_); - } - onChanged(); - } - } else { - if (!other.emailAddresses_.isEmpty()) { - if (emailAddressesBuilder_.isEmpty()) { - emailAddressesBuilder_.dispose(); - emailAddressesBuilder_ = null; - emailAddresses_ = other.emailAddresses_; - bitField0_ = (bitField0_ & ~0x00000004); - emailAddressesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEmailAddressesFieldBuilder() - : null; - } else { - emailAddressesBuilder_.addAllMessages(other.emailAddresses_); - } - } - } - if (phoneNumbersBuilder_ == null) { - if (!other.phoneNumbers_.isEmpty()) { - if (phoneNumbers_.isEmpty()) { - phoneNumbers_ = other.phoneNumbers_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePhoneNumbersIsMutable(); - phoneNumbers_.addAll(other.phoneNumbers_); - } - onChanged(); - } - } else { - if (!other.phoneNumbers_.isEmpty()) { - if (phoneNumbersBuilder_.isEmpty()) { - phoneNumbersBuilder_.dispose(); - phoneNumbersBuilder_ = null; - phoneNumbers_ = other.phoneNumbers_; - bitField0_ = (bitField0_ & ~0x00000008); - phoneNumbersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPhoneNumbersFieldBuilder() - : null; - } else { - phoneNumbersBuilder_.addAllMessages(other.phoneNumbers_); - } - } - } - if (personalUrisBuilder_ == null) { - if (!other.personalUris_.isEmpty()) { - if (personalUris_.isEmpty()) { - personalUris_ = other.personalUris_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensurePersonalUrisIsMutable(); - personalUris_.addAll(other.personalUris_); - } - onChanged(); - } - } else { - if (!other.personalUris_.isEmpty()) { - if (personalUrisBuilder_.isEmpty()) { - personalUrisBuilder_.dispose(); - personalUrisBuilder_ = null; - personalUris_ = other.personalUris_; - bitField0_ = (bitField0_ & ~0x00000010); - personalUrisBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPersonalUrisFieldBuilder() - : null; - } else { - personalUrisBuilder_.addAllMessages(other.personalUris_); - } - } - } - if (additionalContactInfoBuilder_ == null) { - if (!other.additionalContactInfo_.isEmpty()) { - if (additionalContactInfo_.isEmpty()) { - additionalContactInfo_ = other.additionalContactInfo_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.addAll(other.additionalContactInfo_); - } - onChanged(); - } - } else { - if (!other.additionalContactInfo_.isEmpty()) { - if (additionalContactInfoBuilder_.isEmpty()) { - additionalContactInfoBuilder_.dispose(); - additionalContactInfoBuilder_ = null; - additionalContactInfo_ = other.additionalContactInfo_; - bitField0_ = (bitField0_ & ~0x00000020); - additionalContactInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAdditionalContactInfoFieldBuilder() - : null; - } else { - additionalContactInfoBuilder_.addAllMessages(other.additionalContactInfo_); - } - } - } - if (employmentRecordsBuilder_ == null) { - if (!other.employmentRecords_.isEmpty()) { - if (employmentRecords_.isEmpty()) { - employmentRecords_ = other.employmentRecords_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureEmploymentRecordsIsMutable(); - employmentRecords_.addAll(other.employmentRecords_); - } - onChanged(); - } - } else { - if (!other.employmentRecords_.isEmpty()) { - if (employmentRecordsBuilder_.isEmpty()) { - employmentRecordsBuilder_.dispose(); - employmentRecordsBuilder_ = null; - employmentRecords_ = other.employmentRecords_; - bitField0_ = (bitField0_ & ~0x00000040); - employmentRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEmploymentRecordsFieldBuilder() - : null; - } else { - employmentRecordsBuilder_.addAllMessages(other.employmentRecords_); - } - } - } - if (educationRecordsBuilder_ == null) { - if (!other.educationRecords_.isEmpty()) { - if (educationRecords_.isEmpty()) { - educationRecords_ = other.educationRecords_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureEducationRecordsIsMutable(); - educationRecords_.addAll(other.educationRecords_); - } - onChanged(); - } - } else { - if (!other.educationRecords_.isEmpty()) { - if (educationRecordsBuilder_.isEmpty()) { - educationRecordsBuilder_.dispose(); - educationRecordsBuilder_ = null; - educationRecords_ = other.educationRecords_; - bitField0_ = (bitField0_ & ~0x00000080); - educationRecordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEducationRecordsFieldBuilder() - : null; - } else { - educationRecordsBuilder_.addAllMessages(other.educationRecords_); - } - } - } - if (skillsBuilder_ == null) { - if (!other.skills_.isEmpty()) { - if (skills_.isEmpty()) { - skills_ = other.skills_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureSkillsIsMutable(); - skills_.addAll(other.skills_); - } - onChanged(); - } - } else { - if (!other.skills_.isEmpty()) { - if (skillsBuilder_.isEmpty()) { - skillsBuilder_.dispose(); - skillsBuilder_ = null; - skills_ = other.skills_; - bitField0_ = (bitField0_ & ~0x00000100); - skillsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSkillsFieldBuilder() - : null; - } else { - skillsBuilder_.addAllMessages(other.skills_); - } - } - } - if (activitiesBuilder_ == null) { - if (!other.activities_.isEmpty()) { - if (activities_.isEmpty()) { - activities_ = other.activities_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureActivitiesIsMutable(); - activities_.addAll(other.activities_); - } - onChanged(); - } - } else { - if (!other.activities_.isEmpty()) { - if (activitiesBuilder_.isEmpty()) { - activitiesBuilder_.dispose(); - activitiesBuilder_ = null; - activities_ = other.activities_; - bitField0_ = (bitField0_ & ~0x00000200); - activitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getActivitiesFieldBuilder() - : null; - } else { - activitiesBuilder_.addAllMessages(other.activities_); - } - } - } - if (publicationsBuilder_ == null) { - if (!other.publications_.isEmpty()) { - if (publications_.isEmpty()) { - publications_ = other.publications_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensurePublicationsIsMutable(); - publications_.addAll(other.publications_); - } - onChanged(); - } - } else { - if (!other.publications_.isEmpty()) { - if (publicationsBuilder_.isEmpty()) { - publicationsBuilder_.dispose(); - publicationsBuilder_ = null; - publications_ = other.publications_; - bitField0_ = (bitField0_ & ~0x00000400); - publicationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPublicationsFieldBuilder() - : null; - } else { - publicationsBuilder_.addAllMessages(other.publications_); - } - } - } - if (patentsBuilder_ == null) { - if (!other.patents_.isEmpty()) { - if (patents_.isEmpty()) { - patents_ = other.patents_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensurePatentsIsMutable(); - patents_.addAll(other.patents_); - } - onChanged(); - } - } else { - if (!other.patents_.isEmpty()) { - if (patentsBuilder_.isEmpty()) { - patentsBuilder_.dispose(); - patentsBuilder_ = null; - patents_ = other.patents_; - bitField0_ = (bitField0_ & ~0x00000800); - patentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPatentsFieldBuilder() - : null; - } else { - patentsBuilder_.addAllMessages(other.patents_); - } - } - } - if (certificationsBuilder_ == null) { - if (!other.certifications_.isEmpty()) { - if (certifications_.isEmpty()) { - certifications_ = other.certifications_; - bitField0_ = (bitField0_ & ~0x00001000); - } else { - ensureCertificationsIsMutable(); - certifications_.addAll(other.certifications_); - } - onChanged(); - } - } else { - if (!other.certifications_.isEmpty()) { - if (certificationsBuilder_.isEmpty()) { - certificationsBuilder_.dispose(); - certificationsBuilder_ = null; - certifications_ = other.certifications_; - bitField0_ = (bitField0_ & ~0x00001000); - certificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCertificationsFieldBuilder() - : null; - } else { - certificationsBuilder_.addAllMessages(other.certifications_); - } - } - } - if (!other.applications_.isEmpty()) { - if (applications_.isEmpty()) { - applications_ = other.applications_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureApplicationsIsMutable(); - applications_.addAll(other.applications_); - } - onChanged(); - } - if (!other.assignments_.isEmpty()) { - if (assignments_.isEmpty()) { - assignments_ = other.assignments_; - bitField0_ = (bitField0_ & ~0x00004000); - } else { - ensureAssignmentsIsMutable(); - assignments_.addAll(other.assignments_); - } - onChanged(); - } - internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); - if (other.getProcessed() != false) { - setProcessed(other.getProcessed()); - } - if (!other.getKeywordSnippet().isEmpty()) { - keywordSnippet_ = other.keywordSnippet_; - onChanged(); - } - if (availabilitySignalsBuilder_ == null) { - if (!other.availabilitySignals_.isEmpty()) { - if (availabilitySignals_.isEmpty()) { - availabilitySignals_ = other.availabilitySignals_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.addAll(other.availabilitySignals_); - } - onChanged(); - } - } else { - if (!other.availabilitySignals_.isEmpty()) { - if (availabilitySignalsBuilder_.isEmpty()) { - availabilitySignalsBuilder_.dispose(); - availabilitySignalsBuilder_ = null; - availabilitySignals_ = other.availabilitySignals_; - bitField0_ = (bitField0_ & ~0x00010000); - availabilitySignalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAvailabilitySignalsFieldBuilder() - : null; - } else { - availabilitySignalsBuilder_.addAllMessages(other.availabilitySignals_); - } - } - } - if (derivedAddressesBuilder_ == null) { - if (!other.derivedAddresses_.isEmpty()) { - if (derivedAddresses_.isEmpty()) { - derivedAddresses_ = other.derivedAddresses_; - bitField0_ = (bitField0_ & ~0x00020000); - } else { - ensureDerivedAddressesIsMutable(); - derivedAddresses_.addAll(other.derivedAddresses_); - } - onChanged(); - } - } else { - if (!other.derivedAddresses_.isEmpty()) { - if (derivedAddressesBuilder_.isEmpty()) { - derivedAddressesBuilder_.dispose(); - derivedAddressesBuilder_ = null; - derivedAddresses_ = other.derivedAddresses_; - bitField0_ = (bitField0_ & ~0x00020000); - derivedAddressesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDerivedAddressesFieldBuilder() - : null; - } else { - derivedAddressesBuilder_.addAllMessages(other.derivedAddresses_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Profile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Profile) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object 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".
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object externalId_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string external_id = 2; - * - * @return The externalId. - */ - public java.lang.String getExternalId() { - java.lang.Object ref = externalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string external_id = 2; - * - * @return The bytes for externalId. - */ - public com.google.protobuf.ByteString getExternalIdBytes() { - java.lang.Object ref = externalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - externalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string external_id = 2; - * - * @param value The externalId to set. - * @return This builder for chaining. - */ - public Builder setExternalId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - externalId_ = value; - onChanged(); - 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.
-     * 
- * - * string external_id = 2; - * - * @return This builder for chaining. - */ - public Builder clearExternalId() { - - externalId_ = getDefaultInstance().getExternalId(); - onChanged(); - 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.
-     * 
- * - * string external_id = 2; - * - * @param value The bytes for externalId to set. - * @return This builder for chaining. - */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - externalId_ = value; - onChanged(); - return this; - } - - private java.lang.Object 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.
-     * 
- * - * string source = 3; - * - * @return The source. - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - source_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string source = 3; - * - * @return The bytes for source. - */ - public com.google.protobuf.ByteString getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string source = 3; - * - * @param value The source to set. - * @return This builder for chaining. - */ - public Builder setSource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - source_ = value; - onChanged(); - 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.
-     * 
- * - * string source = 3; - * - * @return This builder for chaining. - */ - public Builder clearSource() { - - source_ = getDefaultInstance().getSource(); - onChanged(); - 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.
-     * 
- * - * string source = 3; - * - * @param value The bytes for source to set. - * @return This builder for chaining. - */ - public Builder setSourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - source_ = value; - onChanged(); - return this; - } - - private java.lang.Object uri_ = ""; - /** - * - * - *
-     * The URI set by clients that links to this profile's client-side copy.
-     * The maximum number of bytes allowed is 4000.
-     * 
- * - * string uri = 4; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The URI set by clients that links to this profile's client-side copy.
-     * The maximum number of bytes allowed is 4000.
-     * 
- * - * string uri = 4; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The URI set by clients that links to this profile's client-side copy.
-     * The maximum number of bytes allowed is 4000.
-     * 
- * - * string uri = 4; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The URI set by clients that links to this profile's client-side copy.
-     * The maximum number of bytes allowed is 4000.
-     * 
- * - * string uri = 4; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * The URI set by clients that links to this profile's client-side copy.
-     * The maximum number of bytes allowed is 4000.
-     * 
- * - * string uri = 4; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private java.lang.Object groupId_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string group_id = 5; - * - * @return The groupId. - */ - public java.lang.String getGroupId() { - java.lang.Object ref = groupId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string group_id = 5; - * - * @return The bytes for groupId. - */ - public com.google.protobuf.ByteString getGroupIdBytes() { - java.lang.Object ref = groupId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - groupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string group_id = 5; - * - * @param value The groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - groupId_ = value; - onChanged(); - 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.
-     * 
- * - * string group_id = 5; - * - * @return This builder for chaining. - */ - public Builder clearGroupId() { - - groupId_ = getDefaultInstance().getGroupId(); - onChanged(); - 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.
-     * 
- * - * string group_id = 5; - * - * @param value The bytes for groupId to set. - * @return This builder for chaining. - */ - public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - groupId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue isHirable_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isHirableBuilder_; - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - * - * @return Whether the isHirable field is set. - */ - public boolean hasIsHirable() { - return isHirableBuilder_ != null || isHirable_ != null; - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - * - * @return The isHirable. - */ - public com.google.protobuf.BoolValue getIsHirable() { - if (isHirableBuilder_ == null) { - return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; - } else { - return isHirableBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - public Builder setIsHirable(com.google.protobuf.BoolValue value) { - if (isHirableBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - isHirable_ = value; - onChanged(); - } else { - isHirableBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - public Builder setIsHirable(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isHirableBuilder_ == null) { - isHirable_ = builderForValue.build(); - onChanged(); - } else { - isHirableBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - public Builder mergeIsHirable(com.google.protobuf.BoolValue value) { - if (isHirableBuilder_ == null) { - if (isHirable_ != null) { - isHirable_ = - com.google.protobuf.BoolValue.newBuilder(isHirable_).mergeFrom(value).buildPartial(); - } else { - isHirable_ = value; - } - onChanged(); - } else { - isHirableBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - public Builder clearIsHirable() { - if (isHirableBuilder_ == null) { - isHirable_ = null; - onChanged(); - } else { - isHirable_ = null; - isHirableBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - public com.google.protobuf.BoolValue.Builder getIsHirableBuilder() { - - onChanged(); - return getIsHirableFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - public com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder() { - if (isHirableBuilder_ != null) { - return isHirableBuilder_.getMessageOrBuilder(); - } else { - return isHirable_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isHirable_; - } - } - /** - * - * - *
-     * Indicates the hirable status of the candidate.
-     * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getIsHirableFieldBuilder() { - if (isHirableBuilder_ == null) { - isHirableBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsHirable(), getParentForChildren(), isClean()); - isHirable_ = null; - } - return isHirableBuilder_; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * The timestamp when the profile was first created at this source.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * The timestamp when the profile was last updated at this source.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.Timestamp candidateUpdateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - candidateUpdateTimeBuilder_; - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - * - * @return Whether the candidateUpdateTime field is set. - */ - public boolean hasCandidateUpdateTime() { - return candidateUpdateTimeBuilder_ != null || candidateUpdateTime_ != 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - * - * @return The candidateUpdateTime. - */ - public com.google.protobuf.Timestamp getCandidateUpdateTime() { - if (candidateUpdateTimeBuilder_ == null) { - return candidateUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : candidateUpdateTime_; - } else { - return candidateUpdateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - public Builder setCandidateUpdateTime(com.google.protobuf.Timestamp value) { - if (candidateUpdateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - candidateUpdateTime_ = value; - onChanged(); - } else { - candidateUpdateTimeBuilder_.setMessage(value); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - public Builder setCandidateUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (candidateUpdateTimeBuilder_ == null) { - candidateUpdateTime_ = builderForValue.build(); - onChanged(); - } else { - candidateUpdateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - public Builder mergeCandidateUpdateTime(com.google.protobuf.Timestamp value) { - if (candidateUpdateTimeBuilder_ == null) { - if (candidateUpdateTime_ != null) { - candidateUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(candidateUpdateTime_) - .mergeFrom(value) - .buildPartial(); - } else { - candidateUpdateTime_ = value; - } - onChanged(); - } else { - candidateUpdateTimeBuilder_.mergeFrom(value); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - public Builder clearCandidateUpdateTime() { - if (candidateUpdateTimeBuilder_ == null) { - candidateUpdateTime_ = null; - onChanged(); - } else { - candidateUpdateTime_ = null; - candidateUpdateTimeBuilder_ = null; - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - public com.google.protobuf.Timestamp.Builder getCandidateUpdateTimeBuilder() { - - onChanged(); - return getCandidateUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - public com.google.protobuf.TimestampOrBuilder getCandidateUpdateTimeOrBuilder() { - if (candidateUpdateTimeBuilder_ != null) { - return candidateUpdateTimeBuilder_.getMessageOrBuilder(); - } else { - return candidateUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : candidateUpdateTime_; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCandidateUpdateTimeFieldBuilder() { - if (candidateUpdateTimeBuilder_ == null) { - candidateUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCandidateUpdateTime(), getParentForChildren(), isClean()); - candidateUpdateTime_ = null; - } - return candidateUpdateTimeBuilder_; - } - - private com.google.protobuf.Timestamp resumeUpdateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - resumeUpdateTimeBuilder_; - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - * - * @return Whether the resumeUpdateTime field is set. - */ - public boolean hasResumeUpdateTime() { - return resumeUpdateTimeBuilder_ != null || resumeUpdateTime_ != 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - * - * @return The resumeUpdateTime. - */ - public com.google.protobuf.Timestamp getResumeUpdateTime() { - if (resumeUpdateTimeBuilder_ == null) { - return resumeUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : resumeUpdateTime_; - } else { - return resumeUpdateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - public Builder setResumeUpdateTime(com.google.protobuf.Timestamp value) { - if (resumeUpdateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resumeUpdateTime_ = value; - onChanged(); - } else { - resumeUpdateTimeBuilder_.setMessage(value); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - public Builder setResumeUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (resumeUpdateTimeBuilder_ == null) { - resumeUpdateTime_ = builderForValue.build(); - onChanged(); - } else { - resumeUpdateTimeBuilder_.setMessage(builderForValue.build()); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - public Builder mergeResumeUpdateTime(com.google.protobuf.Timestamp value) { - if (resumeUpdateTimeBuilder_ == null) { - if (resumeUpdateTime_ != null) { - resumeUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(resumeUpdateTime_) - .mergeFrom(value) - .buildPartial(); - } else { - resumeUpdateTime_ = value; - } - onChanged(); - } else { - resumeUpdateTimeBuilder_.mergeFrom(value); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - public Builder clearResumeUpdateTime() { - if (resumeUpdateTimeBuilder_ == null) { - resumeUpdateTime_ = null; - onChanged(); - } else { - resumeUpdateTime_ = null; - resumeUpdateTimeBuilder_ = null; - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - public com.google.protobuf.Timestamp.Builder getResumeUpdateTimeBuilder() { - - onChanged(); - return getResumeUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - public com.google.protobuf.TimestampOrBuilder getResumeUpdateTimeOrBuilder() { - if (resumeUpdateTimeBuilder_ != null) { - return resumeUpdateTimeBuilder_.getMessageOrBuilder(); - } else { - return resumeUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : resumeUpdateTime_; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getResumeUpdateTimeFieldBuilder() { - if (resumeUpdateTimeBuilder_ == null) { - resumeUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getResumeUpdateTime(), getParentForChildren(), isClean()); - resumeUpdateTime_ = null; - } - return resumeUpdateTimeBuilder_; - } - - private com.google.cloud.talent.v4beta1.Resume resume_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Resume, - com.google.cloud.talent.v4beta1.Resume.Builder, - com.google.cloud.talent.v4beta1.ResumeOrBuilder> - resumeBuilder_; - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - * - * @return Whether the resume field is set. - */ - public boolean hasResume() { - return resumeBuilder_ != null || resume_ != null; - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - * - * @return The resume. - */ - public com.google.cloud.talent.v4beta1.Resume getResume() { - if (resumeBuilder_ == null) { - return resume_ == null - ? com.google.cloud.talent.v4beta1.Resume.getDefaultInstance() - : resume_; - } else { - return resumeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - public Builder setResume(com.google.cloud.talent.v4beta1.Resume value) { - if (resumeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resume_ = value; - onChanged(); - } else { - resumeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - public Builder setResume(com.google.cloud.talent.v4beta1.Resume.Builder builderForValue) { - if (resumeBuilder_ == null) { - resume_ = builderForValue.build(); - onChanged(); - } else { - resumeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - public Builder mergeResume(com.google.cloud.talent.v4beta1.Resume value) { - if (resumeBuilder_ == null) { - if (resume_ != null) { - resume_ = - com.google.cloud.talent.v4beta1.Resume.newBuilder(resume_) - .mergeFrom(value) - .buildPartial(); - } else { - resume_ = value; - } - onChanged(); - } else { - resumeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - public Builder clearResume() { - if (resumeBuilder_ == null) { - resume_ = null; - onChanged(); - } else { - resume_ = null; - resumeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - public com.google.cloud.talent.v4beta1.Resume.Builder getResumeBuilder() { - - onChanged(); - return getResumeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - public com.google.cloud.talent.v4beta1.ResumeOrBuilder getResumeOrBuilder() { - if (resumeBuilder_ != null) { - return resumeBuilder_.getMessageOrBuilder(); - } else { - return resume_ == null - ? com.google.cloud.talent.v4beta1.Resume.getDefaultInstance() - : resume_; - } - } - /** - * - * - *
-     * The resume representing this profile.
-     * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Resume, - com.google.cloud.talent.v4beta1.Resume.Builder, - com.google.cloud.talent.v4beta1.ResumeOrBuilder> - getResumeFieldBuilder() { - if (resumeBuilder_ == null) { - resumeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Resume, - com.google.cloud.talent.v4beta1.Resume.Builder, - com.google.cloud.talent.v4beta1.ResumeOrBuilder>( - getResume(), getParentForChildren(), isClean()); - resume_ = null; - } - return resumeBuilder_; - } - - private java.util.List personNames_ = - java.util.Collections.emptyList(); - - private void ensurePersonNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - personNames_ = - new java.util.ArrayList(personNames_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonName, - com.google.cloud.talent.v4beta1.PersonName.Builder, - com.google.cloud.talent.v4beta1.PersonNameOrBuilder> - personNamesBuilder_; - - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public java.util.List getPersonNamesList() { - if (personNamesBuilder_ == null) { - return java.util.Collections.unmodifiableList(personNames_); - } else { - return personNamesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public int getPersonNamesCount() { - if (personNamesBuilder_ == null) { - return personNames_.size(); - } else { - return personNamesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index) { - if (personNamesBuilder_ == null) { - return personNames_.get(index); - } else { - return personNamesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder setPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { - if (personNamesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonNamesIsMutable(); - personNames_.set(index, value); - onChanged(); - } else { - personNamesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder setPersonNames( - int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { - if (personNamesBuilder_ == null) { - ensurePersonNamesIsMutable(); - personNames_.set(index, builderForValue.build()); - onChanged(); - } else { - personNamesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder addPersonNames(com.google.cloud.talent.v4beta1.PersonName value) { - if (personNamesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonNamesIsMutable(); - personNames_.add(value); - onChanged(); - } else { - personNamesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder addPersonNames(int index, com.google.cloud.talent.v4beta1.PersonName value) { - if (personNamesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonNamesIsMutable(); - personNames_.add(index, value); - onChanged(); - } else { - personNamesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder addPersonNames( - com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { - if (personNamesBuilder_ == null) { - ensurePersonNamesIsMutable(); - personNames_.add(builderForValue.build()); - onChanged(); - } else { - personNamesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder addPersonNames( - int index, com.google.cloud.talent.v4beta1.PersonName.Builder builderForValue) { - if (personNamesBuilder_ == null) { - ensurePersonNamesIsMutable(); - personNames_.add(index, builderForValue.build()); - onChanged(); - } else { - personNamesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder addAllPersonNames( - java.lang.Iterable values) { - if (personNamesBuilder_ == null) { - ensurePersonNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personNames_); - onChanged(); - } else { - personNamesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder clearPersonNames() { - if (personNamesBuilder_ == null) { - personNames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - personNamesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public Builder removePersonNames(int index) { - if (personNamesBuilder_ == null) { - ensurePersonNamesIsMutable(); - personNames_.remove(index); - onChanged(); - } else { - personNamesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public com.google.cloud.talent.v4beta1.PersonName.Builder getPersonNamesBuilder(int index) { - return getPersonNamesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index) { - if (personNamesBuilder_ == null) { - return personNames_.get(index); - } else { - return personNamesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public java.util.List - getPersonNamesOrBuilderList() { - if (personNamesBuilder_ != null) { - return personNamesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(personNames_); - } - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder() { - return getPersonNamesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public com.google.cloud.talent.v4beta1.PersonName.Builder addPersonNamesBuilder(int index) { - return getPersonNamesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.PersonName.getDefaultInstance()); - } - /** - * - * - *
-     * The names of the candidate this profile references.
-     * Currently only one person name is supported.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - public java.util.List - getPersonNamesBuilderList() { - return getPersonNamesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonName, - com.google.cloud.talent.v4beta1.PersonName.Builder, - com.google.cloud.talent.v4beta1.PersonNameOrBuilder> - getPersonNamesFieldBuilder() { - if (personNamesBuilder_ == null) { - personNamesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonName, - com.google.cloud.talent.v4beta1.PersonName.Builder, - com.google.cloud.talent.v4beta1.PersonNameOrBuilder>( - personNames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - personNames_ = null; - } - return personNamesBuilder_; - } - - private java.util.List addresses_ = - java.util.Collections.emptyList(); - - private void ensureAddressesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - addresses_ = new java.util.ArrayList(addresses_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder> - addressesBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public java.util.List getAddressesList() { - if (addressesBuilder_ == null) { - return java.util.Collections.unmodifiableList(addresses_); - } else { - return addressesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public int getAddressesCount() { - if (addressesBuilder_ == null) { - return addresses_.size(); - } else { - return addressesBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public com.google.cloud.talent.v4beta1.Address getAddresses(int index) { - if (addressesBuilder_ == null) { - return addresses_.get(index); - } else { - return addressesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder setAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { - if (addressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.set(index, value); - onChanged(); - } else { - addressesBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder setAddresses( - int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { - if (addressesBuilder_ == null) { - ensureAddressesIsMutable(); - addresses_.set(index, builderForValue.build()); - onChanged(); - } else { - addressesBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder addAddresses(com.google.cloud.talent.v4beta1.Address value) { - if (addressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(value); - onChanged(); - } else { - addressesBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder addAddresses(int index, com.google.cloud.talent.v4beta1.Address value) { - if (addressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddressesIsMutable(); - addresses_.add(index, value); - onChanged(); - } else { - addressesBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder addAddresses(com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { - if (addressesBuilder_ == null) { - ensureAddressesIsMutable(); - addresses_.add(builderForValue.build()); - onChanged(); - } else { - addressesBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder addAddresses( - int index, com.google.cloud.talent.v4beta1.Address.Builder builderForValue) { - if (addressesBuilder_ == null) { - ensureAddressesIsMutable(); - addresses_.add(index, builderForValue.build()); - onChanged(); - } else { - addressesBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder addAllAddresses( - java.lang.Iterable values) { - if (addressesBuilder_ == null) { - ensureAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, addresses_); - onChanged(); - } else { - addressesBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder clearAddresses() { - if (addressesBuilder_ == null) { - addresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - addressesBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public Builder removeAddresses(int index) { - if (addressesBuilder_ == null) { - ensureAddressesIsMutable(); - addresses_.remove(index); - onChanged(); - } else { - addressesBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public com.google.cloud.talent.v4beta1.Address.Builder getAddressesBuilder(int index) { - return getAddressesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index) { - if (addressesBuilder_ == null) { - return addresses_.get(index); - } else { - return addressesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public java.util.List - getAddressesOrBuilderList() { - if (addressesBuilder_ != null) { - return addressesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder() { - return getAddressesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public com.google.cloud.talent.v4beta1.Address.Builder addAddressesBuilder(int index) { - return getAddressesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Address.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - public java.util.List - getAddressesBuilderList() { - return getAddressesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder> - getAddressesFieldBuilder() { - if (addressesBuilder_ == null) { - addressesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Address, - com.google.cloud.talent.v4beta1.Address.Builder, - com.google.cloud.talent.v4beta1.AddressOrBuilder>( - addresses_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - addresses_ = null; - } - return addressesBuilder_; - } - - private java.util.List emailAddresses_ = - java.util.Collections.emptyList(); - - private void ensureEmailAddressesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - emailAddresses_ = - new java.util.ArrayList(emailAddresses_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Email, - com.google.cloud.talent.v4beta1.Email.Builder, - com.google.cloud.talent.v4beta1.EmailOrBuilder> - emailAddressesBuilder_; - - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public java.util.List getEmailAddressesList() { - if (emailAddressesBuilder_ == null) { - return java.util.Collections.unmodifiableList(emailAddresses_); - } else { - return emailAddressesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public int getEmailAddressesCount() { - if (emailAddressesBuilder_ == null) { - return emailAddresses_.size(); - } else { - return emailAddressesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index) { - if (emailAddressesBuilder_ == null) { - return emailAddresses_.get(index); - } else { - return emailAddressesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder setEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { - if (emailAddressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); - emailAddresses_.set(index, value); - onChanged(); - } else { - emailAddressesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder setEmailAddresses( - int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { - if (emailAddressesBuilder_ == null) { - ensureEmailAddressesIsMutable(); - emailAddresses_.set(index, builderForValue.build()); - onChanged(); - } else { - emailAddressesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder addEmailAddresses(com.google.cloud.talent.v4beta1.Email value) { - if (emailAddressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); - emailAddresses_.add(value); - onChanged(); - } else { - emailAddressesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder addEmailAddresses(int index, com.google.cloud.talent.v4beta1.Email value) { - if (emailAddressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmailAddressesIsMutable(); - emailAddresses_.add(index, value); - onChanged(); - } else { - emailAddressesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder addEmailAddresses( - com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { - if (emailAddressesBuilder_ == null) { - ensureEmailAddressesIsMutable(); - emailAddresses_.add(builderForValue.build()); - onChanged(); - } else { - emailAddressesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder addEmailAddresses( - int index, com.google.cloud.talent.v4beta1.Email.Builder builderForValue) { - if (emailAddressesBuilder_ == null) { - ensureEmailAddressesIsMutable(); - emailAddresses_.add(index, builderForValue.build()); - onChanged(); - } else { - emailAddressesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder addAllEmailAddresses( - java.lang.Iterable values) { - if (emailAddressesBuilder_ == null) { - ensureEmailAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emailAddresses_); - onChanged(); - } else { - emailAddressesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder clearEmailAddresses() { - if (emailAddressesBuilder_ == null) { - emailAddresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - emailAddressesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public Builder removeEmailAddresses(int index) { - if (emailAddressesBuilder_ == null) { - ensureEmailAddressesIsMutable(); - emailAddresses_.remove(index); - onChanged(); - } else { - emailAddressesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public com.google.cloud.talent.v4beta1.Email.Builder getEmailAddressesBuilder(int index) { - return getEmailAddressesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index) { - if (emailAddressesBuilder_ == null) { - return emailAddresses_.get(index); - } else { - return emailAddressesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public java.util.List - getEmailAddressesOrBuilderList() { - if (emailAddressesBuilder_ != null) { - return emailAddressesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(emailAddresses_); - } - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder() { - return getEmailAddressesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public com.google.cloud.talent.v4beta1.Email.Builder addEmailAddressesBuilder(int index) { - return getEmailAddressesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Email.getDefaultInstance()); - } - /** - * - * - *
-     * The candidate's email addresses.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - public java.util.List - getEmailAddressesBuilderList() { - return getEmailAddressesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Email, - com.google.cloud.talent.v4beta1.Email.Builder, - com.google.cloud.talent.v4beta1.EmailOrBuilder> - getEmailAddressesFieldBuilder() { - if (emailAddressesBuilder_ == null) { - emailAddressesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Email, - com.google.cloud.talent.v4beta1.Email.Builder, - com.google.cloud.talent.v4beta1.EmailOrBuilder>( - emailAddresses_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - emailAddresses_ = null; - } - return emailAddressesBuilder_; - } - - private java.util.List phoneNumbers_ = - java.util.Collections.emptyList(); - - private void ensurePhoneNumbersIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - phoneNumbers_ = - new java.util.ArrayList(phoneNumbers_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Phone, - com.google.cloud.talent.v4beta1.Phone.Builder, - com.google.cloud.talent.v4beta1.PhoneOrBuilder> - phoneNumbersBuilder_; - - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public java.util.List getPhoneNumbersList() { - if (phoneNumbersBuilder_ == null) { - return java.util.Collections.unmodifiableList(phoneNumbers_); - } else { - return phoneNumbersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public int getPhoneNumbersCount() { - if (phoneNumbersBuilder_ == null) { - return phoneNumbers_.size(); - } else { - return phoneNumbersBuilder_.getCount(); - } - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index) { - if (phoneNumbersBuilder_ == null) { - return phoneNumbers_.get(index); - } else { - return phoneNumbersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder setPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { - if (phoneNumbersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhoneNumbersIsMutable(); - phoneNumbers_.set(index, value); - onChanged(); - } else { - phoneNumbersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder setPhoneNumbers( - int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { - if (phoneNumbersBuilder_ == null) { - ensurePhoneNumbersIsMutable(); - phoneNumbers_.set(index, builderForValue.build()); - onChanged(); - } else { - phoneNumbersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone value) { - if (phoneNumbersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhoneNumbersIsMutable(); - phoneNumbers_.add(value); - onChanged(); - } else { - phoneNumbersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder addPhoneNumbers(int index, com.google.cloud.talent.v4beta1.Phone value) { - if (phoneNumbersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhoneNumbersIsMutable(); - phoneNumbers_.add(index, value); - onChanged(); - } else { - phoneNumbersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder addPhoneNumbers(com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { - if (phoneNumbersBuilder_ == null) { - ensurePhoneNumbersIsMutable(); - phoneNumbers_.add(builderForValue.build()); - onChanged(); - } else { - phoneNumbersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder addPhoneNumbers( - int index, com.google.cloud.talent.v4beta1.Phone.Builder builderForValue) { - if (phoneNumbersBuilder_ == null) { - ensurePhoneNumbersIsMutable(); - phoneNumbers_.add(index, builderForValue.build()); - onChanged(); - } else { - phoneNumbersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder addAllPhoneNumbers( - java.lang.Iterable values) { - if (phoneNumbersBuilder_ == null) { - ensurePhoneNumbersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phoneNumbers_); - onChanged(); - } else { - phoneNumbersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder clearPhoneNumbers() { - if (phoneNumbersBuilder_ == null) { - phoneNumbers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - phoneNumbersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public Builder removePhoneNumbers(int index) { - if (phoneNumbersBuilder_ == null) { - ensurePhoneNumbersIsMutable(); - phoneNumbers_.remove(index); - onChanged(); - } else { - phoneNumbersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public com.google.cloud.talent.v4beta1.Phone.Builder getPhoneNumbersBuilder(int index) { - return getPhoneNumbersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index) { - if (phoneNumbersBuilder_ == null) { - return phoneNumbers_.get(index); - } else { - return phoneNumbersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public java.util.List - getPhoneNumbersOrBuilderList() { - if (phoneNumbersBuilder_ != null) { - return phoneNumbersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(phoneNumbers_); - } - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder() { - return getPhoneNumbersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public com.google.cloud.talent.v4beta1.Phone.Builder addPhoneNumbersBuilder(int index) { - return getPhoneNumbersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Phone.getDefaultInstance()); - } - /** - * - * - *
-     * The candidate's phone number(s).
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - public java.util.List - getPhoneNumbersBuilderList() { - return getPhoneNumbersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Phone, - com.google.cloud.talent.v4beta1.Phone.Builder, - com.google.cloud.talent.v4beta1.PhoneOrBuilder> - getPhoneNumbersFieldBuilder() { - if (phoneNumbersBuilder_ == null) { - phoneNumbersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Phone, - com.google.cloud.talent.v4beta1.Phone.Builder, - com.google.cloud.talent.v4beta1.PhoneOrBuilder>( - phoneNumbers_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - phoneNumbers_ = null; - } - return phoneNumbersBuilder_; - } - - private java.util.List personalUris_ = - java.util.Collections.emptyList(); - - private void ensurePersonalUrisIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - personalUris_ = - new java.util.ArrayList(personalUris_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonalUri, - com.google.cloud.talent.v4beta1.PersonalUri.Builder, - com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> - personalUrisBuilder_; - - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public java.util.List getPersonalUrisList() { - if (personalUrisBuilder_ == null) { - return java.util.Collections.unmodifiableList(personalUris_); - } else { - return personalUrisBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public int getPersonalUrisCount() { - if (personalUrisBuilder_ == null) { - return personalUris_.size(); - } else { - return personalUrisBuilder_.getCount(); - } - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index) { - if (personalUrisBuilder_ == null) { - return personalUris_.get(index); - } else { - return personalUrisBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder setPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { - if (personalUrisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonalUrisIsMutable(); - personalUris_.set(index, value); - onChanged(); - } else { - personalUrisBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder setPersonalUris( - int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { - if (personalUrisBuilder_ == null) { - ensurePersonalUrisIsMutable(); - personalUris_.set(index, builderForValue.build()); - onChanged(); - } else { - personalUrisBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder addPersonalUris(com.google.cloud.talent.v4beta1.PersonalUri value) { - if (personalUrisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonalUrisIsMutable(); - personalUris_.add(value); - onChanged(); - } else { - personalUrisBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder addPersonalUris(int index, com.google.cloud.talent.v4beta1.PersonalUri value) { - if (personalUrisBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonalUrisIsMutable(); - personalUris_.add(index, value); - onChanged(); - } else { - personalUrisBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder addPersonalUris( - com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { - if (personalUrisBuilder_ == null) { - ensurePersonalUrisIsMutable(); - personalUris_.add(builderForValue.build()); - onChanged(); - } else { - personalUrisBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder addPersonalUris( - int index, com.google.cloud.talent.v4beta1.PersonalUri.Builder builderForValue) { - if (personalUrisBuilder_ == null) { - ensurePersonalUrisIsMutable(); - personalUris_.add(index, builderForValue.build()); - onChanged(); - } else { - personalUrisBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder addAllPersonalUris( - java.lang.Iterable values) { - if (personalUrisBuilder_ == null) { - ensurePersonalUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personalUris_); - onChanged(); - } else { - personalUrisBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder clearPersonalUris() { - if (personalUrisBuilder_ == null) { - personalUris_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - personalUrisBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public Builder removePersonalUris(int index) { - if (personalUrisBuilder_ == null) { - ensurePersonalUrisIsMutable(); - personalUris_.remove(index); - onChanged(); - } else { - personalUrisBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public com.google.cloud.talent.v4beta1.PersonalUri.Builder getPersonalUrisBuilder(int index) { - return getPersonalUrisFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder( - int index) { - if (personalUrisBuilder_ == null) { - return personalUris_.get(index); - } else { - return personalUrisBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public java.util.List - getPersonalUrisOrBuilderList() { - if (personalUrisBuilder_ != null) { - return personalUrisBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(personalUris_); - } - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder() { - return getPersonalUrisFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public com.google.cloud.talent.v4beta1.PersonalUri.Builder addPersonalUrisBuilder(int index) { - return getPersonalUrisFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.PersonalUri.getDefaultInstance()); - } - /** - * - * - *
-     * The candidate's personal URIs.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - public java.util.List - getPersonalUrisBuilderList() { - return getPersonalUrisFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonalUri, - com.google.cloud.talent.v4beta1.PersonalUri.Builder, - com.google.cloud.talent.v4beta1.PersonalUriOrBuilder> - getPersonalUrisFieldBuilder() { - if (personalUrisBuilder_ == null) { - personalUrisBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonalUri, - com.google.cloud.talent.v4beta1.PersonalUri.Builder, - com.google.cloud.talent.v4beta1.PersonalUriOrBuilder>( - personalUris_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - personalUris_ = null; - } - return personalUrisBuilder_; - } - - private java.util.List - additionalContactInfo_ = java.util.Collections.emptyList(); - - private void ensureAdditionalContactInfoIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - additionalContactInfo_ = - new java.util.ArrayList( - additionalContactInfo_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AdditionalContactInfo, - com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, - com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> - additionalContactInfoBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public java.util.List - getAdditionalContactInfoList() { - if (additionalContactInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(additionalContactInfo_); - } else { - return additionalContactInfoBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public int getAdditionalContactInfoCount() { - if (additionalContactInfoBuilder_ == null) { - return additionalContactInfo_.size(); - } else { - return additionalContactInfoBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo( - int index) { - if (additionalContactInfoBuilder_ == null) { - return additionalContactInfo_.get(index); - } else { - return additionalContactInfoBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder setAdditionalContactInfo( - int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { - if (additionalContactInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.set(index, value); - onChanged(); - } else { - additionalContactInfoBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder setAdditionalContactInfo( - int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { - if (additionalContactInfoBuilder_ == null) { - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - additionalContactInfoBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder addAdditionalContactInfo( - com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { - if (additionalContactInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.add(value); - onChanged(); - } else { - additionalContactInfoBuilder_.addMessage(value); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder addAdditionalContactInfo( - int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo value) { - if (additionalContactInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.add(index, value); - onChanged(); - } else { - additionalContactInfoBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder addAdditionalContactInfo( - com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { - if (additionalContactInfoBuilder_ == null) { - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.add(builderForValue.build()); - onChanged(); - } else { - additionalContactInfoBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder addAdditionalContactInfo( - int index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder builderForValue) { - if (additionalContactInfoBuilder_ == null) { - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - additionalContactInfoBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder addAllAdditionalContactInfo( - java.lang.Iterable - values) { - if (additionalContactInfoBuilder_ == null) { - ensureAdditionalContactInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalContactInfo_); - onChanged(); - } else { - additionalContactInfoBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder clearAdditionalContactInfo() { - if (additionalContactInfoBuilder_ == null) { - additionalContactInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - additionalContactInfoBuilder_.clear(); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public Builder removeAdditionalContactInfo(int index) { - if (additionalContactInfoBuilder_ == null) { - ensureAdditionalContactInfoIsMutable(); - additionalContactInfo_.remove(index); - onChanged(); - } else { - additionalContactInfoBuilder_.remove(index); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder - getAdditionalContactInfoBuilder(int index) { - return getAdditionalContactInfoFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder - getAdditionalContactInfoOrBuilder(int index) { - if (additionalContactInfoBuilder_ == null) { - return additionalContactInfo_.get(index); - } else { - return additionalContactInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public java.util.List - getAdditionalContactInfoOrBuilderList() { - if (additionalContactInfoBuilder_ != null) { - return additionalContactInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(additionalContactInfo_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder - addAdditionalContactInfoBuilder() { - return getAdditionalContactInfoFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder - addAdditionalContactInfoBuilder(int index) { - return getAdditionalContactInfoFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.AdditionalContactInfo.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - public java.util.List - getAdditionalContactInfoBuilderList() { - return getAdditionalContactInfoFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AdditionalContactInfo, - com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, - com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder> - getAdditionalContactInfoFieldBuilder() { - if (additionalContactInfoBuilder_ == null) { - additionalContactInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AdditionalContactInfo, - com.google.cloud.talent.v4beta1.AdditionalContactInfo.Builder, - com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder>( - additionalContactInfo_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - additionalContactInfo_ = null; - } - return additionalContactInfoBuilder_; - } - - private java.util.List employmentRecords_ = - java.util.Collections.emptyList(); - - private void ensureEmploymentRecordsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - employmentRecords_ = - new java.util.ArrayList( - employmentRecords_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EmploymentRecord, - com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, - com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> - employmentRecordsBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public java.util.List - getEmploymentRecordsList() { - if (employmentRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(employmentRecords_); - } else { - return employmentRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public int getEmploymentRecordsCount() { - if (employmentRecordsBuilder_ == null) { - return employmentRecords_.size(); - } else { - return employmentRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index) { - if (employmentRecordsBuilder_ == null) { - return employmentRecords_.get(index); - } else { - return employmentRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder setEmploymentRecords( - int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { - if (employmentRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmploymentRecordsIsMutable(); - employmentRecords_.set(index, value); - onChanged(); - } else { - employmentRecordsBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder setEmploymentRecords( - int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { - if (employmentRecordsBuilder_ == null) { - ensureEmploymentRecordsIsMutable(); - employmentRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - employmentRecordsBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder addEmploymentRecords(com.google.cloud.talent.v4beta1.EmploymentRecord value) { - if (employmentRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmploymentRecordsIsMutable(); - employmentRecords_.add(value); - onChanged(); - } else { - employmentRecordsBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder addEmploymentRecords( - int index, com.google.cloud.talent.v4beta1.EmploymentRecord value) { - if (employmentRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmploymentRecordsIsMutable(); - employmentRecords_.add(index, value); - onChanged(); - } else { - employmentRecordsBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder addEmploymentRecords( - com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { - if (employmentRecordsBuilder_ == null) { - ensureEmploymentRecordsIsMutable(); - employmentRecords_.add(builderForValue.build()); - onChanged(); - } else { - employmentRecordsBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder addEmploymentRecords( - int index, com.google.cloud.talent.v4beta1.EmploymentRecord.Builder builderForValue) { - if (employmentRecordsBuilder_ == null) { - ensureEmploymentRecordsIsMutable(); - employmentRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - employmentRecordsBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder addAllEmploymentRecords( - java.lang.Iterable values) { - if (employmentRecordsBuilder_ == null) { - ensureEmploymentRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employmentRecords_); - onChanged(); - } else { - employmentRecordsBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder clearEmploymentRecords() { - if (employmentRecordsBuilder_ == null) { - employmentRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - employmentRecordsBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public Builder removeEmploymentRecords(int index) { - if (employmentRecordsBuilder_ == null) { - ensureEmploymentRecordsIsMutable(); - employmentRecords_.remove(index); - onChanged(); - } else { - employmentRecordsBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder getEmploymentRecordsBuilder( - int index) { - return getEmploymentRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( - int index) { - if (employmentRecordsBuilder_ == null) { - return employmentRecords_.get(index); - } else { - return employmentRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public java.util.List - getEmploymentRecordsOrBuilderList() { - if (employmentRecordsBuilder_ != null) { - return employmentRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(employmentRecords_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder() { - return getEmploymentRecordsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public com.google.cloud.talent.v4beta1.EmploymentRecord.Builder addEmploymentRecordsBuilder( - int index) { - return getEmploymentRecordsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.EmploymentRecord.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - public java.util.List - getEmploymentRecordsBuilderList() { - return getEmploymentRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EmploymentRecord, - com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, - com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder> - getEmploymentRecordsFieldBuilder() { - if (employmentRecordsBuilder_ == null) { - employmentRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EmploymentRecord, - com.google.cloud.talent.v4beta1.EmploymentRecord.Builder, - com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder>( - employmentRecords_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - employmentRecords_ = null; - } - return employmentRecordsBuilder_; - } - - private java.util.List educationRecords_ = - java.util.Collections.emptyList(); - - private void ensureEducationRecordsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - educationRecords_ = - new java.util.ArrayList( - educationRecords_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EducationRecord, - com.google.cloud.talent.v4beta1.EducationRecord.Builder, - com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> - educationRecordsBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public java.util.List - getEducationRecordsList() { - if (educationRecordsBuilder_ == null) { - return java.util.Collections.unmodifiableList(educationRecords_); - } else { - return educationRecordsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public int getEducationRecordsCount() { - if (educationRecordsBuilder_ == null) { - return educationRecords_.size(); - } else { - return educationRecordsBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index) { - if (educationRecordsBuilder_ == null) { - return educationRecords_.get(index); - } else { - return educationRecordsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder setEducationRecords( - int index, com.google.cloud.talent.v4beta1.EducationRecord value) { - if (educationRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEducationRecordsIsMutable(); - educationRecords_.set(index, value); - onChanged(); - } else { - educationRecordsBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder setEducationRecords( - int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { - if (educationRecordsBuilder_ == null) { - ensureEducationRecordsIsMutable(); - educationRecords_.set(index, builderForValue.build()); - onChanged(); - } else { - educationRecordsBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder addEducationRecords(com.google.cloud.talent.v4beta1.EducationRecord value) { - if (educationRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEducationRecordsIsMutable(); - educationRecords_.add(value); - onChanged(); - } else { - educationRecordsBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder addEducationRecords( - int index, com.google.cloud.talent.v4beta1.EducationRecord value) { - if (educationRecordsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEducationRecordsIsMutable(); - educationRecords_.add(index, value); - onChanged(); - } else { - educationRecordsBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder addEducationRecords( - com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { - if (educationRecordsBuilder_ == null) { - ensureEducationRecordsIsMutable(); - educationRecords_.add(builderForValue.build()); - onChanged(); - } else { - educationRecordsBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder addEducationRecords( - int index, com.google.cloud.talent.v4beta1.EducationRecord.Builder builderForValue) { - if (educationRecordsBuilder_ == null) { - ensureEducationRecordsIsMutable(); - educationRecords_.add(index, builderForValue.build()); - onChanged(); - } else { - educationRecordsBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder addAllEducationRecords( - java.lang.Iterable values) { - if (educationRecordsBuilder_ == null) { - ensureEducationRecordsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationRecords_); - onChanged(); - } else { - educationRecordsBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder clearEducationRecords() { - if (educationRecordsBuilder_ == null) { - educationRecords_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - educationRecordsBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public Builder removeEducationRecords(int index) { - if (educationRecordsBuilder_ == null) { - ensureEducationRecordsIsMutable(); - educationRecords_.remove(index); - onChanged(); - } else { - educationRecordsBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public com.google.cloud.talent.v4beta1.EducationRecord.Builder getEducationRecordsBuilder( - int index) { - return getEducationRecordsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder( - int index) { - if (educationRecordsBuilder_ == null) { - return educationRecords_.get(index); - } else { - return educationRecordsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public java.util.List - getEducationRecordsOrBuilderList() { - if (educationRecordsBuilder_ != null) { - return educationRecordsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(educationRecords_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder() { - return getEducationRecordsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public com.google.cloud.talent.v4beta1.EducationRecord.Builder addEducationRecordsBuilder( - int index) { - return getEducationRecordsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.EducationRecord.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - public java.util.List - getEducationRecordsBuilderList() { - return getEducationRecordsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EducationRecord, - com.google.cloud.talent.v4beta1.EducationRecord.Builder, - com.google.cloud.talent.v4beta1.EducationRecordOrBuilder> - getEducationRecordsFieldBuilder() { - if (educationRecordsBuilder_ == null) { - educationRecordsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EducationRecord, - com.google.cloud.talent.v4beta1.EducationRecord.Builder, - com.google.cloud.talent.v4beta1.EducationRecordOrBuilder>( - educationRecords_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - educationRecords_ = null; - } - return educationRecordsBuilder_; - } - - private java.util.List skills_ = - java.util.Collections.emptyList(); - - private void ensureSkillsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - skills_ = new java.util.ArrayList(skills_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder> - skillsBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public java.util.List getSkillsList() { - if (skillsBuilder_ == null) { - return java.util.Collections.unmodifiableList(skills_); - } else { - return skillsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public int getSkillsCount() { - if (skillsBuilder_ == null) { - return skills_.size(); - } else { - return skillsBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public com.google.cloud.talent.v4beta1.Skill getSkills(int index) { - if (skillsBuilder_ == null) { - return skills_.get(index); - } else { - return skillsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder setSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { - if (skillsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsIsMutable(); - skills_.set(index, value); - onChanged(); - } else { - skillsBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder setSkills( - int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.set(index, builderForValue.build()); - onChanged(); - } else { - skillsBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder addSkills(com.google.cloud.talent.v4beta1.Skill value) { - if (skillsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsIsMutable(); - skills_.add(value); - onChanged(); - } else { - skillsBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder addSkills(int index, com.google.cloud.talent.v4beta1.Skill value) { - if (skillsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsIsMutable(); - skills_.add(index, value); - onChanged(); - } else { - skillsBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder addSkills(com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.add(builderForValue.build()); - onChanged(); - } else { - skillsBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder addSkills( - int index, com.google.cloud.talent.v4beta1.Skill.Builder builderForValue) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.add(index, builderForValue.build()); - onChanged(); - } else { - skillsBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder addAllSkills( - java.lang.Iterable values) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); - onChanged(); - } else { - skillsBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder clearSkills() { - if (skillsBuilder_ == null) { - skills_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - skillsBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public Builder removeSkills(int index) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.remove(index); - onChanged(); - } else { - skillsBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder getSkillsBuilder(int index) { - return getSkillsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index) { - if (skillsBuilder_ == null) { - return skills_.get(index); - } else { - return skillsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public java.util.List - getSkillsOrBuilderList() { - if (skillsBuilder_ != null) { - return skillsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder() { - return getSkillsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public com.google.cloud.talent.v4beta1.Skill.Builder addSkillsBuilder(int index) { - return getSkillsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - public java.util.List getSkillsBuilderList() { - return getSkillsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder> - getSkillsFieldBuilder() { - if (skillsBuilder_ == null) { - skillsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Skill, - com.google.cloud.talent.v4beta1.Skill.Builder, - com.google.cloud.talent.v4beta1.SkillOrBuilder>( - skills_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); - skills_ = null; - } - return skillsBuilder_; - } - - private java.util.List activities_ = - java.util.Collections.emptyList(); - - private void ensureActivitiesIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - activities_ = - new java.util.ArrayList(activities_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Activity, - com.google.cloud.talent.v4beta1.Activity.Builder, - com.google.cloud.talent.v4beta1.ActivityOrBuilder> - activitiesBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public java.util.List getActivitiesList() { - if (activitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(activities_); - } else { - return activitiesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public int getActivitiesCount() { - if (activitiesBuilder_ == null) { - return activities_.size(); - } else { - return activitiesBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public com.google.cloud.talent.v4beta1.Activity getActivities(int index) { - if (activitiesBuilder_ == null) { - return activities_.get(index); - } else { - return activitiesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder setActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { - if (activitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivitiesIsMutable(); - activities_.set(index, value); - onChanged(); - } else { - activitiesBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder setActivities( - int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { - if (activitiesBuilder_ == null) { - ensureActivitiesIsMutable(); - activities_.set(index, builderForValue.build()); - onChanged(); - } else { - activitiesBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder addActivities(com.google.cloud.talent.v4beta1.Activity value) { - if (activitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivitiesIsMutable(); - activities_.add(value); - onChanged(); - } else { - activitiesBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder addActivities(int index, com.google.cloud.talent.v4beta1.Activity value) { - if (activitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivitiesIsMutable(); - activities_.add(index, value); - onChanged(); - } else { - activitiesBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder addActivities(com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { - if (activitiesBuilder_ == null) { - ensureActivitiesIsMutable(); - activities_.add(builderForValue.build()); - onChanged(); - } else { - activitiesBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder addActivities( - int index, com.google.cloud.talent.v4beta1.Activity.Builder builderForValue) { - if (activitiesBuilder_ == null) { - ensureActivitiesIsMutable(); - activities_.add(index, builderForValue.build()); - onChanged(); - } else { - activitiesBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder addAllActivities( - java.lang.Iterable values) { - if (activitiesBuilder_ == null) { - ensureActivitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activities_); - onChanged(); - } else { - activitiesBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder clearActivities() { - if (activitiesBuilder_ == null) { - activities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - activitiesBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public Builder removeActivities(int index) { - if (activitiesBuilder_ == null) { - ensureActivitiesIsMutable(); - activities_.remove(index); - onChanged(); - } else { - activitiesBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public com.google.cloud.talent.v4beta1.Activity.Builder getActivitiesBuilder(int index) { - return getActivitiesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index) { - if (activitiesBuilder_ == null) { - return activities_.get(index); - } else { - return activitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public java.util.List - getActivitiesOrBuilderList() { - if (activitiesBuilder_ != null) { - return activitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder() { - return getActivitiesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public com.google.cloud.talent.v4beta1.Activity.Builder addActivitiesBuilder(int index) { - return getActivitiesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Activity.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - public java.util.List - getActivitiesBuilderList() { - return getActivitiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Activity, - com.google.cloud.talent.v4beta1.Activity.Builder, - com.google.cloud.talent.v4beta1.ActivityOrBuilder> - getActivitiesFieldBuilder() { - if (activitiesBuilder_ == null) { - activitiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Activity, - com.google.cloud.talent.v4beta1.Activity.Builder, - com.google.cloud.talent.v4beta1.ActivityOrBuilder>( - activities_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); - activities_ = null; - } - return activitiesBuilder_; - } - - private java.util.List publications_ = - java.util.Collections.emptyList(); - - private void ensurePublicationsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - publications_ = - new java.util.ArrayList(publications_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Publication, - com.google.cloud.talent.v4beta1.Publication.Builder, - com.google.cloud.talent.v4beta1.PublicationOrBuilder> - publicationsBuilder_; - - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public java.util.List getPublicationsList() { - if (publicationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(publications_); - } else { - return publicationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public int getPublicationsCount() { - if (publicationsBuilder_ == null) { - return publications_.size(); - } else { - return publicationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public com.google.cloud.talent.v4beta1.Publication getPublications(int index) { - if (publicationsBuilder_ == null) { - return publications_.get(index); - } else { - return publicationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder setPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { - if (publicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePublicationsIsMutable(); - publications_.set(index, value); - onChanged(); - } else { - publicationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder setPublications( - int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { - if (publicationsBuilder_ == null) { - ensurePublicationsIsMutable(); - publications_.set(index, builderForValue.build()); - onChanged(); - } else { - publicationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder addPublications(com.google.cloud.talent.v4beta1.Publication value) { - if (publicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePublicationsIsMutable(); - publications_.add(value); - onChanged(); - } else { - publicationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder addPublications(int index, com.google.cloud.talent.v4beta1.Publication value) { - if (publicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePublicationsIsMutable(); - publications_.add(index, value); - onChanged(); - } else { - publicationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder addPublications( - com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { - if (publicationsBuilder_ == null) { - ensurePublicationsIsMutable(); - publications_.add(builderForValue.build()); - onChanged(); - } else { - publicationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder addPublications( - int index, com.google.cloud.talent.v4beta1.Publication.Builder builderForValue) { - if (publicationsBuilder_ == null) { - ensurePublicationsIsMutable(); - publications_.add(index, builderForValue.build()); - onChanged(); - } else { - publicationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder addAllPublications( - java.lang.Iterable values) { - if (publicationsBuilder_ == null) { - ensurePublicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publications_); - onChanged(); - } else { - publicationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder clearPublications() { - if (publicationsBuilder_ == null) { - publications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - publicationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public Builder removePublications(int index) { - if (publicationsBuilder_ == null) { - ensurePublicationsIsMutable(); - publications_.remove(index); - onChanged(); - } else { - publicationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public com.google.cloud.talent.v4beta1.Publication.Builder getPublicationsBuilder(int index) { - return getPublicationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder( - int index) { - if (publicationsBuilder_ == null) { - return publications_.get(index); - } else { - return publicationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public java.util.List - getPublicationsOrBuilderList() { - if (publicationsBuilder_ != null) { - return publicationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(publications_); - } - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder() { - return getPublicationsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public com.google.cloud.talent.v4beta1.Publication.Builder addPublicationsBuilder(int index) { - return getPublicationsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()); - } - /** - * - * - *
-     * The publications published by the candidate.
-     * The limitation for max number of publications is 50.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - public java.util.List - getPublicationsBuilderList() { - return getPublicationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Publication, - com.google.cloud.talent.v4beta1.Publication.Builder, - com.google.cloud.talent.v4beta1.PublicationOrBuilder> - getPublicationsFieldBuilder() { - if (publicationsBuilder_ == null) { - publicationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Publication, - com.google.cloud.talent.v4beta1.Publication.Builder, - com.google.cloud.talent.v4beta1.PublicationOrBuilder>( - publications_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); - publications_ = null; - } - return publicationsBuilder_; - } - - private java.util.List patents_ = - java.util.Collections.emptyList(); - - private void ensurePatentsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - patents_ = new java.util.ArrayList(patents_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Patent, - com.google.cloud.talent.v4beta1.Patent.Builder, - com.google.cloud.talent.v4beta1.PatentOrBuilder> - patentsBuilder_; - - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public java.util.List getPatentsList() { - if (patentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(patents_); - } else { - return patentsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public int getPatentsCount() { - if (patentsBuilder_ == null) { - return patents_.size(); - } else { - return patentsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public com.google.cloud.talent.v4beta1.Patent getPatents(int index) { - if (patentsBuilder_ == null) { - return patents_.get(index); - } else { - return patentsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder setPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { - if (patentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatentsIsMutable(); - patents_.set(index, value); - onChanged(); - } else { - patentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder setPatents( - int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { - if (patentsBuilder_ == null) { - ensurePatentsIsMutable(); - patents_.set(index, builderForValue.build()); - onChanged(); - } else { - patentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder addPatents(com.google.cloud.talent.v4beta1.Patent value) { - if (patentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatentsIsMutable(); - patents_.add(value); - onChanged(); - } else { - patentsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder addPatents(int index, com.google.cloud.talent.v4beta1.Patent value) { - if (patentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePatentsIsMutable(); - patents_.add(index, value); - onChanged(); - } else { - patentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder addPatents(com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { - if (patentsBuilder_ == null) { - ensurePatentsIsMutable(); - patents_.add(builderForValue.build()); - onChanged(); - } else { - patentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder addPatents( - int index, com.google.cloud.talent.v4beta1.Patent.Builder builderForValue) { - if (patentsBuilder_ == null) { - ensurePatentsIsMutable(); - patents_.add(index, builderForValue.build()); - onChanged(); - } else { - patentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder addAllPatents( - java.lang.Iterable values) { - if (patentsBuilder_ == null) { - ensurePatentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, patents_); - onChanged(); - } else { - patentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder clearPatents() { - if (patentsBuilder_ == null) { - patents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - patentsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public Builder removePatents(int index) { - if (patentsBuilder_ == null) { - ensurePatentsIsMutable(); - patents_.remove(index); - onChanged(); - } else { - patentsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public com.google.cloud.talent.v4beta1.Patent.Builder getPatentsBuilder(int index) { - return getPatentsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index) { - if (patentsBuilder_ == null) { - return patents_.get(index); - } else { - return patentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public java.util.List - getPatentsOrBuilderList() { - if (patentsBuilder_ != null) { - return patentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(patents_); - } - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder() { - return getPatentsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public com.google.cloud.talent.v4beta1.Patent.Builder addPatentsBuilder(int index) { - return getPatentsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Patent.getDefaultInstance()); - } - /** - * - * - *
-     * The patents acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - public java.util.List getPatentsBuilderList() { - return getPatentsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Patent, - com.google.cloud.talent.v4beta1.Patent.Builder, - com.google.cloud.talent.v4beta1.PatentOrBuilder> - getPatentsFieldBuilder() { - if (patentsBuilder_ == null) { - patentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Patent, - com.google.cloud.talent.v4beta1.Patent.Builder, - com.google.cloud.talent.v4beta1.PatentOrBuilder>( - patents_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); - patents_ = null; - } - return patentsBuilder_; - } - - private java.util.List certifications_ = - java.util.Collections.emptyList(); - - private void ensureCertificationsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { - certifications_ = - new java.util.ArrayList(certifications_); - bitField0_ |= 0x00001000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Certification, - com.google.cloud.talent.v4beta1.Certification.Builder, - com.google.cloud.talent.v4beta1.CertificationOrBuilder> - certificationsBuilder_; - - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public java.util.List getCertificationsList() { - if (certificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(certifications_); - } else { - return certificationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public int getCertificationsCount() { - if (certificationsBuilder_ == null) { - return certifications_.size(); - } else { - return certificationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public com.google.cloud.talent.v4beta1.Certification getCertifications(int index) { - if (certificationsBuilder_ == null) { - return certifications_.get(index); - } else { - return certificationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder setCertifications( - int index, com.google.cloud.talent.v4beta1.Certification value) { - if (certificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCertificationsIsMutable(); - certifications_.set(index, value); - onChanged(); - } else { - certificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder setCertifications( - int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { - if (certificationsBuilder_ == null) { - ensureCertificationsIsMutable(); - certifications_.set(index, builderForValue.build()); - onChanged(); - } else { - certificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder addCertifications(com.google.cloud.talent.v4beta1.Certification value) { - if (certificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCertificationsIsMutable(); - certifications_.add(value); - onChanged(); - } else { - certificationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder addCertifications( - int index, com.google.cloud.talent.v4beta1.Certification value) { - if (certificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCertificationsIsMutable(); - certifications_.add(index, value); - onChanged(); - } else { - certificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder addCertifications( - com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { - if (certificationsBuilder_ == null) { - ensureCertificationsIsMutable(); - certifications_.add(builderForValue.build()); - onChanged(); - } else { - certificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder addCertifications( - int index, com.google.cloud.talent.v4beta1.Certification.Builder builderForValue) { - if (certificationsBuilder_ == null) { - ensureCertificationsIsMutable(); - certifications_.add(index, builderForValue.build()); - onChanged(); - } else { - certificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder addAllCertifications( - java.lang.Iterable values) { - if (certificationsBuilder_ == null) { - ensureCertificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certifications_); - onChanged(); - } else { - certificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder clearCertifications() { - if (certificationsBuilder_ == null) { - certifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - } else { - certificationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public Builder removeCertifications(int index) { - if (certificationsBuilder_ == null) { - ensureCertificationsIsMutable(); - certifications_.remove(index); - onChanged(); - } else { - certificationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public com.google.cloud.talent.v4beta1.Certification.Builder getCertificationsBuilder( - int index) { - return getCertificationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder( - int index) { - if (certificationsBuilder_ == null) { - return certifications_.get(index); - } else { - return certificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public java.util.List - getCertificationsOrBuilderList() { - if (certificationsBuilder_ != null) { - return certificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(certifications_); - } - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder() { - return getCertificationsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBuilder( - int index) { - return getCertificationsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Certification.getDefaultInstance()); - } - /** - * - * - *
-     * The certifications acquired by the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - public java.util.List - getCertificationsBuilderList() { - return getCertificationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Certification, - com.google.cloud.talent.v4beta1.Certification.Builder, - com.google.cloud.talent.v4beta1.CertificationOrBuilder> - getCertificationsFieldBuilder() { - if (certificationsBuilder_ == null) { - certificationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Certification, - com.google.cloud.talent.v4beta1.Certification.Builder, - com.google.cloud.talent.v4beta1.CertificationOrBuilder>( - certifications_, - ((bitField0_ & 0x00001000) != 0), - getParentForChildren(), - isClean()); - certifications_ = null; - } - return certificationsBuilder_; - } - - private com.google.protobuf.LazyStringList applications_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureApplicationsIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { - applications_ = new com.google.protobuf.LazyStringArrayList(applications_); - bitField0_ |= 0x00002000; - } - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the applications. - */ - public com.google.protobuf.ProtocolStringList getApplicationsList() { - return applications_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of applications. - */ - public int getApplicationsCount() { - return applications_.size(); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The applications at the given index. - */ - public java.lang.String getApplications(int index) { - return applications_.get(index); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the applications at the given index. - */ - public com.google.protobuf.ByteString getApplicationsBytes(int index) { - return applications_.getByteString(index); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The applications to set. - * @return This builder for chaining. - */ - public Builder setApplications(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationsIsMutable(); - applications_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The applications to add. - * @return This builder for chaining. - */ - public Builder addApplications(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationsIsMutable(); - applications_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The applications to add. - * @return This builder for chaining. - */ - public Builder addAllApplications(java.lang.Iterable values) { - ensureApplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applications_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearApplications() { - applications_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's applications.
-     * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the applications to add. - * @return This builder for chaining. - */ - public Builder addApplicationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureApplicationsIsMutable(); - applications_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList assignments_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureAssignmentsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - assignments_ = new com.google.protobuf.LazyStringArrayList(assignments_); - bitField0_ |= 0x00004000; - } - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the assignments. - */ - public com.google.protobuf.ProtocolStringList getAssignmentsList() { - return assignments_.getUnmodifiableView(); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of assignments. - */ - public int getAssignmentsCount() { - return assignments_.size(); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The assignments at the given index. - */ - public java.lang.String getAssignments(int index) { - return assignments_.get(index); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the assignments at the given index. - */ - public com.google.protobuf.ByteString getAssignmentsBytes(int index) { - return assignments_.getByteString(index); - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The assignments to set. - * @return This builder for chaining. - */ - public Builder setAssignments(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssignmentsIsMutable(); - assignments_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The assignments to add. - * @return This builder for chaining. - */ - public Builder addAssignments(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAssignmentsIsMutable(); - assignments_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The assignments to add. - * @return This builder for chaining. - */ - public Builder addAllAssignments(java.lang.Iterable values) { - ensureAssignmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assignments_); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearAssignments() { - assignments_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The resource names of the candidate's assignments.
-     * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the assignments to add. - * @return This builder for chaining. - */ - public Builder addAssignmentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAssignmentsIsMutable(); - assignments_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - customAttributes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - internalGetCustomAttributes() { - if (customAttributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CustomAttributesDefaultEntryHolder.defaultEntry); - } - return customAttributes_; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> - internalGetMutableCustomAttributes() { - onChanged(); - ; - if (customAttributes_ == null) { - customAttributes_ = - com.google.protobuf.MapField.newMapField( - CustomAttributesDefaultEntryHolder.defaultEntry); - } - if (!customAttributes_.isMutable()) { - customAttributes_ = customAttributes_.copy(); - } - return customAttributes_; - } - - public int getCustomAttributesCount() { - return internalGetCustomAttributes().getMap().size(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public boolean containsCustomAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetCustomAttributes().getMap().containsKey(key); - } - /** Use {@link #getCustomAttributesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCustomAttributes() { - return getCustomAttributesMap(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public java.util.Map - getCustomAttributesMap() { - return internalGetCustomAttributes().getMap(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( - java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetCustomAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * 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.
-     * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetCustomAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearCustomAttributes() { - internalGetMutableCustomAttributes().getMutableMap().clear(); - 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.
-     * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - public Builder removeCustomAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableCustomAttributes().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableCustomAttributes() { - return internalGetMutableCustomAttributes().getMutableMap(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - public Builder putCustomAttributes( - java.lang.String key, com.google.cloud.talent.v4beta1.CustomAttribute value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableCustomAttributes().getMutableMap().put(key, value); - 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.
-     * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - public Builder putAllCustomAttributes( - java.util.Map values) { - internalGetMutableCustomAttributes().getMutableMap().putAll(values); - return this; - } - - private boolean 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.
-     * 
- * - * bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The processed. - */ - @java.lang.Override - public boolean getProcessed() { - return 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.
-     * 
- * - * bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The processed to set. - * @return This builder for chaining. - */ - public Builder setProcessed(boolean value) { - - processed_ = value; - onChanged(); - 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.
-     * 
- * - * bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearProcessed() { - - processed_ = false; - onChanged(); - return this; - } - - private java.lang.Object keywordSnippet_ = ""; - /** - * - * - *
-     * 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].
-     * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The keywordSnippet. - */ - public java.lang.String getKeywordSnippet() { - java.lang.Object ref = keywordSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keywordSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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].
-     * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for keywordSnippet. - */ - public com.google.protobuf.ByteString getKeywordSnippetBytes() { - java.lang.Object ref = keywordSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keywordSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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].
-     * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The keywordSnippet to set. - * @return This builder for chaining. - */ - public Builder setKeywordSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keywordSnippet_ = value; - onChanged(); - 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].
-     * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearKeywordSnippet() { - - keywordSnippet_ = getDefaultInstance().getKeywordSnippet(); - onChanged(); - 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].
-     * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for keywordSnippet to set. - * @return This builder for chaining. - */ - public Builder setKeywordSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keywordSnippet_ = value; - onChanged(); - return this; - } - - private java.util.List - availabilitySignals_ = java.util.Collections.emptyList(); - - private void ensureAvailabilitySignalsIsMutable() { - if (!((bitField0_ & 0x00010000) != 0)) { - availabilitySignals_ = - new java.util.ArrayList( - availabilitySignals_); - bitField0_ |= 0x00010000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AvailabilitySignal, - com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder, - com.google.cloud.talent.v4beta1.AvailabilitySignalOrBuilder> - availabilitySignalsBuilder_; - - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getAvailabilitySignalsList() { - if (availabilitySignalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(availabilitySignals_); - } else { - return availabilitySignalsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getAvailabilitySignalsCount() { - if (availabilitySignalsBuilder_ == null) { - return availabilitySignals_.size(); - } else { - return availabilitySignalsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilitySignal getAvailabilitySignals(int index) { - if (availabilitySignalsBuilder_ == null) { - return availabilitySignals_.get(index); - } else { - return availabilitySignalsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setAvailabilitySignals( - int index, com.google.cloud.talent.v4beta1.AvailabilitySignal value) { - if (availabilitySignalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.set(index, value); - onChanged(); - } else { - availabilitySignalsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setAvailabilitySignals( - int index, com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder builderForValue) { - if (availabilitySignalsBuilder_ == null) { - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.set(index, builderForValue.build()); - onChanged(); - } else { - availabilitySignalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAvailabilitySignals( - com.google.cloud.talent.v4beta1.AvailabilitySignal value) { - if (availabilitySignalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.add(value); - onChanged(); - } else { - availabilitySignalsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAvailabilitySignals( - int index, com.google.cloud.talent.v4beta1.AvailabilitySignal value) { - if (availabilitySignalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.add(index, value); - onChanged(); - } else { - availabilitySignalsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAvailabilitySignals( - com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder builderForValue) { - if (availabilitySignalsBuilder_ == null) { - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.add(builderForValue.build()); - onChanged(); - } else { - availabilitySignalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAvailabilitySignals( - int index, com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder builderForValue) { - if (availabilitySignalsBuilder_ == null) { - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.add(index, builderForValue.build()); - onChanged(); - } else { - availabilitySignalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllAvailabilitySignals( - java.lang.Iterable values) { - if (availabilitySignalsBuilder_ == null) { - ensureAvailabilitySignalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availabilitySignals_); - onChanged(); - } else { - availabilitySignalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearAvailabilitySignals() { - if (availabilitySignalsBuilder_ == null) { - availabilitySignals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - } else { - availabilitySignalsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeAvailabilitySignals(int index) { - if (availabilitySignalsBuilder_ == null) { - ensureAvailabilitySignalsIsMutable(); - availabilitySignals_.remove(index); - onChanged(); - } else { - availabilitySignalsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder getAvailabilitySignalsBuilder( - int index) { - return getAvailabilitySignalsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilitySignalOrBuilder - getAvailabilitySignalsOrBuilder(int index) { - if (availabilitySignalsBuilder_ == null) { - return availabilitySignals_.get(index); - } else { - return availabilitySignalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getAvailabilitySignalsOrBuilderList() { - if (availabilitySignalsBuilder_ != null) { - return availabilitySignalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(availabilitySignals_); - } - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder - addAvailabilitySignalsBuilder() { - return getAvailabilitySignalsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.AvailabilitySignal.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder addAvailabilitySignalsBuilder( - int index) { - return getAvailabilitySignalsFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.AvailabilitySignal.getDefaultInstance()); - } - /** - * - * - *
-     * Output only. Candidate's availability signals.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getAvailabilitySignalsBuilderList() { - return getAvailabilitySignalsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AvailabilitySignal, - com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder, - com.google.cloud.talent.v4beta1.AvailabilitySignalOrBuilder> - getAvailabilitySignalsFieldBuilder() { - if (availabilitySignalsBuilder_ == null) { - availabilitySignalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AvailabilitySignal, - com.google.cloud.talent.v4beta1.AvailabilitySignal.Builder, - com.google.cloud.talent.v4beta1.AvailabilitySignalOrBuilder>( - availabilitySignals_, - ((bitField0_ & 0x00010000) != 0), - getParentForChildren(), - isClean()); - availabilitySignals_ = null; - } - return availabilitySignalsBuilder_; - } - - private java.util.List derivedAddresses_ = - java.util.Collections.emptyList(); - - private void ensureDerivedAddressesIsMutable() { - if (!((bitField0_ & 0x00020000) != 0)) { - derivedAddresses_ = - new java.util.ArrayList(derivedAddresses_); - bitField0_ |= 0x00020000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Location, - com.google.cloud.talent.v4beta1.Location.Builder, - com.google.cloud.talent.v4beta1.LocationOrBuilder> - derivedAddressesBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getDerivedAddressesList() { - if (derivedAddressesBuilder_ == null) { - return java.util.Collections.unmodifiableList(derivedAddresses_); - } else { - return derivedAddressesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getDerivedAddressesCount() { - if (derivedAddressesBuilder_ == null) { - return derivedAddresses_.size(); - } else { - return derivedAddressesBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.Location getDerivedAddresses(int index) { - if (derivedAddressesBuilder_ == null) { - return derivedAddresses_.get(index); - } else { - return derivedAddressesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDerivedAddresses(int index, com.google.cloud.talent.v4beta1.Location value) { - if (derivedAddressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDerivedAddressesIsMutable(); - derivedAddresses_.set(index, value); - onChanged(); - } else { - derivedAddressesBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDerivedAddresses( - int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { - if (derivedAddressesBuilder_ == null) { - ensureDerivedAddressesIsMutable(); - derivedAddresses_.set(index, builderForValue.build()); - onChanged(); - } else { - derivedAddressesBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDerivedAddresses(com.google.cloud.talent.v4beta1.Location value) { - if (derivedAddressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDerivedAddressesIsMutable(); - derivedAddresses_.add(value); - onChanged(); - } else { - derivedAddressesBuilder_.addMessage(value); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDerivedAddresses(int index, com.google.cloud.talent.v4beta1.Location value) { - if (derivedAddressesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDerivedAddressesIsMutable(); - derivedAddresses_.add(index, value); - onChanged(); - } else { - derivedAddressesBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDerivedAddresses( - com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { - if (derivedAddressesBuilder_ == null) { - ensureDerivedAddressesIsMutable(); - derivedAddresses_.add(builderForValue.build()); - onChanged(); - } else { - derivedAddressesBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addDerivedAddresses( - int index, com.google.cloud.talent.v4beta1.Location.Builder builderForValue) { - if (derivedAddressesBuilder_ == null) { - ensureDerivedAddressesIsMutable(); - derivedAddresses_.add(index, builderForValue.build()); - onChanged(); - } else { - derivedAddressesBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllDerivedAddresses( - java.lang.Iterable values) { - if (derivedAddressesBuilder_ == null) { - ensureDerivedAddressesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, derivedAddresses_); - onChanged(); - } else { - derivedAddressesBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDerivedAddresses() { - if (derivedAddressesBuilder_ == null) { - derivedAddresses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - } else { - derivedAddressesBuilder_.clear(); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeDerivedAddresses(int index) { - if (derivedAddressesBuilder_ == null) { - ensureDerivedAddressesIsMutable(); - derivedAddresses_.remove(index); - onChanged(); - } else { - derivedAddressesBuilder_.remove(index); - } - 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.Location.Builder getDerivedAddressesBuilder(int index) { - return getDerivedAddressesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.LocationOrBuilder getDerivedAddressesOrBuilder( - int index) { - if (derivedAddressesBuilder_ == null) { - return derivedAddresses_.get(index); - } else { - return derivedAddressesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDerivedAddressesOrBuilderList() { - if (derivedAddressesBuilder_ != null) { - return derivedAddressesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(derivedAddresses_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.Location.Builder addDerivedAddressesBuilder() { - return getDerivedAddressesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.talent.v4beta1.Location.Builder addDerivedAddressesBuilder(int index) { - return getDerivedAddressesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Location.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getDerivedAddressesBuilderList() { - return getDerivedAddressesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Location, - com.google.cloud.talent.v4beta1.Location.Builder, - com.google.cloud.talent.v4beta1.LocationOrBuilder> - getDerivedAddressesFieldBuilder() { - if (derivedAddressesBuilder_ == null) { - derivedAddressesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Location, - com.google.cloud.talent.v4beta1.Location.Builder, - com.google.cloud.talent.v4beta1.LocationOrBuilder>( - derivedAddresses_, - ((bitField0_ & 0x00020000) != 0), - getParentForChildren(), - isClean()); - derivedAddresses_ = null; - } - return derivedAddressesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Profile) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Profile) - private static final com.google.cloud.talent.v4beta1.Profile DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Profile(); - } - - public static com.google.cloud.talent.v4beta1.Profile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Profile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Profile(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java deleted file mode 100644 index 7c7cbf37..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java +++ /dev/null @@ -1,1487 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/event.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * An event issued when a profile searcher interacts with the application
- * that implements Cloud Talent Solution.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} - */ -public final class ProfileEvent extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileEvent) - ProfileEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProfileEvent.newBuilder() to construct. - private ProfileEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ProfileEvent() { - type_ = 0; - profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ProfileEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ProfileEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - profiles_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jobs_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jobs_.add(s); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = profiles_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jobs_ = jobs_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.EventProto - .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.EventProto - .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ProfileEvent.class, - com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); - } - - /** - * - * - *
-   * The enum represents types of client events for a candidate profile.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType} - */ - public enum ProfileEventType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; - */ - 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]).
-     * 
- * - * IMPRESSION = 1; - */ - 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.
-     * 
- * - * VIEW = 2; - */ - VIEW(2), - /** - * - * - *
-     * The profile is bookmarked.
-     * 
- * - * BOOKMARK = 3; - */ - BOOKMARK(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * PROFILE_EVENT_TYPE_UNSPECIFIED = 0; - */ - public static final int PROFILE_EVENT_TYPE_UNSPECIFIED_VALUE = 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]).
-     * 
- * - * IMPRESSION = 1; - */ - public static final int IMPRESSION_VALUE = 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.
-     * 
- * - * VIEW = 2; - */ - public static final int VIEW_VALUE = 2; - /** - * - * - *
-     * The profile is bookmarked.
-     * 
- * - * BOOKMARK = 3; - */ - public static final int BOOKMARK_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProfileEventType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ProfileEventType forNumber(int value) { - switch (value) { - case 0: - return PROFILE_EVENT_TYPE_UNSPECIFIED; - case 1: - return IMPRESSION; - case 2: - return VIEW; - case 3: - return BOOKMARK; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProfileEventType findValueByNumber(int number) { - return ProfileEventType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileEvent.getDescriptor().getEnumTypes().get(0); - } - - private static final ProfileEventType[] VALUES = values(); - - public static ProfileEventType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ProfileEventType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * - * - *
-   * Required. Type of event.
-   * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * Required. Type of event.
-   * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = - com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); - return result == null - ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED - : result; - } - - public static final int PROFILES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the profiles. - */ - public com.google.protobuf.ProtocolStringList getProfilesList() { - return 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of profiles. - */ - public int getProfilesCount() { - return profiles_.size(); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The profiles at the given index. - */ - public java.lang.String getProfiles(int index) { - return profiles_.get(index); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the profiles at the given index. - */ - public com.google.protobuf.ByteString getProfilesBytes(int index) { - return profiles_.getByteString(index); - } - - public static final int JOBS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList 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".
-   * 
- * - * repeated string jobs = 6; - * - * @return A list containing the jobs. - */ - public com.google.protobuf.ProtocolStringList getJobsList() { - return 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".
-   * 
- * - * repeated string jobs = 6; - * - * @return The count of jobs. - */ - public int getJobsCount() { - return jobs_.size(); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string jobs = 6; - * - * @param index The index of the element to return. - * @return The jobs at the given index. - */ - public java.lang.String getJobs(int index) { - return jobs_.get(index); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string jobs = 6; - * - * @param index The index of the value to return. - * @return The bytes of the jobs at the given index. - */ - public com.google.protobuf.ByteString getJobsBytes(int index) { - return jobs_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType - .PROFILE_EVENT_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, type_); - } - for (int i = 0; i < profiles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profiles_.getRaw(i)); - } - for (int i = 0; i < jobs_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jobs_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ - != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType - .PROFILE_EVENT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); - } - { - int dataSize = 0; - for (int i = 0; i < profiles_.size(); i++) { - dataSize += computeStringSizeNoTag(profiles_.getRaw(i)); - } - size += dataSize; - size += 1 * getProfilesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < jobs_.size(); i++) { - dataSize += computeStringSizeNoTag(jobs_.getRaw(i)); - } - size += dataSize; - size += 1 * getJobsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ProfileEvent)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ProfileEvent other = - (com.google.cloud.talent.v4beta1.ProfileEvent) obj; - - if (type_ != other.type_) return false; - if (!getProfilesList().equals(other.getProfilesList())) return false; - if (!getJobsList().equals(other.getJobsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - if (getProfilesCount() > 0) { - hash = (37 * hash) + PROFILES_FIELD_NUMBER; - hash = (53 * hash) + getProfilesList().hashCode(); - } - if (getJobsCount() > 0) { - hash = (37 * hash) + JOBS_FIELD_NUMBER; - hash = (53 * hash) + getJobsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.ProfileEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * An event issued when a profile searcher interacts with the application
-   * that implements Cloud Talent Solution.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ProfileEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileEvent) - com.google.cloud.talent.v4beta1.ProfileEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.EventProto - .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.EventProto - .internal_static_google_cloud_talent_v4beta1_ProfileEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ProfileEvent.class, - com.google.cloud.talent.v4beta1.ProfileEvent.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ProfileEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.EventProto - .internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent build() { - com.google.cloud.talent.v4beta1.ProfileEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent buildPartial() { - com.google.cloud.talent.v4beta1.ProfileEvent result = - new com.google.cloud.talent.v4beta1.ProfileEvent(this); - int from_bitField0_ = bitField0_; - result.type_ = type_; - if (((bitField0_ & 0x00000001) != 0)) { - profiles_ = profiles_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.profiles_ = profiles_; - if (((bitField0_ & 0x00000002) != 0)) { - jobs_ = jobs_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jobs_ = jobs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ProfileEvent) { - return mergeFrom((com.google.cloud.talent.v4beta1.ProfileEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileEvent other) { - if (other == com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.profiles_.isEmpty()) { - if (profiles_.isEmpty()) { - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProfilesIsMutable(); - profiles_.addAll(other.profiles_); - } - onChanged(); - } - if (!other.jobs_.isEmpty()) { - if (jobs_.isEmpty()) { - jobs_ = other.jobs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJobsIsMutable(); - jobs_.addAll(other.jobs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ProfileEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.ProfileEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int type_ = 0; - /** - * - * - *
-     * Required. Type of event.
-     * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * Required. Type of event.
-     * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Type of event.
-     * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType result = - com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.valueOf(type_); - return result == null - ? com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. Type of event.
-     * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Type of event.
-     * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList profiles_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureProfilesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - profiles_ = new com.google.protobuf.LazyStringArrayList(profiles_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the profiles. - */ - public com.google.protobuf.ProtocolStringList getProfilesList() { - return profiles_.getUnmodifiableView(); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of profiles. - */ - public int getProfilesCount() { - return profiles_.size(); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The profiles at the given index. - */ - public java.lang.String getProfiles(int index) { - return profiles_.get(index); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the profiles at the given index. - */ - public com.google.protobuf.ByteString getProfilesBytes(int index) { - return profiles_.getByteString(index); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The profiles to set. - * @return This builder for chaining. - */ - public Builder setProfiles(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.set(index, value); - onChanged(); - 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The profiles to add. - * @return This builder for chaining. - */ - public Builder addProfiles(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(value); - onChanged(); - 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The profiles to add. - * @return This builder for chaining. - */ - public Builder addAllProfiles(java.lang.Iterable values) { - ensureProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); - onChanged(); - 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProfiles() { - profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - 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".
-     * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the profiles to add. - * @return This builder for chaining. - */ - public Builder addProfilesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureProfilesIsMutable(); - profiles_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList jobs_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureJobsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string jobs = 6; - * - * @return A list containing the jobs. - */ - public com.google.protobuf.ProtocolStringList getJobsList() { - return jobs_.getUnmodifiableView(); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string jobs = 6; - * - * @return The count of jobs. - */ - public int getJobsCount() { - return jobs_.size(); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string jobs = 6; - * - * @param index The index of the element to return. - * @return The jobs at the given index. - */ - public java.lang.String getJobs(int index) { - return jobs_.get(index); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string jobs = 6; - * - * @param index The index of the value to return. - * @return The bytes of the jobs at the given index. - */ - public com.google.protobuf.ByteString getJobsBytes(int index) { - return jobs_.getByteString(index); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated string jobs = 6; - * - * @param index The index to set the value at. - * @param value The jobs to set. - * @return This builder for chaining. - */ - public Builder setJobs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.set(index, value); - onChanged(); - 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".
-     * 
- * - * repeated string jobs = 6; - * - * @param value The jobs to add. - * @return This builder for chaining. - */ - public Builder addJobs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobsIsMutable(); - jobs_.add(value); - onChanged(); - 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".
-     * 
- * - * repeated string jobs = 6; - * - * @param values The jobs to add. - * @return This builder for chaining. - */ - public Builder addAllJobs(java.lang.Iterable values) { - ensureJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); - onChanged(); - 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".
-     * 
- * - * repeated string jobs = 6; - * - * @return This builder for chaining. - */ - public Builder clearJobs() { - jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - 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".
-     * 
- * - * repeated string jobs = 6; - * - * @param value The bytes of the jobs to add. - * @return This builder for chaining. - */ - public Builder addJobsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureJobsIsMutable(); - jobs_.add(value); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileEvent) - private static final com.google.cloud.talent.v4beta1.ProfileEvent DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileEvent(); - } - - public static com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProfileEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProfileEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java deleted file mode 100644 index c57b2e99..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/event.proto - -package com.google.cloud.talent.v4beta1; - -public interface ProfileEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Type of event.
-   * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * Required. Type of event.
-   * 
- * - * - * .google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType getType(); - - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the profiles. - */ - java.util.List getProfilesList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of profiles. - */ - int getProfilesCount(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The profiles at the given index. - */ - java.lang.String getProfiles(int index); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string profiles = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the profiles at the given index. - */ - com.google.protobuf.ByteString getProfilesBytes(int index); - - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string jobs = 6; - * - * @return A list containing the jobs. - */ - java.util.List getJobsList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string jobs = 6; - * - * @return The count of jobs. - */ - int getJobsCount(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string jobs = 6; - * - * @param index The index of the element to return. - * @return The jobs at the given index. - */ - java.lang.String getJobs(int index); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated string jobs = 6; - * - * @param index The index of the value to return. - * @return The bytes of the jobs at the given index. - */ - com.google.protobuf.ByteString getJobsBytes(int index); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java deleted file mode 100644 index b3046265..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.talent.v4beta1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ProfileName implements ResourceName { - private static final PathTemplate PROJECT_TENANT_PROFILE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/tenants/{tenant}/profiles/{profile}"); - private volatile Map fieldValuesMap; - private final String project; - private final String tenant; - private final String profile; - - @Deprecated - protected ProfileName() { - project = null; - tenant = null; - profile = null; - } - - private ProfileName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - tenant = Preconditions.checkNotNull(builder.getTenant()); - profile = Preconditions.checkNotNull(builder.getProfile()); - } - - public String getProject() { - return project; - } - - public String getTenant() { - return tenant; - } - - public String getProfile() { - return profile; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ProfileName of(String project, String tenant, String profile) { - return newBuilder().setProject(project).setTenant(tenant).setProfile(profile).build(); - } - - public static String format(String project, String tenant, String profile) { - return newBuilder() - .setProject(project) - .setTenant(tenant) - .setProfile(profile) - .build() - .toString(); - } - - public static ProfileName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_TENANT_PROFILE.validatedMatch( - formattedString, "ProfileName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("tenant"), matchMap.get("profile")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ProfileName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_TENANT_PROFILE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (tenant != null) { - fieldMapBuilder.put("tenant", tenant); - } - if (profile != null) { - fieldMapBuilder.put("profile", profile); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_TENANT_PROFILE.instantiate( - "project", project, "tenant", tenant, "profile", profile); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ProfileName that = ((ProfileName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.tenant, that.tenant) - && Objects.equals(this.profile, that.profile); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(tenant); - h *= 1000003; - h ^= Objects.hashCode(profile); - return h; - } - - /** Builder for projects/{project}/tenants/{tenant}/profiles/{profile}. */ - public static class Builder { - private String project; - private String tenant; - private String profile; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getTenant() { - return tenant; - } - - public String getProfile() { - return profile; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setTenant(String tenant) { - this.tenant = tenant; - return this; - } - - public Builder setProfile(String profile) { - this.profile = profile; - return this; - } - - private Builder(ProfileName profileName) { - this.project = profileName.project; - this.tenant = profileName.tenant; - this.profile = profileName.profile; - } - - public ProfileName build() { - return new ProfileName(this); - } - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java deleted file mode 100644 index 9f78d906..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java +++ /dev/null @@ -1,1785 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface ProfileOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Profile) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * 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".
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string external_id = 2; - * - * @return The externalId. - */ - java.lang.String getExternalId(); - /** - * - * - *
-   * 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.
-   * 
- * - * string external_id = 2; - * - * @return The bytes for externalId. - */ - com.google.protobuf.ByteString getExternalIdBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string source = 3; - * - * @return The source. - */ - java.lang.String getSource(); - /** - * - * - *
-   * 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.
-   * 
- * - * string source = 3; - * - * @return The bytes for source. - */ - com.google.protobuf.ByteString getSourceBytes(); - - /** - * - * - *
-   * The URI set by clients that links to this profile's client-side copy.
-   * The maximum number of bytes allowed is 4000.
-   * 
- * - * string uri = 4; - * - * @return The uri. - */ - java.lang.String getUri(); - /** - * - * - *
-   * The URI set by clients that links to this profile's client-side copy.
-   * The maximum number of bytes allowed is 4000.
-   * 
- * - * string uri = 4; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string group_id = 5; - * - * @return The groupId. - */ - java.lang.String getGroupId(); - /** - * - * - *
-   * 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.
-   * 
- * - * string group_id = 5; - * - * @return The bytes for groupId. - */ - com.google.protobuf.ByteString getGroupIdBytes(); - - /** - * - * - *
-   * Indicates the hirable status of the candidate.
-   * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - * - * @return Whether the isHirable field is set. - */ - boolean hasIsHirable(); - /** - * - * - *
-   * Indicates the hirable status of the candidate.
-   * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - * - * @return The isHirable. - */ - com.google.protobuf.BoolValue getIsHirable(); - /** - * - * - *
-   * Indicates the hirable status of the candidate.
-   * 
- * - * .google.protobuf.BoolValue is_hirable = 6; - */ - com.google.protobuf.BoolValueOrBuilder getIsHirableOrBuilder(); - - /** - * - * - *
-   * The timestamp when the profile was first created at this source.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * The timestamp when the profile was first created at this source.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * The timestamp when the profile was first created at this source.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The timestamp when the profile was last updated at this source.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8; - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * The timestamp when the profile was last updated at this source.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8; - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * The timestamp when the profile was last updated at this source.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - * - * @return Whether the candidateUpdateTime field is set. - */ - boolean hasCandidateUpdateTime(); - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - * - * @return The candidateUpdateTime. - */ - com.google.protobuf.Timestamp getCandidateUpdateTime(); - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp candidate_update_time = 67; - */ - com.google.protobuf.TimestampOrBuilder getCandidateUpdateTimeOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - * - * @return Whether the resumeUpdateTime field is set. - */ - boolean hasResumeUpdateTime(); - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - * - * @return The resumeUpdateTime. - */ - com.google.protobuf.Timestamp getResumeUpdateTime(); - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.Timestamp resume_update_time = 68; - */ - com.google.protobuf.TimestampOrBuilder getResumeUpdateTimeOrBuilder(); - - /** - * - * - *
-   * The resume representing this profile.
-   * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - * - * @return Whether the resume field is set. - */ - boolean hasResume(); - /** - * - * - *
-   * The resume representing this profile.
-   * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - * - * @return The resume. - */ - com.google.cloud.talent.v4beta1.Resume getResume(); - /** - * - * - *
-   * The resume representing this profile.
-   * 
- * - * .google.cloud.talent.v4beta1.Resume resume = 53; - */ - com.google.cloud.talent.v4beta1.ResumeOrBuilder getResumeOrBuilder(); - - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - java.util.List getPersonNamesList(); - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - com.google.cloud.talent.v4beta1.PersonName getPersonNames(int index); - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - int getPersonNamesCount(); - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - java.util.List - getPersonNamesOrBuilderList(); - /** - * - * - *
-   * The names of the candidate this profile references.
-   * Currently only one person name is supported.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonName person_names = 11; - */ - com.google.cloud.talent.v4beta1.PersonNameOrBuilder getPersonNamesOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - java.util.List getAddressesList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - com.google.cloud.talent.v4beta1.Address getAddresses(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - int getAddressesCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - java.util.List - getAddressesOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Address addresses = 12; - */ - com.google.cloud.talent.v4beta1.AddressOrBuilder getAddressesOrBuilder(int index); - - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - java.util.List getEmailAddressesList(); - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - com.google.cloud.talent.v4beta1.Email getEmailAddresses(int index); - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - int getEmailAddressesCount(); - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - java.util.List - getEmailAddressesOrBuilderList(); - /** - * - * - *
-   * The candidate's email addresses.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Email email_addresses = 13; - */ - com.google.cloud.talent.v4beta1.EmailOrBuilder getEmailAddressesOrBuilder(int index); - - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - java.util.List getPhoneNumbersList(); - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - com.google.cloud.talent.v4beta1.Phone getPhoneNumbers(int index); - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - int getPhoneNumbersCount(); - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - java.util.List - getPhoneNumbersOrBuilderList(); - /** - * - * - *
-   * The candidate's phone number(s).
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Phone phone_numbers = 14; - */ - com.google.cloud.talent.v4beta1.PhoneOrBuilder getPhoneNumbersOrBuilder(int index); - - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - java.util.List getPersonalUrisList(); - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - com.google.cloud.talent.v4beta1.PersonalUri getPersonalUris(int index); - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - int getPersonalUrisCount(); - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - java.util.List - getPersonalUrisOrBuilderList(); - /** - * - * - *
-   * The candidate's personal URIs.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonalUri personal_uris = 15; - */ - com.google.cloud.talent.v4beta1.PersonalUriOrBuilder getPersonalUrisOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - java.util.List - getAdditionalContactInfoList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - com.google.cloud.talent.v4beta1.AdditionalContactInfo getAdditionalContactInfo(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - int getAdditionalContactInfoCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - java.util.List - getAdditionalContactInfoOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AdditionalContactInfo additional_contact_info = 16; - * - */ - com.google.cloud.talent.v4beta1.AdditionalContactInfoOrBuilder getAdditionalContactInfoOrBuilder( - int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - java.util.List getEmploymentRecordsList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - com.google.cloud.talent.v4beta1.EmploymentRecord getEmploymentRecords(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - int getEmploymentRecordsCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - java.util.List - getEmploymentRecordsOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmploymentRecord employment_records = 17; - */ - com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOrBuilder( - int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - java.util.List getEducationRecordsList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - com.google.cloud.talent.v4beta1.EducationRecord getEducationRecords(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - int getEducationRecordsCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - java.util.List - getEducationRecordsOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationRecord education_records = 18; - */ - com.google.cloud.talent.v4beta1.EducationRecordOrBuilder getEducationRecordsOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - java.util.List getSkillsList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - com.google.cloud.talent.v4beta1.Skill getSkills(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - int getSkillsCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - java.util.List getSkillsOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Skill skills = 19; - */ - com.google.cloud.talent.v4beta1.SkillOrBuilder getSkillsOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - java.util.List getActivitiesList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - com.google.cloud.talent.v4beta1.Activity getActivities(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - int getActivitiesCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - java.util.List - getActivitiesOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Activity activities = 20; - */ - com.google.cloud.talent.v4beta1.ActivityOrBuilder getActivitiesOrBuilder(int index); - - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - java.util.List getPublicationsList(); - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - com.google.cloud.talent.v4beta1.Publication getPublications(int index); - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - int getPublicationsCount(); - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - java.util.List - getPublicationsOrBuilderList(); - /** - * - * - *
-   * The publications published by the candidate.
-   * The limitation for max number of publications is 50.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Publication publications = 21; - */ - com.google.cloud.talent.v4beta1.PublicationOrBuilder getPublicationsOrBuilder(int index); - - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - java.util.List getPatentsList(); - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - com.google.cloud.talent.v4beta1.Patent getPatents(int index); - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - int getPatentsCount(); - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - java.util.List - getPatentsOrBuilderList(); - /** - * - * - *
-   * The patents acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Patent patents = 22; - */ - com.google.cloud.talent.v4beta1.PatentOrBuilder getPatentsOrBuilder(int index); - - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - java.util.List getCertificationsList(); - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - com.google.cloud.talent.v4beta1.Certification getCertifications(int index); - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - int getCertificationsCount(); - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - java.util.List - getCertificationsOrBuilderList(); - /** - * - * - *
-   * The certifications acquired by the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Certification certifications = 23; - */ - com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsOrBuilder(int index); - - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the applications. - */ - java.util.List getApplicationsList(); - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of applications. - */ - int getApplicationsCount(); - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The applications at the given index. - */ - java.lang.String getApplications(int index); - /** - * - * - *
-   * Output only. The resource names of the candidate's applications.
-   * 
- * - * repeated string applications = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the applications at the given index. - */ - com.google.protobuf.ByteString getApplicationsBytes(int index); - - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return A list containing the assignments. - */ - java.util.List getAssignmentsList(); - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The count of assignments. - */ - int getAssignmentsCount(); - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The assignments at the given index. - */ - java.lang.String getAssignments(int index); - /** - * - * - *
-   * Output only. The resource names of the candidate's assignments.
-   * 
- * - * repeated string assignments = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the assignments at the given index. - */ - com.google.protobuf.ByteString getAssignmentsBytes(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - int getCustomAttributesCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - boolean containsCustomAttributes(java.lang.String key); - /** Use {@link #getCustomAttributesMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getCustomAttributes(); - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - java.util.Map - getCustomAttributesMap(); - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - - /* nullable */ - com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.talent.v4beta1.CustomAttribute defaultValue); - /** - * - * - *
-   * 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.
-   * 
- * - * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; - * - */ - com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrThrow(java.lang.String key); - - /** - * - * - *
-   * 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.
-   * 
- * - * bool processed = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The processed. - */ - boolean getProcessed(); - - /** - * - * - *
-   * 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].
-   * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The keywordSnippet. - */ - java.lang.String getKeywordSnippet(); - /** - * - * - *
-   * 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].
-   * 
- * - * string keyword_snippet = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for keywordSnippet. - */ - com.google.protobuf.ByteString getKeywordSnippetBytes(); - - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getAvailabilitySignalsList(); - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.talent.v4beta1.AvailabilitySignal getAvailabilitySignals(int index); - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getAvailabilitySignalsCount(); - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getAvailabilitySignalsOrBuilderList(); - /** - * - * - *
-   * Output only. Candidate's availability signals.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.AvailabilitySignal availability_signals = 70 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.talent.v4beta1.AvailabilitySignalOrBuilder getAvailabilitySignalsOrBuilder( - int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getDerivedAddressesList(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.talent.v4beta1.Location getDerivedAddresses(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getDerivedAddressesCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getDerivedAddressesOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.Location derived_addresses = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.talent.v4beta1.LocationOrBuilder getDerivedAddressesOrBuilder(int index); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java deleted file mode 100644 index 7aa3251a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java +++ /dev/null @@ -1,10355 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Filters to apply when performing the search query.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} - */ -public final class ProfileQuery extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ProfileQuery) - ProfileQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProfileQuery.newBuilder() to construct. - private ProfileQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ProfileQuery() { - query_ = ""; - locationFilters_ = java.util.Collections.emptyList(); - jobTitleFilters_ = java.util.Collections.emptyList(); - employerFilters_ = java.util.Collections.emptyList(); - educationFilters_ = java.util.Collections.emptyList(); - skillFilters_ = java.util.Collections.emptyList(); - workExperienceFilter_ = java.util.Collections.emptyList(); - timeFilters_ = java.util.Collections.emptyList(); - applicationDateFilters_ = java.util.Collections.emptyList(); - applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); - applicationJobFilters_ = java.util.Collections.emptyList(); - customAttributeFilter_ = ""; - availabilityFilters_ = java.util.Collections.emptyList(); - personNameFilters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ProfileQuery(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ProfileQuery( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locationFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locationFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - jobTitleFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - jobTitleFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.JobTitleFilter.parser(), extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - employerFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - employerFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.EmployerFilter.parser(), extensionRegistry)); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - educationFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - educationFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.EducationFilter.parser(), extensionRegistry)); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - skillFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - skillFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.SkillFilter.parser(), extensionRegistry)); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - workExperienceFilter_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - workExperienceFilter_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.WorkExperienceFilter.parser(), - extensionRegistry)); - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - timeFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - timeFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.TimeFilter.parser(), extensionRegistry)); - break; - } - case 74: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (hirableFilter_ != null) { - subBuilder = hirableFilter_.toBuilder(); - } - hirableFilter_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hirableFilter_); - hirableFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - applicationDateFilters_ = - new java.util.ArrayList< - com.google.cloud.talent.v4beta1.ApplicationDateFilter>(); - mutable_bitField0_ |= 0x00000080; - } - applicationDateFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.ApplicationDateFilter.parser(), - extensionRegistry)); - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - applicationOutcomeNotesFilters_ = - new java.util.ArrayList< - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter>(); - mutable_bitField0_ |= 0x00000100; - } - applicationOutcomeNotesFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.parser(), - extensionRegistry)); - break; - } - case 106: - { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - applicationJobFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - applicationJobFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.ApplicationJobFilter.parser(), - extensionRegistry)); - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); - - customAttributeFilter_ = s; - break; - } - case 130: - { - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder subBuilder = null; - if (candidateAvailabilityFilter_ != null) { - subBuilder = candidateAvailabilityFilter_.toBuilder(); - } - candidateAvailabilityFilter_ = - input.readMessage( - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(candidateAvailabilityFilter_); - candidateAvailabilityFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 138: - { - if (!((mutable_bitField0_ & 0x00000800) != 0)) { - personNameFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; - } - personNameFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.PersonNameFilter.parser(), - extensionRegistry)); - break; - } - case 146: - { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { - availabilityFilters_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; - } - availabilityFilters_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.AvailabilityFilter.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - applicationOutcomeNotesFilters_ = - java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); - } - if (((mutable_bitField0_ & 0x00000200) != 0)) { - applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); - } - if (((mutable_bitField0_ & 0x00000800) != 0)) { - personNameFilters_ = java.util.Collections.unmodifiableList(personNameFilters_); - } - if (((mutable_bitField0_ & 0x00000400) != 0)) { - availabilityFilters_ = java.util.Collections.unmodifiableList(availabilityFilters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ProfileQuery.class, - com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * - * - *
-   * Keywords to match any text fields of profiles.
-   * For example, "software engineer in Palo Alto".
-   * 
- * - * string query = 1; - * - * @return The query. - */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } - /** - * - * - *
-   * Keywords to match any text fields of profiles.
-   * For example, "software engineer in Palo Alto".
-   * 
- * - * string query = 1; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FILTERS_FIELD_NUMBER = 2; - private java.util.List locationFilters_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - @java.lang.Override - public java.util.List getLocationFiltersList() { - return locationFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - @java.lang.Override - public java.util.List - getLocationFiltersOrBuilderList() { - return locationFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - @java.lang.Override - public int getLocationFiltersCount() { - return locationFilters_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { - return locationFilters_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( - int index) { - return locationFilters_.get(index); - } - - public static final int JOB_TITLE_FILTERS_FIELD_NUMBER = 3; - private java.util.List jobTitleFilters_; - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - @java.lang.Override - public java.util.List getJobTitleFiltersList() { - return jobTitleFilters_; - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - @java.lang.Override - public java.util.List - getJobTitleFiltersOrBuilderList() { - return jobTitleFilters_; - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - @java.lang.Override - public int getJobTitleFiltersCount() { - return jobTitleFilters_.size(); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { - return jobTitleFilters_.get(index); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( - int index) { - return jobTitleFilters_.get(index); - } - - public static final int EMPLOYER_FILTERS_FIELD_NUMBER = 4; - private java.util.List employerFilters_; - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - @java.lang.Override - public java.util.List getEmployerFiltersList() { - return employerFilters_; - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - @java.lang.Override - public java.util.List - getEmployerFiltersOrBuilderList() { - return employerFilters_; - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - @java.lang.Override - public int getEmployerFiltersCount() { - return employerFilters_.size(); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { - return employerFilters_.get(index); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( - int index) { - return employerFilters_.get(index); - } - - public static final int EDUCATION_FILTERS_FIELD_NUMBER = 5; - private java.util.List educationFilters_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - @java.lang.Override - public java.util.List getEducationFiltersList() { - return educationFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - @java.lang.Override - public java.util.List - getEducationFiltersOrBuilderList() { - return educationFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - @java.lang.Override - public int getEducationFiltersCount() { - return educationFilters_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { - return educationFilters_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( - int index) { - return educationFilters_.get(index); - } - - public static final int SKILL_FILTERS_FIELD_NUMBER = 6; - private java.util.List skillFilters_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - @java.lang.Override - public java.util.List getSkillFiltersList() { - return skillFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - @java.lang.Override - public java.util.List - getSkillFiltersOrBuilderList() { - return skillFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - @java.lang.Override - public int getSkillFiltersCount() { - return skillFilters_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { - return skillFilters_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index) { - return skillFilters_.get(index); - } - - public static final int WORK_EXPERIENCE_FILTER_FIELD_NUMBER = 7; - private java.util.List - workExperienceFilter_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - @java.lang.Override - public java.util.List - getWorkExperienceFilterList() { - return workExperienceFilter_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - @java.lang.Override - public java.util.List - getWorkExperienceFilterOrBuilderList() { - return workExperienceFilter_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - @java.lang.Override - public int getWorkExperienceFilterCount() { - return workExperienceFilter_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { - return workExperienceFilter_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder - getWorkExperienceFilterOrBuilder(int index) { - return workExperienceFilter_.get(index); - } - - public static final int TIME_FILTERS_FIELD_NUMBER = 8; - private java.util.List timeFilters_; - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - @java.lang.Override - public java.util.List getTimeFiltersList() { - return timeFilters_; - } - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - @java.lang.Override - public java.util.List - getTimeFiltersOrBuilderList() { - return timeFilters_; - } - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - @java.lang.Override - public int getTimeFiltersCount() { - return timeFilters_.size(); - } - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { - return timeFilters_.get(index); - } - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { - return timeFilters_.get(index); - } - - public static final int HIRABLE_FILTER_FIELD_NUMBER = 9; - private com.google.protobuf.BoolValue hirableFilter_; - /** - * - * - *
-   * The hirable filter specifies the profile's hirable status to match on.
-   * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - * - * @return Whether the hirableFilter field is set. - */ - @java.lang.Override - public boolean hasHirableFilter() { - return hirableFilter_ != null; - } - /** - * - * - *
-   * The hirable filter specifies the profile's hirable status to match on.
-   * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - * - * @return The hirableFilter. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getHirableFilter() { - return hirableFilter_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : hirableFilter_; - } - /** - * - * - *
-   * The hirable filter specifies the profile's hirable status to match on.
-   * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { - return getHirableFilter(); - } - - public static final int APPLICATION_DATE_FILTERS_FIELD_NUMBER = 10; - private java.util.List - applicationDateFilters_; - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - @java.lang.Override - public java.util.List - getApplicationDateFiltersList() { - return applicationDateFilters_; - } - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - @java.lang.Override - public java.util.List - getApplicationDateFiltersOrBuilderList() { - return applicationDateFilters_; - } - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - @java.lang.Override - public int getApplicationDateFiltersCount() { - return applicationDateFilters_.size(); - } - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( - int index) { - return applicationDateFilters_.get(index); - } - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder - getApplicationDateFiltersOrBuilder(int index) { - return applicationDateFilters_.get(index); - } - - public static final int APPLICATION_OUTCOME_NOTES_FILTERS_FIELD_NUMBER = 11; - private java.util.List - applicationOutcomeNotesFilters_; - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - @java.lang.Override - public java.util.List - getApplicationOutcomeNotesFiltersList() { - return applicationOutcomeNotesFilters_; - } - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder> - getApplicationOutcomeNotesFiltersOrBuilderList() { - return applicationOutcomeNotesFilters_; - } - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - @java.lang.Override - public int getApplicationOutcomeNotesFiltersCount() { - return applicationOutcomeNotesFilters_.size(); - } - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter - getApplicationOutcomeNotesFilters(int index) { - return applicationOutcomeNotesFilters_.get(index); - } - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder - getApplicationOutcomeNotesFiltersOrBuilder(int index) { - return applicationOutcomeNotesFilters_.get(index); - } - - public static final int APPLICATION_JOB_FILTERS_FIELD_NUMBER = 13; - private java.util.List - applicationJobFilters_; - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - @java.lang.Override - public java.util.List - getApplicationJobFiltersList() { - return applicationJobFilters_; - } - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - @java.lang.Override - public java.util.List - getApplicationJobFiltersOrBuilderList() { - return applicationJobFilters_; - } - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - @java.lang.Override - public int getApplicationJobFiltersCount() { - return applicationJobFilters_.size(); - } - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index) { - return applicationJobFilters_.get(index); - } - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder - getApplicationJobFiltersOrBuilder(int index) { - return applicationJobFilters_.get(index); - } - - public static final int CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER = 15; - private volatile java.lang.Object customAttributeFilter_; - /** - * - * - *
-   * 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(<field_name>) to
-   * perform case insensitive match and EMPTY(<field_name>) 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))
-   * 
- * - * string custom_attribute_filter = 15; - * - * @return The customAttributeFilter. - */ - @java.lang.Override - public java.lang.String getCustomAttributeFilter() { - java.lang.Object ref = customAttributeFilter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - customAttributeFilter_ = s; - return s; - } - } - /** - * - * - *
-   * 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(<field_name>) to
-   * perform case insensitive match and EMPTY(<field_name>) 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))
-   * 
- * - * string custom_attribute_filter = 15; - * - * @return The bytes for customAttributeFilter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { - java.lang.Object ref = customAttributeFilter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - customAttributeFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CANDIDATE_AVAILABILITY_FILTER_FIELD_NUMBER = 16; - private com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidateAvailabilityFilter_; - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.talent.v4beta1.ProfileQuery.candidate_availability_filter is - * deprecated. See google/cloud/talent/v4beta1/filters.proto;l=397 - * @return Whether the candidateAvailabilityFilter field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasCandidateAvailabilityFilter() { - return candidateAvailabilityFilter_ != null; - } - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.talent.v4beta1.ProfileQuery.candidate_availability_filter is - * deprecated. See google/cloud/talent/v4beta1/filters.proto;l=397 - * @return The candidateAvailabilityFilter. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter - getCandidateAvailabilityFilter() { - return candidateAvailabilityFilter_ == null - ? com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.getDefaultInstance() - : candidateAvailabilityFilter_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilterOrBuilder - getCandidateAvailabilityFilterOrBuilder() { - return getCandidateAvailabilityFilter(); - } - - public static final int AVAILABILITY_FILTERS_FIELD_NUMBER = 18; - private java.util.List availabilityFilters_; - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - @java.lang.Override - public java.util.List - getAvailabilityFiltersList() { - return availabilityFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - @java.lang.Override - public java.util.List - getAvailabilityFiltersOrBuilderList() { - return availabilityFilters_; - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - @java.lang.Override - public int getAvailabilityFiltersCount() { - return availabilityFilters_.size(); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilityFilter getAvailabilityFilters(int index) { - return availabilityFilters_.get(index); - } - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.AvailabilityFilterOrBuilder - getAvailabilityFiltersOrBuilder(int index) { - return availabilityFilters_.get(index); - } - - public static final int PERSON_NAME_FILTERS_FIELD_NUMBER = 17; - private java.util.List personNameFilters_; - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - @java.lang.Override - public java.util.List - getPersonNameFiltersList() { - return personNameFilters_; - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - @java.lang.Override - public java.util.List - getPersonNameFiltersOrBuilderList() { - return personNameFilters_; - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - @java.lang.Override - public int getPersonNameFiltersCount() { - return personNameFilters_.size(); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonNameFilter getPersonNameFilters(int index) { - return personNameFilters_.get(index); - } - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.PersonNameFilterOrBuilder getPersonNameFiltersOrBuilder( - int index) { - return personNameFilters_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - for (int i = 0; i < locationFilters_.size(); i++) { - output.writeMessage(2, locationFilters_.get(i)); - } - for (int i = 0; i < jobTitleFilters_.size(); i++) { - output.writeMessage(3, jobTitleFilters_.get(i)); - } - for (int i = 0; i < employerFilters_.size(); i++) { - output.writeMessage(4, employerFilters_.get(i)); - } - for (int i = 0; i < educationFilters_.size(); i++) { - output.writeMessage(5, educationFilters_.get(i)); - } - for (int i = 0; i < skillFilters_.size(); i++) { - output.writeMessage(6, skillFilters_.get(i)); - } - for (int i = 0; i < workExperienceFilter_.size(); i++) { - output.writeMessage(7, workExperienceFilter_.get(i)); - } - for (int i = 0; i < timeFilters_.size(); i++) { - output.writeMessage(8, timeFilters_.get(i)); - } - if (hirableFilter_ != null) { - output.writeMessage(9, getHirableFilter()); - } - for (int i = 0; i < applicationDateFilters_.size(); i++) { - output.writeMessage(10, applicationDateFilters_.get(i)); - } - for (int i = 0; i < applicationOutcomeNotesFilters_.size(); i++) { - output.writeMessage(11, applicationOutcomeNotesFilters_.get(i)); - } - for (int i = 0; i < applicationJobFilters_.size(); i++) { - output.writeMessage(13, applicationJobFilters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customAttributeFilter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 15, customAttributeFilter_); - } - if (candidateAvailabilityFilter_ != null) { - output.writeMessage(16, getCandidateAvailabilityFilter()); - } - for (int i = 0; i < personNameFilters_.size(); i++) { - output.writeMessage(17, personNameFilters_.get(i)); - } - for (int i = 0; i < availabilityFilters_.size(); i++) { - output.writeMessage(18, availabilityFilters_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - for (int i = 0; i < locationFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, locationFilters_.get(i)); - } - for (int i = 0; i < jobTitleFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, jobTitleFilters_.get(i)); - } - for (int i = 0; i < employerFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, employerFilters_.get(i)); - } - for (int i = 0; i < educationFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, educationFilters_.get(i)); - } - for (int i = 0; i < skillFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, skillFilters_.get(i)); - } - for (int i = 0; i < workExperienceFilter_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, workExperienceFilter_.get(i)); - } - for (int i = 0; i < timeFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, timeFilters_.get(i)); - } - if (hirableFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getHirableFilter()); - } - for (int i = 0; i < applicationDateFilters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, applicationDateFilters_.get(i)); - } - for (int i = 0; i < applicationOutcomeNotesFilters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, applicationOutcomeNotesFilters_.get(i)); - } - for (int i = 0; i < applicationJobFilters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, applicationJobFilters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customAttributeFilter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, customAttributeFilter_); - } - if (candidateAvailabilityFilter_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, getCandidateAvailabilityFilter()); - } - for (int i = 0; i < personNameFilters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(17, personNameFilters_.get(i)); - } - for (int i = 0; i < availabilityFilters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(18, availabilityFilters_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ProfileQuery)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ProfileQuery other = - (com.google.cloud.talent.v4beta1.ProfileQuery) obj; - - if (!getQuery().equals(other.getQuery())) return false; - if (!getLocationFiltersList().equals(other.getLocationFiltersList())) return false; - if (!getJobTitleFiltersList().equals(other.getJobTitleFiltersList())) return false; - if (!getEmployerFiltersList().equals(other.getEmployerFiltersList())) return false; - if (!getEducationFiltersList().equals(other.getEducationFiltersList())) return false; - if (!getSkillFiltersList().equals(other.getSkillFiltersList())) return false; - if (!getWorkExperienceFilterList().equals(other.getWorkExperienceFilterList())) return false; - if (!getTimeFiltersList().equals(other.getTimeFiltersList())) return false; - if (hasHirableFilter() != other.hasHirableFilter()) return false; - if (hasHirableFilter()) { - if (!getHirableFilter().equals(other.getHirableFilter())) return false; - } - if (!getApplicationDateFiltersList().equals(other.getApplicationDateFiltersList())) - return false; - if (!getApplicationOutcomeNotesFiltersList() - .equals(other.getApplicationOutcomeNotesFiltersList())) return false; - if (!getApplicationJobFiltersList().equals(other.getApplicationJobFiltersList())) return false; - if (!getCustomAttributeFilter().equals(other.getCustomAttributeFilter())) return false; - if (hasCandidateAvailabilityFilter() != other.hasCandidateAvailabilityFilter()) return false; - if (hasCandidateAvailabilityFilter()) { - if (!getCandidateAvailabilityFilter().equals(other.getCandidateAvailabilityFilter())) - return false; - } - if (!getAvailabilityFiltersList().equals(other.getAvailabilityFiltersList())) return false; - if (!getPersonNameFiltersList().equals(other.getPersonNameFiltersList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - if (getLocationFiltersCount() > 0) { - hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getLocationFiltersList().hashCode(); - } - if (getJobTitleFiltersCount() > 0) { - hash = (37 * hash) + JOB_TITLE_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getJobTitleFiltersList().hashCode(); - } - if (getEmployerFiltersCount() > 0) { - hash = (37 * hash) + EMPLOYER_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getEmployerFiltersList().hashCode(); - } - if (getEducationFiltersCount() > 0) { - hash = (37 * hash) + EDUCATION_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getEducationFiltersList().hashCode(); - } - if (getSkillFiltersCount() > 0) { - hash = (37 * hash) + SKILL_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getSkillFiltersList().hashCode(); - } - if (getWorkExperienceFilterCount() > 0) { - hash = (37 * hash) + WORK_EXPERIENCE_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getWorkExperienceFilterList().hashCode(); - } - if (getTimeFiltersCount() > 0) { - hash = (37 * hash) + TIME_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getTimeFiltersList().hashCode(); - } - if (hasHirableFilter()) { - hash = (37 * hash) + HIRABLE_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getHirableFilter().hashCode(); - } - if (getApplicationDateFiltersCount() > 0) { - hash = (37 * hash) + APPLICATION_DATE_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getApplicationDateFiltersList().hashCode(); - } - if (getApplicationOutcomeNotesFiltersCount() > 0) { - hash = (37 * hash) + APPLICATION_OUTCOME_NOTES_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getApplicationOutcomeNotesFiltersList().hashCode(); - } - if (getApplicationJobFiltersCount() > 0) { - hash = (37 * hash) + APPLICATION_JOB_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getApplicationJobFiltersList().hashCode(); - } - hash = (37 * hash) + CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getCustomAttributeFilter().hashCode(); - if (hasCandidateAvailabilityFilter()) { - hash = (37 * hash) + CANDIDATE_AVAILABILITY_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getCandidateAvailabilityFilter().hashCode(); - } - if (getAvailabilityFiltersCount() > 0) { - hash = (37 * hash) + AVAILABILITY_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getAvailabilityFiltersList().hashCode(); - } - if (getPersonNameFiltersCount() > 0) { - hash = (37 * hash) + PERSON_NAME_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getPersonNameFiltersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.ProfileQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Filters to apply when performing the search query.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ProfileQuery} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ProfileQuery) - com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ProfileQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ProfileQuery.class, - com.google.cloud.talent.v4beta1.ProfileQuery.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLocationFiltersFieldBuilder(); - getJobTitleFiltersFieldBuilder(); - getEmployerFiltersFieldBuilder(); - getEducationFiltersFieldBuilder(); - getSkillFiltersFieldBuilder(); - getWorkExperienceFilterFieldBuilder(); - getTimeFiltersFieldBuilder(); - getApplicationDateFiltersFieldBuilder(); - getApplicationOutcomeNotesFiltersFieldBuilder(); - getApplicationJobFiltersFieldBuilder(); - getAvailabilityFiltersFieldBuilder(); - getPersonNameFiltersFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - query_ = ""; - - if (locationFiltersBuilder_ == null) { - locationFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationFiltersBuilder_.clear(); - } - if (jobTitleFiltersBuilder_ == null) { - jobTitleFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - jobTitleFiltersBuilder_.clear(); - } - if (employerFiltersBuilder_ == null) { - employerFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - employerFiltersBuilder_.clear(); - } - if (educationFiltersBuilder_ == null) { - educationFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - educationFiltersBuilder_.clear(); - } - if (skillFiltersBuilder_ == null) { - skillFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - skillFiltersBuilder_.clear(); - } - if (workExperienceFilterBuilder_ == null) { - workExperienceFilter_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - workExperienceFilterBuilder_.clear(); - } - if (timeFiltersBuilder_ == null) { - timeFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - timeFiltersBuilder_.clear(); - } - if (hirableFilterBuilder_ == null) { - hirableFilter_ = null; - } else { - hirableFilter_ = null; - hirableFilterBuilder_ = null; - } - if (applicationDateFiltersBuilder_ == null) { - applicationDateFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - applicationDateFiltersBuilder_.clear(); - } - if (applicationOutcomeNotesFiltersBuilder_ == null) { - applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - } else { - applicationOutcomeNotesFiltersBuilder_.clear(); - } - if (applicationJobFiltersBuilder_ == null) { - applicationJobFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - applicationJobFiltersBuilder_.clear(); - } - customAttributeFilter_ = ""; - - if (candidateAvailabilityFilterBuilder_ == null) { - candidateAvailabilityFilter_ = null; - } else { - candidateAvailabilityFilter_ = null; - candidateAvailabilityFilterBuilder_ = null; - } - if (availabilityFiltersBuilder_ == null) { - availabilityFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - } else { - availabilityFiltersBuilder_.clear(); - } - if (personNameFiltersBuilder_ == null) { - personNameFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - } else { - personNameFiltersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ProfileQuery_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileQuery build() { - com.google.cloud.talent.v4beta1.ProfileQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileQuery buildPartial() { - com.google.cloud.talent.v4beta1.ProfileQuery result = - new com.google.cloud.talent.v4beta1.ProfileQuery(this); - int from_bitField0_ = bitField0_; - result.query_ = query_; - if (locationFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locationFilters_ = locationFilters_; - } else { - result.locationFilters_ = locationFiltersBuilder_.build(); - } - if (jobTitleFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - jobTitleFilters_ = java.util.Collections.unmodifiableList(jobTitleFilters_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.jobTitleFilters_ = jobTitleFilters_; - } else { - result.jobTitleFilters_ = jobTitleFiltersBuilder_.build(); - } - if (employerFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - employerFilters_ = java.util.Collections.unmodifiableList(employerFilters_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.employerFilters_ = employerFilters_; - } else { - result.employerFilters_ = employerFiltersBuilder_.build(); - } - if (educationFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - educationFilters_ = java.util.Collections.unmodifiableList(educationFilters_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.educationFilters_ = educationFilters_; - } else { - result.educationFilters_ = educationFiltersBuilder_.build(); - } - if (skillFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - skillFilters_ = java.util.Collections.unmodifiableList(skillFilters_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.skillFilters_ = skillFilters_; - } else { - result.skillFilters_ = skillFiltersBuilder_.build(); - } - if (workExperienceFilterBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - workExperienceFilter_ = java.util.Collections.unmodifiableList(workExperienceFilter_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.workExperienceFilter_ = workExperienceFilter_; - } else { - result.workExperienceFilter_ = workExperienceFilterBuilder_.build(); - } - if (timeFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - timeFilters_ = java.util.Collections.unmodifiableList(timeFilters_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.timeFilters_ = timeFilters_; - } else { - result.timeFilters_ = timeFiltersBuilder_.build(); - } - if (hirableFilterBuilder_ == null) { - result.hirableFilter_ = hirableFilter_; - } else { - result.hirableFilter_ = hirableFilterBuilder_.build(); - } - if (applicationDateFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.applicationDateFilters_ = applicationDateFilters_; - } else { - result.applicationDateFilters_ = applicationDateFiltersBuilder_.build(); - } - if (applicationOutcomeNotesFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - applicationOutcomeNotesFilters_ = - java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.applicationOutcomeNotesFilters_ = applicationOutcomeNotesFilters_; - } else { - result.applicationOutcomeNotesFilters_ = applicationOutcomeNotesFiltersBuilder_.build(); - } - if (applicationJobFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - applicationJobFilters_ = java.util.Collections.unmodifiableList(applicationJobFilters_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.applicationJobFilters_ = applicationJobFilters_; - } else { - result.applicationJobFilters_ = applicationJobFiltersBuilder_.build(); - } - result.customAttributeFilter_ = customAttributeFilter_; - if (candidateAvailabilityFilterBuilder_ == null) { - result.candidateAvailabilityFilter_ = candidateAvailabilityFilter_; - } else { - result.candidateAvailabilityFilter_ = candidateAvailabilityFilterBuilder_.build(); - } - if (availabilityFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { - availabilityFilters_ = java.util.Collections.unmodifiableList(availabilityFilters_); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.availabilityFilters_ = availabilityFilters_; - } else { - result.availabilityFilters_ = availabilityFiltersBuilder_.build(); - } - if (personNameFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - personNameFilters_ = java.util.Collections.unmodifiableList(personNameFilters_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.personNameFilters_ = personNameFilters_; - } else { - result.personNameFilters_ = personNameFiltersBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ProfileQuery) { - return mergeFrom((com.google.cloud.talent.v4beta1.ProfileQuery) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileQuery other) { - if (other == com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance()) return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - onChanged(); - } - if (locationFiltersBuilder_ == null) { - if (!other.locationFilters_.isEmpty()) { - if (locationFilters_.isEmpty()) { - locationFilters_ = other.locationFilters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationFiltersIsMutable(); - locationFilters_.addAll(other.locationFilters_); - } - onChanged(); - } - } else { - if (!other.locationFilters_.isEmpty()) { - if (locationFiltersBuilder_.isEmpty()) { - locationFiltersBuilder_.dispose(); - locationFiltersBuilder_ = null; - locationFilters_ = other.locationFilters_; - bitField0_ = (bitField0_ & ~0x00000001); - locationFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationFiltersFieldBuilder() - : null; - } else { - locationFiltersBuilder_.addAllMessages(other.locationFilters_); - } - } - } - if (jobTitleFiltersBuilder_ == null) { - if (!other.jobTitleFilters_.isEmpty()) { - if (jobTitleFilters_.isEmpty()) { - jobTitleFilters_ = other.jobTitleFilters_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.addAll(other.jobTitleFilters_); - } - onChanged(); - } - } else { - if (!other.jobTitleFilters_.isEmpty()) { - if (jobTitleFiltersBuilder_.isEmpty()) { - jobTitleFiltersBuilder_.dispose(); - jobTitleFiltersBuilder_ = null; - jobTitleFilters_ = other.jobTitleFilters_; - bitField0_ = (bitField0_ & ~0x00000002); - jobTitleFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getJobTitleFiltersFieldBuilder() - : null; - } else { - jobTitleFiltersBuilder_.addAllMessages(other.jobTitleFilters_); - } - } - } - if (employerFiltersBuilder_ == null) { - if (!other.employerFilters_.isEmpty()) { - if (employerFilters_.isEmpty()) { - employerFilters_ = other.employerFilters_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEmployerFiltersIsMutable(); - employerFilters_.addAll(other.employerFilters_); - } - onChanged(); - } - } else { - if (!other.employerFilters_.isEmpty()) { - if (employerFiltersBuilder_.isEmpty()) { - employerFiltersBuilder_.dispose(); - employerFiltersBuilder_ = null; - employerFilters_ = other.employerFilters_; - bitField0_ = (bitField0_ & ~0x00000004); - employerFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEmployerFiltersFieldBuilder() - : null; - } else { - employerFiltersBuilder_.addAllMessages(other.employerFilters_); - } - } - } - if (educationFiltersBuilder_ == null) { - if (!other.educationFilters_.isEmpty()) { - if (educationFilters_.isEmpty()) { - educationFilters_ = other.educationFilters_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureEducationFiltersIsMutable(); - educationFilters_.addAll(other.educationFilters_); - } - onChanged(); - } - } else { - if (!other.educationFilters_.isEmpty()) { - if (educationFiltersBuilder_.isEmpty()) { - educationFiltersBuilder_.dispose(); - educationFiltersBuilder_ = null; - educationFilters_ = other.educationFilters_; - bitField0_ = (bitField0_ & ~0x00000008); - educationFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEducationFiltersFieldBuilder() - : null; - } else { - educationFiltersBuilder_.addAllMessages(other.educationFilters_); - } - } - } - if (skillFiltersBuilder_ == null) { - if (!other.skillFilters_.isEmpty()) { - if (skillFilters_.isEmpty()) { - skillFilters_ = other.skillFilters_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSkillFiltersIsMutable(); - skillFilters_.addAll(other.skillFilters_); - } - onChanged(); - } - } else { - if (!other.skillFilters_.isEmpty()) { - if (skillFiltersBuilder_.isEmpty()) { - skillFiltersBuilder_.dispose(); - skillFiltersBuilder_ = null; - skillFilters_ = other.skillFilters_; - bitField0_ = (bitField0_ & ~0x00000010); - skillFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSkillFiltersFieldBuilder() - : null; - } else { - skillFiltersBuilder_.addAllMessages(other.skillFilters_); - } - } - } - if (workExperienceFilterBuilder_ == null) { - if (!other.workExperienceFilter_.isEmpty()) { - if (workExperienceFilter_.isEmpty()) { - workExperienceFilter_ = other.workExperienceFilter_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.addAll(other.workExperienceFilter_); - } - onChanged(); - } - } else { - if (!other.workExperienceFilter_.isEmpty()) { - if (workExperienceFilterBuilder_.isEmpty()) { - workExperienceFilterBuilder_.dispose(); - workExperienceFilterBuilder_ = null; - workExperienceFilter_ = other.workExperienceFilter_; - bitField0_ = (bitField0_ & ~0x00000020); - workExperienceFilterBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkExperienceFilterFieldBuilder() - : null; - } else { - workExperienceFilterBuilder_.addAllMessages(other.workExperienceFilter_); - } - } - } - if (timeFiltersBuilder_ == null) { - if (!other.timeFilters_.isEmpty()) { - if (timeFilters_.isEmpty()) { - timeFilters_ = other.timeFilters_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureTimeFiltersIsMutable(); - timeFilters_.addAll(other.timeFilters_); - } - onChanged(); - } - } else { - if (!other.timeFilters_.isEmpty()) { - if (timeFiltersBuilder_.isEmpty()) { - timeFiltersBuilder_.dispose(); - timeFiltersBuilder_ = null; - timeFilters_ = other.timeFilters_; - bitField0_ = (bitField0_ & ~0x00000040); - timeFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTimeFiltersFieldBuilder() - : null; - } else { - timeFiltersBuilder_.addAllMessages(other.timeFilters_); - } - } - } - if (other.hasHirableFilter()) { - mergeHirableFilter(other.getHirableFilter()); - } - if (applicationDateFiltersBuilder_ == null) { - if (!other.applicationDateFilters_.isEmpty()) { - if (applicationDateFilters_.isEmpty()) { - applicationDateFilters_ = other.applicationDateFilters_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.addAll(other.applicationDateFilters_); - } - onChanged(); - } - } else { - if (!other.applicationDateFilters_.isEmpty()) { - if (applicationDateFiltersBuilder_.isEmpty()) { - applicationDateFiltersBuilder_.dispose(); - applicationDateFiltersBuilder_ = null; - applicationDateFilters_ = other.applicationDateFilters_; - bitField0_ = (bitField0_ & ~0x00000080); - applicationDateFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApplicationDateFiltersFieldBuilder() - : null; - } else { - applicationDateFiltersBuilder_.addAllMessages(other.applicationDateFilters_); - } - } - } - if (applicationOutcomeNotesFiltersBuilder_ == null) { - if (!other.applicationOutcomeNotesFilters_.isEmpty()) { - if (applicationOutcomeNotesFilters_.isEmpty()) { - applicationOutcomeNotesFilters_ = other.applicationOutcomeNotesFilters_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.addAll(other.applicationOutcomeNotesFilters_); - } - onChanged(); - } - } else { - if (!other.applicationOutcomeNotesFilters_.isEmpty()) { - if (applicationOutcomeNotesFiltersBuilder_.isEmpty()) { - applicationOutcomeNotesFiltersBuilder_.dispose(); - applicationOutcomeNotesFiltersBuilder_ = null; - applicationOutcomeNotesFilters_ = other.applicationOutcomeNotesFilters_; - bitField0_ = (bitField0_ & ~0x00000100); - applicationOutcomeNotesFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApplicationOutcomeNotesFiltersFieldBuilder() - : null; - } else { - applicationOutcomeNotesFiltersBuilder_.addAllMessages( - other.applicationOutcomeNotesFilters_); - } - } - } - if (applicationJobFiltersBuilder_ == null) { - if (!other.applicationJobFilters_.isEmpty()) { - if (applicationJobFilters_.isEmpty()) { - applicationJobFilters_ = other.applicationJobFilters_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.addAll(other.applicationJobFilters_); - } - onChanged(); - } - } else { - if (!other.applicationJobFilters_.isEmpty()) { - if (applicationJobFiltersBuilder_.isEmpty()) { - applicationJobFiltersBuilder_.dispose(); - applicationJobFiltersBuilder_ = null; - applicationJobFilters_ = other.applicationJobFilters_; - bitField0_ = (bitField0_ & ~0x00000200); - applicationJobFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApplicationJobFiltersFieldBuilder() - : null; - } else { - applicationJobFiltersBuilder_.addAllMessages(other.applicationJobFilters_); - } - } - } - if (!other.getCustomAttributeFilter().isEmpty()) { - customAttributeFilter_ = other.customAttributeFilter_; - onChanged(); - } - if (other.hasCandidateAvailabilityFilter()) { - mergeCandidateAvailabilityFilter(other.getCandidateAvailabilityFilter()); - } - if (availabilityFiltersBuilder_ == null) { - if (!other.availabilityFilters_.isEmpty()) { - if (availabilityFilters_.isEmpty()) { - availabilityFilters_ = other.availabilityFilters_; - bitField0_ = (bitField0_ & ~0x00000400); - } else { - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.addAll(other.availabilityFilters_); - } - onChanged(); - } - } else { - if (!other.availabilityFilters_.isEmpty()) { - if (availabilityFiltersBuilder_.isEmpty()) { - availabilityFiltersBuilder_.dispose(); - availabilityFiltersBuilder_ = null; - availabilityFilters_ = other.availabilityFilters_; - bitField0_ = (bitField0_ & ~0x00000400); - availabilityFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAvailabilityFiltersFieldBuilder() - : null; - } else { - availabilityFiltersBuilder_.addAllMessages(other.availabilityFilters_); - } - } - } - if (personNameFiltersBuilder_ == null) { - if (!other.personNameFilters_.isEmpty()) { - if (personNameFilters_.isEmpty()) { - personNameFilters_ = other.personNameFilters_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensurePersonNameFiltersIsMutable(); - personNameFilters_.addAll(other.personNameFilters_); - } - onChanged(); - } - } else { - if (!other.personNameFilters_.isEmpty()) { - if (personNameFiltersBuilder_.isEmpty()) { - personNameFiltersBuilder_.dispose(); - personNameFiltersBuilder_ = null; - personNameFilters_ = other.personNameFilters_; - bitField0_ = (bitField0_ & ~0x00000800); - personNameFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPersonNameFiltersFieldBuilder() - : null; - } else { - personNameFiltersBuilder_.addAllMessages(other.personNameFilters_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.ProfileQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.ProfileQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object query_ = ""; - /** - * - * - *
-     * Keywords to match any text fields of profiles.
-     * For example, "software engineer in Palo Alto".
-     * 
- * - * string query = 1; - * - * @return The query. - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Keywords to match any text fields of profiles.
-     * For example, "software engineer in Palo Alto".
-     * 
- * - * string query = 1; - * - * @return The bytes for query. - */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Keywords to match any text fields of profiles.
-     * For example, "software engineer in Palo Alto".
-     * 
- * - * string query = 1; - * - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Keywords to match any text fields of profiles.
-     * For example, "software engineer in Palo Alto".
-     * 
- * - * string query = 1; - * - * @return This builder for chaining. - */ - public Builder clearQuery() { - - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * - * - *
-     * Keywords to match any text fields of profiles.
-     * For example, "software engineer in Palo Alto".
-     * 
- * - * string query = 1; - * - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value; - onChanged(); - return this; - } - - private java.util.List locationFilters_ = - java.util.Collections.emptyList(); - - private void ensureLocationFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locationFilters_ = - new java.util.ArrayList( - locationFilters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.LocationFilter, - com.google.cloud.talent.v4beta1.LocationFilter.Builder, - com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> - locationFiltersBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public java.util.List getLocationFiltersList() { - if (locationFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(locationFilters_); - } else { - return locationFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public int getLocationFiltersCount() { - if (locationFiltersBuilder_ == null) { - return locationFilters_.size(); - } else { - return locationFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) { - if (locationFiltersBuilder_ == null) { - return locationFilters_.get(index); - } else { - return locationFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder setLocationFilters( - int index, com.google.cloud.talent.v4beta1.LocationFilter value) { - if (locationFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationFiltersIsMutable(); - locationFilters_.set(index, value); - onChanged(); - } else { - locationFiltersBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder setLocationFilters( - int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { - if (locationFiltersBuilder_ == null) { - ensureLocationFiltersIsMutable(); - locationFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - locationFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) { - if (locationFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationFiltersIsMutable(); - locationFilters_.add(value); - onChanged(); - } else { - locationFiltersBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder addLocationFilters( - int index, com.google.cloud.talent.v4beta1.LocationFilter value) { - if (locationFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationFiltersIsMutable(); - locationFilters_.add(index, value); - onChanged(); - } else { - locationFiltersBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder addLocationFilters( - com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { - if (locationFiltersBuilder_ == null) { - ensureLocationFiltersIsMutable(); - locationFilters_.add(builderForValue.build()); - onChanged(); - } else { - locationFiltersBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder addLocationFilters( - int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) { - if (locationFiltersBuilder_ == null) { - ensureLocationFiltersIsMutable(); - locationFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - locationFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder addAllLocationFilters( - java.lang.Iterable values) { - if (locationFiltersBuilder_ == null) { - ensureLocationFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_); - onChanged(); - } else { - locationFiltersBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder clearLocationFilters() { - if (locationFiltersBuilder_ == null) { - locationFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationFiltersBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public Builder removeLocationFilters(int index) { - if (locationFiltersBuilder_ == null) { - ensureLocationFiltersIsMutable(); - locationFilters_.remove(index); - onChanged(); - } else { - locationFiltersBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder( - int index) { - return getLocationFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder( - int index) { - if (locationFiltersBuilder_ == null) { - return locationFilters_.get(index); - } else { - return locationFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public java.util.List - getLocationFiltersOrBuilderList() { - if (locationFiltersBuilder_ != null) { - return locationFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(locationFilters_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() { - return getLocationFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder( - int index) { - return getLocationFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - public java.util.List - getLocationFiltersBuilderList() { - return getLocationFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.LocationFilter, - com.google.cloud.talent.v4beta1.LocationFilter.Builder, - com.google.cloud.talent.v4beta1.LocationFilterOrBuilder> - getLocationFiltersFieldBuilder() { - if (locationFiltersBuilder_ == null) { - locationFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.LocationFilter, - com.google.cloud.talent.v4beta1.LocationFilter.Builder, - com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>( - locationFilters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - locationFilters_ = null; - } - return locationFiltersBuilder_; - } - - private java.util.List jobTitleFilters_ = - java.util.Collections.emptyList(); - - private void ensureJobTitleFiltersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - jobTitleFilters_ = - new java.util.ArrayList( - jobTitleFilters_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.JobTitleFilter, - com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, - com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> - jobTitleFiltersBuilder_; - - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public java.util.List getJobTitleFiltersList() { - if (jobTitleFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(jobTitleFilters_); - } else { - return jobTitleFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public int getJobTitleFiltersCount() { - if (jobTitleFiltersBuilder_ == null) { - return jobTitleFilters_.size(); - } else { - return jobTitleFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index) { - if (jobTitleFiltersBuilder_ == null) { - return jobTitleFilters_.get(index); - } else { - return jobTitleFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder setJobTitleFilters( - int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { - if (jobTitleFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.set(index, value); - onChanged(); - } else { - jobTitleFiltersBuilder_.setMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder setJobTitleFilters( - int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { - if (jobTitleFiltersBuilder_ == null) { - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - jobTitleFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder addJobTitleFilters(com.google.cloud.talent.v4beta1.JobTitleFilter value) { - if (jobTitleFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.add(value); - onChanged(); - } else { - jobTitleFiltersBuilder_.addMessage(value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder addJobTitleFilters( - int index, com.google.cloud.talent.v4beta1.JobTitleFilter value) { - if (jobTitleFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.add(index, value); - onChanged(); - } else { - jobTitleFiltersBuilder_.addMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder addJobTitleFilters( - com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { - if (jobTitleFiltersBuilder_ == null) { - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.add(builderForValue.build()); - onChanged(); - } else { - jobTitleFiltersBuilder_.addMessage(builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder addJobTitleFilters( - int index, com.google.cloud.talent.v4beta1.JobTitleFilter.Builder builderForValue) { - if (jobTitleFiltersBuilder_ == null) { - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - jobTitleFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder addAllJobTitleFilters( - java.lang.Iterable values) { - if (jobTitleFiltersBuilder_ == null) { - ensureJobTitleFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobTitleFilters_); - onChanged(); - } else { - jobTitleFiltersBuilder_.addAllMessages(values); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder clearJobTitleFilters() { - if (jobTitleFiltersBuilder_ == null) { - jobTitleFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - jobTitleFiltersBuilder_.clear(); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public Builder removeJobTitleFilters(int index) { - if (jobTitleFiltersBuilder_ == null) { - ensureJobTitleFiltersIsMutable(); - jobTitleFilters_.remove(index); - onChanged(); - } else { - jobTitleFiltersBuilder_.remove(index); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder getJobTitleFiltersBuilder( - int index) { - return getJobTitleFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder( - int index) { - if (jobTitleFiltersBuilder_ == null) { - return jobTitleFilters_.get(index); - } else { - return jobTitleFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public java.util.List - getJobTitleFiltersOrBuilderList() { - if (jobTitleFiltersBuilder_ != null) { - return jobTitleFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(jobTitleFilters_); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder() { - return getJobTitleFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public com.google.cloud.talent.v4beta1.JobTitleFilter.Builder addJobTitleFiltersBuilder( - int index) { - return getJobTitleFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.JobTitleFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - public java.util.List - getJobTitleFiltersBuilderList() { - return getJobTitleFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.JobTitleFilter, - com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, - com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder> - getJobTitleFiltersFieldBuilder() { - if (jobTitleFiltersBuilder_ == null) { - jobTitleFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.JobTitleFilter, - com.google.cloud.talent.v4beta1.JobTitleFilter.Builder, - com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder>( - jobTitleFilters_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - jobTitleFilters_ = null; - } - return jobTitleFiltersBuilder_; - } - - private java.util.List employerFilters_ = - java.util.Collections.emptyList(); - - private void ensureEmployerFiltersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - employerFilters_ = - new java.util.ArrayList( - employerFilters_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EmployerFilter, - com.google.cloud.talent.v4beta1.EmployerFilter.Builder, - com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> - employerFiltersBuilder_; - - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public java.util.List getEmployerFiltersList() { - if (employerFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(employerFilters_); - } else { - return employerFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public int getEmployerFiltersCount() { - if (employerFiltersBuilder_ == null) { - return employerFilters_.size(); - } else { - return employerFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index) { - if (employerFiltersBuilder_ == null) { - return employerFilters_.get(index); - } else { - return employerFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder setEmployerFilters( - int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { - if (employerFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmployerFiltersIsMutable(); - employerFilters_.set(index, value); - onChanged(); - } else { - employerFiltersBuilder_.setMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder setEmployerFilters( - int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { - if (employerFiltersBuilder_ == null) { - ensureEmployerFiltersIsMutable(); - employerFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - employerFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder addEmployerFilters(com.google.cloud.talent.v4beta1.EmployerFilter value) { - if (employerFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmployerFiltersIsMutable(); - employerFilters_.add(value); - onChanged(); - } else { - employerFiltersBuilder_.addMessage(value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder addEmployerFilters( - int index, com.google.cloud.talent.v4beta1.EmployerFilter value) { - if (employerFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmployerFiltersIsMutable(); - employerFilters_.add(index, value); - onChanged(); - } else { - employerFiltersBuilder_.addMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder addEmployerFilters( - com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { - if (employerFiltersBuilder_ == null) { - ensureEmployerFiltersIsMutable(); - employerFilters_.add(builderForValue.build()); - onChanged(); - } else { - employerFiltersBuilder_.addMessage(builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder addEmployerFilters( - int index, com.google.cloud.talent.v4beta1.EmployerFilter.Builder builderForValue) { - if (employerFiltersBuilder_ == null) { - ensureEmployerFiltersIsMutable(); - employerFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - employerFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder addAllEmployerFilters( - java.lang.Iterable values) { - if (employerFiltersBuilder_ == null) { - ensureEmployerFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, employerFilters_); - onChanged(); - } else { - employerFiltersBuilder_.addAllMessages(values); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder clearEmployerFilters() { - if (employerFiltersBuilder_ == null) { - employerFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - employerFiltersBuilder_.clear(); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public Builder removeEmployerFilters(int index) { - if (employerFiltersBuilder_ == null) { - ensureEmployerFiltersIsMutable(); - employerFilters_.remove(index); - onChanged(); - } else { - employerFiltersBuilder_.remove(index); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public com.google.cloud.talent.v4beta1.EmployerFilter.Builder getEmployerFiltersBuilder( - int index) { - return getEmployerFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder( - int index) { - if (employerFiltersBuilder_ == null) { - return employerFilters_.get(index); - } else { - return employerFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public java.util.List - getEmployerFiltersOrBuilderList() { - if (employerFiltersBuilder_ != null) { - return employerFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(employerFilters_); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder() { - return getEmployerFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public com.google.cloud.talent.v4beta1.EmployerFilter.Builder addEmployerFiltersBuilder( - int index) { - return getEmployerFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.EmployerFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - public java.util.List - getEmployerFiltersBuilderList() { - return getEmployerFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EmployerFilter, - com.google.cloud.talent.v4beta1.EmployerFilter.Builder, - com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder> - getEmployerFiltersFieldBuilder() { - if (employerFiltersBuilder_ == null) { - employerFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EmployerFilter, - com.google.cloud.talent.v4beta1.EmployerFilter.Builder, - com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder>( - employerFilters_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - employerFilters_ = null; - } - return employerFiltersBuilder_; - } - - private java.util.List educationFilters_ = - java.util.Collections.emptyList(); - - private void ensureEducationFiltersIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - educationFilters_ = - new java.util.ArrayList( - educationFilters_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EducationFilter, - com.google.cloud.talent.v4beta1.EducationFilter.Builder, - com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> - educationFiltersBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public java.util.List - getEducationFiltersList() { - if (educationFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(educationFilters_); - } else { - return educationFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public int getEducationFiltersCount() { - if (educationFiltersBuilder_ == null) { - return educationFilters_.size(); - } else { - return educationFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index) { - if (educationFiltersBuilder_ == null) { - return educationFilters_.get(index); - } else { - return educationFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder setEducationFilters( - int index, com.google.cloud.talent.v4beta1.EducationFilter value) { - if (educationFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEducationFiltersIsMutable(); - educationFilters_.set(index, value); - onChanged(); - } else { - educationFiltersBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder setEducationFilters( - int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { - if (educationFiltersBuilder_ == null) { - ensureEducationFiltersIsMutable(); - educationFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - educationFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder addEducationFilters(com.google.cloud.talent.v4beta1.EducationFilter value) { - if (educationFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEducationFiltersIsMutable(); - educationFilters_.add(value); - onChanged(); - } else { - educationFiltersBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder addEducationFilters( - int index, com.google.cloud.talent.v4beta1.EducationFilter value) { - if (educationFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEducationFiltersIsMutable(); - educationFilters_.add(index, value); - onChanged(); - } else { - educationFiltersBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder addEducationFilters( - com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { - if (educationFiltersBuilder_ == null) { - ensureEducationFiltersIsMutable(); - educationFilters_.add(builderForValue.build()); - onChanged(); - } else { - educationFiltersBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder addEducationFilters( - int index, com.google.cloud.talent.v4beta1.EducationFilter.Builder builderForValue) { - if (educationFiltersBuilder_ == null) { - ensureEducationFiltersIsMutable(); - educationFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - educationFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder addAllEducationFilters( - java.lang.Iterable values) { - if (educationFiltersBuilder_ == null) { - ensureEducationFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, educationFilters_); - onChanged(); - } else { - educationFiltersBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder clearEducationFilters() { - if (educationFiltersBuilder_ == null) { - educationFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - educationFiltersBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public Builder removeEducationFilters(int index) { - if (educationFiltersBuilder_ == null) { - ensureEducationFiltersIsMutable(); - educationFilters_.remove(index); - onChanged(); - } else { - educationFiltersBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public com.google.cloud.talent.v4beta1.EducationFilter.Builder getEducationFiltersBuilder( - int index) { - return getEducationFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder( - int index) { - if (educationFiltersBuilder_ == null) { - return educationFilters_.get(index); - } else { - return educationFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public java.util.List - getEducationFiltersOrBuilderList() { - if (educationFiltersBuilder_ != null) { - return educationFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(educationFilters_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder() { - return getEducationFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public com.google.cloud.talent.v4beta1.EducationFilter.Builder addEducationFiltersBuilder( - int index) { - return getEducationFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.EducationFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - public java.util.List - getEducationFiltersBuilderList() { - return getEducationFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EducationFilter, - com.google.cloud.talent.v4beta1.EducationFilter.Builder, - com.google.cloud.talent.v4beta1.EducationFilterOrBuilder> - getEducationFiltersFieldBuilder() { - if (educationFiltersBuilder_ == null) { - educationFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.EducationFilter, - com.google.cloud.talent.v4beta1.EducationFilter.Builder, - com.google.cloud.talent.v4beta1.EducationFilterOrBuilder>( - educationFilters_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - educationFilters_ = null; - } - return educationFiltersBuilder_; - } - - private java.util.List skillFilters_ = - java.util.Collections.emptyList(); - - private void ensureSkillFiltersIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - skillFilters_ = - new java.util.ArrayList(skillFilters_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.SkillFilter, - com.google.cloud.talent.v4beta1.SkillFilter.Builder, - com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> - skillFiltersBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public java.util.List getSkillFiltersList() { - if (skillFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(skillFilters_); - } else { - return skillFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public int getSkillFiltersCount() { - if (skillFiltersBuilder_ == null) { - return skillFilters_.size(); - } else { - return skillFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index) { - if (skillFiltersBuilder_ == null) { - return skillFilters_.get(index); - } else { - return skillFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder setSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { - if (skillFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillFiltersIsMutable(); - skillFilters_.set(index, value); - onChanged(); - } else { - skillFiltersBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder setSkillFilters( - int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { - if (skillFiltersBuilder_ == null) { - ensureSkillFiltersIsMutable(); - skillFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - skillFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder addSkillFilters(com.google.cloud.talent.v4beta1.SkillFilter value) { - if (skillFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillFiltersIsMutable(); - skillFilters_.add(value); - onChanged(); - } else { - skillFiltersBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder addSkillFilters(int index, com.google.cloud.talent.v4beta1.SkillFilter value) { - if (skillFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillFiltersIsMutable(); - skillFilters_.add(index, value); - onChanged(); - } else { - skillFiltersBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder addSkillFilters( - com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { - if (skillFiltersBuilder_ == null) { - ensureSkillFiltersIsMutable(); - skillFilters_.add(builderForValue.build()); - onChanged(); - } else { - skillFiltersBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder addSkillFilters( - int index, com.google.cloud.talent.v4beta1.SkillFilter.Builder builderForValue) { - if (skillFiltersBuilder_ == null) { - ensureSkillFiltersIsMutable(); - skillFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - skillFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder addAllSkillFilters( - java.lang.Iterable values) { - if (skillFiltersBuilder_ == null) { - ensureSkillFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skillFilters_); - onChanged(); - } else { - skillFiltersBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder clearSkillFilters() { - if (skillFiltersBuilder_ == null) { - skillFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - skillFiltersBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public Builder removeSkillFilters(int index) { - if (skillFiltersBuilder_ == null) { - ensureSkillFiltersIsMutable(); - skillFilters_.remove(index); - onChanged(); - } else { - skillFiltersBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public com.google.cloud.talent.v4beta1.SkillFilter.Builder getSkillFiltersBuilder(int index) { - return getSkillFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder( - int index) { - if (skillFiltersBuilder_ == null) { - return skillFilters_.get(index); - } else { - return skillFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public java.util.List - getSkillFiltersOrBuilderList() { - if (skillFiltersBuilder_ != null) { - return skillFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(skillFilters_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder() { - return getSkillFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public com.google.cloud.talent.v4beta1.SkillFilter.Builder addSkillFiltersBuilder(int index) { - return getSkillFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - public java.util.List - getSkillFiltersBuilderList() { - return getSkillFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.SkillFilter, - com.google.cloud.talent.v4beta1.SkillFilter.Builder, - com.google.cloud.talent.v4beta1.SkillFilterOrBuilder> - getSkillFiltersFieldBuilder() { - if (skillFiltersBuilder_ == null) { - skillFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.SkillFilter, - com.google.cloud.talent.v4beta1.SkillFilter.Builder, - com.google.cloud.talent.v4beta1.SkillFilterOrBuilder>( - skillFilters_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - skillFilters_ = null; - } - return skillFiltersBuilder_; - } - - private java.util.List - workExperienceFilter_ = java.util.Collections.emptyList(); - - private void ensureWorkExperienceFilterIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - workExperienceFilter_ = - new java.util.ArrayList( - workExperienceFilter_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.WorkExperienceFilter, - com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, - com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> - workExperienceFilterBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public java.util.List - getWorkExperienceFilterList() { - if (workExperienceFilterBuilder_ == null) { - return java.util.Collections.unmodifiableList(workExperienceFilter_); - } else { - return workExperienceFilterBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public int getWorkExperienceFilterCount() { - if (workExperienceFilterBuilder_ == null) { - return workExperienceFilter_.size(); - } else { - return workExperienceFilterBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index) { - if (workExperienceFilterBuilder_ == null) { - return workExperienceFilter_.get(index); - } else { - return workExperienceFilterBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder setWorkExperienceFilter( - int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { - if (workExperienceFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.set(index, value); - onChanged(); - } else { - workExperienceFilterBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder setWorkExperienceFilter( - int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { - if (workExperienceFilterBuilder_ == null) { - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.set(index, builderForValue.build()); - onChanged(); - } else { - workExperienceFilterBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder addWorkExperienceFilter( - com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { - if (workExperienceFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.add(value); - onChanged(); - } else { - workExperienceFilterBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder addWorkExperienceFilter( - int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter value) { - if (workExperienceFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.add(index, value); - onChanged(); - } else { - workExperienceFilterBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder addWorkExperienceFilter( - com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { - if (workExperienceFilterBuilder_ == null) { - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.add(builderForValue.build()); - onChanged(); - } else { - workExperienceFilterBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder addWorkExperienceFilter( - int index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder builderForValue) { - if (workExperienceFilterBuilder_ == null) { - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.add(index, builderForValue.build()); - onChanged(); - } else { - workExperienceFilterBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder addAllWorkExperienceFilter( - java.lang.Iterable values) { - if (workExperienceFilterBuilder_ == null) { - ensureWorkExperienceFilterIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workExperienceFilter_); - onChanged(); - } else { - workExperienceFilterBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder clearWorkExperienceFilter() { - if (workExperienceFilterBuilder_ == null) { - workExperienceFilter_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - workExperienceFilterBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public Builder removeWorkExperienceFilter(int index) { - if (workExperienceFilterBuilder_ == null) { - ensureWorkExperienceFilterIsMutable(); - workExperienceFilter_.remove(index); - onChanged(); - } else { - workExperienceFilterBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder - getWorkExperienceFilterBuilder(int index) { - return getWorkExperienceFilterFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder - getWorkExperienceFilterOrBuilder(int index) { - if (workExperienceFilterBuilder_ == null) { - return workExperienceFilter_.get(index); - } else { - return workExperienceFilterBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public java.util.List - getWorkExperienceFilterOrBuilderList() { - if (workExperienceFilterBuilder_ != null) { - return workExperienceFilterBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workExperienceFilter_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder - addWorkExperienceFilterBuilder() { - return getWorkExperienceFilterFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder - addWorkExperienceFilterBuilder(int index) { - return getWorkExperienceFilterFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - public java.util.List - getWorkExperienceFilterBuilderList() { - return getWorkExperienceFilterFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.WorkExperienceFilter, - com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, - com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder> - getWorkExperienceFilterFieldBuilder() { - if (workExperienceFilterBuilder_ == null) { - workExperienceFilterBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.WorkExperienceFilter, - com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder, - com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder>( - workExperienceFilter_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - workExperienceFilter_ = null; - } - return workExperienceFilterBuilder_; - } - - private java.util.List timeFilters_ = - java.util.Collections.emptyList(); - - private void ensureTimeFiltersIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - timeFilters_ = - new java.util.ArrayList(timeFilters_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.TimeFilter, - com.google.cloud.talent.v4beta1.TimeFilter.Builder, - com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> - timeFiltersBuilder_; - - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public java.util.List getTimeFiltersList() { - if (timeFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(timeFilters_); - } else { - return timeFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public int getTimeFiltersCount() { - if (timeFiltersBuilder_ == null) { - return timeFilters_.size(); - } else { - return timeFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index) { - if (timeFiltersBuilder_ == null) { - return timeFilters_.get(index); - } else { - return timeFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder setTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { - if (timeFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimeFiltersIsMutable(); - timeFilters_.set(index, value); - onChanged(); - } else { - timeFiltersBuilder_.setMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder setTimeFilters( - int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { - if (timeFiltersBuilder_ == null) { - ensureTimeFiltersIsMutable(); - timeFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - timeFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder addTimeFilters(com.google.cloud.talent.v4beta1.TimeFilter value) { - if (timeFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimeFiltersIsMutable(); - timeFilters_.add(value); - onChanged(); - } else { - timeFiltersBuilder_.addMessage(value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder addTimeFilters(int index, com.google.cloud.talent.v4beta1.TimeFilter value) { - if (timeFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTimeFiltersIsMutable(); - timeFilters_.add(index, value); - onChanged(); - } else { - timeFiltersBuilder_.addMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder addTimeFilters( - com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { - if (timeFiltersBuilder_ == null) { - ensureTimeFiltersIsMutable(); - timeFilters_.add(builderForValue.build()); - onChanged(); - } else { - timeFiltersBuilder_.addMessage(builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder addTimeFilters( - int index, com.google.cloud.talent.v4beta1.TimeFilter.Builder builderForValue) { - if (timeFiltersBuilder_ == null) { - ensureTimeFiltersIsMutable(); - timeFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - timeFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder addAllTimeFilters( - java.lang.Iterable values) { - if (timeFiltersBuilder_ == null) { - ensureTimeFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, timeFilters_); - onChanged(); - } else { - timeFiltersBuilder_.addAllMessages(values); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder clearTimeFilters() { - if (timeFiltersBuilder_ == null) { - timeFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - timeFiltersBuilder_.clear(); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public Builder removeTimeFilters(int index) { - if (timeFiltersBuilder_ == null) { - ensureTimeFiltersIsMutable(); - timeFilters_.remove(index); - onChanged(); - } else { - timeFiltersBuilder_.remove(index); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public com.google.cloud.talent.v4beta1.TimeFilter.Builder getTimeFiltersBuilder(int index) { - return getTimeFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index) { - if (timeFiltersBuilder_ == null) { - return timeFilters_.get(index); - } else { - return timeFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public java.util.List - getTimeFiltersOrBuilderList() { - if (timeFiltersBuilder_ != null) { - return timeFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(timeFilters_); - } - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder() { - return getTimeFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public com.google.cloud.talent.v4beta1.TimeFilter.Builder addTimeFiltersBuilder(int index) { - return getTimeFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()); - } - /** - * - * - *
-     * Time filter specifies the create/update timestamp of the profiles to match
-     * on.
-     * For example, search for profiles created since "2018-1-1".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - public java.util.List - getTimeFiltersBuilderList() { - return getTimeFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.TimeFilter, - com.google.cloud.talent.v4beta1.TimeFilter.Builder, - com.google.cloud.talent.v4beta1.TimeFilterOrBuilder> - getTimeFiltersFieldBuilder() { - if (timeFiltersBuilder_ == null) { - timeFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.TimeFilter, - com.google.cloud.talent.v4beta1.TimeFilter.Builder, - com.google.cloud.talent.v4beta1.TimeFilterOrBuilder>( - timeFilters_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); - timeFilters_ = null; - } - return timeFiltersBuilder_; - } - - private com.google.protobuf.BoolValue hirableFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - hirableFilterBuilder_; - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - * - * @return Whether the hirableFilter field is set. - */ - public boolean hasHirableFilter() { - return hirableFilterBuilder_ != null || hirableFilter_ != null; - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - * - * @return The hirableFilter. - */ - public com.google.protobuf.BoolValue getHirableFilter() { - if (hirableFilterBuilder_ == null) { - return hirableFilter_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : hirableFilter_; - } else { - return hirableFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - public Builder setHirableFilter(com.google.protobuf.BoolValue value) { - if (hirableFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - hirableFilter_ = value; - onChanged(); - } else { - hirableFilterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - public Builder setHirableFilter(com.google.protobuf.BoolValue.Builder builderForValue) { - if (hirableFilterBuilder_ == null) { - hirableFilter_ = builderForValue.build(); - onChanged(); - } else { - hirableFilterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - public Builder mergeHirableFilter(com.google.protobuf.BoolValue value) { - if (hirableFilterBuilder_ == null) { - if (hirableFilter_ != null) { - hirableFilter_ = - com.google.protobuf.BoolValue.newBuilder(hirableFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - hirableFilter_ = value; - } - onChanged(); - } else { - hirableFilterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - public Builder clearHirableFilter() { - if (hirableFilterBuilder_ == null) { - hirableFilter_ = null; - onChanged(); - } else { - hirableFilter_ = null; - hirableFilterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - public com.google.protobuf.BoolValue.Builder getHirableFilterBuilder() { - - onChanged(); - return getHirableFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - public com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder() { - if (hirableFilterBuilder_ != null) { - return hirableFilterBuilder_.getMessageOrBuilder(); - } else { - return hirableFilter_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : hirableFilter_; - } - } - /** - * - * - *
-     * The hirable filter specifies the profile's hirable status to match on.
-     * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getHirableFilterFieldBuilder() { - if (hirableFilterBuilder_ == null) { - hirableFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getHirableFilter(), getParentForChildren(), isClean()); - hirableFilter_ = null; - } - return hirableFilterBuilder_; - } - - private java.util.List - applicationDateFilters_ = java.util.Collections.emptyList(); - - private void ensureApplicationDateFiltersIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - applicationDateFilters_ = - new java.util.ArrayList( - applicationDateFilters_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationDateFilter, - com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> - applicationDateFiltersBuilder_; - - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public java.util.List - getApplicationDateFiltersList() { - if (applicationDateFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(applicationDateFilters_); - } else { - return applicationDateFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public int getApplicationDateFiltersCount() { - if (applicationDateFiltersBuilder_ == null) { - return applicationDateFilters_.size(); - } else { - return applicationDateFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters( - int index) { - if (applicationDateFiltersBuilder_ == null) { - return applicationDateFilters_.get(index); - } else { - return applicationDateFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder setApplicationDateFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { - if (applicationDateFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.set(index, value); - onChanged(); - } else { - applicationDateFiltersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder setApplicationDateFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { - if (applicationDateFiltersBuilder_ == null) { - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - applicationDateFiltersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder addApplicationDateFilters( - com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { - if (applicationDateFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.add(value); - onChanged(); - } else { - applicationDateFiltersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder addApplicationDateFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter value) { - if (applicationDateFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.add(index, value); - onChanged(); - } else { - applicationDateFiltersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder addApplicationDateFilters( - com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { - if (applicationDateFiltersBuilder_ == null) { - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.add(builderForValue.build()); - onChanged(); - } else { - applicationDateFiltersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder addApplicationDateFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder builderForValue) { - if (applicationDateFiltersBuilder_ == null) { - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - applicationDateFiltersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder addAllApplicationDateFilters( - java.lang.Iterable - values) { - if (applicationDateFiltersBuilder_ == null) { - ensureApplicationDateFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationDateFilters_); - onChanged(); - } else { - applicationDateFiltersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder clearApplicationDateFilters() { - if (applicationDateFiltersBuilder_ == null) { - applicationDateFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - applicationDateFiltersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public Builder removeApplicationDateFilters(int index) { - if (applicationDateFiltersBuilder_ == null) { - ensureApplicationDateFiltersIsMutable(); - applicationDateFilters_.remove(index); - onChanged(); - } else { - applicationDateFiltersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder - getApplicationDateFiltersBuilder(int index) { - return getApplicationDateFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder - getApplicationDateFiltersOrBuilder(int index) { - if (applicationDateFiltersBuilder_ == null) { - return applicationDateFilters_.get(index); - } else { - return applicationDateFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public java.util.List - getApplicationDateFiltersOrBuilderList() { - if (applicationDateFiltersBuilder_ != null) { - return applicationDateFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(applicationDateFilters_); - } - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder - addApplicationDateFiltersBuilder() { - return getApplicationDateFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder - addApplicationDateFiltersBuilder(int index) { - return getApplicationDateFiltersFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.ApplicationDateFilter.getDefaultInstance()); - } - /** - * - * - *
-     * The application date filters specify application date ranges to match on.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - public java.util.List - getApplicationDateFiltersBuilderList() { - return getApplicationDateFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationDateFilter, - com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder> - getApplicationDateFiltersFieldBuilder() { - if (applicationDateFiltersBuilder_ == null) { - applicationDateFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationDateFilter, - com.google.cloud.talent.v4beta1.ApplicationDateFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder>( - applicationDateFilters_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - applicationDateFilters_ = null; - } - return applicationDateFiltersBuilder_; - } - - private java.util.List - applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); - - private void ensureApplicationOutcomeNotesFiltersIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - applicationOutcomeNotesFilters_ = - new java.util.ArrayList( - applicationOutcomeNotesFilters_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder> - applicationOutcomeNotesFiltersBuilder_; - - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public java.util.List - getApplicationOutcomeNotesFiltersList() { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); - } else { - return applicationOutcomeNotesFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public int getApplicationOutcomeNotesFiltersCount() { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - return applicationOutcomeNotesFilters_.size(); - } else { - return applicationOutcomeNotesFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter - getApplicationOutcomeNotesFilters(int index) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - return applicationOutcomeNotesFilters_.get(index); - } else { - return applicationOutcomeNotesFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder setApplicationOutcomeNotesFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter value) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.set(index, value); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder setApplicationOutcomeNotesFilters( - int index, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder builderForValue) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder addApplicationOutcomeNotesFilters( - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter value) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.add(value); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder addApplicationOutcomeNotesFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter value) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.add(index, value); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder addApplicationOutcomeNotesFilters( - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder builderForValue) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.add(builderForValue.build()); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder addApplicationOutcomeNotesFilters( - int index, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder builderForValue) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder addAllApplicationOutcomeNotesFilters( - java.lang.Iterable - values) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - ensureApplicationOutcomeNotesFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, applicationOutcomeNotesFilters_); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder clearApplicationOutcomeNotesFilters() { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public Builder removeApplicationOutcomeNotesFilters(int index) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - ensureApplicationOutcomeNotesFiltersIsMutable(); - applicationOutcomeNotesFilters_.remove(index); - onChanged(); - } else { - applicationOutcomeNotesFiltersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder - getApplicationOutcomeNotesFiltersBuilder(int index) { - return getApplicationOutcomeNotesFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder - getApplicationOutcomeNotesFiltersOrBuilder(int index) { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - return applicationOutcomeNotesFilters_.get(index); - } else { - return applicationOutcomeNotesFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public java.util.List< - ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder> - getApplicationOutcomeNotesFiltersOrBuilderList() { - if (applicationOutcomeNotesFiltersBuilder_ != null) { - return applicationOutcomeNotesFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); - } - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder - addApplicationOutcomeNotesFiltersBuilder() { - return getApplicationOutcomeNotesFiltersFieldBuilder() - .addBuilder( - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance()); - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder - addApplicationOutcomeNotesFiltersBuilder(int index) { - return getApplicationOutcomeNotesFiltersFieldBuilder() - .addBuilder( - index, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance()); - } - /** - * - * - *
-     * The application outcome notes filters specify the notes for the outcome of
-     * the job application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - public java.util.List - getApplicationOutcomeNotesFiltersBuilderList() { - return getApplicationOutcomeNotesFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder> - getApplicationOutcomeNotesFiltersFieldBuilder() { - if (applicationOutcomeNotesFiltersBuilder_ == null) { - applicationOutcomeNotesFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder>( - applicationOutcomeNotesFilters_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - applicationOutcomeNotesFilters_ = null; - } - return applicationOutcomeNotesFiltersBuilder_; - } - - private java.util.List - applicationJobFilters_ = java.util.Collections.emptyList(); - - private void ensureApplicationJobFiltersIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - applicationJobFilters_ = - new java.util.ArrayList( - applicationJobFilters_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationJobFilter, - com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> - applicationJobFiltersBuilder_; - - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public java.util.List - getApplicationJobFiltersList() { - if (applicationJobFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(applicationJobFilters_); - } else { - return applicationJobFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public int getApplicationJobFiltersCount() { - if (applicationJobFiltersBuilder_ == null) { - return applicationJobFilters_.size(); - } else { - return applicationJobFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters( - int index) { - if (applicationJobFiltersBuilder_ == null) { - return applicationJobFilters_.get(index); - } else { - return applicationJobFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder setApplicationJobFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { - if (applicationJobFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.set(index, value); - onChanged(); - } else { - applicationJobFiltersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder setApplicationJobFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { - if (applicationJobFiltersBuilder_ == null) { - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - applicationJobFiltersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder addApplicationJobFilters( - com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { - if (applicationJobFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.add(value); - onChanged(); - } else { - applicationJobFiltersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder addApplicationJobFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter value) { - if (applicationJobFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.add(index, value); - onChanged(); - } else { - applicationJobFiltersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder addApplicationJobFilters( - com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { - if (applicationJobFiltersBuilder_ == null) { - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.add(builderForValue.build()); - onChanged(); - } else { - applicationJobFiltersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder addApplicationJobFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder builderForValue) { - if (applicationJobFiltersBuilder_ == null) { - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - applicationJobFiltersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder addAllApplicationJobFilters( - java.lang.Iterable values) { - if (applicationJobFiltersBuilder_ == null) { - ensureApplicationJobFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applicationJobFilters_); - onChanged(); - } else { - applicationJobFiltersBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder clearApplicationJobFilters() { - if (applicationJobFiltersBuilder_ == null) { - applicationJobFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - applicationJobFiltersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public Builder removeApplicationJobFilters(int index) { - if (applicationJobFiltersBuilder_ == null) { - ensureApplicationJobFiltersIsMutable(); - applicationJobFilters_.remove(index); - onChanged(); - } else { - applicationJobFiltersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder - getApplicationJobFiltersBuilder(int index) { - return getApplicationJobFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder - getApplicationJobFiltersOrBuilder(int index) { - if (applicationJobFiltersBuilder_ == null) { - return applicationJobFilters_.get(index); - } else { - return applicationJobFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public java.util.List - getApplicationJobFiltersOrBuilderList() { - if (applicationJobFiltersBuilder_ != null) { - return applicationJobFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(applicationJobFilters_); - } - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder - addApplicationJobFiltersBuilder() { - return getApplicationJobFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder - addApplicationJobFiltersBuilder(int index) { - return getApplicationJobFiltersFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()); - } - /** - * - * - *
-     * The application job filters specify the job applied for in the application.
-     * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - public java.util.List - getApplicationJobFiltersBuilderList() { - return getApplicationJobFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationJobFilter, - com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder> - getApplicationJobFiltersFieldBuilder() { - if (applicationJobFiltersBuilder_ == null) { - applicationJobFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationJobFilter, - com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder>( - applicationJobFilters_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - applicationJobFilters_ = null; - } - return applicationJobFiltersBuilder_; - } - - private java.lang.Object customAttributeFilter_ = ""; - /** - * - * - *
-     * 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(<field_name>) to
-     * perform case insensitive match and EMPTY(<field_name>) 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))
-     * 
- * - * string custom_attribute_filter = 15; - * - * @return The customAttributeFilter. - */ - public java.lang.String getCustomAttributeFilter() { - java.lang.Object ref = customAttributeFilter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - customAttributeFilter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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(<field_name>) to
-     * perform case insensitive match and EMPTY(<field_name>) 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))
-     * 
- * - * string custom_attribute_filter = 15; - * - * @return The bytes for customAttributeFilter. - */ - public com.google.protobuf.ByteString getCustomAttributeFilterBytes() { - java.lang.Object ref = customAttributeFilter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - customAttributeFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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(<field_name>) to
-     * perform case insensitive match and EMPTY(<field_name>) 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))
-     * 
- * - * string custom_attribute_filter = 15; - * - * @param value The customAttributeFilter to set. - * @return This builder for chaining. - */ - public Builder setCustomAttributeFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - customAttributeFilter_ = value; - onChanged(); - 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(<field_name>) to
-     * perform case insensitive match and EMPTY(<field_name>) 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))
-     * 
- * - * string custom_attribute_filter = 15; - * - * @return This builder for chaining. - */ - public Builder clearCustomAttributeFilter() { - - customAttributeFilter_ = getDefaultInstance().getCustomAttributeFilter(); - onChanged(); - 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(<field_name>) to
-     * perform case insensitive match and EMPTY(<field_name>) 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))
-     * 
- * - * string custom_attribute_filter = 15; - * - * @param value The bytes for customAttributeFilter to set. - * @return This builder for chaining. - */ - public Builder setCustomAttributeFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - customAttributeFilter_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter - candidateAvailabilityFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilterOrBuilder> - candidateAvailabilityFilterBuilder_; - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.talent.v4beta1.ProfileQuery.candidate_availability_filter is - * deprecated. See google/cloud/talent/v4beta1/filters.proto;l=397 - * @return Whether the candidateAvailabilityFilter field is set. - */ - @java.lang.Deprecated - public boolean hasCandidateAvailabilityFilter() { - return candidateAvailabilityFilterBuilder_ != null || candidateAvailabilityFilter_ != null; - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.talent.v4beta1.ProfileQuery.candidate_availability_filter is - * deprecated. See google/cloud/talent/v4beta1/filters.proto;l=397 - * @return The candidateAvailabilityFilter. - */ - @java.lang.Deprecated - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter - getCandidateAvailabilityFilter() { - if (candidateAvailabilityFilterBuilder_ == null) { - return candidateAvailabilityFilter_ == null - ? com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.getDefaultInstance() - : candidateAvailabilityFilter_; - } else { - return candidateAvailabilityFilterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setCandidateAvailabilityFilter( - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter value) { - if (candidateAvailabilityFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - candidateAvailabilityFilter_ = value; - onChanged(); - } else { - candidateAvailabilityFilterBuilder_.setMessage(value); - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setCandidateAvailabilityFilter( - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder builderForValue) { - if (candidateAvailabilityFilterBuilder_ == null) { - candidateAvailabilityFilter_ = builderForValue.build(); - onChanged(); - } else { - candidateAvailabilityFilterBuilder_.setMessage(builderForValue.build()); - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeCandidateAvailabilityFilter( - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter value) { - if (candidateAvailabilityFilterBuilder_ == null) { - if (candidateAvailabilityFilter_ != null) { - candidateAvailabilityFilter_ = - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.newBuilder( - candidateAvailabilityFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - candidateAvailabilityFilter_ = value; - } - onChanged(); - } else { - candidateAvailabilityFilterBuilder_.mergeFrom(value); - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearCandidateAvailabilityFilter() { - if (candidateAvailabilityFilterBuilder_ == null) { - candidateAvailabilityFilter_ = null; - onChanged(); - } else { - candidateAvailabilityFilter_ = null; - candidateAvailabilityFilterBuilder_ = null; - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder - getCandidateAvailabilityFilterBuilder() { - - onChanged(); - return getCandidateAvailabilityFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.talent.v4beta1.CandidateAvailabilityFilterOrBuilder - getCandidateAvailabilityFilterOrBuilder() { - if (candidateAvailabilityFilterBuilder_ != null) { - return candidateAvailabilityFilterBuilder_.getMessageOrBuilder(); - } else { - return candidateAvailabilityFilter_ == null - ? com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.getDefaultInstance() - : candidateAvailabilityFilter_; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilterOrBuilder> - getCandidateAvailabilityFilterFieldBuilder() { - if (candidateAvailabilityFilterBuilder_ == null) { - candidateAvailabilityFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter.Builder, - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilterOrBuilder>( - getCandidateAvailabilityFilter(), getParentForChildren(), isClean()); - candidateAvailabilityFilter_ = null; - } - return candidateAvailabilityFilterBuilder_; - } - - private java.util.List - availabilityFilters_ = java.util.Collections.emptyList(); - - private void ensureAvailabilityFiltersIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { - availabilityFilters_ = - new java.util.ArrayList( - availabilityFilters_); - bitField0_ |= 0x00000400; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AvailabilityFilter, - com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder, - com.google.cloud.talent.v4beta1.AvailabilityFilterOrBuilder> - availabilityFiltersBuilder_; - - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public java.util.List - getAvailabilityFiltersList() { - if (availabilityFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(availabilityFilters_); - } else { - return availabilityFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public int getAvailabilityFiltersCount() { - if (availabilityFiltersBuilder_ == null) { - return availabilityFilters_.size(); - } else { - return availabilityFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilityFilter getAvailabilityFilters(int index) { - if (availabilityFiltersBuilder_ == null) { - return availabilityFilters_.get(index); - } else { - return availabilityFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder setAvailabilityFilters( - int index, com.google.cloud.talent.v4beta1.AvailabilityFilter value) { - if (availabilityFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.set(index, value); - onChanged(); - } else { - availabilityFiltersBuilder_.setMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder setAvailabilityFilters( - int index, com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder builderForValue) { - if (availabilityFiltersBuilder_ == null) { - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - availabilityFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder addAvailabilityFilters( - com.google.cloud.talent.v4beta1.AvailabilityFilter value) { - if (availabilityFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.add(value); - onChanged(); - } else { - availabilityFiltersBuilder_.addMessage(value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder addAvailabilityFilters( - int index, com.google.cloud.talent.v4beta1.AvailabilityFilter value) { - if (availabilityFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.add(index, value); - onChanged(); - } else { - availabilityFiltersBuilder_.addMessage(index, value); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder addAvailabilityFilters( - com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder builderForValue) { - if (availabilityFiltersBuilder_ == null) { - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.add(builderForValue.build()); - onChanged(); - } else { - availabilityFiltersBuilder_.addMessage(builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder addAvailabilityFilters( - int index, com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder builderForValue) { - if (availabilityFiltersBuilder_ == null) { - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - availabilityFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder addAllAvailabilityFilters( - java.lang.Iterable values) { - if (availabilityFiltersBuilder_ == null) { - ensureAvailabilityFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, availabilityFilters_); - onChanged(); - } else { - availabilityFiltersBuilder_.addAllMessages(values); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder clearAvailabilityFilters() { - if (availabilityFiltersBuilder_ == null) { - availabilityFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - } else { - availabilityFiltersBuilder_.clear(); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public Builder removeAvailabilityFilters(int index) { - if (availabilityFiltersBuilder_ == null) { - ensureAvailabilityFiltersIsMutable(); - availabilityFilters_.remove(index); - onChanged(); - } else { - availabilityFiltersBuilder_.remove(index); - } - 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder getAvailabilityFiltersBuilder( - int index) { - return getAvailabilityFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilityFilterOrBuilder - getAvailabilityFiltersOrBuilder(int index) { - if (availabilityFiltersBuilder_ == null) { - return availabilityFilters_.get(index); - } else { - return availabilityFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public java.util.List - getAvailabilityFiltersOrBuilderList() { - if (availabilityFiltersBuilder_ != null) { - return availabilityFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(availabilityFilters_); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder - addAvailabilityFiltersBuilder() { - return getAvailabilityFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.AvailabilityFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder addAvailabilityFiltersBuilder( - int index) { - return getAvailabilityFiltersFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.AvailabilityFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - public java.util.List - getAvailabilityFiltersBuilderList() { - return getAvailabilityFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AvailabilityFilter, - com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder, - com.google.cloud.talent.v4beta1.AvailabilityFilterOrBuilder> - getAvailabilityFiltersFieldBuilder() { - if (availabilityFiltersBuilder_ == null) { - availabilityFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.AvailabilityFilter, - com.google.cloud.talent.v4beta1.AvailabilityFilter.Builder, - com.google.cloud.talent.v4beta1.AvailabilityFilterOrBuilder>( - availabilityFilters_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); - availabilityFilters_ = null; - } - return availabilityFiltersBuilder_; - } - - private java.util.List personNameFilters_ = - java.util.Collections.emptyList(); - - private void ensurePersonNameFiltersIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - personNameFilters_ = - new java.util.ArrayList( - personNameFilters_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonNameFilter, - com.google.cloud.talent.v4beta1.PersonNameFilter.Builder, - com.google.cloud.talent.v4beta1.PersonNameFilterOrBuilder> - personNameFiltersBuilder_; - - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public java.util.List - getPersonNameFiltersList() { - if (personNameFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(personNameFilters_); - } else { - return personNameFiltersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public int getPersonNameFiltersCount() { - if (personNameFiltersBuilder_ == null) { - return personNameFilters_.size(); - } else { - return personNameFiltersBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public com.google.cloud.talent.v4beta1.PersonNameFilter getPersonNameFilters(int index) { - if (personNameFiltersBuilder_ == null) { - return personNameFilters_.get(index); - } else { - return personNameFiltersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder setPersonNameFilters( - int index, com.google.cloud.talent.v4beta1.PersonNameFilter value) { - if (personNameFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonNameFiltersIsMutable(); - personNameFilters_.set(index, value); - onChanged(); - } else { - personNameFiltersBuilder_.setMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder setPersonNameFilters( - int index, com.google.cloud.talent.v4beta1.PersonNameFilter.Builder builderForValue) { - if (personNameFiltersBuilder_ == null) { - ensurePersonNameFiltersIsMutable(); - personNameFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - personNameFiltersBuilder_.setMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder addPersonNameFilters(com.google.cloud.talent.v4beta1.PersonNameFilter value) { - if (personNameFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonNameFiltersIsMutable(); - personNameFilters_.add(value); - onChanged(); - } else { - personNameFiltersBuilder_.addMessage(value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder addPersonNameFilters( - int index, com.google.cloud.talent.v4beta1.PersonNameFilter value) { - if (personNameFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePersonNameFiltersIsMutable(); - personNameFilters_.add(index, value); - onChanged(); - } else { - personNameFiltersBuilder_.addMessage(index, value); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder addPersonNameFilters( - com.google.cloud.talent.v4beta1.PersonNameFilter.Builder builderForValue) { - if (personNameFiltersBuilder_ == null) { - ensurePersonNameFiltersIsMutable(); - personNameFilters_.add(builderForValue.build()); - onChanged(); - } else { - personNameFiltersBuilder_.addMessage(builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder addPersonNameFilters( - int index, com.google.cloud.talent.v4beta1.PersonNameFilter.Builder builderForValue) { - if (personNameFiltersBuilder_ == null) { - ensurePersonNameFiltersIsMutable(); - personNameFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - personNameFiltersBuilder_.addMessage(index, builderForValue.build()); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder addAllPersonNameFilters( - java.lang.Iterable values) { - if (personNameFiltersBuilder_ == null) { - ensurePersonNameFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, personNameFilters_); - onChanged(); - } else { - personNameFiltersBuilder_.addAllMessages(values); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder clearPersonNameFilters() { - if (personNameFiltersBuilder_ == null) { - personNameFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - personNameFiltersBuilder_.clear(); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public Builder removePersonNameFilters(int index) { - if (personNameFiltersBuilder_ == null) { - ensurePersonNameFiltersIsMutable(); - personNameFilters_.remove(index); - onChanged(); - } else { - personNameFiltersBuilder_.remove(index); - } - 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public com.google.cloud.talent.v4beta1.PersonNameFilter.Builder getPersonNameFiltersBuilder( - int index) { - return getPersonNameFiltersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public com.google.cloud.talent.v4beta1.PersonNameFilterOrBuilder getPersonNameFiltersOrBuilder( - int index) { - if (personNameFiltersBuilder_ == null) { - return personNameFilters_.get(index); - } else { - return personNameFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public java.util.List - getPersonNameFiltersOrBuilderList() { - if (personNameFiltersBuilder_ != null) { - return personNameFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(personNameFilters_); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public com.google.cloud.talent.v4beta1.PersonNameFilter.Builder addPersonNameFiltersBuilder() { - return getPersonNameFiltersFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.PersonNameFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public com.google.cloud.talent.v4beta1.PersonNameFilter.Builder addPersonNameFiltersBuilder( - int index) { - return getPersonNameFiltersFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.PersonNameFilter.getDefaultInstance()); - } - /** - * - * - *
-     * 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".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - public java.util.List - getPersonNameFiltersBuilderList() { - return getPersonNameFiltersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonNameFilter, - com.google.cloud.talent.v4beta1.PersonNameFilter.Builder, - com.google.cloud.talent.v4beta1.PersonNameFilterOrBuilder> - getPersonNameFiltersFieldBuilder() { - if (personNameFiltersBuilder_ == null) { - personNameFiltersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.PersonNameFilter, - com.google.cloud.talent.v4beta1.PersonNameFilter.Builder, - com.google.cloud.talent.v4beta1.PersonNameFilterOrBuilder>( - personNameFilters_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - personNameFilters_ = null; - } - return personNameFiltersBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ProfileQuery) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ProfileQuery) - private static final com.google.cloud.talent.v4beta1.ProfileQuery DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ProfileQuery(); - } - - public static com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProfileQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProfileQuery(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java deleted file mode 100644 index 053dad0c..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java +++ /dev/null @@ -1,1429 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface ProfileQueryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ProfileQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Keywords to match any text fields of profiles.
-   * For example, "software engineer in Palo Alto".
-   * 
- * - * string query = 1; - * - * @return The query. - */ - java.lang.String getQuery(); - /** - * - * - *
-   * Keywords to match any text fields of profiles.
-   * For example, "software engineer in Palo Alto".
-   * 
- * - * string query = 1; - * - * @return The bytes for query. - */ - com.google.protobuf.ByteString getQueryBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - java.util.List getLocationFiltersList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - int getLocationFiltersCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - java.util.List - getLocationFiltersOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 2; - */ - com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(int index); - - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - java.util.List getJobTitleFiltersList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - com.google.cloud.talent.v4beta1.JobTitleFilter getJobTitleFilters(int index); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - int getJobTitleFiltersCount(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - java.util.List - getJobTitleFiltersOrBuilderList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobTitleFilter job_title_filters = 3; - */ - com.google.cloud.talent.v4beta1.JobTitleFilterOrBuilder getJobTitleFiltersOrBuilder(int index); - - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - java.util.List getEmployerFiltersList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - com.google.cloud.talent.v4beta1.EmployerFilter getEmployerFilters(int index); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - int getEmployerFiltersCount(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - java.util.List - getEmployerFiltersOrBuilderList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EmployerFilter employer_filters = 4; - */ - com.google.cloud.talent.v4beta1.EmployerFilterOrBuilder getEmployerFiltersOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - java.util.List getEducationFiltersList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - com.google.cloud.talent.v4beta1.EducationFilter getEducationFilters(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - int getEducationFiltersCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - java.util.List - getEducationFiltersOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.EducationFilter education_filters = 5; - */ - com.google.cloud.talent.v4beta1.EducationFilterOrBuilder getEducationFiltersOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - java.util.List getSkillFiltersList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - com.google.cloud.talent.v4beta1.SkillFilter getSkillFilters(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - int getSkillFiltersCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - java.util.List - getSkillFiltersOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SkillFilter skill_filters = 6; - */ - com.google.cloud.talent.v4beta1.SkillFilterOrBuilder getSkillFiltersOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - java.util.List - getWorkExperienceFilterList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - com.google.cloud.talent.v4beta1.WorkExperienceFilter getWorkExperienceFilter(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - int getWorkExperienceFilterCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - java.util.List - getWorkExperienceFilterOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.WorkExperienceFilter work_experience_filter = 7; - * - */ - com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder getWorkExperienceFilterOrBuilder( - int index); - - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - java.util.List getTimeFiltersList(); - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - com.google.cloud.talent.v4beta1.TimeFilter getTimeFilters(int index); - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - int getTimeFiltersCount(); - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - java.util.List - getTimeFiltersOrBuilderList(); - /** - * - * - *
-   * Time filter specifies the create/update timestamp of the profiles to match
-   * on.
-   * For example, search for profiles created since "2018-1-1".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.TimeFilter time_filters = 8; - */ - com.google.cloud.talent.v4beta1.TimeFilterOrBuilder getTimeFiltersOrBuilder(int index); - - /** - * - * - *
-   * The hirable filter specifies the profile's hirable status to match on.
-   * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - * - * @return Whether the hirableFilter field is set. - */ - boolean hasHirableFilter(); - /** - * - * - *
-   * The hirable filter specifies the profile's hirable status to match on.
-   * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - * - * @return The hirableFilter. - */ - com.google.protobuf.BoolValue getHirableFilter(); - /** - * - * - *
-   * The hirable filter specifies the profile's hirable status to match on.
-   * 
- * - * .google.protobuf.BoolValue hirable_filter = 9; - */ - com.google.protobuf.BoolValueOrBuilder getHirableFilterOrBuilder(); - - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - java.util.List - getApplicationDateFiltersList(); - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateFilters(int index); - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - int getApplicationDateFiltersCount(); - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - java.util.List - getApplicationDateFiltersOrBuilderList(); - /** - * - * - *
-   * The application date filters specify application date ranges to match on.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationDateFilter application_date_filters = 10; - * - */ - com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder getApplicationDateFiltersOrBuilder( - int index); - - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - java.util.List - getApplicationOutcomeNotesFiltersList(); - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter getApplicationOutcomeNotesFilters( - int index); - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - int getApplicationOutcomeNotesFiltersCount(); - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - java.util.List - getApplicationOutcomeNotesFiltersOrBuilderList(); - /** - * - * - *
-   * The application outcome notes filters specify the notes for the outcome of
-   * the job application.
-   * 
- * - * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - * - */ - com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder - getApplicationOutcomeNotesFiltersOrBuilder(int index); - - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - java.util.List - getApplicationJobFiltersList(); - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - com.google.cloud.talent.v4beta1.ApplicationJobFilter getApplicationJobFilters(int index); - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - int getApplicationJobFiltersCount(); - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - java.util.List - getApplicationJobFiltersOrBuilderList(); - /** - * - * - *
-   * The application job filters specify the job applied for in the application.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.ApplicationJobFilter application_job_filters = 13; - * - */ - com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder getApplicationJobFiltersOrBuilder( - int index); - - /** - * - * - *
-   * 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(<field_name>) to
-   * perform case insensitive match and EMPTY(<field_name>) 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))
-   * 
- * - * string custom_attribute_filter = 15; - * - * @return The customAttributeFilter. - */ - java.lang.String getCustomAttributeFilter(); - /** - * - * - *
-   * 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(<field_name>) to
-   * perform case insensitive match and EMPTY(<field_name>) 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))
-   * 
- * - * string custom_attribute_filter = 15; - * - * @return The bytes for customAttributeFilter. - */ - com.google.protobuf.ByteString getCustomAttributeFilterBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.talent.v4beta1.ProfileQuery.candidate_availability_filter is - * deprecated. See google/cloud/talent/v4beta1/filters.proto;l=397 - * @return Whether the candidateAvailabilityFilter field is set. - */ - @java.lang.Deprecated - boolean hasCandidateAvailabilityFilter(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - * - * @deprecated google.cloud.talent.v4beta1.ProfileQuery.candidate_availability_filter is - * deprecated. See google/cloud/talent/v4beta1/filters.proto;l=397 - * @return The candidateAvailabilityFilter. - */ - @java.lang.Deprecated - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilter getCandidateAvailabilityFilter(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.cloud.talent.v4beta1.CandidateAvailabilityFilterOrBuilder - getCandidateAvailabilityFilterOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - java.util.List getAvailabilityFiltersList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - com.google.cloud.talent.v4beta1.AvailabilityFilter getAvailabilityFilters(int index); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - int getAvailabilityFiltersCount(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - java.util.List - getAvailabilityFiltersOrBuilderList(); - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.AvailabilityFilter availability_filters = 18; - * - */ - com.google.cloud.talent.v4beta1.AvailabilityFilterOrBuilder getAvailabilityFiltersOrBuilder( - int index); - - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - java.util.List getPersonNameFiltersList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - com.google.cloud.talent.v4beta1.PersonNameFilter getPersonNameFilters(int index); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - int getPersonNameFiltersCount(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - java.util.List - getPersonNameFiltersOrBuilderList(); - /** - * - * - *
-   * 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".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.PersonNameFilter person_name_filters = 17; - */ - com.google.cloud.talent.v4beta1.PersonNameFilterOrBuilder getPersonNameFiltersOrBuilder( - int index); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java deleted file mode 100644 index e55e1678..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java +++ /dev/null @@ -1,497 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public final class ProfileResourceProto { - private ProfileResourceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Profile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Resume_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Resume_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_PersonName_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Address_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Email_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Phone_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Degree_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Activity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Publication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_Patent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/talent/v4beta1/profile.pr" - + "oto\022\033google.cloud.talent.v4beta1\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032(google/cloud/talent/v4beta" - + "1/common.proto\032\036google/protobuf/duration" - + ".proto\032\037google/protobuf/timestamp.proto\032" - + "\036google/protobuf/wrappers.proto\032\026google/" - + "type/date.proto\032 google/type/postal_addr" - + "ess.proto\032\034google/api/annotations.proto\"" - + "\366\r\n\007Profile\022\014\n\004name\030\001 \001(\t\022\023\n\013external_id" - + "\030\002 \001(\t\022\016\n\006source\030\003 \001(\t\022\013\n\003uri\030\004 \001(\t\022\020\n\010g" - + "roup_id\030\005 \001(\t\022.\n\nis_hirable\030\006 \001(\0132\032.goog" - + "le.protobuf.BoolValue\022/\n\013create_time\030\007 \001" - + "(\0132\032.google.protobuf.Timestamp\022/\n\013update" - + "_time\030\010 \001(\0132\032.google.protobuf.Timestamp\022" - + "9\n\025candidate_update_time\030C \001(\0132\032.google." - + "protobuf.Timestamp\0226\n\022resume_update_time" - + "\030D \001(\0132\032.google.protobuf.Timestamp\0223\n\006re" - + "sume\0305 \001(\0132#.google.cloud.talent.v4beta1" - + ".Resume\022=\n\014person_names\030\013 \003(\0132\'.google.c" - + "loud.talent.v4beta1.PersonName\0227\n\taddres" - + "ses\030\014 \003(\0132$.google.cloud.talent.v4beta1." - + "Address\022;\n\017email_addresses\030\r \003(\0132\".googl" - + "e.cloud.talent.v4beta1.Email\0229\n\rphone_nu" - + "mbers\030\016 \003(\0132\".google.cloud.talent.v4beta" - + "1.Phone\022?\n\rpersonal_uris\030\017 \003(\0132(.google." - + "cloud.talent.v4beta1.PersonalUri\022S\n\027addi" - + "tional_contact_info\030\020 \003(\01322.google.cloud" - + ".talent.v4beta1.AdditionalContactInfo\022I\n" - + "\022employment_records\030\021 \003(\0132-.google.cloud" - + ".talent.v4beta1.EmploymentRecord\022G\n\021educ" - + "ation_records\030\022 \003(\0132,.google.cloud.talen" - + "t.v4beta1.EducationRecord\0222\n\006skills\030\023 \003(" - + "\0132\".google.cloud.talent.v4beta1.Skill\0229\n" - + "\nactivities\030\024 \003(\0132%.google.cloud.talent." - + "v4beta1.Activity\022>\n\014publications\030\025 \003(\0132(" - + ".google.cloud.talent.v4beta1.Publication" - + "\0224\n\007patents\030\026 \003(\0132#.google.cloud.talent." - + "v4beta1.Patent\022B\n\016certifications\030\027 \003(\0132*" - + ".google.cloud.talent.v4beta1.Certificati" - + "on\022\031\n\014applications\030/ \003(\tB\003\340A\003\022\030\n\013assignm" - + "ents\0300 \003(\tB\003\340A\003\022U\n\021custom_attributes\030\032 \003" - + "(\0132:.google.cloud.talent.v4beta1.Profile" - + ".CustomAttributesEntry\022\026\n\tprocessed\030\033 \001(" - + "\010B\003\340A\003\022\034\n\017keyword_snippet\030\034 \001(\tB\003\340A\003\022R\n\024" - + "availability_signals\030F \003(\0132/.google.clou" - + "d.talent.v4beta1.AvailabilitySignalB\003\340A\003" - + "\022E\n\021derived_addresses\030@ \003(\0132%.google.clo" - + "ud.talent.v4beta1.LocationB\003\340A\003\032e\n\025Custo" - + "mAttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002" - + " \001(\0132,.google.cloud.talent.v4beta1.Custo" - + "mAttribute:\0028\001:X\352AU\n\033jobs.googleapis.com" - + "/Profile\0226projects/{project}/tenants/{te" - + "nant}/profiles/{profile}\"\303\001\n\022Availabilit" - + "ySignal\022A\n\004type\030\001 \001(\01623.google.cloud.tal" - + "ent.v4beta1.AvailabilitySignalType\0224\n\020la" - + "st_update_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestamp\0224\n\020filter_satisfied\030\003 \001(\0132\032.goo" - + "gle.protobuf.BoolValue\"\265\001\n\006Resume\022\031\n\021str" - + "uctured_resume\030\001 \001(\t\022C\n\013resume_type\030\002 \001(" - + "\0162..google.cloud.talent.v4beta1.Resume.R" - + "esumeType\"K\n\nResumeType\022\033\n\027RESUME_TYPE_U" - + "NSPECIFIED\020\000\022\t\n\005HRXML\020\001\022\025\n\021OTHER_RESUME_" - + "TYPE\020\002\"\274\002\n\nPersonName\022\030\n\016formatted_name\030" - + "\001 \001(\tH\000\022W\n\017structured_name\030\002 \001(\0132<.googl" - + "e.cloud.talent.v4beta1.PersonName.Person" - + "StructuredNameH\000\022\026\n\016preferred_name\030\003 \001(\t" - + "\032\223\001\n\024PersonStructuredName\022\022\n\ngiven_name\030" - + "\001 \001(\t\022\026\n\016preferred_name\030\006 \001(\t\022\026\n\016middle_" - + "initial\030\002 \001(\t\022\023\n\013family_name\030\003 \001(\t\022\020\n\010su" - + "ffixes\030\004 \003(\t\022\020\n\010prefixes\030\005 \003(\tB\r\n\013person" - + "_name\"\331\001\n\007Address\022<\n\005usage\030\001 \001(\0162-.googl" - + "e.cloud.talent.v4beta1.ContactInfoUsage\022" - + "\036\n\024unstructured_address\030\002 \001(\tH\000\0228\n\022struc" - + "tured_address\030\003 \001(\0132\032.google.type.Postal" - + "AddressH\000\022+\n\007current\030\004 \001(\0132\032.google.prot" - + "obuf.BoolValueB\t\n\007address\"\\\n\005Email\022<\n\005us" - + "age\030\001 \001(\0162-.google.cloud.talent.v4beta1." - + "ContactInfoUsage\022\025\n\remail_address\030\002 \001(\t\"" - + "\317\002\n\005Phone\022<\n\005usage\030\001 \001(\0162-.google.cloud." - + "talent.v4beta1.ContactInfoUsage\022:\n\004type\030" - + "\002 \001(\0162,.google.cloud.talent.v4beta1.Phon" - + "e.PhoneType\022\016\n\006number\030\003 \001(\t\022\026\n\016when_avai" - + "lable\030\004 \001(\t\"\243\001\n\tPhoneType\022\032\n\026PHONE_TYPE_" - + "UNSPECIFIED\020\000\022\014\n\010LANDLINE\020\001\022\n\n\006MOBILE\020\002\022" - + "\007\n\003FAX\020\003\022\t\n\005PAGER\020\004\022\016\n\nTTY_OR_TDD\020\005\022\r\n\tV" - + "OICEMAIL\020\006\022\013\n\007VIRTUAL\020\007\022\010\n\004VOIP\020\010\022\026\n\022MOB" - + "ILE_OR_LANDLINE\020\t\"\032\n\013PersonalUri\022\013\n\003uri\030" - + "\001 \001(\t\"w\n\025AdditionalContactInfo\022<\n\005usage\030" - + "\001 \001(\0162-.google.cloud.talent.v4beta1.Cont" - + "actInfoUsage\022\014\n\004name\030\002 \001(\t\022\022\n\ncontact_id" - + "\030\003 \001(\t\"\362\003\n\020EmploymentRecord\022%\n\nstart_dat" - + "e\030\001 \001(\0132\021.google.type.Date\022#\n\010end_date\030\002" - + " \001(\0132\021.google.type.Date\022\025\n\remployer_name" - + "\030\003 \001(\t\022\025\n\rdivision_name\030\004 \001(\t\0225\n\007address" - + "\030\005 \001(\0132$.google.cloud.talent.v4beta1.Add" - + "ress\022\021\n\tjob_title\030\006 \001(\t\022\027\n\017job_descripti" - + "on\030\007 \001(\t\0221\n\ris_supervisor\030\010 \001(\0132\032.google" - + ".protobuf.BoolValue\0224\n\020is_self_employed\030" - + "\t \001(\0132\032.google.protobuf.BoolValue\022.\n\nis_" - + "current\030\n \001(\0132\032.google.protobuf.BoolValu" - + "e\022\036\n\021job_title_snippet\030\013 \001(\tB\003\340A\003\022$\n\027job" - + "_description_snippet\030\014 \001(\tB\003\340A\003\022\"\n\025emplo" - + "yer_name_snippet\030\r \001(\tB\003\340A\003\"\314\003\n\017Educatio" - + "nRecord\022%\n\nstart_date\030\001 \001(\0132\021.google.typ" - + "e.Date\022#\n\010end_date\030\002 \001(\0132\021.google.type.D" - + "ate\0223\n\030expected_graduation_date\030\003 \001(\0132\021." - + "google.type.Date\022\023\n\013school_name\030\004 \001(\t\0225\n" - + "\007address\030\005 \001(\0132$.google.cloud.talent.v4b" - + "eta1.Address\022\034\n\022degree_description\030\006 \001(\t" - + "H\000\022@\n\021structured_degree\030\007 \001(\0132#.google.c" - + "loud.talent.v4beta1.DegreeH\000\022\023\n\013descript" - + "ion\030\010 \001(\t\022.\n\nis_current\030\t \001(\0132\032.google.p" - + "rotobuf.BoolValue\022 \n\023school_name_snippet" - + "\030\n \001(\tB\003\340A\003\022\033\n\016degree_snippet\030\013 \001(\tB\003\340A\003" - + "B\010\n\006degree\"t\n\006Degree\022<\n\013degree_type\030\001 \001(" - + "\0162\'.google.cloud.talent.v4beta1.DegreeTy" - + "pe\022\023\n\013degree_name\030\002 \001(\t\022\027\n\017fields_of_stu" - + "dy\030\003 \003(\t\"\322\002\n\010Activity\022\024\n\014display_name\030\001 " - + "\001(\t\022\023\n\013description\030\002 \001(\t\022\013\n\003uri\030\003 \001(\t\022&\n" - + "\013create_date\030\004 \001(\0132\021.google.type.Date\022&\n" - + "\013update_date\030\005 \001(\0132\021.google.type.Date\022\024\n" - + "\014team_members\030\006 \003(\t\0227\n\013skills_used\030\007 \003(\013" - + "2\".google.cloud.talent.v4beta1.Skill\022\"\n\025" - + "activity_name_snippet\030\010 \001(\tB\003\340A\003\022)\n\034acti" - + "vity_description_snippet\030\t \001(\tB\003\340A\003\022 \n\023s" - + "kills_used_snippet\030\n \003(\tB\003\340A\003\"\313\001\n\013Public" - + "ation\022\017\n\007authors\030\001 \003(\t\022\r\n\005title\030\002 \001(\t\022\023\n" - + "\013description\030\003 \001(\t\022\017\n\007journal\030\004 \001(\t\022\016\n\006v" - + "olume\030\005 \001(\t\022\021\n\tpublisher\030\006 \001(\t\022+\n\020public" - + "ation_date\030\007 \001(\0132\021.google.type.Date\022\030\n\020p" - + "ublication_type\030\010 \001(\t\022\014\n\004isbn\030\t \001(\t\"\251\002\n\006" - + "Patent\022\024\n\014display_name\030\001 \001(\t\022\021\n\tinventor" - + "s\030\002 \003(\t\022\025\n\rpatent_status\030\003 \001(\t\022-\n\022patent" - + "_status_date\030\004 \001(\0132\021.google.type.Date\022-\n" - + "\022patent_filing_date\030\005 \001(\0132\021.google.type." - + "Date\022\025\n\rpatent_office\030\006 \001(\t\022\025\n\rpatent_nu" - + "mber\030\007 \001(\t\022\032\n\022patent_description\030\010 \001(\t\0227" - + "\n\013skills_used\030\t \003(\0132\".google.cloud.talen" - + "t.v4beta1.SkillB\202\001\n\037com.google.cloud.tal" - + "ent.v4beta1B\024ProfileResourceProtoP\001ZAgoo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/talent/v4beta1;talent\242\002\003CTSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - com.google.type.PostalAddressProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_talent_v4beta1_Profile_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_talent_v4beta1_Profile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Profile_descriptor, - new java.lang.String[] { - "Name", - "ExternalId", - "Source", - "Uri", - "GroupId", - "IsHirable", - "CreateTime", - "UpdateTime", - "CandidateUpdateTime", - "ResumeUpdateTime", - "Resume", - "PersonNames", - "Addresses", - "EmailAddresses", - "PhoneNumbers", - "PersonalUris", - "AdditionalContactInfo", - "EmploymentRecords", - "EducationRecords", - "Skills", - "Activities", - "Publications", - "Patents", - "Certifications", - "Applications", - "Assignments", - "CustomAttributes", - "Processed", - "KeywordSnippet", - "AvailabilitySignals", - "DerivedAddresses", - }); - internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor = - internal_static_google_cloud_talent_v4beta1_Profile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Profile_CustomAttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_AvailabilitySignal_descriptor, - new java.lang.String[] { - "Type", "LastUpdateTime", "FilterSatisfied", - }); - internal_static_google_cloud_talent_v4beta1_Resume_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_talent_v4beta1_Resume_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Resume_descriptor, - new java.lang.String[] { - "StructuredResume", "ResumeType", - }); - internal_static_google_cloud_talent_v4beta1_PersonName_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_talent_v4beta1_PersonName_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_PersonName_descriptor, - new java.lang.String[] { - "FormattedName", "StructuredName", "PreferredName", "PersonName", - }); - internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor = - internal_static_google_cloud_talent_v4beta1_PersonName_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_PersonName_PersonStructuredName_descriptor, - new java.lang.String[] { - "GivenName", "PreferredName", "MiddleInitial", "FamilyName", "Suffixes", "Prefixes", - }); - internal_static_google_cloud_talent_v4beta1_Address_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_talent_v4beta1_Address_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Address_descriptor, - new java.lang.String[] { - "Usage", "UnstructuredAddress", "StructuredAddress", "Current", "Address", - }); - internal_static_google_cloud_talent_v4beta1_Email_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_talent_v4beta1_Email_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Email_descriptor, - new java.lang.String[] { - "Usage", "EmailAddress", - }); - internal_static_google_cloud_talent_v4beta1_Phone_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_talent_v4beta1_Phone_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Phone_descriptor, - new java.lang.String[] { - "Usage", "Type", "Number", "WhenAvailable", - }); - internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_talent_v4beta1_PersonalUri_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_PersonalUri_descriptor, - new java.lang.String[] { - "Uri", - }); - internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_AdditionalContactInfo_descriptor, - new java.lang.String[] { - "Usage", "Name", "ContactId", - }); - internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_talent_v4beta1_EmploymentRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_EmploymentRecord_descriptor, - new java.lang.String[] { - "StartDate", - "EndDate", - "EmployerName", - "DivisionName", - "Address", - "JobTitle", - "JobDescription", - "IsSupervisor", - "IsSelfEmployed", - "IsCurrent", - "JobTitleSnippet", - "JobDescriptionSnippet", - "EmployerNameSnippet", - }); - internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_talent_v4beta1_EducationRecord_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_EducationRecord_descriptor, - new java.lang.String[] { - "StartDate", - "EndDate", - "ExpectedGraduationDate", - "SchoolName", - "Address", - "DegreeDescription", - "StructuredDegree", - "Description", - "IsCurrent", - "SchoolNameSnippet", - "DegreeSnippet", - "Degree", - }); - internal_static_google_cloud_talent_v4beta1_Degree_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_talent_v4beta1_Degree_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Degree_descriptor, - new java.lang.String[] { - "DegreeType", "DegreeName", "FieldsOfStudy", - }); - internal_static_google_cloud_talent_v4beta1_Activity_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Activity_descriptor, - new java.lang.String[] { - "DisplayName", - "Description", - "Uri", - "CreateDate", - "UpdateDate", - "TeamMembers", - "SkillsUsed", - "ActivityNameSnippet", - "ActivityDescriptionSnippet", - "SkillsUsedSnippet", - }); - internal_static_google_cloud_talent_v4beta1_Publication_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Publication_descriptor, - new java.lang.String[] { - "Authors", - "Title", - "Description", - "Journal", - "Volume", - "Publisher", - "PublicationDate", - "PublicationType", - "Isbn", - }); - internal_static_google_cloud_talent_v4beta1_Patent_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_Patent_descriptor, - new java.lang.String[] { - "DisplayName", - "Inventors", - "PatentStatus", - "PatentStatusDate", - "PatentFilingDate", - "PatentOffice", - "PatentNumber", - "PatentDescription", - "SkillsUsed", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - com.google.type.PostalAddressProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java deleted file mode 100644 index c0ff114d..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public final class ProfileServiceProto { - private ProfileServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/talent/v4beta1/profile_se" - + "rvice.proto\022\033google.cloud.talent.v4beta1" - + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032(goo" - + "gle/cloud/talent/v4beta1/common.proto\032)g" - + "oogle/cloud/talent/v4beta1/filters.proto" - + "\032+google/cloud/talent/v4beta1/histogram." - + "proto\032)google/cloud/talent/v4beta1/profi" - + "le.proto\032#google/longrunning/operations." - + "proto\032\031google/protobuf/any.proto\032\033google" - + "/protobuf/empty.proto\032 google/protobuf/f" - + "ield_mask.proto\032\027google/rpc/status.proto" - + "\"\260\001\n\023ListProfilesRequest\0223\n\006parent\030\001 \001(\t" - + "B#\340A\002\372A\035\022\033jobs.googleapis.com/Profile\022\016\n" - + "\006filter\030\005 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpag" - + "e_size\030\003 \001(\005\022-\n\tread_mask\030\004 \001(\0132\032.google" - + ".protobuf.FieldMask\"g\n\024ListProfilesRespo" - + "nse\0226\n\010profiles\030\001 \003(\0132$.google.cloud.tal" - + "ent.v4beta1.Profile\022\027\n\017next_page_token\030\002" - + " \001(\t\"\206\001\n\024CreateProfileRequest\0222\n\006parent\030" - + "\001 \001(\tB\"\340A\002\372A\034\n\032jobs.googleapis.com/Tenan" - + "t\022:\n\007profile\030\002 \001(\0132$.google.cloud.talent" - + ".v4beta1.ProfileB\003\340A\002\"F\n\021GetProfileReque" - + "st\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033jobs.googleapi" - + "s.com/Profile\"\203\001\n\024UpdateProfileRequest\022:" - + "\n\007profile\030\001 \001(\0132$.google.cloud.talent.v4" - + "beta1.ProfileB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\"I\n\024DeletePro" - + "fileRequest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033jobs." - + "googleapis.com/Profile\"\334\003\n\025SearchProfile" - + "sRequest\0222\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\n\032jobs.g" - + "oogleapis.com/Tenant\022K\n\020request_metadata" - + "\030\002 \001(\0132,.google.cloud.talent.v4beta1.Req" - + "uestMetadataB\003\340A\002\022@\n\rprofile_query\030\003 \001(\013" - + "2).google.cloud.talent.v4beta1.ProfileQu" - + "ery\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001" - + "(\t\022\016\n\006offset\030\006 \001(\005\022\033\n\023disable_spell_chec" - + "k\030\007 \001(\010\022\020\n\010order_by\030\010 \001(\t\022\033\n\023case_sensit" - + "ive_sort\030\t \001(\010\022F\n\021histogram_queries\030\n \003(" - + "\0132+.google.cloud.talent.v4beta1.Histogra" - + "mQuery\022\025\n\rresult_set_id\030\014 \001(\t\022\036\n\026strict_" - + "keywords_search\030\r \001(\010\"\223\003\n\026SearchProfiles" - + "Response\022\034\n\024estimated_total_size\030\001 \001(\003\022I" - + "\n\020spell_correction\030\002 \001(\0132/.google.cloud." - + "talent.v4beta1.SpellingCorrection\022?\n\010met" - + "adata\030\003 \001(\0132-.google.cloud.talent.v4beta" - + "1.ResponseMetadata\022\027\n\017next_page_token\030\004 " - + "\001(\t\022R\n\027histogram_query_results\030\005 \003(\01321.g" - + "oogle.cloud.talent.v4beta1.HistogramQuer" - + "yResult\022K\n\023summarized_profiles\030\006 \003(\0132..g" - + "oogle.cloud.talent.v4beta1.SummarizedPro" - + "file\022\025\n\rresult_set_id\030\007 \001(\t\"\202\001\n\021Summariz" - + "edProfile\0226\n\010profiles\030\001 \003(\0132$.google.clo" - + "ud.talent.v4beta1.Profile\0225\n\007summary\030\002 \001" - + "(\0132$.google.cloud.talent.v4beta1.Profile" - + "2\237\t\n\016ProfileService\022\265\001\n\014ListProfiles\0220.g" - + "oogle.cloud.talent.v4beta1.ListProfilesR" - + "equest\0321.google.cloud.talent.v4beta1.Lis" - + "tProfilesResponse\"@\202\323\344\223\0021\022//v4beta1/{par" - + "ent=projects/*/tenants/*}/profiles\332A\006par" - + "ent\022\265\001\n\rCreateProfile\0221.google.cloud.tal" - + "ent.v4beta1.CreateProfileRequest\032$.googl" - + "e.cloud.talent.v4beta1.Profile\"K\202\323\344\223\0024\"/" - + "/v4beta1/{parent=projects/*/tenants/*}/p" - + "rofiles:\001*\332A\016parent,profile\022\242\001\n\nGetProfi" - + "le\022..google.cloud.talent.v4beta1.GetProf" - + "ileRequest\032$.google.cloud.talent.v4beta1" - + ".Profile\">\202\323\344\223\0021\022//v4beta1/{name=project" - + "s/*/tenants/*/profiles/*}\332A\004name\022\266\001\n\rUpd" - + "ateProfile\0221.google.cloud.talent.v4beta1" - + ".UpdateProfileRequest\032$.google.cloud.tal" - + "ent.v4beta1.Profile\"L\202\323\344\223\002<27/v4beta1/{p" - + "rofile.name=projects/*/tenants/*/profile" - + "s/*}:\001*\332A\007profile\022\232\001\n\rDeleteProfile\0221.go" - + "ogle.cloud.talent.v4beta1.DeleteProfileR" - + "equest\032\026.google.protobuf.Empty\">\202\323\344\223\0021*/" - + "/v4beta1/{name=projects/*/tenants/*/prof" - + "iles/*}\332A\004name\022\263\001\n\016SearchProfiles\0222.goog" - + "le.cloud.talent.v4beta1.SearchProfilesRe" - + "quest\0323.google.cloud.talent.v4beta1.Sear" - + "chProfilesResponse\"8\202\323\344\223\0022\"-/v4beta1/{pa" - + "rent=projects/*/tenants/*}:search:\001*\032l\312A" - + "\023jobs.googleapis.com\322AShttps://www.googl" - + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/jobsB\201\001\n\037com.googl" - + "e.cloud.talent.v4beta1B\023ProfileServicePr" - + "otoP\001ZAgoogle.golang.org/genproto/google" - + "apis/cloud/talent/v4beta1;talent\242\002\003CTSb\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), - com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(), - com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(), - com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageToken", "PageSize", "ReadMask", - }); - internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor, - new java.lang.String[] { - "Profiles", "NextPageToken", - }); - internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_CreateProfileRequest_descriptor, - new java.lang.String[] { - "Parent", "Profile", - }); - internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_talent_v4beta1_GetProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_GetProfileRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor, - new java.lang.String[] { - "Profile", "UpdateMask", - }); - internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_DeleteProfileRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor, - new java.lang.String[] { - "Parent", - "RequestMetadata", - "ProfileQuery", - "PageSize", - "PageToken", - "Offset", - "DisableSpellCheck", - "OrderBy", - "CaseSensitiveSort", - "HistogramQueries", - "ResultSetId", - "StrictKeywordsSearch", - }); - internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor, - new java.lang.String[] { - "EstimatedTotalSize", - "SpellCorrection", - "Metadata", - "NextPageToken", - "HistogramQueryResults", - "SummarizedProfiles", - "ResultSetId", - }); - internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor, - new java.lang.String[] { - "Profiles", "Summary", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); - com.google.cloud.talent.v4beta1.FiltersProto.getDescriptor(); - com.google.cloud.talent.v4beta1.HistogramProto.getDescriptor(); - com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java deleted file mode 100644 index 45c20bad..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java +++ /dev/null @@ -1,2318 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a publication resource of a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Publication} - */ -public final class Publication extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Publication) - PublicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Publication.newBuilder() to construct. - private Publication(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Publication() { - authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - title_ = ""; - description_ = ""; - journal_ = ""; - volume_ = ""; - publisher_ = ""; - publicationType_ = ""; - isbn_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Publication(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Publication( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - authors_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - authors_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - journal_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - volume_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - publisher_ = s; - break; - } - case 58: - { - com.google.type.Date.Builder subBuilder = null; - if (publicationDate_ != null) { - subBuilder = publicationDate_.toBuilder(); - } - publicationDate_ = - input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(publicationDate_); - publicationDate_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - publicationType_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - isbn_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - authors_ = authors_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Publication.class, - com.google.cloud.talent.v4beta1.Publication.Builder.class); - } - - public static final int AUTHORS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList authors_; - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @return A list containing the authors. - */ - public com.google.protobuf.ProtocolStringList getAuthorsList() { - return authors_; - } - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @return The count of authors. - */ - public int getAuthorsCount() { - return authors_.size(); - } - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @param index The index of the element to return. - * @return The authors at the given index. - */ - public java.lang.String getAuthors(int index) { - return authors_.get(index); - } - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @param index The index of the value to return. - * @return The bytes of the authors at the given index. - */ - public com.google.protobuf.ByteString getAuthorsBytes(int index) { - return authors_.getByteString(index); - } - - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; - /** - * - * - *
-   * The title of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string title = 2; - * - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * - * - *
-   * The title of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string title = 2; - * - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * - * - *
-   * The description of the publication.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * The description of the publication.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOURNAL_FIELD_NUMBER = 4; - private volatile java.lang.Object journal_; - /** - * - * - *
-   * The journal name of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string journal = 4; - * - * @return The journal. - */ - @java.lang.Override - public java.lang.String getJournal() { - java.lang.Object ref = journal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - journal_ = s; - return s; - } - } - /** - * - * - *
-   * The journal name of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string journal = 4; - * - * @return The bytes for journal. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJournalBytes() { - java.lang.Object ref = journal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - journal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VOLUME_FIELD_NUMBER = 5; - private volatile java.lang.Object volume_; - /** - * - * - *
-   * Volume number.
-   * Number of characters allowed is 100.
-   * 
- * - * string volume = 5; - * - * @return The volume. - */ - @java.lang.Override - public java.lang.String getVolume() { - java.lang.Object ref = volume_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - volume_ = s; - return s; - } - } - /** - * - * - *
-   * Volume number.
-   * Number of characters allowed is 100.
-   * 
- * - * string volume = 5; - * - * @return The bytes for volume. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVolumeBytes() { - java.lang.Object ref = volume_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - volume_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLISHER_FIELD_NUMBER = 6; - private volatile java.lang.Object publisher_; - /** - * - * - *
-   * The publisher of the journal.
-   * Number of characters allowed is 100.
-   * 
- * - * string publisher = 6; - * - * @return The publisher. - */ - @java.lang.Override - public java.lang.String getPublisher() { - java.lang.Object ref = publisher_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publisher_ = s; - return s; - } - } - /** - * - * - *
-   * The publisher of the journal.
-   * Number of characters allowed is 100.
-   * 
- * - * string publisher = 6; - * - * @return The bytes for publisher. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPublisherBytes() { - java.lang.Object ref = publisher_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - publisher_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLICATION_DATE_FIELD_NUMBER = 7; - private com.google.type.Date publicationDate_; - /** - * - * - *
-   * The publication date.
-   * 
- * - * .google.type.Date publication_date = 7; - * - * @return Whether the publicationDate field is set. - */ - @java.lang.Override - public boolean hasPublicationDate() { - return publicationDate_ != null; - } - /** - * - * - *
-   * The publication date.
-   * 
- * - * .google.type.Date publication_date = 7; - * - * @return The publicationDate. - */ - @java.lang.Override - public com.google.type.Date getPublicationDate() { - return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; - } - /** - * - * - *
-   * The publication date.
-   * 
- * - * .google.type.Date publication_date = 7; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { - return getPublicationDate(); - } - - public static final int PUBLICATION_TYPE_FIELD_NUMBER = 8; - private volatile java.lang.Object publicationType_; - /** - * - * - *
-   * The publication type.
-   * Number of characters allowed is 100.
-   * 
- * - * string publication_type = 8; - * - * @return The publicationType. - */ - @java.lang.Override - public java.lang.String getPublicationType() { - java.lang.Object ref = publicationType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicationType_ = s; - return s; - } - } - /** - * - * - *
-   * The publication type.
-   * Number of characters allowed is 100.
-   * 
- * - * string publication_type = 8; - * - * @return The bytes for publicationType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPublicationTypeBytes() { - java.lang.Object ref = publicationType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - publicationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISBN_FIELD_NUMBER = 9; - private volatile java.lang.Object isbn_; - /** - * - * - *
-   * ISBN number.
-   * Number of characters allowed is 100.
-   * 
- * - * string isbn = 9; - * - * @return The isbn. - */ - @java.lang.Override - public java.lang.String getIsbn() { - java.lang.Object ref = isbn_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - isbn_ = s; - return s; - } - } - /** - * - * - *
-   * ISBN number.
-   * Number of characters allowed is 100.
-   * 
- * - * string isbn = 9; - * - * @return The bytes for isbn. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIsbnBytes() { - java.lang.Object ref = isbn_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - isbn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < authors_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authors_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(journal_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, journal_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, volume_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisher_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, publisher_); - } - if (publicationDate_ != null) { - output.writeMessage(7, getPublicationDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicationType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, publicationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(isbn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, isbn_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < authors_.size(); i++) { - dataSize += computeStringSizeNoTag(authors_.getRaw(i)); - } - size += dataSize; - size += 1 * getAuthorsList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(journal_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, journal_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(volume_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, volume_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publisher_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, publisher_); - } - if (publicationDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPublicationDate()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicationType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, publicationType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(isbn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, isbn_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Publication)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Publication other = - (com.google.cloud.talent.v4beta1.Publication) obj; - - if (!getAuthorsList().equals(other.getAuthorsList())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getJournal().equals(other.getJournal())) return false; - if (!getVolume().equals(other.getVolume())) return false; - if (!getPublisher().equals(other.getPublisher())) return false; - if (hasPublicationDate() != other.hasPublicationDate()) return false; - if (hasPublicationDate()) { - if (!getPublicationDate().equals(other.getPublicationDate())) return false; - } - if (!getPublicationType().equals(other.getPublicationType())) return false; - if (!getIsbn().equals(other.getIsbn())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAuthorsCount() > 0) { - hash = (37 * hash) + AUTHORS_FIELD_NUMBER; - hash = (53 * hash) + getAuthorsList().hashCode(); - } - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + JOURNAL_FIELD_NUMBER; - hash = (53 * hash) + getJournal().hashCode(); - hash = (37 * hash) + VOLUME_FIELD_NUMBER; - hash = (53 * hash) + getVolume().hashCode(); - hash = (37 * hash) + PUBLISHER_FIELD_NUMBER; - hash = (53 * hash) + getPublisher().hashCode(); - if (hasPublicationDate()) { - hash = (37 * hash) + PUBLICATION_DATE_FIELD_NUMBER; - hash = (53 * hash) + getPublicationDate().hashCode(); - } - hash = (37 * hash) + PUBLICATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getPublicationType().hashCode(); - hash = (37 * hash) + ISBN_FIELD_NUMBER; - hash = (53 * hash) + getIsbn().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Publication parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Publication parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Publication parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Publication prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a publication resource of a candidate.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Publication} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Publication) - com.google.cloud.talent.v4beta1.PublicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Publication.class, - com.google.cloud.talent.v4beta1.Publication.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Publication.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - title_ = ""; - - description_ = ""; - - journal_ = ""; - - volume_ = ""; - - publisher_ = ""; - - if (publicationDateBuilder_ == null) { - publicationDate_ = null; - } else { - publicationDate_ = null; - publicationDateBuilder_ = null; - } - publicationType_ = ""; - - isbn_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Publication_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Publication.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Publication build() { - com.google.cloud.talent.v4beta1.Publication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Publication buildPartial() { - com.google.cloud.talent.v4beta1.Publication result = - new com.google.cloud.talent.v4beta1.Publication(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - authors_ = authors_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.authors_ = authors_; - result.title_ = title_; - result.description_ = description_; - result.journal_ = journal_; - result.volume_ = volume_; - result.publisher_ = publisher_; - if (publicationDateBuilder_ == null) { - result.publicationDate_ = publicationDate_; - } else { - result.publicationDate_ = publicationDateBuilder_.build(); - } - result.publicationType_ = publicationType_; - result.isbn_ = isbn_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Publication) { - return mergeFrom((com.google.cloud.talent.v4beta1.Publication) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Publication other) { - if (other == com.google.cloud.talent.v4beta1.Publication.getDefaultInstance()) return this; - if (!other.authors_.isEmpty()) { - if (authors_.isEmpty()) { - authors_ = other.authors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAuthorsIsMutable(); - authors_.addAll(other.authors_); - } - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getJournal().isEmpty()) { - journal_ = other.journal_; - onChanged(); - } - if (!other.getVolume().isEmpty()) { - volume_ = other.volume_; - onChanged(); - } - if (!other.getPublisher().isEmpty()) { - publisher_ = other.publisher_; - onChanged(); - } - if (other.hasPublicationDate()) { - mergePublicationDate(other.getPublicationDate()); - } - if (!other.getPublicationType().isEmpty()) { - publicationType_ = other.publicationType_; - onChanged(); - } - if (!other.getIsbn().isEmpty()) { - isbn_ = other.isbn_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Publication parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Publication) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList authors_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureAuthorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - authors_ = new com.google.protobuf.LazyStringArrayList(authors_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @return A list containing the authors. - */ - public com.google.protobuf.ProtocolStringList getAuthorsList() { - return authors_.getUnmodifiableView(); - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @return The count of authors. - */ - public int getAuthorsCount() { - return authors_.size(); - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @param index The index of the element to return. - * @return The authors at the given index. - */ - public java.lang.String getAuthors(int index) { - return authors_.get(index); - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @param index The index of the value to return. - * @return The bytes of the authors at the given index. - */ - public com.google.protobuf.ByteString getAuthorsBytes(int index) { - return authors_.getByteString(index); - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @param index The index to set the value at. - * @param value The authors to set. - * @return This builder for chaining. - */ - public Builder setAuthors(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthorsIsMutable(); - authors_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @param value The authors to add. - * @return This builder for chaining. - */ - public Builder addAuthors(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAuthorsIsMutable(); - authors_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @param values The authors to add. - * @return This builder for chaining. - */ - public Builder addAllAuthors(java.lang.Iterable values) { - ensureAuthorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authors_); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @return This builder for chaining. - */ - public Builder clearAuthors() { - authors_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * A list of author names.
-     * Number of characters allowed is 100.
-     * 
- * - * repeated string authors = 1; - * - * @param value The bytes of the authors to add. - * @return This builder for chaining. - */ - public Builder addAuthorsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAuthorsIsMutable(); - authors_.add(value); - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * - * - *
-     * The title of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string title = 2; - * - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The title of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string title = 2; - * - * @return The bytes for title. - */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The title of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string title = 2; - * - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The title of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string title = 2; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - * - * - *
-     * The title of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string title = 2; - * - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * The description of the publication.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The description of the publication.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The description of the publication.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the publication.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * The description of the publication.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object journal_ = ""; - /** - * - * - *
-     * The journal name of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string journal = 4; - * - * @return The journal. - */ - public java.lang.String getJournal() { - java.lang.Object ref = journal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - journal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The journal name of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string journal = 4; - * - * @return The bytes for journal. - */ - public com.google.protobuf.ByteString getJournalBytes() { - java.lang.Object ref = journal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - journal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The journal name of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string journal = 4; - * - * @param value The journal to set. - * @return This builder for chaining. - */ - public Builder setJournal(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - journal_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The journal name of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string journal = 4; - * - * @return This builder for chaining. - */ - public Builder clearJournal() { - - journal_ = getDefaultInstance().getJournal(); - onChanged(); - return this; - } - /** - * - * - *
-     * The journal name of the publication.
-     * Number of characters allowed is 100.
-     * 
- * - * string journal = 4; - * - * @param value The bytes for journal to set. - * @return This builder for chaining. - */ - public Builder setJournalBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - journal_ = value; - onChanged(); - return this; - } - - private java.lang.Object volume_ = ""; - /** - * - * - *
-     * Volume number.
-     * Number of characters allowed is 100.
-     * 
- * - * string volume = 5; - * - * @return The volume. - */ - public java.lang.String getVolume() { - java.lang.Object ref = volume_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - volume_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Volume number.
-     * Number of characters allowed is 100.
-     * 
- * - * string volume = 5; - * - * @return The bytes for volume. - */ - public com.google.protobuf.ByteString getVolumeBytes() { - java.lang.Object ref = volume_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - volume_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Volume number.
-     * Number of characters allowed is 100.
-     * 
- * - * string volume = 5; - * - * @param value The volume to set. - * @return This builder for chaining. - */ - public Builder setVolume(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - volume_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Volume number.
-     * Number of characters allowed is 100.
-     * 
- * - * string volume = 5; - * - * @return This builder for chaining. - */ - public Builder clearVolume() { - - volume_ = getDefaultInstance().getVolume(); - onChanged(); - return this; - } - /** - * - * - *
-     * Volume number.
-     * Number of characters allowed is 100.
-     * 
- * - * string volume = 5; - * - * @param value The bytes for volume to set. - * @return This builder for chaining. - */ - public Builder setVolumeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - volume_ = value; - onChanged(); - return this; - } - - private java.lang.Object publisher_ = ""; - /** - * - * - *
-     * The publisher of the journal.
-     * Number of characters allowed is 100.
-     * 
- * - * string publisher = 6; - * - * @return The publisher. - */ - public java.lang.String getPublisher() { - java.lang.Object ref = publisher_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publisher_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The publisher of the journal.
-     * Number of characters allowed is 100.
-     * 
- * - * string publisher = 6; - * - * @return The bytes for publisher. - */ - public com.google.protobuf.ByteString getPublisherBytes() { - java.lang.Object ref = publisher_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - publisher_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The publisher of the journal.
-     * Number of characters allowed is 100.
-     * 
- * - * string publisher = 6; - * - * @param value The publisher to set. - * @return This builder for chaining. - */ - public Builder setPublisher(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publisher_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The publisher of the journal.
-     * Number of characters allowed is 100.
-     * 
- * - * string publisher = 6; - * - * @return This builder for chaining. - */ - public Builder clearPublisher() { - - publisher_ = getDefaultInstance().getPublisher(); - onChanged(); - return this; - } - /** - * - * - *
-     * The publisher of the journal.
-     * Number of characters allowed is 100.
-     * 
- * - * string publisher = 6; - * - * @param value The bytes for publisher to set. - * @return This builder for chaining. - */ - public Builder setPublisherBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publisher_ = value; - onChanged(); - return this; - } - - private com.google.type.Date publicationDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - publicationDateBuilder_; - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - * - * @return Whether the publicationDate field is set. - */ - public boolean hasPublicationDate() { - return publicationDateBuilder_ != null || publicationDate_ != null; - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - * - * @return The publicationDate. - */ - public com.google.type.Date getPublicationDate() { - if (publicationDateBuilder_ == null) { - return publicationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : publicationDate_; - } else { - return publicationDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - */ - public Builder setPublicationDate(com.google.type.Date value) { - if (publicationDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - publicationDate_ = value; - onChanged(); - } else { - publicationDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - */ - public Builder setPublicationDate(com.google.type.Date.Builder builderForValue) { - if (publicationDateBuilder_ == null) { - publicationDate_ = builderForValue.build(); - onChanged(); - } else { - publicationDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - */ - public Builder mergePublicationDate(com.google.type.Date value) { - if (publicationDateBuilder_ == null) { - if (publicationDate_ != null) { - publicationDate_ = - com.google.type.Date.newBuilder(publicationDate_).mergeFrom(value).buildPartial(); - } else { - publicationDate_ = value; - } - onChanged(); - } else { - publicationDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - */ - public Builder clearPublicationDate() { - if (publicationDateBuilder_ == null) { - publicationDate_ = null; - onChanged(); - } else { - publicationDate_ = null; - publicationDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - */ - public com.google.type.Date.Builder getPublicationDateBuilder() { - - onChanged(); - return getPublicationDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - */ - public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { - if (publicationDateBuilder_ != null) { - return publicationDateBuilder_.getMessageOrBuilder(); - } else { - return publicationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : publicationDate_; - } - } - /** - * - * - *
-     * The publication date.
-     * 
- * - * .google.type.Date publication_date = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getPublicationDateFieldBuilder() { - if (publicationDateBuilder_ == null) { - publicationDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getPublicationDate(), getParentForChildren(), isClean()); - publicationDate_ = null; - } - return publicationDateBuilder_; - } - - private java.lang.Object publicationType_ = ""; - /** - * - * - *
-     * The publication type.
-     * Number of characters allowed is 100.
-     * 
- * - * string publication_type = 8; - * - * @return The publicationType. - */ - public java.lang.String getPublicationType() { - java.lang.Object ref = publicationType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicationType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The publication type.
-     * Number of characters allowed is 100.
-     * 
- * - * string publication_type = 8; - * - * @return The bytes for publicationType. - */ - public com.google.protobuf.ByteString getPublicationTypeBytes() { - java.lang.Object ref = publicationType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - publicationType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The publication type.
-     * Number of characters allowed is 100.
-     * 
- * - * string publication_type = 8; - * - * @param value The publicationType to set. - * @return This builder for chaining. - */ - public Builder setPublicationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The publication type.
-     * Number of characters allowed is 100.
-     * 
- * - * string publication_type = 8; - * - * @return This builder for chaining. - */ - public Builder clearPublicationType() { - - publicationType_ = getDefaultInstance().getPublicationType(); - onChanged(); - return this; - } - /** - * - * - *
-     * The publication type.
-     * Number of characters allowed is 100.
-     * 
- * - * string publication_type = 8; - * - * @param value The bytes for publicationType to set. - * @return This builder for chaining. - */ - public Builder setPublicationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicationType_ = value; - onChanged(); - return this; - } - - private java.lang.Object isbn_ = ""; - /** - * - * - *
-     * ISBN number.
-     * Number of characters allowed is 100.
-     * 
- * - * string isbn = 9; - * - * @return The isbn. - */ - public java.lang.String getIsbn() { - java.lang.Object ref = isbn_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - isbn_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * ISBN number.
-     * Number of characters allowed is 100.
-     * 
- * - * string isbn = 9; - * - * @return The bytes for isbn. - */ - public com.google.protobuf.ByteString getIsbnBytes() { - java.lang.Object ref = isbn_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - isbn_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * ISBN number.
-     * Number of characters allowed is 100.
-     * 
- * - * string isbn = 9; - * - * @param value The isbn to set. - * @return This builder for chaining. - */ - public Builder setIsbn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - isbn_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * ISBN number.
-     * Number of characters allowed is 100.
-     * 
- * - * string isbn = 9; - * - * @return This builder for chaining. - */ - public Builder clearIsbn() { - - isbn_ = getDefaultInstance().getIsbn(); - onChanged(); - return this; - } - /** - * - * - *
-     * ISBN number.
-     * Number of characters allowed is 100.
-     * 
- * - * string isbn = 9; - * - * @param value The bytes for isbn to set. - * @return This builder for chaining. - */ - public Builder setIsbnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - isbn_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Publication) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Publication) - private static final com.google.cloud.talent.v4beta1.Publication DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Publication(); - } - - public static com.google.cloud.talent.v4beta1.Publication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Publication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Publication(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Publication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java deleted file mode 100644 index 48e60768..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface PublicationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Publication) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @return A list containing the authors. - */ - java.util.List getAuthorsList(); - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @return The count of authors. - */ - int getAuthorsCount(); - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @param index The index of the element to return. - * @return The authors at the given index. - */ - java.lang.String getAuthors(int index); - /** - * - * - *
-   * A list of author names.
-   * Number of characters allowed is 100.
-   * 
- * - * repeated string authors = 1; - * - * @param index The index of the value to return. - * @return The bytes of the authors at the given index. - */ - com.google.protobuf.ByteString getAuthorsBytes(int index); - - /** - * - * - *
-   * The title of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string title = 2; - * - * @return The title. - */ - java.lang.String getTitle(); - /** - * - * - *
-   * The title of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string title = 2; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); - - /** - * - * - *
-   * The description of the publication.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * The description of the publication.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * The journal name of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string journal = 4; - * - * @return The journal. - */ - java.lang.String getJournal(); - /** - * - * - *
-   * The journal name of the publication.
-   * Number of characters allowed is 100.
-   * 
- * - * string journal = 4; - * - * @return The bytes for journal. - */ - com.google.protobuf.ByteString getJournalBytes(); - - /** - * - * - *
-   * Volume number.
-   * Number of characters allowed is 100.
-   * 
- * - * string volume = 5; - * - * @return The volume. - */ - java.lang.String getVolume(); - /** - * - * - *
-   * Volume number.
-   * Number of characters allowed is 100.
-   * 
- * - * string volume = 5; - * - * @return The bytes for volume. - */ - com.google.protobuf.ByteString getVolumeBytes(); - - /** - * - * - *
-   * The publisher of the journal.
-   * Number of characters allowed is 100.
-   * 
- * - * string publisher = 6; - * - * @return The publisher. - */ - java.lang.String getPublisher(); - /** - * - * - *
-   * The publisher of the journal.
-   * Number of characters allowed is 100.
-   * 
- * - * string publisher = 6; - * - * @return The bytes for publisher. - */ - com.google.protobuf.ByteString getPublisherBytes(); - - /** - * - * - *
-   * The publication date.
-   * 
- * - * .google.type.Date publication_date = 7; - * - * @return Whether the publicationDate field is set. - */ - boolean hasPublicationDate(); - /** - * - * - *
-   * The publication date.
-   * 
- * - * .google.type.Date publication_date = 7; - * - * @return The publicationDate. - */ - com.google.type.Date getPublicationDate(); - /** - * - * - *
-   * The publication date.
-   * 
- * - * .google.type.Date publication_date = 7; - */ - com.google.type.DateOrBuilder getPublicationDateOrBuilder(); - - /** - * - * - *
-   * The publication type.
-   * Number of characters allowed is 100.
-   * 
- * - * string publication_type = 8; - * - * @return The publicationType. - */ - java.lang.String getPublicationType(); - /** - * - * - *
-   * The publication type.
-   * Number of characters allowed is 100.
-   * 
- * - * string publication_type = 8; - * - * @return The bytes for publicationType. - */ - com.google.protobuf.ByteString getPublicationTypeBytes(); - - /** - * - * - *
-   * ISBN number.
-   * Number of characters allowed is 100.
-   * 
- * - * string isbn = 9; - * - * @return The isbn. - */ - java.lang.String getIsbn(); - /** - * - * - *
-   * ISBN number.
-   * Number of characters allowed is 100.
-   * 
- * - * string isbn = 9; - * - * @return The bytes for isbn. - */ - com.google.protobuf.ByteString getIsbnBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java deleted file mode 100644 index 27ea073a..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java +++ /dev/null @@ -1,833 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * The details of the score received for an assessment or interview.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Rating} - */ -public final class Rating extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Rating) - RatingOrBuilder { - private static final long serialVersionUID = 0L; - // Use Rating.newBuilder() to construct. - private Rating(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Rating() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Rating(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Rating( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - overall_ = input.readDouble(); - break; - } - case 17: - { - min_ = input.readDouble(); - break; - } - case 25: - { - max_ = input.readDouble(); - break; - } - case 33: - { - interval_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Rating_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Rating_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Rating.class, - com.google.cloud.talent.v4beta1.Rating.Builder.class); - } - - public static final int OVERALL_FIELD_NUMBER = 1; - private double overall_; - /** - * - * - *
-   * Overall score.
-   * 
- * - * double overall = 1; - * - * @return The overall. - */ - @java.lang.Override - public double getOverall() { - return overall_; - } - - public static final int MIN_FIELD_NUMBER = 2; - private double min_; - /** - * - * - *
-   * The minimum value for the score.
-   * 
- * - * double min = 2; - * - * @return The min. - */ - @java.lang.Override - public double getMin() { - return min_; - } - - public static final int MAX_FIELD_NUMBER = 3; - private double max_; - /** - * - * - *
-   * The maximum value for the score.
-   * 
- * - * double max = 3; - * - * @return The max. - */ - @java.lang.Override - public double getMax() { - return max_; - } - - public static final int INTERVAL_FIELD_NUMBER = 4; - private double 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)
-   * 
- * - * double interval = 4; - * - * @return The interval. - */ - @java.lang.Override - public double getInterval() { - return interval_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(overall_) != 0) { - output.writeDouble(1, overall_); - } - if (java.lang.Double.doubleToRawLongBits(min_) != 0) { - output.writeDouble(2, min_); - } - if (java.lang.Double.doubleToRawLongBits(max_) != 0) { - output.writeDouble(3, max_); - } - if (java.lang.Double.doubleToRawLongBits(interval_) != 0) { - output.writeDouble(4, interval_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(overall_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, overall_); - } - if (java.lang.Double.doubleToRawLongBits(min_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, min_); - } - if (java.lang.Double.doubleToRawLongBits(max_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, max_); - } - if (java.lang.Double.doubleToRawLongBits(interval_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, interval_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Rating)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Rating other = (com.google.cloud.talent.v4beta1.Rating) obj; - - if (java.lang.Double.doubleToLongBits(getOverall()) - != java.lang.Double.doubleToLongBits(other.getOverall())) return false; - if (java.lang.Double.doubleToLongBits(getMin()) - != java.lang.Double.doubleToLongBits(other.getMin())) return false; - if (java.lang.Double.doubleToLongBits(getMax()) - != java.lang.Double.doubleToLongBits(other.getMax())) return false; - if (java.lang.Double.doubleToLongBits(getInterval()) - != java.lang.Double.doubleToLongBits(other.getInterval())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OVERALL_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getOverall())); - hash = (37 * hash) + MIN_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMin())); - hash = (37 * hash) + MAX_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getMax())); - hash = (37 * hash) + INTERVAL_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getInterval())); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Rating parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Rating parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Rating parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Rating prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The details of the score received for an assessment or interview.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Rating} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Rating) - com.google.cloud.talent.v4beta1.RatingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Rating_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Rating_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Rating.class, - com.google.cloud.talent.v4beta1.Rating.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Rating.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - overall_ = 0D; - - min_ = 0D; - - max_ = 0D; - - interval_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Rating_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Rating getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Rating.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Rating build() { - com.google.cloud.talent.v4beta1.Rating result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Rating buildPartial() { - com.google.cloud.talent.v4beta1.Rating result = - new com.google.cloud.talent.v4beta1.Rating(this); - result.overall_ = overall_; - result.min_ = min_; - result.max_ = max_; - result.interval_ = interval_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Rating) { - return mergeFrom((com.google.cloud.talent.v4beta1.Rating) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Rating other) { - if (other == com.google.cloud.talent.v4beta1.Rating.getDefaultInstance()) return this; - if (other.getOverall() != 0D) { - setOverall(other.getOverall()); - } - if (other.getMin() != 0D) { - setMin(other.getMin()); - } - if (other.getMax() != 0D) { - setMax(other.getMax()); - } - if (other.getInterval() != 0D) { - setInterval(other.getInterval()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Rating parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Rating) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private double overall_; - /** - * - * - *
-     * Overall score.
-     * 
- * - * double overall = 1; - * - * @return The overall. - */ - @java.lang.Override - public double getOverall() { - return overall_; - } - /** - * - * - *
-     * Overall score.
-     * 
- * - * double overall = 1; - * - * @param value The overall to set. - * @return This builder for chaining. - */ - public Builder setOverall(double value) { - - overall_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Overall score.
-     * 
- * - * double overall = 1; - * - * @return This builder for chaining. - */ - public Builder clearOverall() { - - overall_ = 0D; - onChanged(); - return this; - } - - private double min_; - /** - * - * - *
-     * The minimum value for the score.
-     * 
- * - * double min = 2; - * - * @return The min. - */ - @java.lang.Override - public double getMin() { - return min_; - } - /** - * - * - *
-     * The minimum value for the score.
-     * 
- * - * double min = 2; - * - * @param value The min to set. - * @return This builder for chaining. - */ - public Builder setMin(double value) { - - min_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The minimum value for the score.
-     * 
- * - * double min = 2; - * - * @return This builder for chaining. - */ - public Builder clearMin() { - - min_ = 0D; - onChanged(); - return this; - } - - private double max_; - /** - * - * - *
-     * The maximum value for the score.
-     * 
- * - * double max = 3; - * - * @return The max. - */ - @java.lang.Override - public double getMax() { - return max_; - } - /** - * - * - *
-     * The maximum value for the score.
-     * 
- * - * double max = 3; - * - * @param value The max to set. - * @return This builder for chaining. - */ - public Builder setMax(double value) { - - max_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum value for the score.
-     * 
- * - * double max = 3; - * - * @return This builder for chaining. - */ - public Builder clearMax() { - - max_ = 0D; - onChanged(); - return this; - } - - private double 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)
-     * 
- * - * double interval = 4; - * - * @return The interval. - */ - @java.lang.Override - public double getInterval() { - return 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)
-     * 
- * - * double interval = 4; - * - * @param value The interval to set. - * @return This builder for chaining. - */ - public Builder setInterval(double value) { - - interval_ = value; - onChanged(); - 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)
-     * 
- * - * double interval = 4; - * - * @return This builder for chaining. - */ - public Builder clearInterval() { - - interval_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Rating) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Rating) - private static final com.google.cloud.talent.v4beta1.Rating DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Rating(); - } - - public static com.google.cloud.talent.v4beta1.Rating getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rating parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Rating(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Rating getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java deleted file mode 100644 index f7061a19..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -public interface RatingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Rating) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Overall score.
-   * 
- * - * double overall = 1; - * - * @return The overall. - */ - double getOverall(); - - /** - * - * - *
-   * The minimum value for the score.
-   * 
- * - * double min = 2; - * - * @return The min. - */ - double getMin(); - - /** - * - * - *
-   * The maximum value for the score.
-   * 
- * - * double max = 3; - * - * @return The max. - */ - double getMax(); - - /** - * - * - *
-   * 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)
-   * 
- * - * double interval = 4; - * - * @return The interval. - */ - double getInterval(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Resume.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Resume.java deleted file mode 100644 index e583cc98..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Resume.java +++ /dev/null @@ -1,1006 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a resume.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Resume} - */ -public final class Resume extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Resume) - ResumeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Resume.newBuilder() to construct. - private Resume(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Resume() { - structuredResume_ = ""; - resumeType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Resume(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Resume( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - structuredResume_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - resumeType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Resume_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Resume_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Resume.class, - com.google.cloud.talent.v4beta1.Resume.Builder.class); - } - - /** - * - * - *
-   * The format of a structured resume.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.Resume.ResumeType} - */ - public enum ResumeType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * RESUME_TYPE_UNSPECIFIED = 0; - */ - 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.
-     * 
- * - * HRXML = 1; - */ - HRXML(1), - /** - * - * - *
-     * Resume type not specified.
-     * 
- * - * OTHER_RESUME_TYPE = 2; - */ - OTHER_RESUME_TYPE(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * RESUME_TYPE_UNSPECIFIED = 0; - */ - public static final int RESUME_TYPE_UNSPECIFIED_VALUE = 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.
-     * 
- * - * HRXML = 1; - */ - public static final int HRXML_VALUE = 1; - /** - * - * - *
-     * Resume type not specified.
-     * 
- * - * OTHER_RESUME_TYPE = 2; - */ - public static final int OTHER_RESUME_TYPE_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResumeType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ResumeType forNumber(int value) { - switch (value) { - case 0: - return RESUME_TYPE_UNSPECIFIED; - case 1: - return HRXML; - case 2: - return OTHER_RESUME_TYPE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResumeType findValueByNumber(int number) { - return ResumeType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.Resume.getDescriptor().getEnumTypes().get(0); - } - - private static final ResumeType[] VALUES = values(); - - public static ResumeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ResumeType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.Resume.ResumeType) - } - - public static final int STRUCTURED_RESUME_FIELD_NUMBER = 1; - private volatile java.lang.Object structuredResume_; - /** - * - * - *
-   * 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.
-   * 
- * - * string structured_resume = 1; - * - * @return The structuredResume. - */ - @java.lang.Override - public java.lang.String getStructuredResume() { - java.lang.Object ref = structuredResume_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - structuredResume_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string structured_resume = 1; - * - * @return The bytes for structuredResume. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStructuredResumeBytes() { - java.lang.Object ref = structuredResume_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - structuredResume_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESUME_TYPE_FIELD_NUMBER = 2; - private int resumeType_; - /** - * - * - *
-   * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-   * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @return The enum numeric value on the wire for resumeType. - */ - @java.lang.Override - public int getResumeTypeValue() { - return resumeType_; - } - /** - * - * - *
-   * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-   * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @return The resumeType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Resume.ResumeType getResumeType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Resume.ResumeType result = - com.google.cloud.talent.v4beta1.Resume.ResumeType.valueOf(resumeType_); - return result == null ? com.google.cloud.talent.v4beta1.Resume.ResumeType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(structuredResume_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, structuredResume_); - } - if (resumeType_ - != com.google.cloud.talent.v4beta1.Resume.ResumeType.RESUME_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, resumeType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(structuredResume_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, structuredResume_); - } - if (resumeType_ - != com.google.cloud.talent.v4beta1.Resume.ResumeType.RESUME_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resumeType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Resume)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Resume other = (com.google.cloud.talent.v4beta1.Resume) obj; - - if (!getStructuredResume().equals(other.getStructuredResume())) return false; - if (resumeType_ != other.resumeType_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STRUCTURED_RESUME_FIELD_NUMBER; - hash = (53 * hash) + getStructuredResume().hashCode(); - hash = (37 * hash) + RESUME_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resumeType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Resume parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Resume parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Resume parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Resume prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a resume.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Resume} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Resume) - com.google.cloud.talent.v4beta1.ResumeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Resume_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Resume_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Resume.class, - com.google.cloud.talent.v4beta1.Resume.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Resume.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - structuredResume_ = ""; - - resumeType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_Resume_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Resume getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Resume.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Resume build() { - com.google.cloud.talent.v4beta1.Resume result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Resume buildPartial() { - com.google.cloud.talent.v4beta1.Resume result = - new com.google.cloud.talent.v4beta1.Resume(this); - result.structuredResume_ = structuredResume_; - result.resumeType_ = resumeType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Resume) { - return mergeFrom((com.google.cloud.talent.v4beta1.Resume) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Resume other) { - if (other == com.google.cloud.talent.v4beta1.Resume.getDefaultInstance()) return this; - if (!other.getStructuredResume().isEmpty()) { - structuredResume_ = other.structuredResume_; - onChanged(); - } - if (other.resumeType_ != 0) { - setResumeTypeValue(other.getResumeTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Resume parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Resume) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object structuredResume_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string structured_resume = 1; - * - * @return The structuredResume. - */ - public java.lang.String getStructuredResume() { - java.lang.Object ref = structuredResume_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - structuredResume_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string structured_resume = 1; - * - * @return The bytes for structuredResume. - */ - public com.google.protobuf.ByteString getStructuredResumeBytes() { - java.lang.Object ref = structuredResume_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - structuredResume_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string structured_resume = 1; - * - * @param value The structuredResume to set. - * @return This builder for chaining. - */ - public Builder setStructuredResume(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - structuredResume_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string structured_resume = 1; - * - * @return This builder for chaining. - */ - public Builder clearStructuredResume() { - - structuredResume_ = getDefaultInstance().getStructuredResume(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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.
-     * 
- * - * string structured_resume = 1; - * - * @param value The bytes for structuredResume to set. - * @return This builder for chaining. - */ - public Builder setStructuredResumeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - structuredResume_ = value; - onChanged(); - return this; - } - - private int resumeType_ = 0; - /** - * - * - *
-     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-     * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @return The enum numeric value on the wire for resumeType. - */ - @java.lang.Override - public int getResumeTypeValue() { - return resumeType_; - } - /** - * - * - *
-     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-     * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @param value The enum numeric value on the wire for resumeType to set. - * @return This builder for chaining. - */ - public Builder setResumeTypeValue(int value) { - - resumeType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-     * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @return The resumeType. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Resume.ResumeType getResumeType() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Resume.ResumeType result = - com.google.cloud.talent.v4beta1.Resume.ResumeType.valueOf(resumeType_); - return result == null - ? com.google.cloud.talent.v4beta1.Resume.ResumeType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-     * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @param value The resumeType to set. - * @return This builder for chaining. - */ - public Builder setResumeType(com.google.cloud.talent.v4beta1.Resume.ResumeType value) { - if (value == null) { - throw new NullPointerException(); - } - - resumeType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-     * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearResumeType() { - - resumeType_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Resume) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Resume) - private static final com.google.cloud.talent.v4beta1.Resume DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Resume(); - } - - public static com.google.cloud.talent.v4beta1.Resume getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resume parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resume(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Resume getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeOrBuilder.java deleted file mode 100644 index d9dd0cfe..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface ResumeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Resume) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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.
-   * 
- * - * string structured_resume = 1; - * - * @return The structuredResume. - */ - java.lang.String getStructuredResume(); - /** - * - * - *
-   * 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.
-   * 
- * - * string structured_resume = 1; - * - * @return The bytes for structuredResume. - */ - com.google.protobuf.ByteString getStructuredResumeBytes(); - - /** - * - * - *
-   * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-   * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @return The enum numeric value on the wire for resumeType. - */ - int getResumeTypeValue(); - /** - * - * - *
-   * The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume].
-   * 
- * - * .google.cloud.talent.v4beta1.Resume.ResumeType resume_type = 2; - * - * @return The resumeType. - */ - com.google.cloud.talent.v4beta1.Resume.ResumeType getResumeType(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java index a48e1d89..b24fb649 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java @@ -45,6 +45,7 @@ private SearchJobsRequest() { pageToken_ = ""; orderBy_ = ""; diversificationLevel_ = 0; + keywordMatchMode_ = 0; } @java.lang.Override @@ -206,6 +207,13 @@ private SearchJobsRequest( disableKeywordMatch_ = input.readBool(); break; } + case 144: + { + int rawValue = input.readEnum(); + + keywordMatchMode_ = rawValue; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -598,6 +606,210 @@ private DiversificationLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel) } + /** + * + * + *
+   * Controls what keyword matching behavior the search has. When keyword
+   * matching is enabled, a keyword match returns jobs that may not match given
+   * category filters when there are matching keywords. For example, for the
+   * query "program manager" with KeywordMatchMode set to KEYWORD_MATCH_ALL, a
+   * job posting with the title "software developer," which doesn't fall into
+   * "program manager" ontology, and "program manager" appearing in its
+   * description will be surfaced.
+   * For queries like "cloud" that don't contain title or
+   * location specific ontology, jobs with "cloud" keyword matches are returned
+   * regardless of this enum's value.
+   * Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes] if
+   * company-specific globally matched custom field/attribute string values are
+   * needed. Enabling keyword match improves recall of subsequent search
+   * requests.
+   * 
+ * + * Protobuf enum {@code google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode} + */ + public enum KeywordMatchMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The keyword match option isn't specified. Defaults to
+     * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] behavior.
+     * 
+ * + * KEYWORD_MATCH_MODE_UNSPECIFIED = 0; + */ + KEYWORD_MATCH_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Disables keyword matching.
+     * 
+ * + * KEYWORD_MATCH_DISABLED = 1; + */ + 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.
+     * 
+ * + * KEYWORD_MATCH_ALL = 2; + */ + KEYWORD_MATCH_ALL(2), + /** + * + * + *
+     * Only enable keyword matching over [Job.title][google.cloud.talent.v4beta1.Job.title].
+     * 
+ * + * KEYWORD_MATCH_TITLE_ONLY = 3; + */ + KEYWORD_MATCH_TITLE_ONLY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The keyword match option isn't specified. Defaults to
+     * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] behavior.
+     * 
+ * + * KEYWORD_MATCH_MODE_UNSPECIFIED = 0; + */ + public static final int KEYWORD_MATCH_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Disables keyword matching.
+     * 
+ * + * KEYWORD_MATCH_DISABLED = 1; + */ + public static final int KEYWORD_MATCH_DISABLED_VALUE = 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.
+     * 
+ * + * KEYWORD_MATCH_ALL = 2; + */ + public static final int KEYWORD_MATCH_ALL_VALUE = 2; + /** + * + * + *
+     * Only enable keyword matching over [Job.title][google.cloud.talent.v4beta1.Job.title].
+     * 
+ * + * KEYWORD_MATCH_TITLE_ONLY = 3; + */ + public static final int KEYWORD_MATCH_TITLE_ONLY_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KeywordMatchMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static KeywordMatchMode forNumber(int value) { + switch (value) { + case 0: + return KEYWORD_MATCH_MODE_UNSPECIFIED; + case 1: + return KEYWORD_MATCH_DISABLED; + case 2: + return KEYWORD_MATCH_ALL; + case 3: + return KEYWORD_MATCH_TITLE_ONLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public KeywordMatchMode findValueByNumber(int number) { + return KeywordMatchMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.talent.v4beta1.SearchJobsRequest.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final KeywordMatchMode[] VALUES = values(); + + public static KeywordMatchMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private KeywordMatchMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode) + } + public interface CustomRankingInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo) @@ -652,7 +864,7 @@ public interface CustomRankingInfoOrBuilder * 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 @@ -679,7 +891,7 @@ public interface CustomRankingInfoOrBuilder * 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 @@ -1138,7 +1350,7 @@ public int getImportanceLevelValue() { * 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 @@ -1176,7 +1388,7 @@ public java.lang.String 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 @@ -1691,7 +1903,7 @@ public Builder clearImportanceLevel() { * 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 @@ -1728,7 +1940,7 @@ public java.lang.String 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 @@ -1765,7 +1977,7 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() { * 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 @@ -1801,7 +2013,7 @@ public Builder setRankingExpression(java.lang.String value) { * 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 @@ -1833,7 +2045,7 @@ public Builder clearRankingExpression() { * 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 @@ -2147,20 +2359,17 @@ public boolean getEnableBroadening() { * * *
-   * 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.
    * 
* - * bool require_precise_result_size = 6; + * bool require_precise_result_size = 6 [deprecated = true]; * + * @deprecated google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size is + * deprecated. See google/cloud/talent/v4beta1/job_service.proto;l=574 * @return The requirePreciseResultSize. */ @java.lang.Override + @java.lang.Deprecated public boolean getRequirePreciseResultSize() { return requirePreciseResultSize_; } @@ -2179,6 +2388,7 @@ public boolean getRequirePreciseResultSize() { * 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(\")." @@ -2198,6 +2408,9 @@ public boolean getRequirePreciseResultSize() { * "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. @@ -2249,7 +2462,7 @@ public boolean getRequirePreciseResultSize() { * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -2270,6 +2483,7 @@ public java.util.List getHistogr * 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(\")." @@ -2289,6 +2503,9 @@ public java.util.List getHistogr * "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. @@ -2340,7 +2557,7 @@ public java.util.List getHistogr * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -2362,6 +2579,7 @@ public java.util.List getHistogr * 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(\")." @@ -2381,6 +2599,9 @@ public java.util.List getHistogr * "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. @@ -2432,7 +2653,7 @@ public java.util.List getHistogr * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -2453,6 +2674,7 @@ public int getHistogramQueriesCount() { * 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(\")." @@ -2472,6 +2694,9 @@ public int getHistogramQueriesCount() { * "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. @@ -2523,7 +2748,7 @@ public int getHistogramQueriesCount() { * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -2544,6 +2769,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * 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(\")." @@ -2563,6 +2789,9 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * "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. @@ -2614,7 +2843,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -3027,6 +3256,12 @@ public boolean hasCustomRankingInfo() { * * *
+   * 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
@@ -3054,6 +3289,51 @@ public boolean getDisableKeywordMatch() {
     return disableKeywordMatch_;
   }
 
+  public static final int KEYWORD_MATCH_MODE_FIELD_NUMBER = 18;
+  private 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.
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @return The enum numeric value on the wire for keywordMatchMode. + */ + @java.lang.Override + public int getKeywordMatchModeValue() { + return 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.
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @return The keywordMatchMode. + */ + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode getKeywordMatchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.valueOf( + keywordMatchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3118,6 +3398,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableKeywordMatch_ != false) { output.writeBool(16, disableKeywordMatch_); } + if (keywordMatchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode + .KEYWORD_MATCH_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(18, keywordMatchMode_); + } unknownFields.writeTo(output); } @@ -3177,6 +3463,12 @@ public int getSerializedSize() { if (disableKeywordMatch_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, disableKeywordMatch_); } + if (keywordMatchMode_ + != com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode + .KEYWORD_MATCH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, keywordMatchMode_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3217,6 +3509,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCustomRankingInfo().equals(other.getCustomRankingInfo())) return false; } if (getDisableKeywordMatch() != other.getDisableKeywordMatch()) return false; + if (keywordMatchMode_ != other.keywordMatchMode_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3266,6 +3559,8 @@ public int hashCode() { } hash = (37 * hash) + DISABLE_KEYWORD_MATCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableKeywordMatch()); + hash = (37 * hash) + KEYWORD_MATCH_MODE_FIELD_NUMBER; + hash = (53 * hash) + keywordMatchMode_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3459,6 +3754,8 @@ public Builder clear() { } disableKeywordMatch_ = false; + keywordMatchMode_ = 0; + return this; } @@ -3522,6 +3819,7 @@ public com.google.cloud.talent.v4beta1.SearchJobsRequest buildPartial() { result.customRankingInfo_ = customRankingInfoBuilder_.build(); } result.disableKeywordMatch_ = disableKeywordMatch_; + result.keywordMatchMode_ = keywordMatchMode_; onBuilt(); return result; } @@ -3644,6 +3942,9 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchJobsRequest other if (other.getDisableKeywordMatch() != false) { setDisableKeywordMatch(other.getDisableKeywordMatch()); } + if (other.keywordMatchMode_ != 0) { + setKeywordMatchModeValue(other.getKeywordMatchModeValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4379,20 +4680,17 @@ public Builder clearEnableBroadening() { * * *
-     * 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.
      * 
* - * bool require_precise_result_size = 6; + * bool require_precise_result_size = 6 [deprecated = true]; * + * @deprecated google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size is + * deprecated. See google/cloud/talent/v4beta1/job_service.proto;l=574 * @return The requirePreciseResultSize. */ @java.lang.Override + @java.lang.Deprecated public boolean getRequirePreciseResultSize() { return requirePreciseResultSize_; } @@ -4400,20 +4698,17 @@ public boolean getRequirePreciseResultSize() { * * *
-     * 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.
      * 
* - * bool require_precise_result_size = 6; + * bool require_precise_result_size = 6 [deprecated = true]; * + * @deprecated google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size is + * deprecated. See google/cloud/talent/v4beta1/job_service.proto;l=574 * @param value The requirePreciseResultSize to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setRequirePreciseResultSize(boolean value) { requirePreciseResultSize_ = value; @@ -4424,19 +4719,16 @@ public Builder setRequirePreciseResultSize(boolean value) { * * *
-     * 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.
      * 
* - * bool require_precise_result_size = 6; + * bool require_precise_result_size = 6 [deprecated = true]; * + * @deprecated google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size is + * deprecated. See google/cloud/talent/v4beta1/job_service.proto;l=574 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearRequirePreciseResultSize() { requirePreciseResultSize_ = false; @@ -4474,6 +4766,7 @@ private void ensureHistogramQueriesIsMutable() { * 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(\")." @@ -4493,6 +4786,9 @@ private void ensureHistogramQueriesIsMutable() { * "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. @@ -4544,7 +4840,7 @@ private void ensureHistogramQueriesIsMutable() { * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -4569,6 +4865,7 @@ private void ensureHistogramQueriesIsMutable() { * 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(\")." @@ -4588,6 +4885,9 @@ private void ensureHistogramQueriesIsMutable() { * "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. @@ -4639,7 +4939,7 @@ private void ensureHistogramQueriesIsMutable() { * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -4663,6 +4963,7 @@ public int getHistogramQueriesCount() { * 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(\")." @@ -4682,6 +4983,9 @@ public int getHistogramQueriesCount() { * "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. @@ -4733,7 +5037,7 @@ public int getHistogramQueriesCount() { * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -4757,6 +5061,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * 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(\")." @@ -4776,6 +5081,9 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * "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. @@ -4827,7 +5135,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -4858,6 +5166,7 @@ public Builder setHistogramQueries( * 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(\")." @@ -4877,6 +5186,9 @@ public Builder setHistogramQueries( * "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. @@ -4928,7 +5240,7 @@ public Builder setHistogramQueries( * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -4956,6 +5268,7 @@ public Builder setHistogramQueries( * 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(\")." @@ -4975,6 +5288,9 @@ public Builder setHistogramQueries( * "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. @@ -5026,7 +5342,7 @@ public Builder setHistogramQueries( * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5056,6 +5372,7 @@ public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuer * 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(\")." @@ -5075,6 +5392,9 @@ public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuer * "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. @@ -5126,7 +5446,7 @@ public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuer * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5157,6 +5477,7 @@ public Builder addHistogramQueries( * 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(\")." @@ -5176,6 +5497,9 @@ public Builder addHistogramQueries( * "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. @@ -5227,7 +5551,7 @@ public Builder addHistogramQueries( * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5255,6 +5579,7 @@ public Builder addHistogramQueries( * 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(\")." @@ -5274,6 +5599,9 @@ public Builder addHistogramQueries( * "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. @@ -5325,7 +5653,7 @@ public Builder addHistogramQueries( * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5353,6 +5681,7 @@ public Builder addHistogramQueries( * 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(\")." @@ -5372,6 +5701,9 @@ public Builder addHistogramQueries( * "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. @@ -5423,7 +5755,7 @@ public Builder addHistogramQueries( * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5451,6 +5783,7 @@ public Builder addAllHistogramQueries( * 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(\")." @@ -5470,6 +5803,9 @@ public Builder addAllHistogramQueries( * "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. @@ -5521,7 +5857,7 @@ public Builder addAllHistogramQueries( * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5548,6 +5884,7 @@ public Builder clearHistogramQueries() { * 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(\")." @@ -5567,6 +5904,9 @@ public Builder clearHistogramQueries() { * "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. @@ -5618,7 +5958,7 @@ public Builder clearHistogramQueries() { * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5645,6 +5985,7 @@ public Builder removeHistogramQueries(int index) { * 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(\")." @@ -5664,6 +6005,9 @@ public Builder removeHistogramQueries(int index) { * "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. @@ -5715,7 +6059,7 @@ public Builder removeHistogramQueries(int index) { * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5736,6 +6080,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQuerie * 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(\")." @@ -5755,6 +6100,9 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQuerie * "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. @@ -5806,7 +6154,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQuerie * 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")])` * * * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5831,6 +6179,7 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * 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(\")." @@ -5850,6 +6199,9 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * "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. @@ -5901,7 +6253,7 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * 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")])` * * * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -5926,6 +6278,7 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * 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(\")." @@ -5945,6 +6298,9 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * "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. @@ -5996,7 +6352,7 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * 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")])` * * * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -6017,6 +6373,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * 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(\")." @@ -6036,6 +6393,9 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * "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. @@ -6087,7 +6447,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * 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")])` * * * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -6109,6 +6469,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * 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(\")." @@ -6128,6 +6489,9 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * "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. @@ -6179,7 +6543,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * 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")])` * * * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -7261,6 +7625,12 @@ public Builder clearCustomRankingInfo() { * * *
+     * 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
@@ -7291,6 +7661,12 @@ public boolean 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
@@ -7324,6 +7700,12 @@ public Builder setDisableKeywordMatch(boolean value) {
      *
      *
      * 
+     * 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
@@ -7353,6 +7735,122 @@ public Builder clearDisableKeywordMatch() {
       return this;
     }
 
+    private int keywordMatchMode_ = 0;
+    /**
+     *
+     *
+     * 
+     * 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.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @return The enum numeric value on the wire for keywordMatchMode. + */ + @java.lang.Override + public int getKeywordMatchModeValue() { + return 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.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @param value The enum numeric value on the wire for keywordMatchMode to set. + * @return This builder for chaining. + */ + public Builder setKeywordMatchModeValue(int value) { + + keywordMatchMode_ = value; + onChanged(); + 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.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @return The keywordMatchMode. + */ + @java.lang.Override + public com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode + getKeywordMatchMode() { + @SuppressWarnings("deprecation") + com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode result = + com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.valueOf( + keywordMatchMode_); + return result == null + ? com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * 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.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @param value The keywordMatchMode to set. + * @return This builder for chaining. + */ + public Builder setKeywordMatchMode( + com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode value) { + if (value == null) { + throw new NullPointerException(); + } + + keywordMatchMode_ = value.getNumber(); + onChanged(); + 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.
+     * 
+ * + * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @return This builder for chaining. + */ + public Builder clearKeywordMatchMode() { + + keywordMatchMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java index cab8f266..1254b58e 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java @@ -187,19 +187,16 @@ public interface SearchJobsRequestOrBuilder * * *
-   * 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.
    * 
* - * bool require_precise_result_size = 6; + * bool require_precise_result_size = 6 [deprecated = true]; * + * @deprecated google.cloud.talent.v4beta1.SearchJobsRequest.require_precise_result_size is + * deprecated. See google/cloud/talent/v4beta1/job_service.proto;l=574 * @return The requirePreciseResultSize. */ + @java.lang.Deprecated boolean getRequirePreciseResultSize(); /** @@ -214,6 +211,7 @@ public interface SearchJobsRequestOrBuilder * 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(\")." @@ -233,6 +231,9 @@ public interface SearchJobsRequestOrBuilder * "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. @@ -284,7 +285,7 @@ public interface SearchJobsRequestOrBuilder * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -302,6 +303,7 @@ public interface SearchJobsRequestOrBuilder * 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(\")." @@ -321,6 +323,9 @@ public interface SearchJobsRequestOrBuilder * "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. @@ -372,7 +377,7 @@ public interface SearchJobsRequestOrBuilder * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -390,6 +395,7 @@ public interface SearchJobsRequestOrBuilder * 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(\")." @@ -409,6 +415,9 @@ public interface SearchJobsRequestOrBuilder * "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. @@ -460,7 +469,7 @@ public interface SearchJobsRequestOrBuilder * 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")])` *
* * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -478,6 +487,7 @@ public interface SearchJobsRequestOrBuilder * 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(\")." @@ -497,6 +507,9 @@ public interface SearchJobsRequestOrBuilder * "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. @@ -548,7 +561,7 @@ public interface SearchJobsRequestOrBuilder * 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")])` * * * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -567,6 +580,7 @@ public interface SearchJobsRequestOrBuilder * 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(\")." @@ -586,6 +600,9 @@ public interface SearchJobsRequestOrBuilder * "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. @@ -637,7 +654,7 @@ public interface SearchJobsRequestOrBuilder * 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")])` * * * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 7; @@ -946,6 +963,12 @@ public interface SearchJobsRequestOrBuilder * * *
+   * 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
@@ -969,4 +992,35 @@ public interface SearchJobsRequestOrBuilder
    * @return The disableKeywordMatch.
    */
   boolean getDisableKeywordMatch();
+
+  /**
+   *
+   *
+   * 
+   * 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.
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @return The enum numeric value on the wire for keywordMatchMode. + */ + int getKeywordMatchModeValue(); + /** + * + * + *
+   * 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.
+   * 
+ * + * .google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode keyword_match_mode = 18; + * + * + * @return The keywordMatchMode. + */ + com.google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode getKeywordMatchMode(); } diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java index 380c2e41..b8784980 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java @@ -3404,7 +3404,7 @@ public com.google.cloud.talent.v4beta1.LocationOrBuilder getLocationFiltersOrBui *
    * 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].
    * 
* * int32 estimated_total_size = 5; @@ -3422,9 +3422,7 @@ public int getEstimatedTotalSize() { * * *
-   * 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.
    * 
* * int32 total_size = 6; @@ -5442,7 +5440,7 @@ public com.google.cloud.talent.v4beta1.Location.Builder addLocationFiltersBuilde *
      * 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].
      * 
* * int32 estimated_total_size = 5; @@ -5459,7 +5457,7 @@ public int 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].
      * 
* * int32 estimated_total_size = 5; @@ -5479,7 +5477,7 @@ public Builder setEstimatedTotalSize(int value) { *
      * 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].
      * 
* * int32 estimated_total_size = 5; @@ -5498,9 +5496,7 @@ public Builder clearEstimatedTotalSize() { * * *
-     * 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.
      * 
* * int32 total_size = 6; @@ -5515,9 +5511,7 @@ public int 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.
      * 
* * int32 total_size = 6; @@ -5535,9 +5529,7 @@ public Builder setTotalSize(int value) { * * *
-     * 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.
      * 
* * int32 total_size = 6; diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java index d4eba7fe..d63f4964 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java @@ -241,7 +241,7 @@ com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryR *
    * 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].
    * 
* * int32 estimated_total_size = 5; @@ -254,9 +254,7 @@ com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryR * * *
-   * 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.
    * 
* * int32 total_size = 6; diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java deleted file mode 100644 index 04050009..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java +++ /dev/null @@ -1,4515 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * The request body of the `SearchProfiles` call.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} - */ -public final class SearchProfilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) - SearchProfilesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchProfilesRequest.newBuilder() to construct. - private SearchProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchProfilesRequest() { - parent_ = ""; - pageToken_ = ""; - orderBy_ = ""; - histogramQueries_ = java.util.Collections.emptyList(); - resultSetId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchProfilesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SearchProfilesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.talent.v4beta1.RequestMetadata.Builder subBuilder = null; - if (requestMetadata_ != null) { - subBuilder = requestMetadata_.toBuilder(); - } - requestMetadata_ = - input.readMessage( - com.google.cloud.talent.v4beta1.RequestMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(requestMetadata_); - requestMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.cloud.talent.v4beta1.ProfileQuery.Builder subBuilder = null; - if (profileQuery_ != null) { - subBuilder = profileQuery_.toBuilder(); - } - profileQuery_ = - input.readMessage( - com.google.cloud.talent.v4beta1.ProfileQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(profileQuery_); - profileQuery_ = subBuilder.buildPartial(); - } - - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 48: - { - offset_ = input.readInt32(); - break; - } - case 56: - { - disableSpellCheck_ = input.readBool(); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - case 72: - { - caseSensitiveSort_ = input.readBool(); - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - histogramQueries_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - histogramQueries_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.HistogramQuery.parser(), extensionRegistry)); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - resultSetId_ = s; - break; - } - case 104: - { - strictKeywordsSearch_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, - com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_METADATA_FIELD_NUMBER = 2; - private com.google.cloud.talent.v4beta1.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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the requestMetadata field is set. - */ - @java.lang.Override - public boolean hasRequestMetadata() { - return requestMetadata_ != null; - } - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The requestMetadata. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { - return requestMetadata_ == null - ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() - : 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { - return getRequestMetadata(); - } - - public static final int PROFILE_QUERY_FIELD_NUMBER = 3; - private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_; - /** - * - * - *
-   * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * - * @return Whether the profileQuery field is set. - */ - @java.lang.Override - public boolean hasProfileQuery() { - return profileQuery_ != null; - } - /** - * - * - *
-   * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * - * @return The profileQuery. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { - return profileQuery_ == null - ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() - : profileQuery_; - } - /** - * - * - *
-   * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { - return getProfileQuery(); - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 4; - private int pageSize_; - /** - * - * - *
-   * 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.
-   * 
- * - * int32 page_size = 4; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 5; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 5; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OFFSET_FIELD_NUMBER = 6; - private 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.
-   * 
- * - * int32 offset = 6; - * - * @return The offset. - */ - @java.lang.Override - public int getOffset() { - return offset_; - } - - public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 7; - private boolean 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".
-   * 
- * - * bool disable_spell_check = 7; - * - * @return The disableSpellCheck. - */ - @java.lang.Override - public boolean getDisableSpellCheck() { - return disableSpellCheck_; - } - - public static final int ORDER_BY_FIELD_NUMBER = 8; - private volatile java.lang.Object 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.
-   * 
- * - * string order_by = 8; - * - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string order_by = 8; - * - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_SORT_FIELD_NUMBER = 9; - private boolean 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).
-   * 
- * - * bool case_sensitive_sort = 9; - * - * @return The caseSensitiveSort. - */ - @java.lang.Override - public boolean getCaseSensitiveSort() { - return caseSensitiveSort_; - } - - public static final int HISTOGRAM_QUERIES_FIELD_NUMBER = 10; - private java.util.List 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - @java.lang.Override - public java.util.List getHistogramQueriesList() { - return 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - @java.lang.Override - public java.util.List - getHistogramQueriesOrBuilderList() { - return 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - @java.lang.Override - public int getHistogramQueriesCount() { - return histogramQueries_.size(); - } - /** - * - * - *
-   * 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { - return histogramQueries_.get(index); - } - /** - * - * - *
-   * 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( - int index) { - return histogramQueries_.get(index); - } - - public static final int RESULT_SET_ID_FIELD_NUMBER = 12; - private volatile java.lang.Object 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.
-   * 
- * - * string result_set_id = 12; - * - * @return The resultSetId. - */ - @java.lang.Override - public java.lang.String getResultSetId() { - java.lang.Object ref = resultSetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resultSetId_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string result_set_id = 12; - * - * @return The bytes for resultSetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResultSetIdBytes() { - java.lang.Object ref = resultSetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resultSetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRICT_KEYWORDS_SEARCH_FIELD_NUMBER = 13; - private boolean 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.
-   * 
- * - * bool strict_keywords_search = 13; - * - * @return The strictKeywordsSearch. - */ - @java.lang.Override - public boolean getStrictKeywordsSearch() { - return strictKeywordsSearch_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (requestMetadata_ != null) { - output.writeMessage(2, getRequestMetadata()); - } - if (profileQuery_ != null) { - output.writeMessage(3, getProfileQuery()); - } - if (pageSize_ != 0) { - output.writeInt32(4, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); - } - if (offset_ != 0) { - output.writeInt32(6, offset_); - } - if (disableSpellCheck_ != false) { - output.writeBool(7, disableSpellCheck_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, orderBy_); - } - if (caseSensitiveSort_ != false) { - output.writeBool(9, caseSensitiveSort_); - } - for (int i = 0; i < histogramQueries_.size(); i++) { - output.writeMessage(10, histogramQueries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resultSetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, resultSetId_); - } - if (strictKeywordsSearch_ != false) { - output.writeBool(13, strictKeywordsSearch_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (requestMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRequestMetadata()); - } - if (profileQuery_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProfileQuery()); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); - } - if (offset_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_); - } - if (disableSpellCheck_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, disableSpellCheck_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, orderBy_); - } - if (caseSensitiveSort_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, caseSensitiveSort_); - } - for (int i = 0; i < histogramQueries_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, histogramQueries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resultSetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, resultSetId_); - } - if (strictKeywordsSearch_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, strictKeywordsSearch_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchProfilesRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.SearchProfilesRequest other = - (com.google.cloud.talent.v4beta1.SearchProfilesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasRequestMetadata() != other.hasRequestMetadata()) return false; - if (hasRequestMetadata()) { - if (!getRequestMetadata().equals(other.getRequestMetadata())) return false; - } - if (hasProfileQuery() != other.hasProfileQuery()) return false; - if (hasProfileQuery()) { - if (!getProfileQuery().equals(other.getProfileQuery())) return false; - } - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (getOffset() != other.getOffset()) return false; - if (getDisableSpellCheck() != other.getDisableSpellCheck()) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (getCaseSensitiveSort() != other.getCaseSensitiveSort()) return false; - if (!getHistogramQueriesList().equals(other.getHistogramQueriesList())) return false; - if (!getResultSetId().equals(other.getResultSetId())) return false; - if (getStrictKeywordsSearch() != other.getStrictKeywordsSearch()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRequestMetadata()) { - hash = (37 * hash) + REQUEST_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getRequestMetadata().hashCode(); - } - if (hasProfileQuery()) { - hash = (37 * hash) + PROFILE_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getProfileQuery().hashCode(); - } - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + getOffset(); - hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck()); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (37 * hash) + CASE_SENSITIVE_SORT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitiveSort()); - if (getHistogramQueriesCount() > 0) { - hash = (37 * hash) + HISTOGRAM_QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getHistogramQueriesList().hashCode(); - } - hash = (37 * hash) + RESULT_SET_ID_FIELD_NUMBER; - hash = (53 * hash) + getResultSetId().hashCode(); - hash = (37 * hash) + STRICT_KEYWORDS_SEARCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrictKeywordsSearch()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.SearchProfilesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The request body of the `SearchProfiles` call.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesRequest) - com.google.cloud.talent.v4beta1.SearchProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SearchProfilesRequest.class, - com.google.cloud.talent.v4beta1.SearchProfilesRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.SearchProfilesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getHistogramQueriesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (requestMetadataBuilder_ == null) { - requestMetadata_ = null; - } else { - requestMetadata_ = null; - requestMetadataBuilder_ = null; - } - if (profileQueryBuilder_ == null) { - profileQuery_ = null; - } else { - profileQuery_ = null; - profileQueryBuilder_ = null; - } - pageSize_ = 0; - - pageToken_ = ""; - - offset_ = 0; - - disableSpellCheck_ = false; - - orderBy_ = ""; - - caseSensitiveSort_ = false; - - if (histogramQueriesBuilder_ == null) { - histogramQueries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - histogramQueriesBuilder_.clear(); - } - resultSetId_ = ""; - - strictKeywordsSearch_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesRequest build() { - com.google.cloud.talent.v4beta1.SearchProfilesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesRequest buildPartial() { - com.google.cloud.talent.v4beta1.SearchProfilesRequest result = - new com.google.cloud.talent.v4beta1.SearchProfilesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (requestMetadataBuilder_ == null) { - result.requestMetadata_ = requestMetadata_; - } else { - result.requestMetadata_ = requestMetadataBuilder_.build(); - } - if (profileQueryBuilder_ == null) { - result.profileQuery_ = profileQuery_; - } else { - result.profileQuery_ = profileQueryBuilder_.build(); - } - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.offset_ = offset_; - result.disableSpellCheck_ = disableSpellCheck_; - result.orderBy_ = orderBy_; - result.caseSensitiveSort_ = caseSensitiveSort_; - if (histogramQueriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - histogramQueries_ = java.util.Collections.unmodifiableList(histogramQueries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.histogramQueries_ = histogramQueries_; - } else { - result.histogramQueries_ = histogramQueriesBuilder_.build(); - } - result.resultSetId_ = resultSetId_; - result.strictKeywordsSearch_ = strictKeywordsSearch_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesRequest other) { - if (other == com.google.cloud.talent.v4beta1.SearchProfilesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasRequestMetadata()) { - mergeRequestMetadata(other.getRequestMetadata()); - } - if (other.hasProfileQuery()) { - mergeProfileQuery(other.getProfileQuery()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (other.getOffset() != 0) { - setOffset(other.getOffset()); - } - if (other.getDisableSpellCheck() != false) { - setDisableSpellCheck(other.getDisableSpellCheck()); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - if (other.getCaseSensitiveSort() != false) { - setCaseSensitiveSort(other.getCaseSensitiveSort()); - } - if (histogramQueriesBuilder_ == null) { - if (!other.histogramQueries_.isEmpty()) { - if (histogramQueries_.isEmpty()) { - histogramQueries_ = other.histogramQueries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHistogramQueriesIsMutable(); - histogramQueries_.addAll(other.histogramQueries_); - } - onChanged(); - } - } else { - if (!other.histogramQueries_.isEmpty()) { - if (histogramQueriesBuilder_.isEmpty()) { - histogramQueriesBuilder_.dispose(); - histogramQueriesBuilder_ = null; - histogramQueries_ = other.histogramQueries_; - bitField0_ = (bitField0_ & ~0x00000001); - histogramQueriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHistogramQueriesFieldBuilder() - : null; - } else { - histogramQueriesBuilder_.addAllMessages(other.histogramQueries_); - } - } - } - if (!other.getResultSetId().isEmpty()) { - resultSetId_ = other.resultSetId_; - onChanged(); - } - if (other.getStrictKeywordsSearch() != false) { - setStrictKeywordsSearch(other.getStrictKeywordsSearch()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.SearchProfilesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.SearchProfilesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * 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".
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.RequestMetadata requestMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.RequestMetadata, - com.google.cloud.talent.v4beta1.RequestMetadata.Builder, - com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> - requestMetadataBuilder_; - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the requestMetadata field is set. - */ - public boolean hasRequestMetadata() { - return requestMetadataBuilder_ != null || requestMetadata_ != null; - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The requestMetadata. - */ - public com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata() { - if (requestMetadataBuilder_ == null) { - return requestMetadata_ == null - ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() - : requestMetadata_; - } else { - return requestMetadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { - if (requestMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - requestMetadata_ = value; - onChanged(); - } else { - requestMetadataBuilder_.setMessage(value); - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequestMetadata( - com.google.cloud.talent.v4beta1.RequestMetadata.Builder builderForValue) { - if (requestMetadataBuilder_ == null) { - requestMetadata_ = builderForValue.build(); - onChanged(); - } else { - requestMetadataBuilder_.setMessage(builderForValue.build()); - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeRequestMetadata(com.google.cloud.talent.v4beta1.RequestMetadata value) { - if (requestMetadataBuilder_ == null) { - if (requestMetadata_ != null) { - requestMetadata_ = - com.google.cloud.talent.v4beta1.RequestMetadata.newBuilder(requestMetadata_) - .mergeFrom(value) - .buildPartial(); - } else { - requestMetadata_ = value; - } - onChanged(); - } else { - requestMetadataBuilder_.mergeFrom(value); - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRequestMetadata() { - if (requestMetadataBuilder_ == null) { - requestMetadata_ = null; - onChanged(); - } else { - requestMetadata_ = null; - requestMetadataBuilder_ = null; - } - - 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.RequestMetadata.Builder getRequestMetadataBuilder() { - - onChanged(); - return getRequestMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder() { - if (requestMetadataBuilder_ != null) { - return requestMetadataBuilder_.getMessageOrBuilder(); - } else { - return requestMetadata_ == null - ? com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance() - : 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.
-     * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.RequestMetadata, - com.google.cloud.talent.v4beta1.RequestMetadata.Builder, - com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder> - getRequestMetadataFieldBuilder() { - if (requestMetadataBuilder_ == null) { - requestMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.RequestMetadata, - com.google.cloud.talent.v4beta1.RequestMetadata.Builder, - com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder>( - getRequestMetadata(), getParentForChildren(), isClean()); - requestMetadata_ = null; - } - return requestMetadataBuilder_; - } - - private com.google.cloud.talent.v4beta1.ProfileQuery profileQuery_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ProfileQuery, - com.google.cloud.talent.v4beta1.ProfileQuery.Builder, - com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> - profileQueryBuilder_; - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * - * @return Whether the profileQuery field is set. - */ - public boolean hasProfileQuery() { - return profileQueryBuilder_ != null || profileQuery_ != null; - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * - * @return The profileQuery. - */ - public com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery() { - if (profileQueryBuilder_ == null) { - return profileQuery_ == null - ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() - : profileQuery_; - } else { - return profileQueryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - public Builder setProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { - if (profileQueryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - profileQuery_ = value; - onChanged(); - } else { - profileQueryBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - public Builder setProfileQuery( - com.google.cloud.talent.v4beta1.ProfileQuery.Builder builderForValue) { - if (profileQueryBuilder_ == null) { - profileQuery_ = builderForValue.build(); - onChanged(); - } else { - profileQueryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - public Builder mergeProfileQuery(com.google.cloud.talent.v4beta1.ProfileQuery value) { - if (profileQueryBuilder_ == null) { - if (profileQuery_ != null) { - profileQuery_ = - com.google.cloud.talent.v4beta1.ProfileQuery.newBuilder(profileQuery_) - .mergeFrom(value) - .buildPartial(); - } else { - profileQuery_ = value; - } - onChanged(); - } else { - profileQueryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - public Builder clearProfileQuery() { - if (profileQueryBuilder_ == null) { - profileQuery_ = null; - onChanged(); - } else { - profileQuery_ = null; - profileQueryBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - public com.google.cloud.talent.v4beta1.ProfileQuery.Builder getProfileQueryBuilder() { - - onChanged(); - return getProfileQueryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - public com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder() { - if (profileQueryBuilder_ != null) { - return profileQueryBuilder_.getMessageOrBuilder(); - } else { - return profileQuery_ == null - ? com.google.cloud.talent.v4beta1.ProfileQuery.getDefaultInstance() - : profileQuery_; - } - } - /** - * - * - *
-     * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-     * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ProfileQuery, - com.google.cloud.talent.v4beta1.ProfileQuery.Builder, - com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder> - getProfileQueryFieldBuilder() { - if (profileQueryBuilder_ == null) { - profileQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ProfileQuery, - com.google.cloud.talent.v4beta1.ProfileQuery.Builder, - com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder>( - getProfileQuery(), getParentForChildren(), isClean()); - profileQuery_ = null; - } - return profileQueryBuilder_; - } - - private int pageSize_; - /** - * - * - *
-     * 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.
-     * 
- * - * int32 page_size = 4; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * 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.
-     * 
- * - * int32 page_size = 4; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - 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.
-     * 
- * - * int32 page_size = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string page_token = 5; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string page_token = 5; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string page_token = 5; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - 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.
-     * 
- * - * string page_token = 5; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - 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.
-     * 
- * - * string page_token = 5; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private 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.
-     * 
- * - * int32 offset = 6; - * - * @return The offset. - */ - @java.lang.Override - public int getOffset() { - return 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.
-     * 
- * - * int32 offset = 6; - * - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(int value) { - - offset_ = value; - onChanged(); - 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.
-     * 
- * - * int32 offset = 6; - * - * @return This builder for chaining. - */ - public Builder clearOffset() { - - offset_ = 0; - onChanged(); - return this; - } - - private boolean 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".
-     * 
- * - * bool disable_spell_check = 7; - * - * @return The disableSpellCheck. - */ - @java.lang.Override - public boolean getDisableSpellCheck() { - return 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".
-     * 
- * - * bool disable_spell_check = 7; - * - * @param value The disableSpellCheck to set. - * @return This builder for chaining. - */ - public Builder setDisableSpellCheck(boolean value) { - - disableSpellCheck_ = value; - onChanged(); - 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".
-     * 
- * - * bool disable_spell_check = 7; - * - * @return This builder for chaining. - */ - public Builder clearDisableSpellCheck() { - - disableSpellCheck_ = false; - onChanged(); - return this; - } - - private java.lang.Object 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.
-     * 
- * - * string order_by = 8; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string order_by = 8; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string order_by = 8; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - 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.
-     * 
- * - * string order_by = 8; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - 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.
-     * 
- * - * string order_by = 8; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - - private boolean 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).
-     * 
- * - * bool case_sensitive_sort = 9; - * - * @return The caseSensitiveSort. - */ - @java.lang.Override - public boolean getCaseSensitiveSort() { - return 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).
-     * 
- * - * bool case_sensitive_sort = 9; - * - * @param value The caseSensitiveSort to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitiveSort(boolean value) { - - caseSensitiveSort_ = value; - onChanged(); - 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).
-     * 
- * - * bool case_sensitive_sort = 9; - * - * @return This builder for chaining. - */ - public Builder clearCaseSensitiveSort() { - - caseSensitiveSort_ = false; - onChanged(); - return this; - } - - private java.util.List histogramQueries_ = - java.util.Collections.emptyList(); - - private void ensureHistogramQueriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - histogramQueries_ = - new java.util.ArrayList( - histogramQueries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.HistogramQuery, - com.google.cloud.talent.v4beta1.HistogramQuery.Builder, - com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> - histogramQueriesBuilder_; - - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public java.util.List - getHistogramQueriesList() { - if (histogramQueriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(histogramQueries_); - } else { - return histogramQueriesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public int getHistogramQueriesCount() { - if (histogramQueriesBuilder_ == null) { - return histogramQueries_.size(); - } else { - return histogramQueriesBuilder_.getCount(); - } - } - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index) { - if (histogramQueriesBuilder_ == null) { - return histogramQueries_.get(index); - } else { - return histogramQueriesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder setHistogramQueries( - int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { - if (histogramQueriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistogramQueriesIsMutable(); - histogramQueries_.set(index, value); - onChanged(); - } else { - histogramQueriesBuilder_.setMessage(index, value); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder setHistogramQueries( - int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { - if (histogramQueriesBuilder_ == null) { - ensureHistogramQueriesIsMutable(); - histogramQueries_.set(index, builderForValue.build()); - onChanged(); - } else { - histogramQueriesBuilder_.setMessage(index, builderForValue.build()); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuery value) { - if (histogramQueriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistogramQueriesIsMutable(); - histogramQueries_.add(value); - onChanged(); - } else { - histogramQueriesBuilder_.addMessage(value); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder addHistogramQueries( - int index, com.google.cloud.talent.v4beta1.HistogramQuery value) { - if (histogramQueriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistogramQueriesIsMutable(); - histogramQueries_.add(index, value); - onChanged(); - } else { - histogramQueriesBuilder_.addMessage(index, value); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder addHistogramQueries( - com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { - if (histogramQueriesBuilder_ == null) { - ensureHistogramQueriesIsMutable(); - histogramQueries_.add(builderForValue.build()); - onChanged(); - } else { - histogramQueriesBuilder_.addMessage(builderForValue.build()); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder addHistogramQueries( - int index, com.google.cloud.talent.v4beta1.HistogramQuery.Builder builderForValue) { - if (histogramQueriesBuilder_ == null) { - ensureHistogramQueriesIsMutable(); - histogramQueries_.add(index, builderForValue.build()); - onChanged(); - } else { - histogramQueriesBuilder_.addMessage(index, builderForValue.build()); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder addAllHistogramQueries( - java.lang.Iterable values) { - if (histogramQueriesBuilder_ == null) { - ensureHistogramQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueries_); - onChanged(); - } else { - histogramQueriesBuilder_.addAllMessages(values); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder clearHistogramQueries() { - if (histogramQueriesBuilder_ == null) { - histogramQueries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - histogramQueriesBuilder_.clear(); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public Builder removeHistogramQueries(int index) { - if (histogramQueriesBuilder_ == null) { - ensureHistogramQueriesIsMutable(); - histogramQueries_.remove(index); - onChanged(); - } else { - histogramQueriesBuilder_.remove(index); - } - 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQueriesBuilder( - int index) { - return getHistogramQueriesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder( - int index) { - if (histogramQueriesBuilder_ == null) { - return histogramQueries_.get(index); - } else { - return histogramQueriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public java.util.List - getHistogramQueriesOrBuilderList() { - if (histogramQueriesBuilder_ != null) { - return histogramQueriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder() { - return getHistogramQueriesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); - } - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQueriesBuilder( - int index) { - return getHistogramQueriesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.HistogramQuery.getDefaultInstance()); - } - /** - * - * - *
-     * 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")])
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - public java.util.List - getHistogramQueriesBuilderList() { - return getHistogramQueriesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.HistogramQuery, - com.google.cloud.talent.v4beta1.HistogramQuery.Builder, - com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder> - getHistogramQueriesFieldBuilder() { - if (histogramQueriesBuilder_ == null) { - histogramQueriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.HistogramQuery, - com.google.cloud.talent.v4beta1.HistogramQuery.Builder, - com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder>( - histogramQueries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - histogramQueries_ = null; - } - return histogramQueriesBuilder_; - } - - private java.lang.Object 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.
-     * 
- * - * string result_set_id = 12; - * - * @return The resultSetId. - */ - public java.lang.String getResultSetId() { - java.lang.Object ref = resultSetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resultSetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string result_set_id = 12; - * - * @return The bytes for resultSetId. - */ - public com.google.protobuf.ByteString getResultSetIdBytes() { - java.lang.Object ref = resultSetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resultSetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string result_set_id = 12; - * - * @param value The resultSetId to set. - * @return This builder for chaining. - */ - public Builder setResultSetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resultSetId_ = value; - onChanged(); - 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.
-     * 
- * - * string result_set_id = 12; - * - * @return This builder for chaining. - */ - public Builder clearResultSetId() { - - resultSetId_ = getDefaultInstance().getResultSetId(); - onChanged(); - 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.
-     * 
- * - * string result_set_id = 12; - * - * @param value The bytes for resultSetId to set. - * @return This builder for chaining. - */ - public Builder setResultSetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resultSetId_ = value; - onChanged(); - return this; - } - - private boolean 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.
-     * 
- * - * bool strict_keywords_search = 13; - * - * @return The strictKeywordsSearch. - */ - @java.lang.Override - public boolean getStrictKeywordsSearch() { - return 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.
-     * 
- * - * bool strict_keywords_search = 13; - * - * @param value The strictKeywordsSearch to set. - * @return This builder for chaining. - */ - public Builder setStrictKeywordsSearch(boolean value) { - - strictKeywordsSearch_ = value; - onChanged(); - 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.
-     * 
- * - * bool strict_keywords_search = 13; - * - * @return This builder for chaining. - */ - public Builder clearStrictKeywordsSearch() { - - strictKeywordsSearch_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesRequest) - private static final com.google.cloud.talent.v4beta1.SearchProfilesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesRequest(); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchProfilesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java deleted file mode 100644 index f8d51e10..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java +++ /dev/null @@ -1,733 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface SearchProfilesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * 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".
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the requestMetadata field is set. - */ - boolean hasRequestMetadata(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The requestMetadata. - */ - com.google.cloud.talent.v4beta1.RequestMetadata getRequestMetadata(); - /** - * - * - *
-   * 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.
-   * 
- * - * - * .google.cloud.talent.v4beta1.RequestMetadata request_metadata = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder getRequestMetadataOrBuilder(); - - /** - * - * - *
-   * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * - * @return Whether the profileQuery field is set. - */ - boolean hasProfileQuery(); - /** - * - * - *
-   * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - * - * @return The profileQuery. - */ - com.google.cloud.talent.v4beta1.ProfileQuery getProfileQuery(); - /** - * - * - *
-   * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details.
-   * 
- * - * .google.cloud.talent.v4beta1.ProfileQuery profile_query = 3; - */ - com.google.cloud.talent.v4beta1.ProfileQueryOrBuilder getProfileQueryOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * int32 page_size = 4; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 5; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * 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.
-   * 
- * - * string page_token = 5; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * int32 offset = 6; - * - * @return The offset. - */ - int getOffset(); - - /** - * - * - *
-   * This flag controls the spell-check feature. If `false`, the
-   * service attempts to correct a misspelled query.
-   * For example, "enginee" is corrected to "engineer".
-   * 
- * - * bool disable_spell_check = 7; - * - * @return The disableSpellCheck. - */ - boolean getDisableSpellCheck(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string order_by = 8; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - * - * - *
-   * 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.
-   * 
- * - * string order_by = 8; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); - - /** - * - * - *
-   * 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).
-   * 
- * - * bool case_sensitive_sort = 9; - * - * @return The caseSensitiveSort. - */ - boolean getCaseSensitiveSort(); - - /** - * - * - *
-   * 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - java.util.List getHistogramQueriesList(); - /** - * - * - *
-   * 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int index); - /** - * - * - *
-   * 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - int getHistogramQueriesCount(); - /** - * - * - *
-   * 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - java.util.List - getHistogramQueriesOrBuilderList(); - /** - * - * - *
-   * 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")])
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQuery histogram_queries = 10; - */ - com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index); - - /** - * - * - *
-   * 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.
-   * 
- * - * string result_set_id = 12; - * - * @return The resultSetId. - */ - java.lang.String getResultSetId(); - /** - * - * - *
-   * 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.
-   * 
- * - * string result_set_id = 12; - * - * @return The bytes for resultSetId. - */ - com.google.protobuf.ByteString getResultSetIdBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * bool strict_keywords_search = 13; - * - * @return The strictKeywordsSearch. - */ - boolean getStrictKeywordsSearch(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java deleted file mode 100644 index c40583ae..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java +++ /dev/null @@ -1,2570 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Response of SearchProfiles method.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} - */ -public final class SearchProfilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) - SearchProfilesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchProfilesResponse.newBuilder() to construct. - private SearchProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SearchProfilesResponse() { - nextPageToken_ = ""; - histogramQueryResults_ = java.util.Collections.emptyList(); - summarizedProfiles_ = java.util.Collections.emptyList(); - resultSetId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchProfilesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SearchProfilesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - estimatedTotalSize_ = input.readInt64(); - break; - } - case 18: - { - com.google.cloud.talent.v4beta1.SpellingCorrection.Builder subBuilder = null; - if (spellCorrection_ != null) { - subBuilder = spellCorrection_.toBuilder(); - } - spellCorrection_ = - input.readMessage( - com.google.cloud.talent.v4beta1.SpellingCorrection.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spellCorrection_); - spellCorrection_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.cloud.talent.v4beta1.ResponseMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - histogramQueryResults_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - histogramQueryResults_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.HistogramQueryResult.parser(), - extensionRegistry)); - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - summarizedProfiles_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - summarizedProfiles_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.SummarizedProfile.parser(), - extensionRegistry)); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - resultSetId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, - com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); - } - - public static final int ESTIMATED_TOTAL_SIZE_FIELD_NUMBER = 1; - private long estimatedTotalSize_; - /** - * - * - *
-   * An estimation of the number of profiles that match the specified query.
-   * This number isn't guaranteed to be accurate.
-   * 
- * - * int64 estimated_total_size = 1; - * - * @return The estimatedTotalSize. - */ - @java.lang.Override - public long getEstimatedTotalSize() { - return estimatedTotalSize_; - } - - public static final int SPELL_CORRECTION_FIELD_NUMBER = 2; - private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; - /** - * - * - *
-   * The spell checking result, and correction.
-   * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * - * @return Whether the spellCorrection field is set. - */ - @java.lang.Override - public boolean hasSpellCorrection() { - return spellCorrection_ != null; - } - /** - * - * - *
-   * The spell checking result, and correction.
-   * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * - * @return The spellCorrection. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { - return spellCorrection_ == null - ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() - : spellCorrection_; - } - /** - * - * - *
-   * The spell checking result, and correction.
-   * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder() { - return getSpellCorrection(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 4; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 4; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER = 5; - private java.util.List - histogramQueryResults_; - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - @java.lang.Override - public java.util.List - getHistogramQueryResultsList() { - return histogramQueryResults_; - } - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - @java.lang.Override - public java.util.List - getHistogramQueryResultsOrBuilderList() { - return histogramQueryResults_; - } - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - @java.lang.Override - public int getHistogramQueryResultsCount() { - return histogramQueryResults_.size(); - } - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index) { - return histogramQueryResults_.get(index); - } - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder - getHistogramQueryResultsOrBuilder(int index) { - return histogramQueryResults_.get(index); - } - - public static final int SUMMARIZED_PROFILES_FIELD_NUMBER = 6; - private java.util.List summarizedProfiles_; - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - @java.lang.Override - public java.util.List - getSummarizedProfilesList() { - return summarizedProfiles_; - } - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - @java.lang.Override - public java.util.List - getSummarizedProfilesOrBuilderList() { - return summarizedProfiles_; - } - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - @java.lang.Override - public int getSummarizedProfilesCount() { - return summarizedProfiles_.size(); - } - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { - return summarizedProfiles_.get(index); - } - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( - int index) { - return summarizedProfiles_.get(index); - } - - public static final int RESULT_SET_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object resultSetId_; - /** - * - * - *
-   * An id that uniquely identifies the result set of a
-   * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-   * results.
-   * 
- * - * string result_set_id = 7; - * - * @return The resultSetId. - */ - @java.lang.Override - public java.lang.String getResultSetId() { - java.lang.Object ref = resultSetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resultSetId_ = s; - return s; - } - } - /** - * - * - *
-   * An id that uniquely identifies the result set of a
-   * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-   * results.
-   * 
- * - * string result_set_id = 7; - * - * @return The bytes for resultSetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResultSetIdBytes() { - java.lang.Object ref = resultSetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resultSetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (estimatedTotalSize_ != 0L) { - output.writeInt64(1, estimatedTotalSize_); - } - if (spellCorrection_ != null) { - output.writeMessage(2, getSpellCorrection()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nextPageToken_); - } - for (int i = 0; i < histogramQueryResults_.size(); i++) { - output.writeMessage(5, histogramQueryResults_.get(i)); - } - for (int i = 0; i < summarizedProfiles_.size(); i++) { - output.writeMessage(6, summarizedProfiles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resultSetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, resultSetId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (estimatedTotalSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, estimatedTotalSize_); - } - if (spellCorrection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSpellCorrection()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nextPageToken_); - } - for (int i = 0; i < histogramQueryResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, histogramQueryResults_.get(i)); - } - for (int i = 0; i < summarizedProfiles_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, summarizedProfiles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resultSetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resultSetId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.SearchProfilesResponse)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.SearchProfilesResponse other = - (com.google.cloud.talent.v4beta1.SearchProfilesResponse) obj; - - if (getEstimatedTotalSize() != other.getEstimatedTotalSize()) return false; - if (hasSpellCorrection() != other.hasSpellCorrection()) return false; - if (hasSpellCorrection()) { - if (!getSpellCorrection().equals(other.getSpellCorrection())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getHistogramQueryResultsList().equals(other.getHistogramQueryResultsList())) return false; - if (!getSummarizedProfilesList().equals(other.getSummarizedProfilesList())) return false; - if (!getResultSetId().equals(other.getResultSetId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ESTIMATED_TOTAL_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedTotalSize()); - if (hasSpellCorrection()) { - hash = (37 * hash) + SPELL_CORRECTION_FIELD_NUMBER; - hash = (53 * hash) + getSpellCorrection().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getHistogramQueryResultsCount() > 0) { - hash = (37 * hash) + HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getHistogramQueryResultsList().hashCode(); - } - if (getSummarizedProfilesCount() > 0) { - hash = (37 * hash) + SUMMARIZED_PROFILES_FIELD_NUMBER; - hash = (53 * hash) + getSummarizedProfilesList().hashCode(); - } - hash = (37 * hash) + RESULT_SET_ID_FIELD_NUMBER; - hash = (53 * hash) + getResultSetId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.SearchProfilesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response of SearchProfiles method.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SearchProfilesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SearchProfilesResponse) - com.google.cloud.talent.v4beta1.SearchProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SearchProfilesResponse.class, - com.google.cloud.talent.v4beta1.SearchProfilesResponse.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.SearchProfilesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getHistogramQueryResultsFieldBuilder(); - getSummarizedProfilesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - estimatedTotalSize_ = 0L; - - if (spellCorrectionBuilder_ == null) { - spellCorrection_ = null; - } else { - spellCorrection_ = null; - spellCorrectionBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - nextPageToken_ = ""; - - if (histogramQueryResultsBuilder_ == null) { - histogramQueryResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - histogramQueryResultsBuilder_.clear(); - } - if (summarizedProfilesBuilder_ == null) { - summarizedProfiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - summarizedProfilesBuilder_.clear(); - } - resultSetId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SearchProfilesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesResponse build() { - com.google.cloud.talent.v4beta1.SearchProfilesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesResponse buildPartial() { - com.google.cloud.talent.v4beta1.SearchProfilesResponse result = - new com.google.cloud.talent.v4beta1.SearchProfilesResponse(this); - int from_bitField0_ = bitField0_; - result.estimatedTotalSize_ = estimatedTotalSize_; - if (spellCorrectionBuilder_ == null) { - result.spellCorrection_ = spellCorrection_; - } else { - result.spellCorrection_ = spellCorrectionBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (histogramQueryResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - histogramQueryResults_ = java.util.Collections.unmodifiableList(histogramQueryResults_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.histogramQueryResults_ = histogramQueryResults_; - } else { - result.histogramQueryResults_ = histogramQueryResultsBuilder_.build(); - } - if (summarizedProfilesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - summarizedProfiles_ = java.util.Collections.unmodifiableList(summarizedProfiles_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.summarizedProfiles_ = summarizedProfiles_; - } else { - result.summarizedProfiles_ = summarizedProfilesBuilder_.build(); - } - result.resultSetId_ = resultSetId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.SearchProfilesResponse) { - return mergeFrom((com.google.cloud.talent.v4beta1.SearchProfilesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.SearchProfilesResponse other) { - if (other == com.google.cloud.talent.v4beta1.SearchProfilesResponse.getDefaultInstance()) - return this; - if (other.getEstimatedTotalSize() != 0L) { - setEstimatedTotalSize(other.getEstimatedTotalSize()); - } - if (other.hasSpellCorrection()) { - mergeSpellCorrection(other.getSpellCorrection()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (histogramQueryResultsBuilder_ == null) { - if (!other.histogramQueryResults_.isEmpty()) { - if (histogramQueryResults_.isEmpty()) { - histogramQueryResults_ = other.histogramQueryResults_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.addAll(other.histogramQueryResults_); - } - onChanged(); - } - } else { - if (!other.histogramQueryResults_.isEmpty()) { - if (histogramQueryResultsBuilder_.isEmpty()) { - histogramQueryResultsBuilder_.dispose(); - histogramQueryResultsBuilder_ = null; - histogramQueryResults_ = other.histogramQueryResults_; - bitField0_ = (bitField0_ & ~0x00000001); - histogramQueryResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHistogramQueryResultsFieldBuilder() - : null; - } else { - histogramQueryResultsBuilder_.addAllMessages(other.histogramQueryResults_); - } - } - } - if (summarizedProfilesBuilder_ == null) { - if (!other.summarizedProfiles_.isEmpty()) { - if (summarizedProfiles_.isEmpty()) { - summarizedProfiles_ = other.summarizedProfiles_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.addAll(other.summarizedProfiles_); - } - onChanged(); - } - } else { - if (!other.summarizedProfiles_.isEmpty()) { - if (summarizedProfilesBuilder_.isEmpty()) { - summarizedProfilesBuilder_.dispose(); - summarizedProfilesBuilder_ = null; - summarizedProfiles_ = other.summarizedProfiles_; - bitField0_ = (bitField0_ & ~0x00000002); - summarizedProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSummarizedProfilesFieldBuilder() - : null; - } else { - summarizedProfilesBuilder_.addAllMessages(other.summarizedProfiles_); - } - } - } - if (!other.getResultSetId().isEmpty()) { - resultSetId_ = other.resultSetId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.SearchProfilesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.SearchProfilesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private long estimatedTotalSize_; - /** - * - * - *
-     * An estimation of the number of profiles that match the specified query.
-     * This number isn't guaranteed to be accurate.
-     * 
- * - * int64 estimated_total_size = 1; - * - * @return The estimatedTotalSize. - */ - @java.lang.Override - public long getEstimatedTotalSize() { - return estimatedTotalSize_; - } - /** - * - * - *
-     * An estimation of the number of profiles that match the specified query.
-     * This number isn't guaranteed to be accurate.
-     * 
- * - * int64 estimated_total_size = 1; - * - * @param value The estimatedTotalSize to set. - * @return This builder for chaining. - */ - public Builder setEstimatedTotalSize(long value) { - - estimatedTotalSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * An estimation of the number of profiles that match the specified query.
-     * This number isn't guaranteed to be accurate.
-     * 
- * - * int64 estimated_total_size = 1; - * - * @return This builder for chaining. - */ - public Builder clearEstimatedTotalSize() { - - estimatedTotalSize_ = 0L; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.SpellingCorrection spellCorrection_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.SpellingCorrection, - com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, - com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> - spellCorrectionBuilder_; - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * - * @return Whether the spellCorrection field is set. - */ - public boolean hasSpellCorrection() { - return spellCorrectionBuilder_ != null || spellCorrection_ != null; - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * - * @return The spellCorrection. - */ - public com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection() { - if (spellCorrectionBuilder_ == null) { - return spellCorrection_ == null - ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() - : spellCorrection_; - } else { - return spellCorrectionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - public Builder setSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { - if (spellCorrectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spellCorrection_ = value; - onChanged(); - } else { - spellCorrectionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - public Builder setSpellCorrection( - com.google.cloud.talent.v4beta1.SpellingCorrection.Builder builderForValue) { - if (spellCorrectionBuilder_ == null) { - spellCorrection_ = builderForValue.build(); - onChanged(); - } else { - spellCorrectionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - public Builder mergeSpellCorrection(com.google.cloud.talent.v4beta1.SpellingCorrection value) { - if (spellCorrectionBuilder_ == null) { - if (spellCorrection_ != null) { - spellCorrection_ = - com.google.cloud.talent.v4beta1.SpellingCorrection.newBuilder(spellCorrection_) - .mergeFrom(value) - .buildPartial(); - } else { - spellCorrection_ = value; - } - onChanged(); - } else { - spellCorrectionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - public Builder clearSpellCorrection() { - if (spellCorrectionBuilder_ == null) { - spellCorrection_ = null; - onChanged(); - } else { - spellCorrection_ = null; - spellCorrectionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - public com.google.cloud.talent.v4beta1.SpellingCorrection.Builder getSpellCorrectionBuilder() { - - onChanged(); - return getSpellCorrectionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - public com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder - getSpellCorrectionOrBuilder() { - if (spellCorrectionBuilder_ != null) { - return spellCorrectionBuilder_.getMessageOrBuilder(); - } else { - return spellCorrection_ == null - ? com.google.cloud.talent.v4beta1.SpellingCorrection.getDefaultInstance() - : spellCorrection_; - } - } - /** - * - * - *
-     * The spell checking result, and correction.
-     * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.SpellingCorrection, - com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, - com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder> - getSpellCorrectionFieldBuilder() { - if (spellCorrectionBuilder_ == null) { - spellCorrectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.SpellingCorrection, - com.google.cloud.talent.v4beta1.SpellingCorrection.Builder, - com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder>( - getSpellCorrection(), getParentForChildren(), isClean()); - spellCorrection_ = null; - } - return spellCorrectionBuilder_; - } - - private com.google.cloud.talent.v4beta1.ResponseMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ResponseMetadata, - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return The metadata. - */ - public com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder setMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder setMetadata( - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder mergeMetadata(com.google.cloud.talent.v4beta1.ResponseMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.talent.v4beta1.ResponseMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public com.google.cloud.talent.v4beta1.ResponseMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - public com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.cloud.talent.v4beta1.ResponseMetadata.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * Additional information for the API invocation, such as the request
-     * tracking id.
-     * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ResponseMetadata, - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ResponseMetadata, - com.google.cloud.talent.v4beta1.ResponseMetadata.Builder, - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 4; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 4; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 4; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve the next page of results. This is empty if there are no
-     * more results.
-     * 
- * - * string next_page_token = 4; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private java.util.List - histogramQueryResults_ = java.util.Collections.emptyList(); - - private void ensureHistogramQueryResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - histogramQueryResults_ = - new java.util.ArrayList( - histogramQueryResults_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.HistogramQueryResult, - com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, - com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> - histogramQueryResultsBuilder_; - - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public java.util.List - getHistogramQueryResultsList() { - if (histogramQueryResultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(histogramQueryResults_); - } else { - return histogramQueryResultsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public int getHistogramQueryResultsCount() { - if (histogramQueryResultsBuilder_ == null) { - return histogramQueryResults_.size(); - } else { - return histogramQueryResultsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults( - int index) { - if (histogramQueryResultsBuilder_ == null) { - return histogramQueryResults_.get(index); - } else { - return histogramQueryResultsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder setHistogramQueryResults( - int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { - if (histogramQueryResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.set(index, value); - onChanged(); - } else { - histogramQueryResultsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder setHistogramQueryResults( - int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { - if (histogramQueryResultsBuilder_ == null) { - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.set(index, builderForValue.build()); - onChanged(); - } else { - histogramQueryResultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder addHistogramQueryResults( - com.google.cloud.talent.v4beta1.HistogramQueryResult value) { - if (histogramQueryResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.add(value); - onChanged(); - } else { - histogramQueryResultsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder addHistogramQueryResults( - int index, com.google.cloud.talent.v4beta1.HistogramQueryResult value) { - if (histogramQueryResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.add(index, value); - onChanged(); - } else { - histogramQueryResultsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder addHistogramQueryResults( - com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { - if (histogramQueryResultsBuilder_ == null) { - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.add(builderForValue.build()); - onChanged(); - } else { - histogramQueryResultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder addHistogramQueryResults( - int index, com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder builderForValue) { - if (histogramQueryResultsBuilder_ == null) { - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.add(index, builderForValue.build()); - onChanged(); - } else { - histogramQueryResultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder addAllHistogramQueryResults( - java.lang.Iterable values) { - if (histogramQueryResultsBuilder_ == null) { - ensureHistogramQueryResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, histogramQueryResults_); - onChanged(); - } else { - histogramQueryResultsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder clearHistogramQueryResults() { - if (histogramQueryResultsBuilder_ == null) { - histogramQueryResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - histogramQueryResultsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public Builder removeHistogramQueryResults(int index) { - if (histogramQueryResultsBuilder_ == null) { - ensureHistogramQueryResultsIsMutable(); - histogramQueryResults_.remove(index); - onChanged(); - } else { - histogramQueryResultsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder - getHistogramQueryResultsBuilder(int index) { - return getHistogramQueryResultsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder - getHistogramQueryResultsOrBuilder(int index) { - if (histogramQueryResultsBuilder_ == null) { - return histogramQueryResults_.get(index); - } else { - return histogramQueryResultsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public java.util.List - getHistogramQueryResultsOrBuilderList() { - if (histogramQueryResultsBuilder_ != null) { - return histogramQueryResultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(histogramQueryResults_); - } - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder - addHistogramQueryResultsBuilder() { - return getHistogramQueryResultsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder - addHistogramQueryResultsBuilder(int index) { - return getHistogramQueryResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.HistogramQueryResult.getDefaultInstance()); - } - /** - * - * - *
-     * The histogram results that match with specified
-     * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - public java.util.List - getHistogramQueryResultsBuilderList() { - return getHistogramQueryResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.HistogramQueryResult, - com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, - com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder> - getHistogramQueryResultsFieldBuilder() { - if (histogramQueryResultsBuilder_ == null) { - histogramQueryResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.HistogramQueryResult, - com.google.cloud.talent.v4beta1.HistogramQueryResult.Builder, - com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder>( - histogramQueryResults_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - histogramQueryResults_ = null; - } - return histogramQueryResultsBuilder_; - } - - private java.util.List summarizedProfiles_ = - java.util.Collections.emptyList(); - - private void ensureSummarizedProfilesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - summarizedProfiles_ = - new java.util.ArrayList( - summarizedProfiles_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.SummarizedProfile, - com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, - com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> - summarizedProfilesBuilder_; - - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public java.util.List - getSummarizedProfilesList() { - if (summarizedProfilesBuilder_ == null) { - return java.util.Collections.unmodifiableList(summarizedProfiles_); - } else { - return summarizedProfilesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public int getSummarizedProfilesCount() { - if (summarizedProfilesBuilder_ == null) { - return summarizedProfiles_.size(); - } else { - return summarizedProfilesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index) { - if (summarizedProfilesBuilder_ == null) { - return summarizedProfiles_.get(index); - } else { - return summarizedProfilesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder setSummarizedProfiles( - int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { - if (summarizedProfilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.set(index, value); - onChanged(); - } else { - summarizedProfilesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder setSummarizedProfiles( - int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { - if (summarizedProfilesBuilder_ == null) { - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.set(index, builderForValue.build()); - onChanged(); - } else { - summarizedProfilesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder addSummarizedProfiles(com.google.cloud.talent.v4beta1.SummarizedProfile value) { - if (summarizedProfilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.add(value); - onChanged(); - } else { - summarizedProfilesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder addSummarizedProfiles( - int index, com.google.cloud.talent.v4beta1.SummarizedProfile value) { - if (summarizedProfilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.add(index, value); - onChanged(); - } else { - summarizedProfilesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder addSummarizedProfiles( - com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { - if (summarizedProfilesBuilder_ == null) { - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.add(builderForValue.build()); - onChanged(); - } else { - summarizedProfilesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder addSummarizedProfiles( - int index, com.google.cloud.talent.v4beta1.SummarizedProfile.Builder builderForValue) { - if (summarizedProfilesBuilder_ == null) { - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.add(index, builderForValue.build()); - onChanged(); - } else { - summarizedProfilesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder addAllSummarizedProfiles( - java.lang.Iterable values) { - if (summarizedProfilesBuilder_ == null) { - ensureSummarizedProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, summarizedProfiles_); - onChanged(); - } else { - summarizedProfilesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder clearSummarizedProfiles() { - if (summarizedProfilesBuilder_ == null) { - summarizedProfiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - summarizedProfilesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public Builder removeSummarizedProfiles(int index) { - if (summarizedProfilesBuilder_ == null) { - ensureSummarizedProfilesIsMutable(); - summarizedProfiles_.remove(index); - onChanged(); - } else { - summarizedProfilesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder getSummarizedProfilesBuilder( - int index) { - return getSummarizedProfilesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder - getSummarizedProfilesOrBuilder(int index) { - if (summarizedProfilesBuilder_ == null) { - return summarizedProfiles_.get(index); - } else { - return summarizedProfilesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public java.util.List - getSummarizedProfilesOrBuilderList() { - if (summarizedProfilesBuilder_ != null) { - return summarizedProfilesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(summarizedProfiles_); - } - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder - addSummarizedProfilesBuilder() { - return getSummarizedProfilesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public com.google.cloud.talent.v4beta1.SummarizedProfile.Builder addSummarizedProfilesBuilder( - int index) { - return getSummarizedProfilesFieldBuilder() - .addBuilder( - index, com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()); - } - /** - * - * - *
-     * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - public java.util.List - getSummarizedProfilesBuilderList() { - return getSummarizedProfilesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.SummarizedProfile, - com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, - com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder> - getSummarizedProfilesFieldBuilder() { - if (summarizedProfilesBuilder_ == null) { - summarizedProfilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.SummarizedProfile, - com.google.cloud.talent.v4beta1.SummarizedProfile.Builder, - com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder>( - summarizedProfiles_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - summarizedProfiles_ = null; - } - return summarizedProfilesBuilder_; - } - - private java.lang.Object resultSetId_ = ""; - /** - * - * - *
-     * An id that uniquely identifies the result set of a
-     * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-     * results.
-     * 
- * - * string result_set_id = 7; - * - * @return The resultSetId. - */ - public java.lang.String getResultSetId() { - java.lang.Object ref = resultSetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resultSetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * An id that uniquely identifies the result set of a
-     * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-     * results.
-     * 
- * - * string result_set_id = 7; - * - * @return The bytes for resultSetId. - */ - public com.google.protobuf.ByteString getResultSetIdBytes() { - java.lang.Object ref = resultSetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resultSetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * An id that uniquely identifies the result set of a
-     * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-     * results.
-     * 
- * - * string result_set_id = 7; - * - * @param value The resultSetId to set. - * @return This builder for chaining. - */ - public Builder setResultSetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resultSetId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * An id that uniquely identifies the result set of a
-     * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-     * results.
-     * 
- * - * string result_set_id = 7; - * - * @return This builder for chaining. - */ - public Builder clearResultSetId() { - - resultSetId_ = getDefaultInstance().getResultSetId(); - onChanged(); - return this; - } - /** - * - * - *
-     * An id that uniquely identifies the result set of a
-     * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-     * results.
-     * 
- * - * string result_set_id = 7; - * - * @param value The bytes for resultSetId to set. - * @return This builder for chaining. - */ - public Builder setResultSetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resultSetId_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SearchProfilesResponse) - private static final com.google.cloud.talent.v4beta1.SearchProfilesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SearchProfilesResponse(); - } - - public static com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchProfilesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SearchProfilesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java deleted file mode 100644 index 3d63b2ae..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface SearchProfilesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SearchProfilesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * An estimation of the number of profiles that match the specified query.
-   * This number isn't guaranteed to be accurate.
-   * 
- * - * int64 estimated_total_size = 1; - * - * @return The estimatedTotalSize. - */ - long getEstimatedTotalSize(); - - /** - * - * - *
-   * The spell checking result, and correction.
-   * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * - * @return Whether the spellCorrection field is set. - */ - boolean hasSpellCorrection(); - /** - * - * - *
-   * The spell checking result, and correction.
-   * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - * - * @return The spellCorrection. - */ - com.google.cloud.talent.v4beta1.SpellingCorrection getSpellCorrection(); - /** - * - * - *
-   * The spell checking result, and correction.
-   * 
- * - * .google.cloud.talent.v4beta1.SpellingCorrection spell_correction = 2; - */ - com.google.cloud.talent.v4beta1.SpellingCorrectionOrBuilder getSpellCorrectionOrBuilder(); - - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - * - * @return The metadata. - */ - com.google.cloud.talent.v4beta1.ResponseMetadata getMetadata(); - /** - * - * - *
-   * Additional information for the API invocation, such as the request
-   * tracking id.
-   * 
- * - * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; - */ - com.google.cloud.talent.v4beta1.ResponseMetadataOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 4; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve the next page of results. This is empty if there are no
-   * more results.
-   * 
- * - * string next_page_token = 4; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - java.util.List - getHistogramQueryResultsList(); - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - com.google.cloud.talent.v4beta1.HistogramQueryResult getHistogramQueryResults(int index); - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - int getHistogramQueryResultsCount(); - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - java.util.List - getHistogramQueryResultsOrBuilderList(); - /** - * - * - *
-   * The histogram results that match with specified
-   * [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.HistogramQueryResult histogram_query_results = 5; - * - */ - com.google.cloud.talent.v4beta1.HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder( - int index); - - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - java.util.List getSummarizedProfilesList(); - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - com.google.cloud.talent.v4beta1.SummarizedProfile getSummarizedProfiles(int index); - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - int getSummarizedProfilesCount(); - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - java.util.List - getSummarizedProfilesOrBuilderList(); - /** - * - * - *
-   * The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.SummarizedProfile summarized_profiles = 6; - */ - com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder getSummarizedProfilesOrBuilder( - int index); - - /** - * - * - *
-   * An id that uniquely identifies the result set of a
-   * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-   * results.
-   * 
- * - * string result_set_id = 7; - * - * @return The resultSetId. - */ - java.lang.String getResultSetId(); - /** - * - * - *
-   * An id that uniquely identifies the result set of a
-   * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent
-   * results.
-   * 
- * - * string result_set_id = 7; - * - * @return The bytes for resultSetId. - */ - com.google.protobuf.ByteString getResultSetIdBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java deleted file mode 100644 index 0a7d62a6..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java +++ /dev/null @@ -1,1453 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Resource that represents a skill of a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Skill} - */ -public final class Skill extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.Skill) - SkillOrBuilder { - private static final long serialVersionUID = 0L; - // Use Skill.newBuilder() to construct. - private Skill(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Skill() { - displayName_ = ""; - level_ = 0; - context_ = ""; - skillNameSnippet_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Skill(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Skill( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 18: - { - com.google.type.Date.Builder subBuilder = null; - if (lastUsedDate_ != null) { - subBuilder = lastUsedDate_.toBuilder(); - } - lastUsedDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastUsedDate_); - lastUsedDate_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - int rawValue = input.readEnum(); - - level_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - context_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - skillNameSnippet_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Skill.class, - com.google.cloud.talent.v4beta1.Skill.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * Skill display name.
-   * For example, "Java", "Python".
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * Skill display name.
-   * For example, "Java", "Python".
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LAST_USED_DATE_FIELD_NUMBER = 2; - private com.google.type.Date lastUsedDate_; - /** - * - * - *
-   * The last time this skill was used.
-   * 
- * - * .google.type.Date last_used_date = 2; - * - * @return Whether the lastUsedDate field is set. - */ - @java.lang.Override - public boolean hasLastUsedDate() { - return lastUsedDate_ != null; - } - /** - * - * - *
-   * The last time this skill was used.
-   * 
- * - * .google.type.Date last_used_date = 2; - * - * @return The lastUsedDate. - */ - @java.lang.Override - public com.google.type.Date getLastUsedDate() { - return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; - } - /** - * - * - *
-   * The last time this skill was used.
-   * 
- * - * .google.type.Date last_used_date = 2; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { - return getLastUsedDate(); - } - - public static final int LEVEL_FIELD_NUMBER = 3; - private int level_; - /** - * - * - *
-   * Skill proficiency level which indicates how proficient the candidate is at
-   * this skill.
-   * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @return The enum numeric value on the wire for level. - */ - @java.lang.Override - public int getLevelValue() { - return level_; - } - /** - * - * - *
-   * Skill proficiency level which indicates how proficient the candidate is at
-   * this skill.
-   * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @return The level. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillProficiencyLevel getLevel() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.SkillProficiencyLevel result = - com.google.cloud.talent.v4beta1.SkillProficiencyLevel.valueOf(level_); - return result == null - ? com.google.cloud.talent.v4beta1.SkillProficiencyLevel.UNRECOGNIZED - : result; - } - - public static final int CONTEXT_FIELD_NUMBER = 4; - private volatile java.lang.Object context_; - /** - * - * - *
-   * A paragraph describes context of this skill.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string context = 4; - * - * @return The context. - */ - @java.lang.Override - public java.lang.String getContext() { - java.lang.Object ref = context_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - context_ = s; - return s; - } - } - /** - * - * - *
-   * A paragraph describes context of this skill.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string context = 4; - * - * @return The bytes for context. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContextBytes() { - java.lang.Object ref = context_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - context_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SKILL_NAME_SNIPPET_FIELD_NUMBER = 5; - private volatile java.lang.Object skillNameSnippet_; - /** - * - * - *
-   * 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.
-   * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The skillNameSnippet. - */ - @java.lang.Override - public java.lang.String getSkillNameSnippet() { - java.lang.Object ref = skillNameSnippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skillNameSnippet_ = s; - return s; - } - } - /** - * - * - *
-   * 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.
-   * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for skillNameSnippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSkillNameSnippetBytes() { - java.lang.Object ref = skillNameSnippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - skillNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (lastUsedDate_ != null) { - output.writeMessage(2, getLastUsedDate()); - } - if (level_ - != com.google.cloud.talent.v4beta1.SkillProficiencyLevel.SKILL_PROFICIENCY_LEVEL_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, context_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skillNameSnippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, skillNameSnippet_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (lastUsedDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUsedDate()); - } - if (level_ - != com.google.cloud.talent.v4beta1.SkillProficiencyLevel.SKILL_PROFICIENCY_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(context_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, context_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skillNameSnippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, skillNameSnippet_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.Skill)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.Skill other = (com.google.cloud.talent.v4beta1.Skill) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (hasLastUsedDate() != other.hasLastUsedDate()) return false; - if (hasLastUsedDate()) { - if (!getLastUsedDate().equals(other.getLastUsedDate())) return false; - } - if (level_ != other.level_) return false; - if (!getContext().equals(other.getContext())) return false; - if (!getSkillNameSnippet().equals(other.getSkillNameSnippet())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (hasLastUsedDate()) { - hash = (37 * hash) + LAST_USED_DATE_FIELD_NUMBER; - hash = (53 * hash) + getLastUsedDate().hashCode(); - } - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + level_; - hash = (37 * hash) + CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getContext().hashCode(); - hash = (37 * hash) + SKILL_NAME_SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getSkillNameSnippet().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Skill parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Skill parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.Skill parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.Skill prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Resource that represents a skill of a candidate.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.Skill} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.Skill) - com.google.cloud.talent.v4beta1.SkillOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.Skill.class, - com.google.cloud.talent.v4beta1.Skill.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.Skill.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - displayName_ = ""; - - if (lastUsedDateBuilder_ == null) { - lastUsedDate_ = null; - } else { - lastUsedDate_ = null; - lastUsedDateBuilder_ = null; - } - level_ = 0; - - context_ = ""; - - skillNameSnippet_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.CommonProto - .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.Skill.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Skill build() { - com.google.cloud.talent.v4beta1.Skill result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Skill buildPartial() { - com.google.cloud.talent.v4beta1.Skill result = - new com.google.cloud.talent.v4beta1.Skill(this); - result.displayName_ = displayName_; - if (lastUsedDateBuilder_ == null) { - result.lastUsedDate_ = lastUsedDate_; - } else { - result.lastUsedDate_ = lastUsedDateBuilder_.build(); - } - result.level_ = level_; - result.context_ = context_; - result.skillNameSnippet_ = skillNameSnippet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.Skill) { - return mergeFrom((com.google.cloud.talent.v4beta1.Skill) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.Skill other) { - if (other == com.google.cloud.talent.v4beta1.Skill.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.hasLastUsedDate()) { - mergeLastUsedDate(other.getLastUsedDate()); - } - if (other.level_ != 0) { - setLevelValue(other.getLevelValue()); - } - if (!other.getContext().isEmpty()) { - context_ = other.context_; - onChanged(); - } - if (!other.getSkillNameSnippet().isEmpty()) { - skillNameSnippet_ = other.skillNameSnippet_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.Skill parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.Skill) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * Skill display name.
-     * For example, "Java", "Python".
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Skill display name.
-     * For example, "Java", "Python".
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Skill display name.
-     * For example, "Java", "Python".
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Skill display name.
-     * For example, "Java", "Python".
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Skill display name.
-     * For example, "Java", "Python".
-     * Number of characters allowed is 100.
-     * 
- * - * string display_name = 1; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.type.Date lastUsedDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - lastUsedDateBuilder_; - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - * - * @return Whether the lastUsedDate field is set. - */ - public boolean hasLastUsedDate() { - return lastUsedDateBuilder_ != null || lastUsedDate_ != null; - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - * - * @return The lastUsedDate. - */ - public com.google.type.Date getLastUsedDate() { - if (lastUsedDateBuilder_ == null) { - return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; - } else { - return lastUsedDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - */ - public Builder setLastUsedDate(com.google.type.Date value) { - if (lastUsedDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastUsedDate_ = value; - onChanged(); - } else { - lastUsedDateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - */ - public Builder setLastUsedDate(com.google.type.Date.Builder builderForValue) { - if (lastUsedDateBuilder_ == null) { - lastUsedDate_ = builderForValue.build(); - onChanged(); - } else { - lastUsedDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - */ - public Builder mergeLastUsedDate(com.google.type.Date value) { - if (lastUsedDateBuilder_ == null) { - if (lastUsedDate_ != null) { - lastUsedDate_ = - com.google.type.Date.newBuilder(lastUsedDate_).mergeFrom(value).buildPartial(); - } else { - lastUsedDate_ = value; - } - onChanged(); - } else { - lastUsedDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - */ - public Builder clearLastUsedDate() { - if (lastUsedDateBuilder_ == null) { - lastUsedDate_ = null; - onChanged(); - } else { - lastUsedDate_ = null; - lastUsedDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - */ - public com.google.type.Date.Builder getLastUsedDateBuilder() { - - onChanged(); - return getLastUsedDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - */ - public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { - if (lastUsedDateBuilder_ != null) { - return lastUsedDateBuilder_.getMessageOrBuilder(); - } else { - return lastUsedDate_ == null ? com.google.type.Date.getDefaultInstance() : lastUsedDate_; - } - } - /** - * - * - *
-     * The last time this skill was used.
-     * 
- * - * .google.type.Date last_used_date = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getLastUsedDateFieldBuilder() { - if (lastUsedDateBuilder_ == null) { - lastUsedDateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getLastUsedDate(), getParentForChildren(), isClean()); - lastUsedDate_ = null; - } - return lastUsedDateBuilder_; - } - - private int level_ = 0; - /** - * - * - *
-     * Skill proficiency level which indicates how proficient the candidate is at
-     * this skill.
-     * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @return The enum numeric value on the wire for level. - */ - @java.lang.Override - public int getLevelValue() { - return level_; - } - /** - * - * - *
-     * Skill proficiency level which indicates how proficient the candidate is at
-     * this skill.
-     * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @param value The enum numeric value on the wire for level to set. - * @return This builder for chaining. - */ - public Builder setLevelValue(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Skill proficiency level which indicates how proficient the candidate is at
-     * this skill.
-     * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @return The level. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillProficiencyLevel getLevel() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.SkillProficiencyLevel result = - com.google.cloud.talent.v4beta1.SkillProficiencyLevel.valueOf(level_); - return result == null - ? com.google.cloud.talent.v4beta1.SkillProficiencyLevel.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Skill proficiency level which indicates how proficient the candidate is at
-     * this skill.
-     * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(com.google.cloud.talent.v4beta1.SkillProficiencyLevel value) { - if (value == null) { - throw new NullPointerException(); - } - - level_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Skill proficiency level which indicates how proficient the candidate is at
-     * this skill.
-     * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private java.lang.Object context_ = ""; - /** - * - * - *
-     * A paragraph describes context of this skill.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string context = 4; - * - * @return The context. - */ - public java.lang.String getContext() { - java.lang.Object ref = context_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - context_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A paragraph describes context of this skill.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string context = 4; - * - * @return The bytes for context. - */ - public com.google.protobuf.ByteString getContextBytes() { - java.lang.Object ref = context_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - context_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A paragraph describes context of this skill.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string context = 4; - * - * @param value The context to set. - * @return This builder for chaining. - */ - public Builder setContext(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - context_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A paragraph describes context of this skill.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string context = 4; - * - * @return This builder for chaining. - */ - public Builder clearContext() { - - context_ = getDefaultInstance().getContext(); - onChanged(); - return this; - } - /** - * - * - *
-     * A paragraph describes context of this skill.
-     * Number of characters allowed is 100,000.
-     * 
- * - * string context = 4; - * - * @param value The bytes for context to set. - * @return This builder for chaining. - */ - public Builder setContextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - context_ = value; - onChanged(); - return this; - } - - private java.lang.Object skillNameSnippet_ = ""; - /** - * - * - *
-     * 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.
-     * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The skillNameSnippet. - */ - public java.lang.String getSkillNameSnippet() { - java.lang.Object ref = skillNameSnippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skillNameSnippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for skillNameSnippet. - */ - public com.google.protobuf.ByteString getSkillNameSnippetBytes() { - java.lang.Object ref = skillNameSnippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - skillNameSnippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The skillNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setSkillNameSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - skillNameSnippet_ = value; - onChanged(); - 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.
-     * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSkillNameSnippet() { - - skillNameSnippet_ = getDefaultInstance().getSkillNameSnippet(); - onChanged(); - 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.
-     * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for skillNameSnippet to set. - * @return This builder for chaining. - */ - public Builder setSkillNameSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - skillNameSnippet_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.Skill) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.Skill) - private static final com.google.cloud.talent.v4beta1.Skill DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.Skill(); - } - - public static com.google.cloud.talent.v4beta1.Skill getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Skill parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Skill(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.Skill getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java deleted file mode 100644 index e17f3414..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java +++ /dev/null @@ -1,730 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Skill filter of the search.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} - */ -public final class SkillFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SkillFilter) - SkillFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use SkillFilter.newBuilder() to construct. - private SkillFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SkillFilter() { - skill_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SkillFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SkillFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - skill_ = s; - break; - } - case 16: - { - negated_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SkillFilter.class, - com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); - } - - public static final int SKILL_FIELD_NUMBER = 1; - private volatile java.lang.Object skill_; - /** - * - * - *
-   * Required. The skill name. For example, "java", "j2ee", and so on.
-   * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The skill. - */ - @java.lang.Override - public java.lang.String getSkill() { - java.lang.Object ref = skill_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skill_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The skill name. For example, "java", "j2ee", and so on.
-   * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for skill. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSkillBytes() { - java.lang.Object ref = skill_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - skill_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEGATED_FIELD_NUMBER = 2; - private boolean negated_; - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * are excluded.
-   * 
- * - * bool negated = 2; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skill_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, skill_); - } - if (negated_ != false) { - output.writeBool(2, negated_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skill_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, skill_); - } - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.SkillFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.SkillFilter other = - (com.google.cloud.talent.v4beta1.SkillFilter) obj; - - if (!getSkill().equals(other.getSkill())) return false; - if (getNegated() != other.getNegated()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SKILL_FIELD_NUMBER; - hash = (53 * hash) + getSkill().hashCode(); - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.SkillFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Skill filter of the search.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SkillFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SkillFilter) - com.google.cloud.talent.v4beta1.SkillFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_SkillFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SkillFilter.class, - com.google.cloud.talent.v4beta1.SkillFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.SkillFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - skill_ = ""; - - negated_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_SkillFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillFilter build() { - com.google.cloud.talent.v4beta1.SkillFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillFilter buildPartial() { - com.google.cloud.talent.v4beta1.SkillFilter result = - new com.google.cloud.talent.v4beta1.SkillFilter(this); - result.skill_ = skill_; - result.negated_ = negated_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.SkillFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.SkillFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.SkillFilter other) { - if (other == com.google.cloud.talent.v4beta1.SkillFilter.getDefaultInstance()) return this; - if (!other.getSkill().isEmpty()) { - skill_ = other.skill_; - onChanged(); - } - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.SkillFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.SkillFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object skill_ = ""; - /** - * - * - *
-     * Required. The skill name. For example, "java", "j2ee", and so on.
-     * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The skill. - */ - public java.lang.String getSkill() { - java.lang.Object ref = skill_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skill_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The skill name. For example, "java", "j2ee", and so on.
-     * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for skill. - */ - public com.google.protobuf.ByteString getSkillBytes() { - java.lang.Object ref = skill_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - skill_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The skill name. For example, "java", "j2ee", and so on.
-     * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The skill to set. - * @return This builder for chaining. - */ - public Builder setSkill(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - skill_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The skill name. For example, "java", "j2ee", and so on.
-     * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearSkill() { - - skill_ = getDefaultInstance().getSkill(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The skill name. For example, "java", "j2ee", and so on.
-     * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for skill to set. - * @return This builder for chaining. - */ - public Builder setSkillBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - skill_ = value; - onChanged(); - return this; - } - - private boolean negated_; - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * are excluded.
-     * 
- * - * bool negated = 2; - * - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * are excluded.
-     * 
- * - * bool negated = 2; - * - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to apply negation to the filter so profiles matching the filter
-     * are excluded.
-     * 
- * - * bool negated = 2; - * - * @return This builder for chaining. - */ - public Builder clearNegated() { - - negated_ = false; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SkillFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SkillFilter) - private static final com.google.cloud.talent.v4beta1.SkillFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SkillFilter(); - } - - public static com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SkillFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SkillFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SkillFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java deleted file mode 100644 index d5deffd8..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface SkillFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SkillFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The skill name. For example, "java", "j2ee", and so on.
-   * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The skill. - */ - java.lang.String getSkill(); - /** - * - * - *
-   * Required. The skill name. For example, "java", "j2ee", and so on.
-   * 
- * - * string skill = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for skill. - */ - com.google.protobuf.ByteString getSkillBytes(); - - /** - * - * - *
-   * Whether to apply negation to the filter so profiles matching the filter
-   * are excluded.
-   * 
- * - * bool negated = 2; - * - * @return The negated. - */ - boolean getNegated(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java deleted file mode 100644 index d1287773..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -public interface SkillOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.Skill) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Skill display name.
-   * For example, "Java", "Python".
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * Skill display name.
-   * For example, "Java", "Python".
-   * Number of characters allowed is 100.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * The last time this skill was used.
-   * 
- * - * .google.type.Date last_used_date = 2; - * - * @return Whether the lastUsedDate field is set. - */ - boolean hasLastUsedDate(); - /** - * - * - *
-   * The last time this skill was used.
-   * 
- * - * .google.type.Date last_used_date = 2; - * - * @return The lastUsedDate. - */ - com.google.type.Date getLastUsedDate(); - /** - * - * - *
-   * The last time this skill was used.
-   * 
- * - * .google.type.Date last_used_date = 2; - */ - com.google.type.DateOrBuilder getLastUsedDateOrBuilder(); - - /** - * - * - *
-   * Skill proficiency level which indicates how proficient the candidate is at
-   * this skill.
-   * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @return The enum numeric value on the wire for level. - */ - int getLevelValue(); - /** - * - * - *
-   * Skill proficiency level which indicates how proficient the candidate is at
-   * this skill.
-   * 
- * - * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; - * - * @return The level. - */ - com.google.cloud.talent.v4beta1.SkillProficiencyLevel getLevel(); - - /** - * - * - *
-   * A paragraph describes context of this skill.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string context = 4; - * - * @return The context. - */ - java.lang.String getContext(); - /** - * - * - *
-   * A paragraph describes context of this skill.
-   * Number of characters allowed is 100,000.
-   * 
- * - * string context = 4; - * - * @return The bytes for context. - */ - com.google.protobuf.ByteString getContextBytes(); - - /** - * - * - *
-   * 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.
-   * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The skillNameSnippet. - */ - java.lang.String getSkillNameSnippet(); - /** - * - * - *
-   * 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.
-   * 
- * - * string skill_name_snippet = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for skillNameSnippet. - */ - com.google.protobuf.ByteString getSkillNameSnippetBytes(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java deleted file mode 100644 index 905b5a74..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java +++ /dev/null @@ -1,275 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/common.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Enum that represents the skill proficiency level.
- * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.SkillProficiencyLevel} - */ -public enum SkillProficiencyLevel implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value.
-   * 
- * - * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - */ - SKILL_PROFICIENCY_LEVEL_UNSPECIFIED(0), - /** - * - * - *
-   * Lacks any proficiency in this skill.
-   * 
- * - * UNSKILLED = 6; - */ - UNSKILLED(6), - /** - * - * - *
-   * Have a common knowledge or an understanding of basic techniques and
-   * concepts.
-   * 
- * - * FUNDAMENTAL_AWARENESS = 1; - */ - FUNDAMENTAL_AWARENESS(1), - /** - * - * - *
-   * Have the level of experience gained in a classroom and/or experimental
-   * scenarios or as a trainee on-the-job.
-   * 
- * - * NOVICE = 2; - */ - 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.
-   * 
- * - * INTERMEDIATE = 3; - */ - INTERMEDIATE(3), - /** - * - * - *
-   * Can perform the actions associated with this skill without assistance.
-   * 
- * - * ADVANCED = 4; - */ - ADVANCED(4), - /** - * - * - *
-   * Known as an expert in this area.
-   * 
- * - * EXPERT = 5; - */ - EXPERT(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Default value.
-   * 
- * - * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - */ - public static final int SKILL_PROFICIENCY_LEVEL_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Lacks any proficiency in this skill.
-   * 
- * - * UNSKILLED = 6; - */ - public static final int UNSKILLED_VALUE = 6; - /** - * - * - *
-   * Have a common knowledge or an understanding of basic techniques and
-   * concepts.
-   * 
- * - * FUNDAMENTAL_AWARENESS = 1; - */ - public static final int FUNDAMENTAL_AWARENESS_VALUE = 1; - /** - * - * - *
-   * Have the level of experience gained in a classroom and/or experimental
-   * scenarios or as a trainee on-the-job.
-   * 
- * - * NOVICE = 2; - */ - public static final int NOVICE_VALUE = 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.
-   * 
- * - * INTERMEDIATE = 3; - */ - public static final int INTERMEDIATE_VALUE = 3; - /** - * - * - *
-   * Can perform the actions associated with this skill without assistance.
-   * 
- * - * ADVANCED = 4; - */ - public static final int ADVANCED_VALUE = 4; - /** - * - * - *
-   * Known as an expert in this area.
-   * 
- * - * EXPERT = 5; - */ - public static final int EXPERT_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SkillProficiencyLevel valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static SkillProficiencyLevel forNumber(int value) { - switch (value) { - case 0: - return SKILL_PROFICIENCY_LEVEL_UNSPECIFIED; - case 6: - return UNSKILLED; - case 1: - return FUNDAMENTAL_AWARENESS; - case 2: - return NOVICE; - case 3: - return INTERMEDIATE; - case 4: - return ADVANCED; - case 5: - return EXPERT; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SkillProficiencyLevel findValueByNumber(int number) { - return SkillProficiencyLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(11); - } - - private static final SkillProficiencyLevel[] VALUES = values(); - - public static SkillProficiencyLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SkillProficiencyLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.SkillProficiencyLevel) -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java deleted file mode 100644 index fa695cdd..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java +++ /dev/null @@ -1,1348 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Profile entry with metadata inside [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} - */ -public final class SummarizedProfile extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.SummarizedProfile) - SummarizedProfileOrBuilder { - private static final long serialVersionUID = 0L; - // Use SummarizedProfile.newBuilder() to construct. - private SummarizedProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SummarizedProfile() { - profiles_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SummarizedProfile(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SummarizedProfile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - profiles_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry)); - break; - } - case 18: - { - com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; - if (summary_ != null) { - subBuilder = summary_.toBuilder(); - } - summary_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(summary_); - summary_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = java.util.Collections.unmodifiableList(profiles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SummarizedProfile.class, - com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); - } - - public static final int PROFILES_FIELD_NUMBER = 1; - private java.util.List profiles_; - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public java.util.List getProfilesList() { - return profiles_; - } - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public java.util.List - getProfilesOrBuilderList() { - return profiles_; - } - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public int getProfilesCount() { - return profiles_.size(); - } - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { - return profiles_.get(index); - } - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { - return profiles_.get(index); - } - - public static final int SUMMARY_FIELD_NUMBER = 2; - private com.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".
-   * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - * - * @return Whether the summary field is set. - */ - @java.lang.Override - public boolean hasSummary() { - return summary_ != null; - } - /** - * - * - *
-   * 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".
-   * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - * - * @return The summary. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile getSummary() { - return summary_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : 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".
-   * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { - return getSummary(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < profiles_.size(); i++) { - output.writeMessage(1, profiles_.get(i)); - } - if (summary_ != null) { - output.writeMessage(2, getSummary()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < profiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, profiles_.get(i)); - } - if (summary_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummary()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.SummarizedProfile)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.SummarizedProfile other = - (com.google.cloud.talent.v4beta1.SummarizedProfile) obj; - - if (!getProfilesList().equals(other.getProfilesList())) return false; - if (hasSummary() != other.hasSummary()) return false; - if (hasSummary()) { - if (!getSummary().equals(other.getSummary())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getProfilesCount() > 0) { - hash = (37 * hash) + PROFILES_FIELD_NUMBER; - hash = (53 * hash) + getProfilesList().hashCode(); - } - if (hasSummary()) { - hash = (37 * hash) + SUMMARY_FIELD_NUMBER; - hash = (53 * hash) + getSummary().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.SummarizedProfile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Profile entry with metadata inside [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse].
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.SummarizedProfile} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.SummarizedProfile) - com.google.cloud.talent.v4beta1.SummarizedProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.SummarizedProfile.class, - com.google.cloud.talent.v4beta1.SummarizedProfile.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.SummarizedProfile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getProfilesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (profilesBuilder_ == null) { - profiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - profilesBuilder_.clear(); - } - if (summaryBuilder_ == null) { - summary_ = null; - } else { - summary_ = null; - summaryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_SummarizedProfile_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SummarizedProfile build() { - com.google.cloud.talent.v4beta1.SummarizedProfile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SummarizedProfile buildPartial() { - com.google.cloud.talent.v4beta1.SummarizedProfile result = - new com.google.cloud.talent.v4beta1.SummarizedProfile(this); - int from_bitField0_ = bitField0_; - if (profilesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - profiles_ = java.util.Collections.unmodifiableList(profiles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.profiles_ = profiles_; - } else { - result.profiles_ = profilesBuilder_.build(); - } - if (summaryBuilder_ == null) { - result.summary_ = summary_; - } else { - result.summary_ = summaryBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.SummarizedProfile) { - return mergeFrom((com.google.cloud.talent.v4beta1.SummarizedProfile) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.SummarizedProfile other) { - if (other == com.google.cloud.talent.v4beta1.SummarizedProfile.getDefaultInstance()) - return this; - if (profilesBuilder_ == null) { - if (!other.profiles_.isEmpty()) { - if (profiles_.isEmpty()) { - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProfilesIsMutable(); - profiles_.addAll(other.profiles_); - } - onChanged(); - } - } else { - if (!other.profiles_.isEmpty()) { - if (profilesBuilder_.isEmpty()) { - profilesBuilder_.dispose(); - profilesBuilder_ = null; - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - profilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getProfilesFieldBuilder() - : null; - } else { - profilesBuilder_.addAllMessages(other.profiles_); - } - } - } - if (other.hasSummary()) { - mergeSummary(other.getSummary()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.SummarizedProfile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.SummarizedProfile) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List profiles_ = - java.util.Collections.emptyList(); - - private void ensureProfilesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - profiles_ = new java.util.ArrayList(profiles_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - profilesBuilder_; - - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public java.util.List getProfilesList() { - if (profilesBuilder_ == null) { - return java.util.Collections.unmodifiableList(profiles_); - } else { - return profilesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public int getProfilesCount() { - if (profilesBuilder_ == null) { - return profiles_.size(); - } else { - return profilesBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile getProfiles(int index) { - if (profilesBuilder_ == null) { - return profiles_.get(index); - } else { - return profilesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder setProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.set(index, value); - onChanged(); - } else { - profilesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder setProfiles( - int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.set(index, builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(value); - onChanged(); - } else { - profilesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles(int index, com.google.cloud.talent.v4beta1.Profile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(index, value); - onChanged(); - } else { - profilesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.add(builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addProfiles( - int index, com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.add(index, builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder addAllProfiles( - java.lang.Iterable values) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, profiles_); - onChanged(); - } else { - profilesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder clearProfiles() { - if (profilesBuilder_ == null) { - profiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - profilesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public Builder removeProfiles(int index) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.remove(index); - onChanged(); - } else { - profilesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder getProfilesBuilder(int index) { - return getProfilesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index) { - if (profilesBuilder_ == null) { - return profiles_.get(index); - } else { - return profilesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public java.util.List - getProfilesOrBuilderList() { - if (profilesBuilder_ != null) { - return profilesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(profiles_); - } - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder() { - return getProfilesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder addProfilesBuilder(int index) { - return getProfilesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.Profile.getDefaultInstance()); - } - /** - * - * - *
-     * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-     * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - public java.util.List - getProfilesBuilderList() { - return getProfilesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - getProfilesFieldBuilder() { - if (profilesBuilder_ == null) { - profilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder>( - profiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - profiles_ = null; - } - return profilesBuilder_; - } - - private com.google.cloud.talent.v4beta1.Profile summary_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - summaryBuilder_; - /** - * - * - *
-     * 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - * - * @return Whether the summary field is set. - */ - public boolean hasSummary() { - return summaryBuilder_ != null || summary_ != null; - } - /** - * - * - *
-     * 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - * - * @return The summary. - */ - public com.google.cloud.talent.v4beta1.Profile getSummary() { - if (summaryBuilder_ == null) { - return summary_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : summary_; - } else { - return summaryBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - public Builder setSummary(com.google.cloud.talent.v4beta1.Profile value) { - if (summaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - summary_ = value; - onChanged(); - } else { - summaryBuilder_.setMessage(value); - } - - 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - public Builder setSummary(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (summaryBuilder_ == null) { - summary_ = builderForValue.build(); - onChanged(); - } else { - summaryBuilder_.setMessage(builderForValue.build()); - } - - 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - public Builder mergeSummary(com.google.cloud.talent.v4beta1.Profile value) { - if (summaryBuilder_ == null) { - if (summary_ != null) { - summary_ = - com.google.cloud.talent.v4beta1.Profile.newBuilder(summary_) - .mergeFrom(value) - .buildPartial(); - } else { - summary_ = value; - } - onChanged(); - } else { - summaryBuilder_.mergeFrom(value); - } - - 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - public Builder clearSummary() { - if (summaryBuilder_ == null) { - summary_ = null; - onChanged(); - } else { - summary_ = null; - summaryBuilder_ = null; - } - - 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder getSummaryBuilder() { - - onChanged(); - return getSummaryFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder() { - if (summaryBuilder_ != null) { - return summaryBuilder_.getMessageOrBuilder(); - } else { - return summary_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : 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".
-     * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - getSummaryFieldBuilder() { - if (summaryBuilder_ == null) { - summaryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder>( - getSummary(), getParentForChildren(), isClean()); - summary_ = null; - } - return summaryBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.SummarizedProfile) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.SummarizedProfile) - private static final com.google.cloud.talent.v4beta1.SummarizedProfile DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.SummarizedProfile(); - } - - public static com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SummarizedProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SummarizedProfile(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.SummarizedProfile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java deleted file mode 100644 index d7c12578..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface SummarizedProfileOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.SummarizedProfile) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - java.util.List getProfilesList(); - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - com.google.cloud.talent.v4beta1.Profile getProfiles(int index); - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - int getProfilesCount(); - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - java.util.List - getProfilesOrBuilderList(); - /** - * - * - *
-   * A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id].
-   * 
- * - * repeated .google.cloud.talent.v4beta1.Profile profiles = 1; - */ - com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfilesOrBuilder(int index); - - /** - * - * - *
-   * 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".
-   * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - * - * @return Whether the summary field is set. - */ - boolean hasSummary(); - /** - * - * - *
-   * 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".
-   * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - * - * @return The summary. - */ - com.google.cloud.talent.v4beta1.Profile getSummary(); - /** - * - * - *
-   * 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".
-   * 
- * - * .google.cloud.talent.v4beta1.Profile summary = 2; - */ - com.google.cloud.talent.v4beta1.ProfileOrBuilder getSummaryOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java index fefe7ea1..5b006785 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java +++ b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java @@ -43,20 +43,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/cloud/talent/v4beta1/tenant.pro" + "to\022\033google.cloud.talent.v4beta1\032\037google/" + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\032\037google/protobuf/timestamp.p" - + "roto\032\034google/api/annotations.proto\"\303\002\n\006T" - + "enant\022\014\n\004name\030\001 \001(\t\022\030\n\013external_id\030\002 \001(\t" - + "B\003\340A\002\022E\n\nusage_type\030\003 \001(\01621.google.cloud" - + ".talent.v4beta1.Tenant.DataUsageType\0224\n," - + "keyword_searchable_profile_custom_attrib" - + "utes\030\004 \003(\t\"N\n\rDataUsageType\022\037\n\033DATA_USAG" - + "E_TYPE_UNSPECIFIED\020\000\022\016\n\nAGGREGATED\020\001\022\014\n\010" - + "ISOLATED\020\002:D\352AA\n\032jobs.googleapis.com/Ten" - + "ant\022#projects/{project}/tenants/{tenant}" - + "B\201\001\n\037com.google.cloud.talent.v4beta1B\023Te" - + "nantResourceProtoP\001ZAgoogle.golang.org/g" - + "enproto/googleapis/cloud/talent/v4beta1;" - + "talent\242\002\003CTSb\006proto3" + + "ource.proto\"\303\002\n\006Tenant\022\014\n\004name\030\001 \001(\t\022\030\n\013" + + "external_id\030\002 \001(\tB\003\340A\002\022E\n\nusage_type\030\003 \001" + + "(\01621.google.cloud.talent.v4beta1.Tenant." + + "DataUsageType\0224\n,keyword_searchable_prof" + + "ile_custom_attributes\030\004 \003(\t\"N\n\rDataUsage" + + "Type\022\037\n\033DATA_USAGE_TYPE_UNSPECIFIED\020\000\022\016\n" + + "\nAGGREGATED\020\001\022\014\n\010ISOLATED\020\002:D\352AA\n\032jobs.g" + + "oogleapis.com/Tenant\022#projects/{project}" + + "/tenants/{tenant}B\201\001\n\037com.google.cloud.t" + + "alent.v4beta1B\023TenantResourceProtoP\001ZAgo" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/talent/v4beta1;talent\242\002\003CTSb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -64,8 +62,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_talent_v4beta1_Tenant_descriptor = getDescriptor().getMessageTypes().get(0); @@ -83,8 +79,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java deleted file mode 100644 index 5357c72f..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java +++ /dev/null @@ -1,1363 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Filter on create timestamp or update timestamp of profiles.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} - */ -public final class TimeFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.TimeFilter) - TimeFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use TimeFilter.newBuilder() to construct. - private TimeFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TimeFilter() { - timeField_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TimeFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TimeFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - int rawValue = input.readEnum(); - - timeField_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.TimeFilter.class, - com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); - } - - /** - * - * - *
-   * Time fields can be used in TimeFilter.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.TimeFilter.TimeField} - */ - public enum TimeField implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * TIME_FIELD_UNSPECIFIED = 0; - */ - TIME_FIELD_UNSPECIFIED(0), - /** - * - * - *
-     * Earliest profile create time.
-     * 
- * - * CREATE_TIME = 1; - */ - CREATE_TIME(1), - /** - * - * - *
-     * Latest profile update time.
-     * 
- * - * UPDATE_TIME = 2; - */ - UPDATE_TIME(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * TIME_FIELD_UNSPECIFIED = 0; - */ - public static final int TIME_FIELD_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Earliest profile create time.
-     * 
- * - * CREATE_TIME = 1; - */ - public static final int CREATE_TIME_VALUE = 1; - /** - * - * - *
-     * Latest profile update time.
-     * 
- * - * UPDATE_TIME = 2; - */ - public static final int UPDATE_TIME_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TimeField valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TimeField forNumber(int value) { - switch (value) { - case 0: - return TIME_FIELD_UNSPECIFIED; - case 1: - return CREATE_TIME; - case 2: - return UPDATE_TIME; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TimeField findValueByNumber(int number) { - return TimeField.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.TimeFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final TimeField[] VALUES = values(); - - public static TimeField valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TimeField(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.TimeFilter.TimeField) - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * Start timestamp, matching profiles with the start time. If this field
-   * missing, The API matches profiles with create / update timestamp before the
-   * end timestamp.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - * - * - *
-   * Start timestamp, matching profiles with the start time. If this field
-   * missing, The API matches profiles with create / update timestamp before the
-   * end timestamp.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - * - * - *
-   * Start timestamp, matching profiles with the start time. If this field
-   * missing, The API matches profiles with create / update timestamp before the
-   * end timestamp.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * End timestamp, matching profiles with the end time. If this field
-   * missing, The API matches profiles with create / update timestamp after the
-   * start timestamp.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != 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.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - * - * - *
-   * End timestamp, matching profiles with the end time. If this field
-   * missing, The API matches profiles with create / update timestamp after the
-   * start timestamp.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int TIME_FIELD_FIELD_NUMBER = 3; - private int timeField_; - /** - * - * - *
-   * Specifies which time field to filter profiles.
-   * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-   * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @return The enum numeric value on the wire for timeField. - */ - @java.lang.Override - public int getTimeFieldValue() { - return timeField_; - } - /** - * - * - *
-   * Specifies which time field to filter profiles.
-   * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-   * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @return The timeField. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = - com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); - return result == null - ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startTime_ != null) { - output.writeMessage(1, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (timeField_ - != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, timeField_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - if (timeField_ - != com.google.cloud.talent.v4beta1.TimeFilter.TimeField.TIME_FIELD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, timeField_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.TimeFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.TimeFilter other = - (com.google.cloud.talent.v4beta1.TimeFilter) obj; - - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (timeField_ != other.timeField_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - hash = (37 * hash) + TIME_FIELD_FIELD_NUMBER; - hash = (53 * hash) + timeField_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.TimeFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Filter on create timestamp or update timestamp of profiles.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.TimeFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.TimeFilter) - com.google.cloud.talent.v4beta1.TimeFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_TimeFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.TimeFilter.class, - com.google.cloud.talent.v4beta1.TimeFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.TimeFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - timeField_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilter build() { - com.google.cloud.talent.v4beta1.TimeFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilter buildPartial() { - com.google.cloud.talent.v4beta1.TimeFilter result = - new com.google.cloud.talent.v4beta1.TimeFilter(this); - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.timeField_ = timeField_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.TimeFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.TimeFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.TimeFilter other) { - if (other == com.google.cloud.talent.v4beta1.TimeFilter.getDefaultInstance()) return this; - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (other.timeField_ != 0) { - setTimeFieldValue(other.getTimeFieldValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.TimeFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.TimeFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp startTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder mergeStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); - } else { - startTime_ = value; - } - onChanged(); - } else { - startTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - * - * - *
-     * Start timestamp, matching profiles with the start time. If this field
-     * missing, The API matches profiles with create / update timestamp before the
-     * end timestamp.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getStartTimeFieldBuilder() { - if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); - startTime_ = null; - } - return startTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; - /** - * - * - *
-     * End timestamp, matching profiles with the end time. If this field
-     * missing, The API matches profiles with create / update timestamp after the
-     * start timestamp.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != 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.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * End timestamp, matching profiles with the end time. If this field
-     * missing, The API matches profiles with create / update timestamp after the
-     * start timestamp.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); - } else { - endTime_ = value; - } - onChanged(); - } else { - endTimeBuilder_.mergeFrom(value); - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - 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.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * End timestamp, matching profiles with the end time. If this field
-     * missing, The API matches profiles with create / update timestamp after the
-     * start timestamp.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - * - * - *
-     * End timestamp, matching profiles with the end time. If this field
-     * missing, The API matches profiles with create / update timestamp after the
-     * start timestamp.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - - private int timeField_ = 0; - /** - * - * - *
-     * Specifies which time field to filter profiles.
-     * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-     * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @return The enum numeric value on the wire for timeField. - */ - @java.lang.Override - public int getTimeFieldValue() { - return timeField_; - } - /** - * - * - *
-     * Specifies which time field to filter profiles.
-     * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-     * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @param value The enum numeric value on the wire for timeField to set. - * @return This builder for chaining. - */ - public Builder setTimeFieldValue(int value) { - - timeField_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies which time field to filter profiles.
-     * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-     * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @return The timeField. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.TimeFilter.TimeField result = - com.google.cloud.talent.v4beta1.TimeFilter.TimeField.valueOf(timeField_); - return result == null - ? com.google.cloud.talent.v4beta1.TimeFilter.TimeField.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specifies which time field to filter profiles.
-     * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-     * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @param value The timeField to set. - * @return This builder for chaining. - */ - public Builder setTimeField(com.google.cloud.talent.v4beta1.TimeFilter.TimeField value) { - if (value == null) { - throw new NullPointerException(); - } - - timeField_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies which time field to filter profiles.
-     * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-     * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @return This builder for chaining. - */ - public Builder clearTimeField() { - - timeField_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.TimeFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.TimeFilter) - private static final com.google.cloud.talent.v4beta1.TimeFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.TimeFilter(); - } - - public static com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.TimeFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java deleted file mode 100644 index a272b602..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface TimeFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.TimeFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Start timestamp, matching profiles with the start time. If this field
-   * missing, The API matches profiles with create / update timestamp before the
-   * end timestamp.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * - * - *
-   * Start timestamp, matching profiles with the start time. If this field
-   * missing, The API matches profiles with create / update timestamp before the
-   * end timestamp.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - com.google.protobuf.Timestamp getStartTime(); - /** - * - * - *
-   * Start timestamp, matching profiles with the start time. If this field
-   * missing, The API matches profiles with create / update timestamp before the
-   * end timestamp.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); - - /** - * - * - *
-   * End timestamp, matching profiles with the end time. If this field
-   * missing, The API matches profiles with create / update timestamp after the
-   * start timestamp.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * End timestamp, matching profiles with the end time. If this field
-   * missing, The API matches profiles with create / update timestamp after the
-   * start timestamp.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * End timestamp, matching profiles with the end time. If this field
-   * missing, The API matches profiles with create / update timestamp after the
-   * start timestamp.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - * - * - *
-   * Specifies which time field to filter profiles.
-   * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-   * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @return The enum numeric value on the wire for timeField. - */ - int getTimeFieldValue(); - /** - * - * - *
-   * Specifies which time field to filter profiles.
-   * Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME].
-   * 
- * - * .google.cloud.talent.v4beta1.TimeFilter.TimeField time_field = 3; - * - * @return The timeField. - */ - com.google.cloud.talent.v4beta1.TimeFilter.TimeField getTimeField(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java deleted file mode 100644 index 8ff2fbb9..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java +++ /dev/null @@ -1,1081 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Request for updating a specified application.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.UpdateApplicationRequest} - */ -public final class UpdateApplicationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateApplicationRequest) - UpdateApplicationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateApplicationRequest.newBuilder() to construct. - private UpdateApplicationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateApplicationRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateApplicationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateApplicationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.talent.v4beta1.Application.Builder subBuilder = null; - if (application_ != null) { - subBuilder = application_.toBuilder(); - } - application_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Application.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(application_); - application_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.UpdateApplicationRequest.class, - com.google.cloud.talent.v4beta1.UpdateApplicationRequest.Builder.class); - } - - public static final int APPLICATION_FIELD_NUMBER = 1; - private com.google.cloud.talent.v4beta1.Application application_; - /** - * - * - *
-   * Required. The application resource to replace the current resource in the system.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the application field is set. - */ - @java.lang.Override - public boolean hasApplication() { - return application_ != null; - } - /** - * - * - *
-   * Required. The application resource to replace the current resource in the system.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The application. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Application getApplication() { - return application_ == null - ? com.google.cloud.talent.v4beta1.Application.getDefaultInstance() - : application_; - } - /** - * - * - *
-   * Required. The application resource to replace the current resource in the system.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder() { - return getApplication(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.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.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != 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.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : 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.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (application_ != null) { - output.writeMessage(1, getApplication()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (application_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getApplication()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateApplicationRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.UpdateApplicationRequest other = - (com.google.cloud.talent.v4beta1.UpdateApplicationRequest) obj; - - if (hasApplication() != other.hasApplication()) return false; - if (hasApplication()) { - if (!getApplication().equals(other.getApplication())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasApplication()) { - hash = (37 * hash) + APPLICATION_FIELD_NUMBER; - hash = (53 * hash) + getApplication().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.talent.v4beta1.UpdateApplicationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request for updating a specified application.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.UpdateApplicationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateApplicationRequest) - com.google.cloud.talent.v4beta1.UpdateApplicationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.UpdateApplicationRequest.class, - com.google.cloud.talent.v4beta1.UpdateApplicationRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.UpdateApplicationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (applicationBuilder_ == null) { - application_ = null; - } else { - application_ = null; - applicationBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ApplicationServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateApplicationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateApplicationRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.UpdateApplicationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateApplicationRequest build() { - com.google.cloud.talent.v4beta1.UpdateApplicationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateApplicationRequest buildPartial() { - com.google.cloud.talent.v4beta1.UpdateApplicationRequest result = - new com.google.cloud.talent.v4beta1.UpdateApplicationRequest(this); - if (applicationBuilder_ == null) { - result.application_ = application_; - } else { - result.application_ = applicationBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.UpdateApplicationRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.UpdateApplicationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateApplicationRequest other) { - if (other == com.google.cloud.talent.v4beta1.UpdateApplicationRequest.getDefaultInstance()) - return this; - if (other.hasApplication()) { - mergeApplication(other.getApplication()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.UpdateApplicationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.UpdateApplicationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.talent.v4beta1.Application application_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder> - applicationBuilder_; - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the application field is set. - */ - public boolean hasApplication() { - return applicationBuilder_ != null || application_ != null; - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The application. - */ - public com.google.cloud.talent.v4beta1.Application getApplication() { - if (applicationBuilder_ == null) { - return application_ == null - ? com.google.cloud.talent.v4beta1.Application.getDefaultInstance() - : application_; - } else { - return applicationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setApplication(com.google.cloud.talent.v4beta1.Application value) { - if (applicationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - application_ = value; - onChanged(); - } else { - applicationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setApplication( - com.google.cloud.talent.v4beta1.Application.Builder builderForValue) { - if (applicationBuilder_ == null) { - application_ = builderForValue.build(); - onChanged(); - } else { - applicationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeApplication(com.google.cloud.talent.v4beta1.Application value) { - if (applicationBuilder_ == null) { - if (application_ != null) { - application_ = - com.google.cloud.talent.v4beta1.Application.newBuilder(application_) - .mergeFrom(value) - .buildPartial(); - } else { - application_ = value; - } - onChanged(); - } else { - applicationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearApplication() { - if (applicationBuilder_ == null) { - application_ = null; - onChanged(); - } else { - application_ = null; - applicationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.Application.Builder getApplicationBuilder() { - - onChanged(); - return getApplicationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder() { - if (applicationBuilder_ != null) { - return applicationBuilder_.getMessageOrBuilder(); - } else { - return application_ == null - ? com.google.cloud.talent.v4beta1.Application.getDefaultInstance() - : application_; - } - } - /** - * - * - *
-     * Required. The application resource to replace the current resource in the system.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder> - getApplicationFieldBuilder() { - if (applicationBuilder_ == null) { - applicationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Application, - com.google.cloud.talent.v4beta1.Application.Builder, - com.google.cloud.talent.v4beta1.ApplicationOrBuilder>( - getApplication(), getParentForChildren(), isClean()); - application_ = null; - } - return applicationBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : 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.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateApplicationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateApplicationRequest) - private static final com.google.cloud.talent.v4beta1.UpdateApplicationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateApplicationRequest(); - } - - public static com.google.cloud.talent.v4beta1.UpdateApplicationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateApplicationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateApplicationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateApplicationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java deleted file mode 100644 index c4c13f2d..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/application_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface UpdateApplicationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateApplicationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The application resource to replace the current resource in the system.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the application field is set. - */ - boolean hasApplication(); - /** - * - * - *
-   * Required. The application resource to replace the current resource in the system.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The application. - */ - com.google.cloud.talent.v4beta1.Application getApplication(); - /** - * - * - *
-   * Required. The application resource to replace the current resource in the system.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Application application = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder(); - - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * 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.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java deleted file mode 100644 index e26b8e62..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java +++ /dev/null @@ -1,1043 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Update profile request
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} - */ -public final class UpdateProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) - UpdateProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateProfileRequest.newBuilder() to construct. - private UpdateProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateProfileRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateProfileRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateProfileRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.talent.v4beta1.Profile.Builder subBuilder = null; - if (profile_ != null) { - subBuilder = profile_.toBuilder(); - } - profile_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Profile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(profile_); - profile_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, - com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); - } - - public static final int PROFILE_FIELD_NUMBER = 1; - private com.google.cloud.talent.v4beta1.Profile profile_; - /** - * - * - *
-   * Required. Profile to be updated.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the profile field is set. - */ - @java.lang.Override - public boolean hasProfile() { - return profile_ != null; - } - /** - * - * - *
-   * Required. Profile to be updated.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The profile. - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.Profile getProfile() { - return profile_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : profile_; - } - /** - * - * - *
-   * Required. Profile to be updated.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { - return getProfile(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * A field mask to specify the profile fields to update.
-   * A full update is performed if it is unset.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * A field mask to specify the profile fields to update.
-   * A full update is performed if it is unset.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * A field mask to specify the profile fields to update.
-   * A full update is performed if it is unset.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (profile_ != null) { - output.writeMessage(1, getProfile()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (profile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProfile()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.UpdateProfileRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.UpdateProfileRequest other = - (com.google.cloud.talent.v4beta1.UpdateProfileRequest) obj; - - if (hasProfile() != other.hasProfile()) return false; - if (hasProfile()) { - if (!getProfile().equals(other.getProfile())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasProfile()) { - hash = (37 * hash) + PROFILE_FIELD_NUMBER; - hash = (53 * hash) + getProfile().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.UpdateProfileRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Update profile request
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.UpdateProfileRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.UpdateProfileRequest) - com.google.cloud.talent.v4beta1.UpdateProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.UpdateProfileRequest.class, - com.google.cloud.talent.v4beta1.UpdateProfileRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.UpdateProfileRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (profileBuilder_ == null) { - profile_ = null; - } else { - profile_ = null; - profileBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileServiceProto - .internal_static_google_cloud_talent_v4beta1_UpdateProfileRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateProfileRequest build() { - com.google.cloud.talent.v4beta1.UpdateProfileRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateProfileRequest buildPartial() { - com.google.cloud.talent.v4beta1.UpdateProfileRequest result = - new com.google.cloud.talent.v4beta1.UpdateProfileRequest(this); - if (profileBuilder_ == null) { - result.profile_ = profile_; - } else { - result.profile_ = profileBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.UpdateProfileRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.UpdateProfileRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.UpdateProfileRequest other) { - if (other == com.google.cloud.talent.v4beta1.UpdateProfileRequest.getDefaultInstance()) - return this; - if (other.hasProfile()) { - mergeProfile(other.getProfile()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.UpdateProfileRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.UpdateProfileRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.talent.v4beta1.Profile profile_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - profileBuilder_; - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the profile field is set. - */ - public boolean hasProfile() { - return profileBuilder_ != null || profile_ != null; - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The profile. - */ - public com.google.cloud.talent.v4beta1.Profile getProfile() { - if (profileBuilder_ == null) { - return profile_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : profile_; - } else { - return profileBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setProfile(com.google.cloud.talent.v4beta1.Profile value) { - if (profileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - profile_ = value; - onChanged(); - } else { - profileBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setProfile(com.google.cloud.talent.v4beta1.Profile.Builder builderForValue) { - if (profileBuilder_ == null) { - profile_ = builderForValue.build(); - onChanged(); - } else { - profileBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeProfile(com.google.cloud.talent.v4beta1.Profile value) { - if (profileBuilder_ == null) { - if (profile_ != null) { - profile_ = - com.google.cloud.talent.v4beta1.Profile.newBuilder(profile_) - .mergeFrom(value) - .buildPartial(); - } else { - profile_ = value; - } - onChanged(); - } else { - profileBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearProfile() { - if (profileBuilder_ == null) { - profile_ = null; - onChanged(); - } else { - profile_ = null; - profileBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { - - onChanged(); - return getProfileFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { - if (profileBuilder_ != null) { - return profileBuilder_.getMessageOrBuilder(); - } else { - return profile_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : profile_; - } - } - /** - * - * - *
-     * Required. Profile to be updated.
-     * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder> - getProfileFieldBuilder() { - if (profileBuilder_ == null) { - profileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Profile, - com.google.cloud.talent.v4beta1.Profile.Builder, - com.google.cloud.talent.v4beta1.ProfileOrBuilder>( - getProfile(), getParentForChildren(), isClean()); - profile_ = null; - } - return profileBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * A field mask to specify the profile fields to update.
-     * A full update is performed if it is unset.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.UpdateProfileRequest) - private static final com.google.cloud.talent.v4beta1.UpdateProfileRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.UpdateProfileRequest(); - } - - public static com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateProfileRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.UpdateProfileRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java deleted file mode 100644 index 6da9a056..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface UpdateProfileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.UpdateProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Profile to be updated.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the profile field is set. - */ - boolean hasProfile(); - /** - * - * - *
-   * Required. Profile to be updated.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The profile. - */ - com.google.cloud.talent.v4beta1.Profile getProfile(); - /** - * - * - *
-   * Required. Profile to be updated.
-   * 
- * - * - * .google.cloud.talent.v4beta1.Profile profile = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); - - /** - * - * - *
-   * A field mask to specify the profile fields to update.
-   * A full update is performed if it is unset.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * A field mask to specify the profile fields to update.
-   * A full update is performed if it is unset.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * A field mask to specify the profile fields to update.
-   * A full update is performed if it is unset.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java deleted file mode 100644 index 7ed0a017..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java +++ /dev/null @@ -1,1014 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Work experience filter.
- * This filter is used to search for profiles with working experience length
- * between [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] and [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} - */ -public final class WorkExperienceFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) - WorkExperienceFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkExperienceFilter.newBuilder() to construct. - private WorkExperienceFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkExperienceFilter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkExperienceFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkExperienceFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (minExperience_ != null) { - subBuilder = minExperience_.toBuilder(); - } - minExperience_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minExperience_); - minExperience_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxExperience_ != null) { - subBuilder = maxExperience_.toBuilder(); - } - maxExperience_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxExperience_); - maxExperience_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, - com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); - } - - public static final int MIN_EXPERIENCE_FIELD_NUMBER = 1; - private com.google.protobuf.Duration minExperience_; - /** - * - * - *
-   * The minimum duration of the work experience (inclusive).
-   * 
- * - * .google.protobuf.Duration min_experience = 1; - * - * @return Whether the minExperience field is set. - */ - @java.lang.Override - public boolean hasMinExperience() { - return minExperience_ != null; - } - /** - * - * - *
-   * The minimum duration of the work experience (inclusive).
-   * 
- * - * .google.protobuf.Duration min_experience = 1; - * - * @return The minExperience. - */ - @java.lang.Override - public com.google.protobuf.Duration getMinExperience() { - return minExperience_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minExperience_; - } - /** - * - * - *
-   * The minimum duration of the work experience (inclusive).
-   * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { - return getMinExperience(); - } - - public static final int MAX_EXPERIENCE_FIELD_NUMBER = 2; - private com.google.protobuf.Duration maxExperience_; - /** - * - * - *
-   * The maximum duration of the work experience (exclusive).
-   * 
- * - * .google.protobuf.Duration max_experience = 2; - * - * @return Whether the maxExperience field is set. - */ - @java.lang.Override - public boolean hasMaxExperience() { - return maxExperience_ != null; - } - /** - * - * - *
-   * The maximum duration of the work experience (exclusive).
-   * 
- * - * .google.protobuf.Duration max_experience = 2; - * - * @return The maxExperience. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaxExperience() { - return maxExperience_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxExperience_; - } - /** - * - * - *
-   * The maximum duration of the work experience (exclusive).
-   * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { - return getMaxExperience(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minExperience_ != null) { - output.writeMessage(1, getMinExperience()); - } - if (maxExperience_ != null) { - output.writeMessage(2, getMaxExperience()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (minExperience_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinExperience()); - } - if (maxExperience_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxExperience()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.talent.v4beta1.WorkExperienceFilter)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.WorkExperienceFilter other = - (com.google.cloud.talent.v4beta1.WorkExperienceFilter) obj; - - if (hasMinExperience() != other.hasMinExperience()) return false; - if (hasMinExperience()) { - if (!getMinExperience().equals(other.getMinExperience())) return false; - } - if (hasMaxExperience() != other.hasMaxExperience()) return false; - if (hasMaxExperience()) { - if (!getMaxExperience().equals(other.getMaxExperience())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMinExperience()) { - hash = (37 * hash) + MIN_EXPERIENCE_FIELD_NUMBER; - hash = (53 * hash) + getMinExperience().hashCode(); - } - if (hasMaxExperience()) { - hash = (37 * hash) + MAX_EXPERIENCE_FIELD_NUMBER; - hash = (53 * hash) + getMaxExperience().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.talent.v4beta1.WorkExperienceFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Work experience filter.
-   * This filter is used to search for profiles with working experience length
-   * between [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] and [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience].
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.WorkExperienceFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.WorkExperienceFilter) - com.google.cloud.talent.v4beta1.WorkExperienceFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.WorkExperienceFilter.class, - com.google.cloud.talent.v4beta1.WorkExperienceFilter.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.WorkExperienceFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (minExperienceBuilder_ == null) { - minExperience_ = null; - } else { - minExperience_ = null; - minExperienceBuilder_ = null; - } - if (maxExperienceBuilder_ == null) { - maxExperience_ = null; - } else { - maxExperience_ = null; - maxExperienceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_WorkExperienceFilter_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.WorkExperienceFilter build() { - com.google.cloud.talent.v4beta1.WorkExperienceFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.WorkExperienceFilter buildPartial() { - com.google.cloud.talent.v4beta1.WorkExperienceFilter result = - new com.google.cloud.talent.v4beta1.WorkExperienceFilter(this); - if (minExperienceBuilder_ == null) { - result.minExperience_ = minExperience_; - } else { - result.minExperience_ = minExperienceBuilder_.build(); - } - if (maxExperienceBuilder_ == null) { - result.maxExperience_ = maxExperience_; - } else { - result.maxExperience_ = maxExperienceBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.WorkExperienceFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.WorkExperienceFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.WorkExperienceFilter other) { - if (other == com.google.cloud.talent.v4beta1.WorkExperienceFilter.getDefaultInstance()) - return this; - if (other.hasMinExperience()) { - mergeMinExperience(other.getMinExperience()); - } - if (other.hasMaxExperience()) { - mergeMaxExperience(other.getMaxExperience()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.talent.v4beta1.WorkExperienceFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.WorkExperienceFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration minExperience_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minExperienceBuilder_; - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - * - * @return Whether the minExperience field is set. - */ - public boolean hasMinExperience() { - return minExperienceBuilder_ != null || minExperience_ != null; - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - * - * @return The minExperience. - */ - public com.google.protobuf.Duration getMinExperience() { - if (minExperienceBuilder_ == null) { - return minExperience_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minExperience_; - } else { - return minExperienceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - public Builder setMinExperience(com.google.protobuf.Duration value) { - if (minExperienceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - minExperience_ = value; - onChanged(); - } else { - minExperienceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - public Builder setMinExperience(com.google.protobuf.Duration.Builder builderForValue) { - if (minExperienceBuilder_ == null) { - minExperience_ = builderForValue.build(); - onChanged(); - } else { - minExperienceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - public Builder mergeMinExperience(com.google.protobuf.Duration value) { - if (minExperienceBuilder_ == null) { - if (minExperience_ != null) { - minExperience_ = - com.google.protobuf.Duration.newBuilder(minExperience_) - .mergeFrom(value) - .buildPartial(); - } else { - minExperience_ = value; - } - onChanged(); - } else { - minExperienceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - public Builder clearMinExperience() { - if (minExperienceBuilder_ == null) { - minExperience_ = null; - onChanged(); - } else { - minExperience_ = null; - minExperienceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - public com.google.protobuf.Duration.Builder getMinExperienceBuilder() { - - onChanged(); - return getMinExperienceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - public com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder() { - if (minExperienceBuilder_ != null) { - return minExperienceBuilder_.getMessageOrBuilder(); - } else { - return minExperience_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minExperience_; - } - } - /** - * - * - *
-     * The minimum duration of the work experience (inclusive).
-     * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMinExperienceFieldBuilder() { - if (minExperienceBuilder_ == null) { - minExperienceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinExperience(), getParentForChildren(), isClean()); - minExperience_ = null; - } - return minExperienceBuilder_; - } - - private com.google.protobuf.Duration maxExperience_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxExperienceBuilder_; - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - * - * @return Whether the maxExperience field is set. - */ - public boolean hasMaxExperience() { - return maxExperienceBuilder_ != null || maxExperience_ != null; - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - * - * @return The maxExperience. - */ - public com.google.protobuf.Duration getMaxExperience() { - if (maxExperienceBuilder_ == null) { - return maxExperience_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxExperience_; - } else { - return maxExperienceBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - public Builder setMaxExperience(com.google.protobuf.Duration value) { - if (maxExperienceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxExperience_ = value; - onChanged(); - } else { - maxExperienceBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - public Builder setMaxExperience(com.google.protobuf.Duration.Builder builderForValue) { - if (maxExperienceBuilder_ == null) { - maxExperience_ = builderForValue.build(); - onChanged(); - } else { - maxExperienceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - public Builder mergeMaxExperience(com.google.protobuf.Duration value) { - if (maxExperienceBuilder_ == null) { - if (maxExperience_ != null) { - maxExperience_ = - com.google.protobuf.Duration.newBuilder(maxExperience_) - .mergeFrom(value) - .buildPartial(); - } else { - maxExperience_ = value; - } - onChanged(); - } else { - maxExperienceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - public Builder clearMaxExperience() { - if (maxExperienceBuilder_ == null) { - maxExperience_ = null; - onChanged(); - } else { - maxExperience_ = null; - maxExperienceBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - public com.google.protobuf.Duration.Builder getMaxExperienceBuilder() { - - onChanged(); - return getMaxExperienceFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - public com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder() { - if (maxExperienceBuilder_ != null) { - return maxExperienceBuilder_.getMessageOrBuilder(); - } else { - return maxExperience_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxExperience_; - } - } - /** - * - * - *
-     * The maximum duration of the work experience (exclusive).
-     * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaxExperienceFieldBuilder() { - if (maxExperienceBuilder_ == null) { - maxExperienceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxExperience(), getParentForChildren(), isClean()); - maxExperience_ = null; - } - return maxExperienceBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.WorkExperienceFilter) - private static final com.google.cloud.talent.v4beta1.WorkExperienceFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.WorkExperienceFilter(); - } - - public static com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkExperienceFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkExperienceFilter(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.WorkExperienceFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java b/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java deleted file mode 100644 index 22b0ff52..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/filters.proto - -package com.google.cloud.talent.v4beta1; - -public interface WorkExperienceFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.WorkExperienceFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The minimum duration of the work experience (inclusive).
-   * 
- * - * .google.protobuf.Duration min_experience = 1; - * - * @return Whether the minExperience field is set. - */ - boolean hasMinExperience(); - /** - * - * - *
-   * The minimum duration of the work experience (inclusive).
-   * 
- * - * .google.protobuf.Duration min_experience = 1; - * - * @return The minExperience. - */ - com.google.protobuf.Duration getMinExperience(); - /** - * - * - *
-   * The minimum duration of the work experience (inclusive).
-   * 
- * - * .google.protobuf.Duration min_experience = 1; - */ - com.google.protobuf.DurationOrBuilder getMinExperienceOrBuilder(); - - /** - * - * - *
-   * The maximum duration of the work experience (exclusive).
-   * 
- * - * .google.protobuf.Duration max_experience = 2; - * - * @return Whether the maxExperience field is set. - */ - boolean hasMaxExperience(); - /** - * - * - *
-   * The maximum duration of the work experience (exclusive).
-   * 
- * - * .google.protobuf.Duration max_experience = 2; - * - * @return The maxExperience. - */ - com.google.protobuf.Duration getMaxExperience(); - /** - * - * - *
-   * The maximum duration of the work experience (exclusive).
-   * 
- * - * .google.protobuf.Duration max_experience = 2; - */ - com.google.protobuf.DurationOrBuilder getMaxExperienceOrBuilder(); -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto deleted file mode 100644 index ccb49208..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.talent.v4beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/talent/v4beta1/common.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/date.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; -option java_multiple_files = true; -option java_outer_classname = "ApplicationResourceProto"; -option java_package = "com.google.cloud.talent.v4beta1"; -option objc_class_prefix = "CTS"; - -// Resource that represents a job application record of a candidate. -message Application { - option (google.api.resource) = { - type: "jobs.googleapis.com/Application" - pattern: "projects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application}" - }; - - // Enum that represents the application status. - enum ApplicationState { - // Default value. - APPLICATION_STATE_UNSPECIFIED = 0; - - // The current stage is in progress or pending, for example, interviews in - // progress. - IN_PROGRESS = 1; - - // The current stage was terminated by a candidate decision. - CANDIDATE_WITHDREW = 2; - - // The current stage was terminated by an employer or agency decision. - EMPLOYER_WITHDREW = 3; - - // The current stage is successfully completed, but the next stage (if - // applicable) has not begun. - COMPLETED = 4; - - // The current stage was closed without an exception, or terminated for - // reasons unrealated to the candidate. - CLOSED = 5; - } - - // The stage of the application. - enum ApplicationStage { - // Default value. - 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. - NEW = 1; - - // A recruiter decided to screen the candidate for this role. - SCREEN = 2; - - // Candidate is being / was sent to the customer / hiring manager for - // detailed review. - HIRING_MANAGER_REVIEW = 3; - - // Candidate was approved by the client / hiring manager and is being / was - // interviewed for the role. - INTERVIEW = 4; - - // Candidate will be / has been given an offer of employment. - OFFER_EXTENDED = 5; - - // Candidate has accepted their offer of employment. - OFFER_ACCEPTED = 6; - - // Candidate has begun (or completed) their employment or assignment with - // the employer. - STARTED = 7; - } - - // 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". - string name = 1; - - // Required. Client side application identifier, used to uniquely identify the - // application. - // - // The maximum number of allowed characters is 255. - string external_id = 31 [(google.api.field_behavior) = REQUIRED]; - - // 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". - string profile = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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". - string job = 4 [ - (google.api.resource_reference).type = "jobs.googleapis.com/Job", - (google.api.field_behavior) = REQUIRED - ]; - - // 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". - string company = 5 [ - (google.api.resource_reference) = { type: "jobs.googleapis.com/Company" } - ]; - - // The application date. - google.type.Date application_date = 7; - - // 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. - ApplicationStage stage = 11 [(google.api.field_behavior) = REQUIRED]; - - // The application state. - ApplicationState state = 13; - - // 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). - repeated Interview interviews = 16; - - // If the candidate is referred by a employee. - google.protobuf.BoolValue referral = 18; - - // Required. Reflects the time that the application was created. - google.protobuf.Timestamp create_time = 19 - [(google.api.field_behavior) = REQUIRED]; - - // The last update timestamp. - google.protobuf.Timestamp update_time = 20; - - // 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. - string outcome_notes = 21; - - // Outcome positiveness shows how positive the outcome is. - Outcome outcome = 22; - - // Output only. Indicates whether this job application is a match to - // application related filters. This value is only applicable in profile - // search response. - google.protobuf.BoolValue is_match = 28 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - string job_title_snippet = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto deleted file mode 100644 index c9f990da..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.talent.v4beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/talent/v4beta1/application.proto"; -import "google/cloud/talent/v4beta1/common.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; -option java_multiple_files = true; -option java_outer_classname = "ApplicationServiceProto"; -option java_package = "com.google.cloud.talent.v4beta1"; -option objc_class_prefix = "CTS"; - -// A service that handles application management, including CRUD and -// enumeration. -service ApplicationService { - option (google.api.default_host) = "jobs.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform," - "https://www.googleapis.com/auth/jobs"; - - // Creates a new application entity. - rpc CreateApplication(CreateApplicationRequest) returns (Application) { - option (google.api.http) = { - post: "/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications" - body: "*" - }; - option (google.api.method_signature) = "parent,application"; - } - - // Retrieves specified application. - rpc GetApplication(GetApplicationRequest) returns (Application) { - option (google.api.http) = { - get: "/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates specified application. - rpc UpdateApplication(UpdateApplicationRequest) returns (Application) { - option (google.api.http) = { - patch: "/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}" - body: "*" - }; - option (google.api.method_signature) = "application"; - } - - // Deletes specified application. - rpc DeleteApplication(DeleteApplicationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists all applications associated with the profile. - rpc ListApplications(ListApplicationsRequest) returns (ListApplicationsResponse) { - option (google.api.http) = { - get: "/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications" - }; - option (google.api.method_signature) = "parent"; - } -} - -// The Request of the CreateApplication method. -message CreateApplicationRequest { - // 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". - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Profile" - } - ]; - - // Required. The application to be created. - Application application = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for getting a application by name. -message GetApplicationRequest { - // 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". - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Application" - } - ]; -} - -// Request for updating a specified application. -message UpdateApplicationRequest { - // Required. The application resource to replace the current resource in the system. - Application application = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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. - google.protobuf.FieldMask update_mask = 2; -} - -// Request to delete a application. -message DeleteApplicationRequest { - // 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". - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Application" - } - ]; -} - -// List applications for which the client has ACL visibility. -message ListApplicationsRequest { - // 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". - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Profile" - } - ]; - - // The starting indicator from which to return results. - string page_token = 2; - - // The maximum number of applications to be returned, at most 100. - // Default is 100 if a non-positive number is provided. - int32 page_size = 3; -} - -// The List applications response object. -message ListApplicationsResponse { - // Applications for the current client. - repeated Application applications = 1; - - // A token to retrieve the next page of results. - string next_page_token = 2; - - // Additional information for the API invocation, such as the request - // tracking id. - ResponseMetadata metadata = 3; -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto index 074e8705..64a40e9c 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/batch.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; -import "google/api/annotations.proto"; - option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; option java_outer_classname = "BatchProto"; diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto index 13f77421..6125bcc8 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,12 +19,9 @@ package google.cloud.talent.v4beta1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; -import "google/type/date.proto"; import "google/type/latlng.proto"; import "google/type/money.proto"; import "google/type/postal_address.proto"; -import "google/type/timeofday.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -41,72 +38,6 @@ message TimestampRange { google.protobuf.Timestamp end_time = 2; } -// A resource that represents a location with full geographic information. -message Location { - // An enum which represents the type of a location. - enum LocationType { - // Default value if the type isn't specified. - LOCATION_TYPE_UNSPECIFIED = 0; - - // A country level location. - COUNTRY = 1; - - // A state or equivalent level location. - ADMINISTRATIVE_AREA = 2; - - // A county or equivalent level location. - SUB_ADMINISTRATIVE_AREA = 3; - - // A city or equivalent level location. - LOCALITY = 4; - - // A postal code level location. - POSTAL_CODE = 5; - - // A sublocality is a subdivision of a locality, for example a city borough, - // ward, or arrondissement. Sublocalities are usually recognized by a local - // political authority. For example, Manhattan and Brooklyn are recognized - // as boroughs by the City of New York, and are therefore modeled as - // sublocalities. - SUB_LOCALITY = 6; - - // A district or equivalent level location. - SUB_LOCALITY_1 = 7; - - // A smaller district or equivalent level display. - SUB_LOCALITY_2 = 8; - - // A neighborhood level location. - NEIGHBORHOOD = 9; - - // A street address level location. - STREET_ADDRESS = 10; - } - - // The type of a location, which corresponds to the address lines field of - // [google.type.PostalAddress][google.type.PostalAddress]. For example, "Downtown, Atlanta, GA, USA" - // has a type of [LocationType.NEIGHBORHOOD][google.cloud.talent.v4beta1.Location.LocationType.NEIGHBORHOOD], and "Kansas City, KS, USA" - // has a type of [LocationType.LOCALITY][google.cloud.talent.v4beta1.Location.LocationType.LOCALITY]. - LocationType location_type = 1; - - // Postal address of the location that includes human readable information, - // such as postal delivery and payments addresses. Given a postal address, - // a postal service can deliver items to a premises, P.O. Box, or other - // delivery location. - google.type.PostalAddress postal_address = 2; - - // An object representing a latitude/longitude pair. - google.type.LatLng lat_lng = 3; - - // Radius in miles of the job location. This value is derived from the - // location bounding box in which a circle with the specified radius - // centered from [google.type.LatLng][google.type.LatLng] covers the area associated with the - // job location. - // For example, currently, "Mountain View, CA, USA" has a radius of - // 6.17 miles. - double radius_miles = 4; -} - // An enum that represents the size of the company. enum CompanySize { // Default value if the size isn't specified. @@ -457,21 +388,6 @@ enum Visibility { SHARED_WITH_PUBLIC = 3; } -// Enum that represents the usage of the contact information. -enum ContactInfoUsage { - // Default value. - CONTACT_INFO_USAGE_UNSPECIFIED = 0; - - // Personal use. - PERSONAL = 1; - - // Work use. - WORK = 2; - - // School use. - SCHOOL = 3; -} - // Option for HTML content sanitization on user input fields, for example, job // description. By setting this option, user can determine whether and how // sanitization is performed on these fields. @@ -506,6 +422,72 @@ enum CommuteMethod { CYCLING = 4; } +// A resource that represents a location with full geographic information. +message Location { + // An enum which represents the type of a location. + enum LocationType { + // Default value if the type isn't specified. + LOCATION_TYPE_UNSPECIFIED = 0; + + // A country level location. + COUNTRY = 1; + + // A state or equivalent level location. + ADMINISTRATIVE_AREA = 2; + + // A county or equivalent level location. + SUB_ADMINISTRATIVE_AREA = 3; + + // A city or equivalent level location. + LOCALITY = 4; + + // A postal code level location. + POSTAL_CODE = 5; + + // A sublocality is a subdivision of a locality, for example a city borough, + // ward, or arrondissement. Sublocalities are usually recognized by a local + // political authority. For example, Manhattan and Brooklyn are recognized + // as boroughs by the City of New York, and are therefore modeled as + // sublocalities. + SUB_LOCALITY = 6; + + // A district or equivalent level location. + SUB_LOCALITY_1 = 7; + + // A smaller district or equivalent level display. + SUB_LOCALITY_2 = 8; + + // A neighborhood level location. + NEIGHBORHOOD = 9; + + // A street address level location. + STREET_ADDRESS = 10; + } + + // The type of a location, which corresponds to the address lines field of + // [google.type.PostalAddress][google.type.PostalAddress]. For example, "Downtown, Atlanta, GA, USA" + // has a type of [LocationType.NEIGHBORHOOD][google.cloud.talent.v4beta1.Location.LocationType.NEIGHBORHOOD], and "Kansas City, KS, USA" + // has a type of [LocationType.LOCALITY][google.cloud.talent.v4beta1.Location.LocationType.LOCALITY]. + LocationType location_type = 1; + + // Postal address of the location that includes human readable information, + // such as postal delivery and payments addresses. Given a postal address, + // a postal service can deliver items to a premises, P.O. Box, or other + // delivery location. + google.type.PostalAddress postal_address = 2; + + // An object representing a latitude/longitude pair. + google.type.LatLng lat_lng = 3; + + // Radius in miles of the job location. This value is derived from the + // location bounding box in which a circle with the specified radius + // centered from [google.type.LatLng][google.type.LatLng] covers the area associated with the + // job location. + // For example, currently, "Mountain View, CA, USA" has a radius of + // 6.17 miles. + double radius_miles = 4; +} + // Meta information related to the job searcher or entity // conducting the job search. This information is used to improve the // performance of the service. @@ -634,11 +616,19 @@ message CustomAttribute { // Currently at most 1 [long_values][google.cloud.talent.v4beta1.CustomAttribute.long_values] is supported. repeated int64 long_values = 2; - // 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. bool filterable = 3; + + // 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. + bool keyword_searchable = 4; } // Spell check result. @@ -705,20 +695,6 @@ message CompensationInfo { google.protobuf.DoubleValue expected_units_per_year = 6; } - // Compensation range. - message CompensationRange { - // The maximum amount of compensation. If left empty, the value is set - // to a maximal compensation value and the currency code is set to - // match the [currency code][google.type.Money.currency_code] of - // min_compensation. - google.type.Money max_compensation = 2; - - // The minimum amount of compensation. If left empty, the value is set - // to zero and the currency code is set to match the - // [currency code][google.type.Money.currency_code] of max_compensation. - google.type.Money min_compensation = 1; - } - // The type of compensation. // // For compensation amounts specified in non-monetary amounts, @@ -794,6 +770,20 @@ message CompensationInfo { OTHER_COMPENSATION_UNIT = 7; } + // Compensation range. + message CompensationRange { + // The maximum amount of compensation. If left empty, the value is set + // to a maximal compensation value and the currency code is set to + // match the [currency code][google.type.Money.currency_code] of + // min_compensation. + google.type.Money max_compensation = 2; + + // The minimum amount of compensation. If left empty, the value is set + // to zero and the currency code is set to match the + // [currency code][google.type.Money.currency_code] of max_compensation. + google.type.Money min_compensation = 1; + } + // Job compensation information. // // At most one entry can be of type @@ -816,83 +806,6 @@ message CompensationInfo { CompensationRange annualized_total_compensation_range = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Resource that represents a license or certification. -message Certification { - // Name of license or certification. - // - // Number of characters allowed is 100. - string display_name = 1; - - // Acquisition date or effective date of license or certification. - google.type.Date acquire_date = 2; - - // Expiration date of license of certification. - google.type.Date expire_date = 3; - - // Authority of license, such as government. - // - // Number of characters allowed is 100. - string authority = 4; - - // Description of license or certification. - // - // Number of characters allowed is 100,000. - string description = 5; -} - -// Resource that represents a skill of a candidate. -message Skill { - // Skill display name. - // - // For example, "Java", "Python". - // - // Number of characters allowed is 100. - string display_name = 1; - - // The last time this skill was used. - google.type.Date last_used_date = 2; - - // Skill proficiency level which indicates how proficient the candidate is at - // this skill. - SkillProficiencyLevel level = 3; - - // A paragraph describes context of this skill. - // - // Number of characters allowed is 100,000. - string context = 4; - - // 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. - string skill_name_snippet = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Details of an interview. -message Interview { - // The rating on this interview. - Rating rating = 6; - - // Required. The overall decision resulting from this interview (positive, negative, - // nuetral). - Outcome outcome = 7 [(google.api.field_behavior) = REQUIRED]; -} - -// The details of the score received for an assessment or interview. -message Rating { - // Overall score. - double overall = 1; - - // The minimum value for the score. - double min = 2; - - // The maximum value for the score. - double max = 3; - - // 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) - double interval = 4; -} - // Metadata used for long running operations returned by CTS batch APIs. // It's used to replace [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata]. message BatchOperationMetadata { @@ -950,124 +863,3 @@ message BatchOperationMetadata { // [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to `true`. google.protobuf.Timestamp end_time = 8; } - -// Enum that represents the skill proficiency level. -enum SkillProficiencyLevel { - // Default value. - SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - - // Lacks any proficiency in this skill. - UNSKILLED = 6; - - // Have a common knowledge or an understanding of basic techniques and - // concepts. - FUNDAMENTAL_AWARENESS = 1; - - // Have the level of experience gained in a classroom and/or experimental - // scenarios or as a trainee on-the-job. - 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. - INTERMEDIATE = 3; - - // Can perform the actions associated with this skill without assistance. - ADVANCED = 4; - - // Known as an expert in this area. - EXPERT = 5; -} - -// The overall outcome /decision / result indicator. -enum Outcome { - // Default value. - 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). - POSITIVE = 1; - - // A neutral outcome / no clear indicator (for example, no strong - // reccommendation either to move forward / not move forward, neutral score). - NEUTRAL = 2; - - // A negative outcome / failing indicator (for example, candidate was - // recommended to NOT move forward in the hiring process, failed a test). - NEGATIVE = 3; - - // The assessment outcome is not available or otherwise unknown (for example, - // candidate did not complete assessment). - OUTCOME_NOT_AVAILABLE = 4; -} - -// The type of candidate availability signal. -enum AvailabilitySignalType { - // Default value. - 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. - 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. - 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. - 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. - CLIENT_SUBMISSION = 4; -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto index c6894572..e04f0133 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ package google.cloud.talent.v4beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4beta1/common.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto index ac6a7d74..9fd72023 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto index 2e45ac7d..88d2977e 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,10 +17,10 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; import "google/api/annotations.proto"; +import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4beta1/common.proto"; -import "google/api/client.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto index c5a71553..24f769ec 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ package google.cloud.talent.v4beta1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -51,10 +50,6 @@ message ClientEvent { // An event issued when a job seeker interacts with the application that // implements Cloud Talent Solution. JobEvent job_event = 5; - - // An event issued when a profile searcher interacts with the application - // that implements Cloud Talent Solution. - ProfileEvent profile_event = 6; } // Notes about the event provided by recruiters or other users, for example, @@ -180,55 +175,3 @@ message JobEvent { // for example, "projects/foo/tenants/bar/profiles/baz". string profile = 3; } - -// An event issued when a profile searcher interacts with the application -// that implements Cloud Talent Solution. -message ProfileEvent { - // The enum represents types of client events for a candidate profile. - enum ProfileEventType { - // Default value. - 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]). - 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. - VIEW = 2; - - // The profile is bookmarked. - BOOKMARK = 3; - } - - // Required. Type of event. - ProfileEventType type = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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". - repeated string profiles = 2 [(google.api.field_behavior) = REQUIRED]; - - // 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". - repeated string jobs = 6; -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto index 4577352e..6dfdfed6 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto index a8cebd7e..03050604 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,13 +19,8 @@ package google.cloud.talent.v4beta1; import "google/api/field_behavior.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/protobuf/duration.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/date.proto"; import "google/type/latlng.proto"; import "google/type/timeofday.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -102,8 +97,24 @@ message JobQuery { // Currently we don't support sorting by commute time. CommuteFilter commute_filter = 5; - // 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. @@ -138,7 +149,7 @@ message JobQuery { // 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 @@ -186,241 +197,6 @@ message JobQuery { repeated string excluded_jobs = 13; } -// Filters to apply when performing the search query. -message ProfileQuery { - // Keywords to match any text fields of profiles. - // - // For example, "software engineer in Palo Alto". - string query = 1; - - // 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. - repeated LocationFilter location_filters = 2; - - // 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". - repeated JobTitleFilter job_title_filters = 3; - - // 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". - repeated EmployerFilter employer_filters = 4; - - // 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. - repeated EducationFilter education_filters = 5; - - // 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. - repeated SkillFilter skill_filters = 6; - - // 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. - repeated WorkExperienceFilter work_experience_filter = 7; - - // Time filter specifies the create/update timestamp of the profiles to match - // on. - // - // For example, search for profiles created since "2018-1-1". - repeated TimeFilter time_filters = 8; - - // The hirable filter specifies the profile's hirable status to match on. - google.protobuf.BoolValue hirable_filter = 9; - - // The application date filters specify application date ranges to match on. - repeated ApplicationDateFilter application_date_filters = 10; - - // The application outcome notes filters specify the notes for the outcome of - // the job application. - repeated ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; - - // The application job filters specify the job applied for in the application. - repeated ApplicationJobFilter application_job_filters = 13; - - // 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)) - string custom_attribute_filter = 15; - - // 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. - CandidateAvailabilityFilter candidate_availability_filter = 16 [deprecated = true]; - - // 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. - repeated AvailabilityFilter availability_filters = 18; - - // 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". - repeated PersonNameFilter person_name_filters = 17; -} - // Geographic region of the search. message LocationFilter { // Specify whether to include telecommute jobs. @@ -428,28 +204,35 @@ message LocationFilter { // Default value if the telecommute preference isn't specified. TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0; - // Exclude telecommute jobs. - TELECOMMUTE_EXCLUDED = 1; + // Deprecated: Ignore telecommute status of jobs. Use + // TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute jobs. + TELECOMMUTE_EXCLUDED = 1 [deprecated = true]; // Allow telecommute jobs. TELECOMMUTE_ALLOWED = 2; + + // Exclude telecommute jobs. + TELECOMMUTE_JOBS_EXCLUDED = 3; } // The address name, such as "Mountain View" or "Bay Area". string address = 1; - // 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". + // CLDR region code of the country/region. This field may be used in two ways: // - // 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. + // 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. string region_code = 2; // The latitude and longitude of the geographic center to search from. This @@ -463,13 +246,15 @@ message LocationFilter { // 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 @@ -483,8 +268,6 @@ message LocationFilter { // Whether to apply negation to the filter so profiles matching the filter // are excluded. - // - // Currently only supported in profile search. bool negated = 6; } @@ -585,196 +368,3 @@ message CommuteFilter { google.type.TimeOfDay departure_time = 6; } } - -// Job title of the search. -message JobTitleFilter { - // Required. The job title. For example, "Software engineer", or "Product manager". - string job_title = 1 [(google.api.field_behavior) = REQUIRED]; - - // Whether to apply negation to the filter so profiles matching the filter - // are excluded. - bool negated = 2; -} - -// Skill filter of the search. -message SkillFilter { - // Required. The skill name. For example, "java", "j2ee", and so on. - string skill = 1 [(google.api.field_behavior) = REQUIRED]; - - // Whether to apply negation to the filter so profiles matching the filter - // are excluded. - bool negated = 2; -} - -// Employer filter of the search. -message EmployerFilter { - // Enum indicating which set of [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records] to search - // against. - enum EmployerFilterMode { - // Default value. - EMPLOYER_FILTER_MODE_UNSPECIFIED = 0; - - // Apply to all employers in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - ALL_EMPLOYMENT_RECORDS = 1; - - // Apply only to current employer in [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - CURRENT_EMPLOYMENT_RECORDS_ONLY = 2; - - // Apply only to past (not current) employers in - // [Profile.employment_records][google.cloud.talent.v4beta1.Profile.employment_records]. - PAST_EMPLOYMENT_RECORDS_ONLY = 3; - } - - // Required. The name of the employer, for example "Google", "Alphabet". - string employer = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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]. - EmployerFilterMode mode = 2; - - // Whether to apply negation to the filter so profiles matching the filter - // is excluded. - bool negated = 3; -} - -// Education filter of the search. -message EducationFilter { - // The school name. For example "MIT", "University of California, Berkeley". - string school = 1; - - // 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". - string field_of_study = 2; - - // 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. - DegreeType degree_type = 3; - - // Whether to apply negation to the filter so profiles matching the filter - // is excluded. - bool negated = 6; -} - -// Work experience filter. -// -// This filter is used to search for profiles with working experience length -// between [min_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.min_experience] and [max_experience][google.cloud.talent.v4beta1.WorkExperienceFilter.max_experience]. -message WorkExperienceFilter { - // The minimum duration of the work experience (inclusive). - google.protobuf.Duration min_experience = 1; - - // The maximum duration of the work experience (exclusive). - google.protobuf.Duration max_experience = 2; -} - -// Application Date Range Filter. -// -// The API matches profiles with [Application.application_date][google.cloud.talent.v4beta1.Application.application_date] between -// start date and end date (both boundaries are inclusive). The filter is -// ignored if both [start_date][google.cloud.talent.v4beta1.ApplicationDateFilter.start_date] and [end_date][google.cloud.talent.v4beta1.ApplicationDateFilter.end_date] are missing. -message ApplicationDateFilter { - // Start date. If it's missing, The API matches profiles with application date - // not after the end date. - google.type.Date start_date = 1; - - // End date. If it's missing, The API matches profiles with application date - // not before the start date. - google.type.Date end_date = 2; -} - -// Outcome Notes Filter. -message ApplicationOutcomeNotesFilter { - // 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. - string outcome_notes = 1 [(google.api.field_behavior) = REQUIRED]; - - // 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. - bool negated = 2; -} - -// Filter on the job information of Application. -message ApplicationJobFilter { - // 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. - string job_requisition_id = 2; - - // 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. - string job_title = 3; - - // If true, the API excludes all profiles with any [Application.job][google.cloud.talent.v4beta1.Application.job] - // matching the filters. - bool negated = 4; -} - -// Filter on create timestamp or update timestamp of profiles. -message TimeFilter { - // Time fields can be used in TimeFilter. - enum TimeField { - // Default value. - TIME_FIELD_UNSPECIFIED = 0; - - // Earliest profile create time. - CREATE_TIME = 1; - - // Latest profile update time. - UPDATE_TIME = 2; - } - - // Start timestamp, matching profiles with the start time. If this field - // missing, The API matches profiles with create / update timestamp before the - // end timestamp. - google.protobuf.Timestamp start_time = 1; - - // End timestamp, matching profiles with the end time. If this field - // missing, The API matches profiles with create / update timestamp after the - // start timestamp. - google.protobuf.Timestamp end_time = 2; - - // Specifies which time field to filter profiles. - // - // Defaults to [TimeField.CREATE_TIME][google.cloud.talent.v4beta1.TimeFilter.TimeField.CREATE_TIME]. - TimeField time_field = 3; -} - -// Deprecated. Use AvailabilityFilter instead. -// -// Filter on availability signals. -message CandidateAvailabilityFilter { - option deprecated = true; - - // It is false by default. If true, API excludes all the potential available - // profiles. - bool negated = 1; -} - -// Filter on availability signals. -message AvailabilityFilter { - // Required. Type of signal to apply filter on. - AvailabilitySignalType signal_type = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Range of times to filter candidate signals by. - TimestampRange range = 2 [(google.api.field_behavior) = 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]. - bool required = 3; -} - -// Filter on person name. -message PersonNameFilter { - // 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]. - string person_name = 1 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto index 10938690..abe3901a 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/histogram.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,8 +16,6 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; -import "google/api/annotations.proto"; - option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; option java_outer_classname = "HistogramProto"; diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto index b1b24c64..d3911e89 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/protobuf/timestamp.proto"; -import "google/type/postal_address.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto index 5d26db90..c8e420d6 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ import "google/cloud/talent/v4beta1/filters.proto"; import "google/cloud/talent/v4beta1/histogram.proto"; import "google/cloud/talent/v4beta1/job.proto"; import "google/longrunning/operations.proto"; -import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -294,6 +293,32 @@ message BatchDeleteJobsRequest { string filter = 2 [(google.api.field_behavior) = REQUIRED]; } +// An enum that specifies the job attributes that are returned in the +// [MatchingJob.job][google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.job] or +// [ListJobsResponse.jobs][google.cloud.talent.v4beta1.ListJobsResponse.jobs] fields. +enum JobView { + // Default value. + JOB_VIEW_UNSPECIFIED = 0; + + // A ID only view of job, with following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_ID_ONLY = 1; + + // A minimal view of the job, with the following attributes: + // [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.company][google.cloud.talent.v4beta1.Job.company], [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. + JOB_VIEW_MINIMAL = 2; + + // A small view of the job, with the following attributes in the search + // results: [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], + // [Job.company][google.cloud.talent.v4beta1.Job.company], [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], [Job.visibility][google.cloud.talent.v4beta1.Job.visibility], + // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], [Job.description][google.cloud.talent.v4beta1.Job.description]. + JOB_VIEW_SMALL = 3; + + // All available attributes are included in the search results. + JOB_VIEW_FULL = 4; +} + // List jobs request. message ListJobsRequest { // Required. The resource name of the tenant under which the job is created. @@ -314,11 +339,14 @@ message ListJobsRequest { // // 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" @@ -326,6 +354,8 @@ message ListJobsRequest { // requisitionId = "req-1" // * companyName = "projects/foo/tenants/bar/companies/baz" AND // status = "EXPIRED" + // * requisitionId = "req-1" + // * requisitionId = "req-1" AND status = "EXPIRED" string filter = 2 [(google.api.field_behavior) = REQUIRED]; // The starting point of a query result. @@ -345,32 +375,6 @@ message ListJobsRequest { JobView job_view = 5; } -// An enum that specifies the job attributes that are returned in the -// [MatchingJob.job][google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob.job] or -// [ListJobsResponse.jobs][google.cloud.talent.v4beta1.ListJobsResponse.jobs] fields. -enum JobView { - // Default value. - JOB_VIEW_UNSPECIFIED = 0; - - // A ID only view of job, with following attributes: - // [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. - JOB_VIEW_ID_ONLY = 1; - - // A minimal view of the job, with the following attributes: - // [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], - // [Job.company][google.cloud.talent.v4beta1.Job.company], [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], [Job.language_code][google.cloud.talent.v4beta1.Job.language_code]. - JOB_VIEW_MINIMAL = 2; - - // A small view of the job, with the following attributes in the search - // results: [Job.name][google.cloud.talent.v4beta1.Job.name], [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], [Job.title][google.cloud.talent.v4beta1.Job.title], - // [Job.company][google.cloud.talent.v4beta1.Job.company], [Job.DerivedInfo.locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations], [Job.visibility][google.cloud.talent.v4beta1.Job.visibility], - // [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], [Job.description][google.cloud.talent.v4beta1.Job.description]. - JOB_VIEW_SMALL = 3; - - // All available attributes are included in the search results. - JOB_VIEW_FULL = 4; -} - // List jobs response. message ListJobsResponse { // The Jobs for a given company. @@ -389,6 +393,83 @@ message ListJobsResponse { // The Request body of the `SearchJobs` call. message SearchJobsRequest { + // A string-represented enumeration of the job search mode. The service + // operate differently for different modes of service. + enum SearchMode { + // The mode of the search method isn't specified. The default search + // behavior is identical to JOB_SEARCH search behavior. + SEARCH_MODE_UNSPECIFIED = 0; + + // The job search matches against all jobs, and featured jobs + // (jobs with promotionValue > 0) are not specially handled. + JOB_SEARCH = 1; + + // The job search matches only against featured jobs (jobs with a + // promotionValue > 0). This method doesn't return any jobs having a + // promotionValue <= 0. The search results order is determined by the + // promotionValue (jobs with a higher promotionValue are returned higher up + // in the search results), with relevance being used as a tiebreaker. + FEATURED_JOB_SEARCH = 2; + } + + // Controls whether highly similar jobs are returned next to each other in + // the search results. Jobs are identified as highly similar based on + // their titles, job categories, and locations. Highly similar results are + // clustered so that only one representative job of the cluster is + // displayed to the job seeker higher up in the results, with the other jobs + // being displayed lower down in the results. + enum DiversificationLevel { + // The diversification level isn't specified. + DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; + + // Disables diversification. Jobs that would normally be pushed to the last + // page would not have their positions altered. This may result in highly + // similar jobs appearing in sequence in the search results. + DISABLED = 1; + + // Default diversifying behavior. The result list is ordered so that + // highly similar results are pushed to the end of the last page of search + // results. If you are using pageToken to page through the result set, + // latency might be lower but we can't guarantee that all results are + // returned. If you are using page offset, latency might be higher but all + // results are returned. + SIMPLE = 2; + } + + // Controls what keyword matching behavior the search has. When keyword + // matching is enabled, a keyword match returns jobs that may not match given + // category filters when there are matching keywords. For example, for the + // query "program manager" with KeywordMatchMode set to KEYWORD_MATCH_ALL, a + // job posting with the title "software developer," which doesn't fall into + // "program manager" ontology, and "program manager" appearing in its + // description will be surfaced. + // + // For queries like "cloud" that don't contain title or + // location specific ontology, jobs with "cloud" keyword matches are returned + // regardless of this enum's value. + // + // Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes] if + // company-specific globally matched custom field/attribute string values are + // needed. Enabling keyword match improves recall of subsequent search + // requests. + enum KeywordMatchMode { + // The keyword match option isn't specified. Defaults to + // [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] behavior. + KEYWORD_MATCH_MODE_UNSPECIFIED = 0; + + // Disables keyword matching. + 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. + KEYWORD_MATCH_ALL = 2; + + // Only enable keyword matching over [Job.title][google.cloud.talent.v4beta1.Job.title]. + KEYWORD_MATCH_TITLE_ONLY = 3; + } + // Custom ranking information for [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. message CustomRankingInfo { // The importance level for [CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression]. @@ -446,7 +527,7 @@ message SearchJobsRequest { // 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 @@ -458,49 +539,6 @@ message SearchJobsRequest { string ranking_expression = 2 [(google.api.field_behavior) = REQUIRED]; } - // A string-represented enumeration of the job search mode. The service - // operate differently for different modes of service. - enum SearchMode { - // The mode of the search method isn't specified. The default search - // behavior is identical to JOB_SEARCH search behavior. - SEARCH_MODE_UNSPECIFIED = 0; - - // The job search matches against all jobs, and featured jobs - // (jobs with promotionValue > 0) are not specially handled. - JOB_SEARCH = 1; - - // The job search matches only against featured jobs (jobs with a - // promotionValue > 0). This method doesn't return any jobs having a - // promotionValue <= 0. The search results order is determined by the - // promotionValue (jobs with a higher promotionValue are returned higher up - // in the search results), with relevance being used as a tiebreaker. - FEATURED_JOB_SEARCH = 2; - } - - // Controls whether highly similar jobs are returned next to each other in - // the search results. Jobs are identified as highly similar based on - // their titles, job categories, and locations. Highly similar results are - // clustered so that only one representative job of the cluster is - // displayed to the job seeker higher up in the results, with the other jobs - // being displayed lower down in the results. - enum DiversificationLevel { - // The diversification level isn't specified. - DIVERSIFICATION_LEVEL_UNSPECIFIED = 0; - - // Disables diversification. Jobs that would normally be pushed to the last - // page would not have their positions altered. This may result in highly - // similar jobs appearing in sequence in the search results. - DISABLED = 1; - - // Default diversifying behavior. The result list is ordered so that - // highly similar results are pushed to the end of the last page of search - // results. If you are using pageToken to page through the result set, - // latency might be lower but we can't guarantee that all results are - // returned. If you are using page offset, latency might be higher but all - // results are returned. - SIMPLE = 2; - } - // Required. The resource name of the tenant to search within. // // The format is "projects/{project_id}/tenants/{tenant_id}". For example, @@ -533,16 +571,8 @@ message SearchJobsRequest { // Defaults to false. bool enable_broadening = 5; - // 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. - bool require_precise_result_size = 6; + // This field is deprecated. + bool require_precise_result_size = 6 [deprecated = true]; // An expression specifies a histogram request against matching jobs. // @@ -555,6 +585,8 @@ message SearchJobsRequest { // * `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_]+`. @@ -581,6 +613,9 @@ message SearchJobsRequest { // "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. @@ -634,7 +669,7 @@ message SearchJobsRequest { // 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")])` repeated HistogramQuery histogram_queries = 7; // The desired job attributes returned for jobs in the search response. @@ -730,6 +765,14 @@ message SearchJobsRequest { // score (determined by API algorithm). CustomRankingInfo custom_ranking_info = 14; + // 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 @@ -750,6 +793,12 @@ message SearchJobsRequest { // // Defaults to false. bool disable_keyword_match = 16; + + // 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. + KeywordMatchMode keyword_match_mode = 18; } // Response for SearchJob method. @@ -810,12 +859,10 @@ message SearchJobsResponse { // 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]. int32 estimated_total_size = 5; - // 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. int32 total_size = 6; // Additional information for the API invocation, such as the request diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto deleted file mode 100644 index e087a8cd..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto +++ /dev/null @@ -1,783 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.talent.v4beta1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/talent/v4beta1/common.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/date.proto"; -import "google/type/postal_address.proto"; -import "google/api/annotations.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; -option java_multiple_files = true; -option java_outer_classname = "ProfileResourceProto"; -option java_package = "com.google.cloud.talent.v4beta1"; -option objc_class_prefix = "CTS"; - -// Cloud Profile Discovery API definition - -// A resource that represents the profile for a job candidate (also referred to -// as a "single-source profile"). -message Profile { - option (google.api.resource) = { - type: "jobs.googleapis.com/Profile" - pattern: "projects/{project}/tenants/{tenant}/profiles/{profile}" - }; - - // 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". - string name = 1; - - // 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. - string external_id = 2; - - // 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. - string source = 3; - - // The URI set by clients that links to this profile's client-side copy. - // - // The maximum number of bytes allowed is 4000. - string uri = 4; - - // 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. - string group_id = 5; - - // Indicates the hirable status of the candidate. - google.protobuf.BoolValue is_hirable = 6; - - // The timestamp when the profile was first created at this source. - google.protobuf.Timestamp create_time = 7; - - // The timestamp when the profile was last updated at this source. - google.protobuf.Timestamp update_time = 8; - - // 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. - google.protobuf.Timestamp candidate_update_time = 67; - - // 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. - google.protobuf.Timestamp resume_update_time = 68; - - // The resume representing this profile. - Resume resume = 53; - - // The names of the candidate this profile references. - // - // Currently only one person name is supported. - repeated PersonName person_names = 11; - - // 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. - repeated Address addresses = 12; - - // The candidate's email addresses. - repeated Email email_addresses = 13; - - // The candidate's phone number(s). - repeated Phone phone_numbers = 14; - - // The candidate's personal URIs. - repeated PersonalUri personal_uris = 15; - - // 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. - repeated AdditionalContactInfo additional_contact_info = 16; - - // 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. - repeated EmploymentRecord employment_records = 17; - - // 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. - repeated EducationRecord education_records = 18; - - // 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. - repeated Skill skills = 19; - - // 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. - repeated Activity activities = 20; - - // The publications published by the candidate. - // - // The limitation for max number of publications is 50. - repeated Publication publications = 21; - - // The patents acquired by the candidate. - repeated Patent patents = 22; - - // The certifications acquired by the candidate. - repeated Certification certifications = 23; - - // Output only. The resource names of the candidate's applications. - repeated string applications = 47 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource names of the candidate's assignments. - repeated string assignments = 48 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - map custom_attributes = 26; - - // 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. - bool processed = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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]. - string keyword_snippet = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Candidate's availability signals. - repeated AvailabilitySignal availability_signals = 70 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - repeated Location derived_addresses = 64 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Candidate availability signal. -message AvailabilitySignal { - // Type of signal. - AvailabilitySignalType type = 1; - - // Timestamp of when the given availability activity last happened. - google.protobuf.Timestamp last_update_time = 2; - - // 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]. - google.protobuf.BoolValue filter_satisfied = 3; -} - -// Resource that represents a resume. -message Resume { - // The format of a structured resume. - enum ResumeType { - // Default value. - 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. - HRXML = 1; - - // Resume type not specified. - OTHER_RESUME_TYPE = 2; - } - - // 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. - string structured_resume = 1; - - // The format of [structured_resume][google.cloud.talent.v4beta1.Resume.structured_resume]. - ResumeType resume_type = 2; -} - -// Resource that represents the name of a person. -message PersonName { - // Resource that represents a person's structured name. - message PersonStructuredName { - // 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. - string given_name = 1; - - // Preferred given/first name or nickname. - // - // Number of characters allowed is 100. - string preferred_name = 6; - - // Middle initial. - // - // It's derived from [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] if not provided. - // - // Number of characters allowed is 20. - string middle_initial = 2; - - // 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. - string family_name = 3; - - // Suffixes. - // - // Number of characters allowed is 20. - repeated string suffixes = 4; - - // Prefixes. - // - // Number of characters allowed is 20. - repeated string prefixes = 5; - } - - // The name of a person. It can be one of - // [formatted_name][google.cloud.talent.v4beta1.PersonName.formatted_name] or - // [structured_name][google.cloud.talent.v4beta1.PersonName.structured_name]. - oneof person_name { - // A string represents a person's full name. For example, "Dr. John Smith". - // - // Number of characters allowed is 100. - string formatted_name = 1; - - // A person's name in a structured way (last name, first name, suffix, and - // so on.) - PersonStructuredName structured_name = 2; - } - - // 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. - string preferred_name = 3; -} - -// Resource that represents a address. -message Address { - // The usage of the address. For example, SCHOOL, WORK, PERSONAL. - ContactInfoUsage usage = 1; - - // The address of a person. It can be one of - // [unstructured_address][google.cloud.talent.v4beta1.Address.unstructured_address] or - // [structured_address][google.cloud.talent.v4beta1.Address.structured_address]. - oneof address { - // Unstructured address. - // - // For example, "1600 Amphitheatre Pkwy, Mountain View, CA 94043", - // "Sunnyvale, California". - // - // Number of characters allowed is 100. - string unstructured_address = 2; - - // Structured address that contains street address, city, state, country, - // and so on. - google.type.PostalAddress structured_address = 3; - } - - // Indicates if it's the person's current address. - google.protobuf.BoolValue current = 4; -} - -// Resource that represents a person's email address. -message Email { - // The usage of the email address. For example, SCHOOL, WORK, PERSONAL. - ContactInfoUsage usage = 1; - - // Email address. - // - // Number of characters allowed is 4,000. - string email_address = 2; -} - -// Resource that represents a person's telephone number. -message Phone { - // Enum that represents the type of the telephone. - enum PhoneType { - // Default value. - PHONE_TYPE_UNSPECIFIED = 0; - - // A landline. - LANDLINE = 1; - - // A mobile. - MOBILE = 2; - - // A fax. - FAX = 3; - - // A pager. - PAGER = 4; - - // A TTY (test telephone) or TDD (telecommunication device for the deaf). - TTY_OR_TDD = 5; - - // A voicemail. - 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 - VIRTUAL = 7; - - // Voice over IP numbers. This includes TSoIP (Telephony Service over IP). - 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. - MOBILE_OR_LANDLINE = 9; - } - - // The usage of the phone. For example, SCHOOL, WORK, PERSONAL. - ContactInfoUsage usage = 1; - - // The phone type. For example, LANDLINE, MOBILE, FAX. - PhoneType type = 2; - - // 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. - string number = 3; - - // When this number is available. Any descriptive string is expected. - // - // Number of characters allowed is 100. - string when_available = 4; -} - -// Resource that represents a valid URI for a personal use. -message PersonalUri { - // The personal URI. - // - // Number of characters allowed is 4,000. - string uri = 1; -} - -// Resource that represents contact information other than phone, email, -// URI and addresses. -message AdditionalContactInfo { - // The usage of this contact method. For example, SCHOOL, WORK, PERSONAL. - ContactInfoUsage usage = 1; - - // The name of the contact method. - // - // For example, "hangout", "skype". - // - // Number of characters allowed is 100. - string name = 2; - - // The contact id. - // - // Number of characters allowed is 100. - string contact_id = 3; -} - -// Resource that represents an employment record of a candidate. -message EmploymentRecord { - // Start date of the employment. - google.type.Date start_date = 1; - - // End date of the employment. - google.type.Date end_date = 2; - - // The name of the employer company/organization. - // - // For example, "Google", "Alphabet", and so on. - // - // Number of characters allowed is 250. - string employer_name = 3; - - // The division name of the employment. - // - // For example, division, department, client, and so on. - // - // Number of characters allowed is 100. - string division_name = 4; - - // The physical address of the employer. - Address address = 5; - - // The job title of the employment. - // - // For example, "Software Engineer", "Data Scientist", and so on. - // - // Number of characters allowed is 250. - string job_title = 6; - - // The description of job content. - // - // Number of characters allowed is 100,000. - string job_description = 7; - - // If the jobs is a supervisor position. - google.protobuf.BoolValue is_supervisor = 8; - - // If this employment is self-employed. - google.protobuf.BoolValue is_self_employed = 9; - - // If this employment is current. - google.protobuf.BoolValue is_current = 10; - - // 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. - string job_title_snippet = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - string job_description_snippet = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - string employer_name_snippet = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Resource that represents an education record of a candidate. -message EducationRecord { - // The start date of the education. - google.type.Date start_date = 1; - - // The end date of the education. - google.type.Date end_date = 2; - - // The expected graduation date if currently pursuing a degree. - google.type.Date expected_graduation_date = 3; - - // The name of the school or institution. - // - // For example, "Stanford University", "UC Berkeley", and so on. - // - // Number of characters allowed is 250. - string school_name = 4; - - // The physical address of the education institution. - Address address = 5; - - // The degree information. It can be one of - // [degree_description][google.cloud.talent.v4beta1.EducationRecord.degree_description] or - // [structured_degree][google.cloud.talent.v4beta1.EducationRecord.structured_degree]. - oneof degree { - // The full description of the degree. - // - // For example, "Master of Science in Computer Science", "B.S in Math". - // - // Number of characters allowed is 100. - string degree_description = 6; - - // The structured notation of the degree. - Degree structured_degree = 7; - } - - // The description of the education. - // - // Number of characters allowed is 100,000. - string description = 8; - - // If this education is current. - google.protobuf.BoolValue is_current = 9; - - // 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. - string school_name_snippet = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - string degree_snippet = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Resource that represents a degree pursuing or acquired by a candidate. -message Degree { - // ISCED degree type. - DegreeType degree_type = 1; - - // Full Degree name. - // - // For example, "B.S.", "Master of Arts", and so on. - // - // Number of characters allowed is 100. - string degree_name = 2; - - // Fields of study for the degree. - // - // For example, "Computer science", "engineering". - // - // Number of characters allowed is 100. - repeated string fields_of_study = 3; -} - -// Resource that represents an individual or collaborative activity participated -// in by a candidate, for example, an open-source project, a class assignment, -// and so on. -message Activity { - // Activity display name. - // - // Number of characters allowed is 100. - string display_name = 1; - - // Activity description. - // - // Number of characters allowed is 100,000. - string description = 2; - - // Activity URI. - // - // Number of characters allowed is 4,000. - string uri = 3; - - // The first creation date of the activity. - google.type.Date create_date = 4; - - // The last update date of the activity. - google.type.Date update_date = 5; - - // 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. - repeated string team_members = 6; - - // A list of skills used in this activity. - // - // The limitation for max number of skills used is 50. - repeated Skill skills_used = 7; - - // 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. - string activity_name_snippet = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - string activity_description_snippet = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - repeated string skills_used_snippet = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Resource that represents a publication resource of a candidate. -message Publication { - // A list of author names. - // - // Number of characters allowed is 100. - repeated string authors = 1; - - // The title of the publication. - // - // Number of characters allowed is 100. - string title = 2; - - // The description of the publication. - // - // Number of characters allowed is 100,000. - string description = 3; - - // The journal name of the publication. - // - // Number of characters allowed is 100. - string journal = 4; - - // Volume number. - // - // Number of characters allowed is 100. - string volume = 5; - - // The publisher of the journal. - // - // Number of characters allowed is 100. - string publisher = 6; - - // The publication date. - google.type.Date publication_date = 7; - - // The publication type. - // - // Number of characters allowed is 100. - string publication_type = 8; - - // ISBN number. - // - // Number of characters allowed is 100. - string isbn = 9; -} - -// Resource that represents the patent acquired by a candidate. -message Patent { - // Name of the patent. - // - // Number of characters allowed is 100. - string display_name = 1; - - // A list of inventors' names. - // - // Number of characters allowed for each is 100. - repeated string inventors = 2; - - // The status of the patent. - // - // Number of characters allowed is 100. - string patent_status = 3; - - // The date the last time the status of the patent was checked. - google.type.Date patent_status_date = 4; - - // The date that the patent was filed. - google.type.Date patent_filing_date = 5; - - // The name of the patent office. - // - // Number of characters allowed is 100. - string patent_office = 6; - - // The number of the patent. - // - // Number of characters allowed is 100. - string patent_number = 7; - - // The description of the patent. - // - // Number of characters allowed is 100,000. - string patent_description = 8; - - // The skills used in this patent. - repeated Skill skills_used = 9; -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto deleted file mode 100644 index 0562a559..00000000 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto +++ /dev/null @@ -1,467 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.talent.v4beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/talent/v4beta1/common.proto"; -import "google/cloud/talent/v4beta1/filters.proto"; -import "google/cloud/talent/v4beta1/histogram.proto"; -import "google/cloud/talent/v4beta1/profile.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/any.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; -option java_multiple_files = true; -option java_outer_classname = "ProfileServiceProto"; -option java_package = "com.google.cloud.talent.v4beta1"; -option objc_class_prefix = "CTS"; - -// A service that handles profile management, including profile CRUD, -// enumeration and search. -service ProfileService { - option (google.api.default_host) = "jobs.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform," - "https://www.googleapis.com/auth/jobs"; - - // Lists profiles by filter. The order is unspecified. - rpc ListProfiles(ListProfilesRequest) returns (ListProfilesResponse) { - option (google.api.http) = { - get: "/v4beta1/{parent=projects/*/tenants/*}/profiles" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates and returns a new profile. - rpc CreateProfile(CreateProfileRequest) returns (Profile) { - option (google.api.http) = { - post: "/v4beta1/{parent=projects/*/tenants/*}/profiles" - body: "*" - }; - option (google.api.method_signature) = "parent,profile"; - } - - // Gets the specified profile. - rpc GetProfile(GetProfileRequest) returns (Profile) { - option (google.api.http) = { - get: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates the specified profile and returns the updated result. - rpc UpdateProfile(UpdateProfileRequest) returns (Profile) { - option (google.api.http) = { - patch: "/v4beta1/{profile.name=projects/*/tenants/*/profiles/*}" - body: "*" - }; - option (google.api.method_signature) = "profile"; - } - - // Deletes the specified profile. - // Prerequisite: The profile has no associated applications or assignments - // associated. - rpc DeleteProfile(DeleteProfileRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v4beta1/{name=projects/*/tenants/*/profiles/*}" - }; - option (google.api.method_signature) = "name"; - } - - // 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. - rpc SearchProfiles(SearchProfilesRequest) returns (SearchProfilesResponse) { - option (google.api.http) = { - post: "/v4beta1/{parent=projects/*/tenants/*}:search" - body: "*" - }; - } -} - -// List profiles request. -message ListProfilesRequest { - // 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". - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "jobs.googleapis.com/Profile" - } - ]; - - // 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" - string filter = 5; - - // 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. - string page_token = 2; - - // The maximum number of profiles to be returned, at most 100. - // - // Default is 100 unless a positive number smaller than 100 is specified. - int32 page_size = 3; - - // 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 - google.protobuf.FieldMask read_mask = 4; -} - -// The List profiles response object. -message ListProfilesResponse { - // Profiles for the specific tenant. - repeated Profile profiles = 1; - - // A token to retrieve the next page of results. This is empty if there are no - // more results. - string next_page_token = 2; -} - -// Create profile request. -message CreateProfileRequest { - // 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". - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Tenant" - } - ]; - - // Required. The profile to be created. - Profile profile = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Get profile request. -message GetProfileRequest { - // 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". - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Profile" - } - ]; -} - -// Update profile request -message UpdateProfileRequest { - // Required. Profile to be updated. - Profile profile = 1 [(google.api.field_behavior) = REQUIRED]; - - // A field mask to specify the profile fields to update. - // - // A full update is performed if it is unset. - google.protobuf.FieldMask update_mask = 2; -} - -// Delete profile request. -message DeleteProfileRequest { - // 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". - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Profile" - } - ]; -} - -// The request body of the `SearchProfiles` call. -message SearchProfilesRequest { - // 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". - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "jobs.googleapis.com/Tenant" - } - ]; - - // 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. - RequestMetadata request_metadata = 2 [(google.api.field_behavior) = REQUIRED]; - - // Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. - ProfileQuery profile_query = 3; - - // 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. - int32 page_size = 4; - - // 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. - string page_token = 5; - - // 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. - int32 offset = 6; - - // This flag controls the spell-check feature. If `false`, the - // service attempts to correct a misspelled query. - // - // For example, "enginee" is corrected to "engineer". - bool disable_spell_check = 7; - - // 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. - string order_by = 8; - - // 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). - bool case_sensitive_sort = 9; - - // 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")]) - repeated HistogramQuery histogram_queries = 10; - - // 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. - string result_set_id = 12; - - // 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. - bool strict_keywords_search = 13; -} - -// Response of SearchProfiles method. -message SearchProfilesResponse { - // An estimation of the number of profiles that match the specified query. - // - // This number isn't guaranteed to be accurate. - int64 estimated_total_size = 1; - - // The spell checking result, and correction. - SpellingCorrection spell_correction = 2; - - // Additional information for the API invocation, such as the request - // tracking id. - ResponseMetadata metadata = 3; - - // A token to retrieve the next page of results. This is empty if there are no - // more results. - string next_page_token = 4; - - // The histogram results that match with specified - // [SearchProfilesRequest.histogram_queries][google.cloud.talent.v4beta1.SearchProfilesRequest.histogram_queries]. - repeated HistogramQueryResult histogram_query_results = 5; - - // The profile entities that match the specified [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. - repeated SummarizedProfile summarized_profiles = 6; - - // An id that uniquely identifies the result set of a - // [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call for consistent - // results. - string result_set_id = 7; -} - -// Profile entry with metadata inside [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse]. -message SummarizedProfile { - // A list of profiles that are linked by [Profile.group_id][google.cloud.talent.v4beta1.Profile.group_id]. - repeated Profile profiles = 1; - - // 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". - Profile summary = 2; -} diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto index 0328c143..cf376a4b 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ package google.cloud.talent.v4beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; diff --git a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto index 3eb260d8..3e40df91 100644 --- a/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto +++ b/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/tenant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.