From 9ad67d270a43730def99cb5eaba231f14d11ad14 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Wed, 27 Mar 2019 08:49:47 -0400 Subject: [PATCH 1/2] Manually regenerating the talent v4beta1 API ResumeService was removed from the protos, requiring manual deletion of all related classes. --- .../v4beta1/ApplicationServiceGrpc.java | 873 ++++ .../talent/v4beta1/ProfileServiceGrpc.java | 8 + .../talent/v4beta1/ResumeServiceGrpc.java | 441 -- .../google/cloud/talent/v4beta1/Address.java | 168 +- .../talent/v4beta1/AddressOrBuilder.java | 12 +- .../cloud/talent/v4beta1/Application.java | 4595 +++++++++++++++++ .../talent/v4beta1/ApplicationDateFilter.java | 4 +- .../talent/v4beta1/ApplicationJobFilter.java | 161 +- .../ApplicationJobFilterOrBuilder.java | 30 +- .../v4beta1/ApplicationLastStageFilter.java | 37 +- .../ApplicationLastStageFilterOrBuilder.java | 10 +- .../cloud/talent/v4beta1/ApplicationName.java | 241 + .../talent/v4beta1/ApplicationOrBuilder.java | 522 ++ ...ava => ApplicationOutcomeNotesFilter.java} | 237 +- ...plicationOutcomeNotesFilterOrBuilder.java} | 18 +- .../v4beta1/ApplicationResourceProto.java | 115 + .../v4beta1/ApplicationServiceProto.java | 178 + .../v4beta1/ApplicationStatusFilter.java | 176 +- .../ApplicationStatusFilterOrBuilder.java | 29 +- .../v4beta1/BatchDeleteJobsRequest.java | 56 +- .../BatchDeleteJobsRequestOrBuilder.java | 16 +- .../cloud/talent/v4beta1/Certification.java | 36 +- .../v4beta1/CertificationOrBuilder.java | 8 +- .../cloud/talent/v4beta1/ClientEvent.java | 391 +- .../talent/v4beta1/ClientEventOrBuilder.java | 70 +- .../cloud/talent/v4beta1/CommonProto.java | 318 +- .../cloud/talent/v4beta1/CommuteMethod.java | 24 - .../google/cloud/talent/v4beta1/Company.java | 153 +- .../cloud/talent/v4beta1/CompanyName.java | 161 +- .../cloud/talent/v4beta1/CompanyNames.java | 31 + .../cloud/talent/v4beta1/CompanyNewName.java | 207 + .../cloud/talent/v4beta1/CompanyOldName.java | 179 + .../talent/v4beta1/CompanyOrBuilder.java | 46 +- .../talent/v4beta1/CompanyServiceProto.java | 53 +- .../talent/v4beta1/CompensationInfo.java | 12 +- .../talent/v4beta1/CompleteQueryRequest.java | 281 +- .../CompleteQueryRequestOrBuilder.java | 46 +- .../talent/v4beta1/CompleteQueryResponse.java | 6 +- .../v4beta1/CompletionServiceProto.java | 61 +- .../v4beta1/CreateApplicationRequest.java | 907 ++++ .../CreateApplicationRequestOrBuilder.java | 73 + .../v4beta1/CreateClientEventRequest.java | 49 +- .../CreateClientEventRequestOrBuilder.java | 14 +- .../talent/v4beta1/CreateCompanyRequest.java | 56 +- .../CreateCompanyRequestOrBuilder.java | 16 +- .../talent/v4beta1/CreateJobRequest.java | 56 +- .../v4beta1/CreateJobRequestOrBuilder.java | 16 +- .../v4beta1/DeleteApplicationRequest.java | 635 +++ .../DeleteApplicationRequestOrBuilder.java | 41 + .../talent/v4beta1/DeleteCompanyRequest.java | 49 +- .../DeleteCompanyRequestOrBuilder.java | 14 +- .../talent/v4beta1/DeleteJobRequest.java | 49 +- .../v4beta1/DeleteJobRequestOrBuilder.java | 14 +- .../cloud/talent/v4beta1/EmployerFilter.java | 6 +- .../talent/v4beta1/EmploymentRecord.java | 199 +- .../v4beta1/EmploymentRecordOrBuilder.java | 18 +- .../cloud/talent/v4beta1/EventProto.java | 70 +- .../talent/v4beta1/EventServiceProto.java | 16 +- .../cloud/talent/v4beta1/FiltersProto.java | 263 +- ...ptions.java => GetApplicationRequest.java} | 389 +- .../GetApplicationRequestOrBuilder.java | 41 + .../talent/v4beta1/GetCompanyRequest.java | 49 +- .../v4beta1/GetCompanyRequestOrBuilder.java | 14 +- .../cloud/talent/v4beta1/GetJobRequest.java | 49 +- .../v4beta1/GetJobRequestOrBuilder.java | 14 +- .../cloud/talent/v4beta1/Interview.java | 855 +++ .../talent/v4beta1/InterviewOrBuilder.java | 69 + .../com/google/cloud/talent/v4beta1/Job.java | 259 +- .../cloud/talent/v4beta1/JobApplication.java | 3468 ------------- .../v4beta1/JobApplicationOrBuilder.java | 397 -- .../google/cloud/talent/v4beta1/JobName.java | 161 +- .../google/cloud/talent/v4beta1/JobNames.java | 31 + .../cloud/talent/v4beta1/JobNewName.java | 201 + .../cloud/talent/v4beta1/JobOldName.java | 179 + .../cloud/talent/v4beta1/JobOrBuilder.java | 56 +- .../google/cloud/talent/v4beta1/JobQuery.java | 229 +- .../talent/v4beta1/JobQueryOrBuilder.java | 44 +- .../talent/v4beta1/JobResourceProto.java | 105 +- .../cloud/talent/v4beta1/JobServiceProto.java | 77 +- .../google/cloud/talent/v4beta1/JobView.java | 12 +- .../v4beta1/ListApplicationsRequest.java | 884 ++++ .../ListApplicationsRequestOrBuilder.java | 75 + .../v4beta1/ListApplicationsResponse.java | 1377 +++++ .../ListApplicationsResponseOrBuilder.java | 117 + .../talent/v4beta1/ListCompaniesRequest.java | 56 +- .../ListCompaniesRequestOrBuilder.java | 16 +- .../cloud/talent/v4beta1/ListJobsRequest.java | 126 +- .../v4beta1/ListJobsRequestOrBuilder.java | 36 +- .../talent/v4beta1/ListProfilesRequest.java | 168 +- .../v4beta1/ListProfilesRequestOrBuilder.java | 12 +- .../cloud/talent/v4beta1/LocationFilter.java | 6 +- .../google/cloud/talent/v4beta1/Outcome.java | 203 + .../v4beta1/ParseResumeOptionsOrBuilder.java | 42 - .../talent/v4beta1/ParseResumeRequest.java | 1387 ----- .../v4beta1/ParseResumeRequestOrBuilder.java | 147 - .../talent/v4beta1/ParseResumeResponse.java | 865 ---- .../v4beta1/ParseResumeResponseOrBuilder.java | 62 - .../google/cloud/talent/v4beta1/Profile.java | 1171 ++--- .../cloud/talent/v4beta1/ProfileEvent.java | 420 +- .../talent/v4beta1/ProfileEventOrBuilder.java | 36 +- .../talent/v4beta1/ProfileOrBuilder.java | 135 +- .../cloud/talent/v4beta1/ProfileQuery.java | 491 +- .../talent/v4beta1/ProfileQueryOrBuilder.java | 54 +- .../talent/v4beta1/ProfileResourceProto.java | 349 +- .../talent/v4beta1/ProfileServiceProto.java | 132 +- .../cloud/talent/v4beta1/ProjectName.java | 3 +- .../google/cloud/talent/v4beta1/Rating.java | 781 +++ .../cloud/talent/v4beta1/RatingOrBuilder.java | 55 + .../cloud/talent/v4beta1/RecruitingNote.java | 1227 ----- .../v4beta1/RecruitingNoteOrBuilder.java | 119 - .../talent/v4beta1/ResumeServiceProto.java | 107 - .../talent/v4beta1/SearchJobsRequest.java | 68 +- .../v4beta1/SearchJobsRequestOrBuilder.java | 16 +- .../talent/v4beta1/SearchProfilesRequest.java | 184 +- .../SearchProfilesRequestOrBuilder.java | 40 +- .../google/cloud/talent/v4beta1/Skill.java | 272 +- .../cloud/talent/v4beta1/SkillOrBuilder.java | 8 +- .../talent/v4beta1/SkillProficiencyLevel.java | 226 + .../cloud/talent/v4beta1/TenantName.java | 3 +- .../talent/v4beta1/TenantOrProjectName.java | 23 + .../talent/v4beta1/TenantOrProjectNames.java | 31 + .../cloud/talent/v4beta1/TimestampRange.java | 48 +- .../v4beta1/TimestampRangeOrBuilder.java | 12 +- .../talent/v4beta1/UntypedCompanyName.java | 99 + .../cloud/talent/v4beta1/UntypedJobName.java | 99 + .../v4beta1/UntypedTenantOrProjectName.java | 99 + .../v4beta1/UpdateApplicationRequest.java | 1086 ++++ .../UpdateApplicationRequestOrBuilder.java | 102 + .../talent/v4beta1/UpdateProfileRequest.java | 12 - .../UpdateProfileRequestOrBuilder.java | 3 - .../cloud/talent/v4beta1/application.proto | 198 + .../talent/v4beta1/application_service.proto | 176 + .../google/cloud/talent/v4beta1/common.proto | 294 +- .../google/cloud/talent/v4beta1/company.proto | 16 +- .../talent/v4beta1/company_service.proto | 55 +- .../talent/v4beta1/completion_service.proto | 24 +- .../google/cloud/talent/v4beta1/event.proto | 37 +- .../cloud/talent/v4beta1/event_service.proto | 16 +- .../google/cloud/talent/v4beta1/filters.proto | 76 +- .../google/cloud/talent/v4beta1/job.proto | 27 +- .../cloud/talent/v4beta1/job_service.proto | 106 +- .../google/cloud/talent/v4beta1/profile.proto | 286 +- .../talent/v4beta1/profile_service.proto | 13 +- .../v4beta1/ApplicationServiceClient.java | 790 +++ .../v4beta1/ApplicationServiceSettings.java | 224 + .../talent/v4beta1/CompanyServiceClient.java | 92 +- .../talent/v4beta1/CompletionClient.java | 12 +- .../talent/v4beta1/EventServiceClient.java | 26 +- .../talent/v4beta1/JobServiceClient.java | 134 +- .../talent/v4beta1/ProfileServiceClient.java | 12 +- .../talent/v4beta1/ResumeServiceClient.java | 348 -- .../talent/v4beta1/ResumeServiceSettings.java | 175 - .../cloud/talent/v4beta1/package-info.java | 45 +- .../v4beta1/stub/ApplicationServiceStub.java | 71 + .../stub/ApplicationServiceStubSettings.java | 450 ++ ...rpcApplicationServiceCallableFactory.java} | 2 +- .../stub/GrpcApplicationServiceStub.java | 255 + .../v4beta1/stub/GrpcResumeServiceStub.java | 141 - .../v4beta1/stub/ResumeServiceStub.java | 41 - .../stub/ResumeServiceStubSettings.java | 269 - .../v4beta1/ApplicationServiceClientTest.java | 356 ++ .../v4beta1/CompanyServiceClientTest.java | 36 +- .../talent/v4beta1/CompletionClientTest.java | 6 +- .../v4beta1/EventServiceClientTest.java | 19 +- .../talent/v4beta1/JobServiceClientTest.java | 54 +- ...rvice.java => MockApplicationService.java} | 8 +- .../v4beta1/MockApplicationServiceImpl.java | 134 + .../talent/v4beta1/MockResumeServiceImpl.java | 73 - .../v4beta1/ProfileServiceClientTest.java | 6 +- .../v4beta1/ResumeServiceClientTest.java | 139 - .../v4beta1/TenantServiceClientTest.java | 6 +- 171 files changed, 22501 insertions(+), 15107 deletions(-) create mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java delete mode 100644 google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java rename google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/{ApplicationOutcomeReasonFilter.java => ApplicationOutcomeNotesFilter.java} (73%) rename google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/{ApplicationOutcomeReasonFilterOrBuilder.java => ApplicationOutcomeNotesFilterOrBuilder.java} (59%) create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNames.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNewName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOldName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java rename google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/{ParseResumeOptions.java => GetApplicationRequest.java} (50%) create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNames.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNewName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOldName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java delete mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectNames.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedCompanyName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedJobName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedTenantOrProjectName.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto create mode 100644 google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java delete mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java delete mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java rename google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/{GrpcResumeServiceCallableFactory.java => GrpcApplicationServiceCallableFactory.java} (98%) create mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java delete mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java delete mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java delete mode 100644 google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java rename google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/{MockResumeService.java => MockApplicationService.java} (87%) create mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java delete mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java delete mode 100644 google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java new file mode 100644 index 000000000000..b781e3cd3b5e --- /dev/null +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java @@ -0,0 +1,873 @@ +package com.google.cloud.talent.v4beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + * + * + *
+ * A service that handles application management, including CRUD and
+ * enumeration.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/talent/v4beta1/application_service.proto") +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. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateApplicationMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + METHOD_CREATE_APPLICATION = getCreateApplicationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getCreateApplicationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getCreateApplicationMethod() { + return getCreateApplicationMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.CreateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getCreateApplicationMethodHelper() { + 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( + "google.cloud.talent.v4beta1.ApplicationService", + "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; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetApplicationMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + METHOD_GET_APPLICATION = getGetApplicationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getGetApplicationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getGetApplicationMethod() { + return getGetApplicationMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.GetApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getGetApplicationMethodHelper() { + 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( + "google.cloud.talent.v4beta1.ApplicationService", "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; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateApplicationMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + METHOD_UPDATE_APPLICATION = getUpdateApplicationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getUpdateApplicationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getUpdateApplicationMethod() { + return getUpdateApplicationMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.UpdateApplicationRequest, + com.google.cloud.talent.v4beta1.Application> + getUpdateApplicationMethodHelper() { + 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( + "google.cloud.talent.v4beta1.ApplicationService", + "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; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteApplicationMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteApplicationRequest, com.google.protobuf.Empty> + METHOD_DELETE_APPLICATION = getDeleteApplicationMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteApplicationRequest, com.google.protobuf.Empty> + getDeleteApplicationMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteApplicationRequest, com.google.protobuf.Empty> + getDeleteApplicationMethod() { + return getDeleteApplicationMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.DeleteApplicationRequest, com.google.protobuf.Empty> + getDeleteApplicationMethodHelper() { + 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( + "google.cloud.talent.v4beta1.ApplicationService", + "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; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListApplicationsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListApplicationsRequest, + com.google.cloud.talent.v4beta1.ListApplicationsResponse> + METHOD_LIST_APPLICATIONS = getListApplicationsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListApplicationsRequest, + com.google.cloud.talent.v4beta1.ListApplicationsResponse> + getListApplicationsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListApplicationsRequest, + com.google.cloud.talent.v4beta1.ListApplicationsResponse> + getListApplicationsMethod() { + return getListApplicationsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.cloud.talent.v4beta1.ListApplicationsRequest, + com.google.cloud.talent.v4beta1.ListApplicationsResponse> + getListApplicationsMethodHelper() { + 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( + "google.cloud.talent.v4beta1.ApplicationService", "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) { + return new ApplicationServiceStub(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) { + return new ApplicationServiceBlockingStub(channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ApplicationServiceFutureStub newFutureStub(io.grpc.Channel channel) { + return new ApplicationServiceFutureStub(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) { + asyncUnimplementedUnaryCall(getCreateApplicationMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Retrieves specified application.
+     * 
+ */ + public void getApplication( + com.google.cloud.talent.v4beta1.GetApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetApplicationMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates specified application.
+     * 
+ */ + public void updateApplication( + com.google.cloud.talent.v4beta1.UpdateApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateApplicationMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Deletes specified application.
+     * 
+ */ + public void deleteApplication( + com.google.cloud.talent.v4beta1.DeleteApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteApplicationMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Lists all applications associated with the profile.
+     * 
+ */ + public void listApplications( + com.google.cloud.talent.v4beta1.ListApplicationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getListApplicationsMethodHelper(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateApplicationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.CreateApplicationRequest, + com.google.cloud.talent.v4beta1.Application>( + this, METHODID_CREATE_APPLICATION))) + .addMethod( + getGetApplicationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.GetApplicationRequest, + com.google.cloud.talent.v4beta1.Application>(this, METHODID_GET_APPLICATION))) + .addMethod( + getUpdateApplicationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.UpdateApplicationRequest, + com.google.cloud.talent.v4beta1.Application>( + this, METHODID_UPDATE_APPLICATION))) + .addMethod( + getDeleteApplicationMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.cloud.talent.v4beta1.DeleteApplicationRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_APPLICATION))) + .addMethod( + getListApplicationsMethodHelper(), + 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.AbstractStub { + private ApplicationServiceStub(io.grpc.Channel channel) { + super(channel); + } + + 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) { + asyncUnaryCall( + getChannel().newCall(getCreateApplicationMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves specified application.
+     * 
+ */ + public void getApplication( + com.google.cloud.talent.v4beta1.GetApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetApplicationMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates specified application.
+     * 
+ */ + public void updateApplication( + com.google.cloud.talent.v4beta1.UpdateApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateApplicationMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes specified application.
+     * 
+ */ + public void deleteApplication( + com.google.cloud.talent.v4beta1.DeleteApplicationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteApplicationMethodHelper(), 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) { + asyncUnaryCall( + getChannel().newCall(getListApplicationsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * A service that handles application management, including CRUD and
+   * enumeration.
+   * 
+ */ + public static final class ApplicationServiceBlockingStub + extends io.grpc.stub.AbstractStub { + private ApplicationServiceBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + 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 blockingUnaryCall( + getChannel(), getCreateApplicationMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves specified application.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Application getApplication( + com.google.cloud.talent.v4beta1.GetApplicationRequest request) { + return blockingUnaryCall( + getChannel(), getGetApplicationMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates specified application.
+     * 
+ */ + public com.google.cloud.talent.v4beta1.Application updateApplication( + com.google.cloud.talent.v4beta1.UpdateApplicationRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateApplicationMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes specified application.
+     * 
+ */ + public com.google.protobuf.Empty deleteApplication( + com.google.cloud.talent.v4beta1.DeleteApplicationRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteApplicationMethodHelper(), 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 blockingUnaryCall( + getChannel(), getListApplicationsMethodHelper(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * A service that handles application management, including CRUD and
+   * enumeration.
+   * 
+ */ + public static final class ApplicationServiceFutureStub + extends io.grpc.stub.AbstractStub { + private ApplicationServiceFutureStub(io.grpc.Channel channel) { + super(channel); + } + + 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 futureUnaryCall( + getChannel().newCall(getCreateApplicationMethodHelper(), 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 futureUnaryCall( + getChannel().newCall(getGetApplicationMethodHelper(), 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 futureUnaryCall( + getChannel().newCall(getUpdateApplicationMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes specified application.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteApplication(com.google.cloud.talent.v4beta1.DeleteApplicationRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteApplicationMethodHelper(), 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 futureUnaryCall( + getChannel().newCall(getListApplicationsMethodHelper(), 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(getCreateApplicationMethodHelper()) + .addMethod(getGetApplicationMethodHelper()) + .addMethod(getUpdateApplicationMethodHelper()) + .addMethod(getDeleteApplicationMethodHelper()) + .addMethod(getListApplicationsMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java index c26c22568a10..79289f5241c3 100644 --- a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java +++ b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java @@ -454,6 +454,8 @@ public void updateProfile( * *
      * Deletes the specified profile.
+     * Prerequisite: The profile has no associated applications or assignments
+     * associated.
      * 
*/ public void deleteProfile( @@ -619,6 +621,8 @@ public void updateProfile( * *
      * Deletes the specified profile.
+     * Prerequisite: The profile has no associated applications or assignments
+     * associated.
      * 
*/ public void deleteProfile( @@ -734,6 +738,8 @@ public com.google.cloud.talent.v4beta1.Profile updateProfile( * *
      * Deletes the specified profile.
+     * Prerequisite: The profile has no associated applications or assignments
+     * associated.
      * 
*/ public com.google.protobuf.Empty deleteProfile( @@ -846,6 +852,8 @@ protected ProfileServiceFutureStub build( * *
      * Deletes the specified profile.
+     * Prerequisite: The profile has no associated applications or assignments
+     * associated.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java b/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java deleted file mode 100644 index c512ae904c03..000000000000 --- a/google-api-grpc/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceGrpc.java +++ /dev/null @@ -1,441 +0,0 @@ -package com.google.cloud.talent.v4beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; - -/** - * - * - *
- * A service that handles resume parsing.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/cloud/talent/v4beta1/resume_service.proto") -public final class ResumeServiceGrpc { - - private ResumeServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.talent.v4beta1.ResumeService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getParseResumeMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ParseResumeRequest, - com.google.cloud.talent.v4beta1.ParseResumeResponse> - METHOD_PARSE_RESUME = getParseResumeMethodHelper(); - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ParseResumeRequest, - com.google.cloud.talent.v4beta1.ParseResumeResponse> - getParseResumeMethod; - - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ParseResumeRequest, - com.google.cloud.talent.v4beta1.ParseResumeResponse> - getParseResumeMethod() { - return getParseResumeMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ParseResumeRequest, - com.google.cloud.talent.v4beta1.ParseResumeResponse> - getParseResumeMethodHelper() { - io.grpc.MethodDescriptor< - com.google.cloud.talent.v4beta1.ParseResumeRequest, - com.google.cloud.talent.v4beta1.ParseResumeResponse> - getParseResumeMethod; - if ((getParseResumeMethod = ResumeServiceGrpc.getParseResumeMethod) == null) { - synchronized (ResumeServiceGrpc.class) { - if ((getParseResumeMethod = ResumeServiceGrpc.getParseResumeMethod) == null) { - ResumeServiceGrpc.getParseResumeMethod = - getParseResumeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.cloud.talent.v4beta1.ResumeService", "ParseResume")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.ParseResumeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.talent.v4beta1.ParseResumeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new ResumeServiceMethodDescriptorSupplier("ParseResume")) - .build(); - } - } - } - return getParseResumeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ResumeServiceStub newStub(io.grpc.Channel channel) { - return new ResumeServiceStub(channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ResumeServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new ResumeServiceBlockingStub(channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ResumeServiceFutureStub newFutureStub(io.grpc.Channel channel) { - return new ResumeServiceFutureStub(channel); - } - - /** - * - * - *
-   * A service that handles resume parsing.
-   * 
- */ - public abstract static class ResumeServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
-     * API attempts to fill out the following profile fields if present within the
-     * resume:
-     * * personNames
-     * * addresses
-     * * emailAddress
-     * * phoneNumbers
-     * * personalUris
-     * * employmentRecords
-     * * educationRecords
-     * * skills
-     * Note that some attributes in these fields may not be populated if they're
-     * not present within the resume or unrecognizable by the resume parser.
-     * This API does not save the resume or profile. To create a profile from this
-     * resume, clients need to call the CreateProfile method again with the
-     * profile returned.
-     * The following list of formats are supported:
-     * * PDF
-     * * TXT
-     * * DOC
-     * * RTF
-     * * DOCX
-     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
-     * otherwise an error is thrown)
-     * 
- */ - public void parseResume( - com.google.cloud.talent.v4beta1.ParseResumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getParseResumeMethodHelper(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getParseResumeMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.cloud.talent.v4beta1.ParseResumeRequest, - com.google.cloud.talent.v4beta1.ParseResumeResponse>( - this, METHODID_PARSE_RESUME))) - .build(); - } - } - - /** - * - * - *
-   * A service that handles resume parsing.
-   * 
- */ - public static final class ResumeServiceStub extends io.grpc.stub.AbstractStub { - private ResumeServiceStub(io.grpc.Channel channel) { - super(channel); - } - - private ResumeServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ResumeServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ResumeServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
-     * API attempts to fill out the following profile fields if present within the
-     * resume:
-     * * personNames
-     * * addresses
-     * * emailAddress
-     * * phoneNumbers
-     * * personalUris
-     * * employmentRecords
-     * * educationRecords
-     * * skills
-     * Note that some attributes in these fields may not be populated if they're
-     * not present within the resume or unrecognizable by the resume parser.
-     * This API does not save the resume or profile. To create a profile from this
-     * resume, clients need to call the CreateProfile method again with the
-     * profile returned.
-     * The following list of formats are supported:
-     * * PDF
-     * * TXT
-     * * DOC
-     * * RTF
-     * * DOCX
-     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
-     * otherwise an error is thrown)
-     * 
- */ - public void parseResume( - com.google.cloud.talent.v4beta1.ParseResumeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getParseResumeMethodHelper(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * A service that handles resume parsing.
-   * 
- */ - public static final class ResumeServiceBlockingStub - extends io.grpc.stub.AbstractStub { - private ResumeServiceBlockingStub(io.grpc.Channel channel) { - super(channel); - } - - private ResumeServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ResumeServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ResumeServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
-     * API attempts to fill out the following profile fields if present within the
-     * resume:
-     * * personNames
-     * * addresses
-     * * emailAddress
-     * * phoneNumbers
-     * * personalUris
-     * * employmentRecords
-     * * educationRecords
-     * * skills
-     * Note that some attributes in these fields may not be populated if they're
-     * not present within the resume or unrecognizable by the resume parser.
-     * This API does not save the resume or profile. To create a profile from this
-     * resume, clients need to call the CreateProfile method again with the
-     * profile returned.
-     * The following list of formats are supported:
-     * * PDF
-     * * TXT
-     * * DOC
-     * * RTF
-     * * DOCX
-     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
-     * otherwise an error is thrown)
-     * 
- */ - public com.google.cloud.talent.v4beta1.ParseResumeResponse parseResume( - com.google.cloud.talent.v4beta1.ParseResumeRequest request) { - return blockingUnaryCall( - getChannel(), getParseResumeMethodHelper(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * A service that handles resume parsing.
-   * 
- */ - public static final class ResumeServiceFutureStub - extends io.grpc.stub.AbstractStub { - private ResumeServiceFutureStub(io.grpc.Channel channel) { - super(channel); - } - - private ResumeServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ResumeServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ResumeServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The
-     * API attempts to fill out the following profile fields if present within the
-     * resume:
-     * * personNames
-     * * addresses
-     * * emailAddress
-     * * phoneNumbers
-     * * personalUris
-     * * employmentRecords
-     * * educationRecords
-     * * skills
-     * Note that some attributes in these fields may not be populated if they're
-     * not present within the resume or unrecognizable by the resume parser.
-     * This API does not save the resume or profile. To create a profile from this
-     * resume, clients need to call the CreateProfile method again with the
-     * profile returned.
-     * The following list of formats are supported:
-     * * PDF
-     * * TXT
-     * * DOC
-     * * RTF
-     * * DOCX
-     * * PNG (only when [ParseResumeRequest.enable_ocr][] is set to `true`,
-     * otherwise an error is thrown)
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.talent.v4beta1.ParseResumeResponse> - parseResume(com.google.cloud.talent.v4beta1.ParseResumeRequest request) { - return futureUnaryCall( - getChannel().newCall(getParseResumeMethodHelper(), getCallOptions()), request); - } - } - - private static final int METHODID_PARSE_RESUME = 0; - - 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 ResumeServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ResumeServiceImplBase 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_PARSE_RESUME: - serviceImpl.parseResume( - (com.google.cloud.talent.v4beta1.ParseResumeRequest) 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 ResumeServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ResumeServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ResumeService"); - } - } - - private static final class ResumeServiceFileDescriptorSupplier - extends ResumeServiceBaseDescriptorSupplier { - ResumeServiceFileDescriptorSupplier() {} - } - - private static final class ResumeServiceMethodDescriptorSupplier - extends ResumeServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ResumeServiceMethodDescriptorSupplier(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 (ResumeServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ResumeServiceFileDescriptorSupplier()) - .addMethod(getParseResumeMethodHelper()) - .build(); - } - } - } - return result; - } -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java index c2e59e26a78d..c4fb4095393d 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java @@ -82,14 +82,14 @@ private Address( case 34: { com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isCurrent_ != null) { - subBuilder = isCurrent_.toBuilder(); + if (current_ != null) { + subBuilder = current_.toBuilder(); } - isCurrent_ = + current_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(isCurrent_); - isCurrent_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(current_); + current_ = subBuilder.buildPartial(); } break; @@ -310,8 +310,8 @@ public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { return com.google.type.PostalAddress.getDefaultInstance(); } - public static final int IS_CURRENT_FIELD_NUMBER = 4; - private com.google.protobuf.BoolValue isCurrent_; + public static final int CURRENT_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue current_; /** * * @@ -320,10 +320,10 @@ public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public boolean hasIsCurrent() { - return isCurrent_ != null; + public boolean hasCurrent() { + return current_ != null; } /** * @@ -333,10 +333,10 @@ public boolean hasIsCurrent() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public com.google.protobuf.BoolValue getIsCurrent() { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + public com.google.protobuf.BoolValue getCurrent() { + return current_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : current_; } /** * @@ -346,10 +346,10 @@ public com.google.protobuf.BoolValue getIsCurrent() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { - return getIsCurrent(); + public com.google.protobuf.BoolValueOrBuilder getCurrentOrBuilder() { + return getCurrent(); } private byte memoizedIsInitialized = -1; @@ -377,8 +377,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (addressCase_ == 3) { output.writeMessage(3, (com.google.type.PostalAddress) address_); } - if (isCurrent_ != null) { - output.writeMessage(4, getIsCurrent()); + if (current_ != null) { + output.writeMessage(4, getCurrent()); } unknownFields.writeTo(output); } @@ -402,8 +402,8 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.type.PostalAddress) address_); } - if (isCurrent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getIsCurrent()); + if (current_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCurrent()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -422,9 +422,9 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && usage_ == other.usage_; - result = result && (hasIsCurrent() == other.hasIsCurrent()); - if (hasIsCurrent()) { - result = result && getIsCurrent().equals(other.getIsCurrent()); + result = result && (hasCurrent() == other.hasCurrent()); + if (hasCurrent()) { + result = result && getCurrent().equals(other.getCurrent()); } result = result && getAddressCase().equals(other.getAddressCase()); if (!result) return false; @@ -451,9 +451,9 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USAGE_FIELD_NUMBER; hash = (53 * hash) + usage_; - if (hasIsCurrent()) { - hash = (37 * hash) + IS_CURRENT_FIELD_NUMBER; - hash = (53 * hash) + getIsCurrent().hashCode(); + if (hasCurrent()) { + hash = (37 * hash) + CURRENT_FIELD_NUMBER; + hash = (53 * hash) + getCurrent().hashCode(); } switch (addressCase_) { case 2: @@ -614,11 +614,11 @@ public Builder clear() { super.clear(); usage_ = 0; - if (isCurrentBuilder_ == null) { - isCurrent_ = null; + if (currentBuilder_ == null) { + current_ = null; } else { - isCurrent_ = null; - isCurrentBuilder_ = null; + current_ = null; + currentBuilder_ = null; } addressCase_ = 0; address_ = null; @@ -660,10 +660,10 @@ public com.google.cloud.talent.v4beta1.Address buildPartial() { result.address_ = structuredAddressBuilder_.build(); } } - if (isCurrentBuilder_ == null) { - result.isCurrent_ = isCurrent_; + if (currentBuilder_ == null) { + result.current_ = current_; } else { - result.isCurrent_ = isCurrentBuilder_.build(); + result.current_ = currentBuilder_.build(); } result.addressCase_ = addressCase_; onBuilt(); @@ -718,8 +718,8 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.Address other) { if (other.usage_ != 0) { setUsageValue(other.getUsageValue()); } - if (other.hasIsCurrent()) { - mergeIsCurrent(other.getIsCurrent()); + if (other.hasCurrent()) { + mergeCurrent(other.getCurrent()); } switch (other.getAddressCase()) { case UNSTRUCTURED_ADDRESS: @@ -1205,12 +1205,12 @@ public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { return structuredAddressBuilder_; } - private com.google.protobuf.BoolValue isCurrent_ = null; + private com.google.protobuf.BoolValue current_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - isCurrentBuilder_; + currentBuilder_; /** * * @@ -1219,10 +1219,10 @@ public com.google.type.PostalAddressOrBuilder getStructuredAddressOrBuilder() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public boolean hasIsCurrent() { - return isCurrentBuilder_ != null || isCurrent_ != null; + public boolean hasCurrent() { + return currentBuilder_ != null || current_ != null; } /** * @@ -1232,13 +1232,13 @@ public boolean hasIsCurrent() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public com.google.protobuf.BoolValue getIsCurrent() { - if (isCurrentBuilder_ == null) { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + public com.google.protobuf.BoolValue getCurrent() { + if (currentBuilder_ == null) { + return current_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : current_; } else { - return isCurrentBuilder_.getMessage(); + return currentBuilder_.getMessage(); } } /** @@ -1249,17 +1249,17 @@ public com.google.protobuf.BoolValue getIsCurrent() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public Builder setIsCurrent(com.google.protobuf.BoolValue value) { - if (isCurrentBuilder_ == null) { + public Builder setCurrent(com.google.protobuf.BoolValue value) { + if (currentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - isCurrent_ = value; + current_ = value; onChanged(); } else { - isCurrentBuilder_.setMessage(value); + currentBuilder_.setMessage(value); } return this; @@ -1272,14 +1272,14 @@ public Builder setIsCurrent(com.google.protobuf.BoolValue value) { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isCurrentBuilder_ == null) { - isCurrent_ = builderForValue.build(); + public Builder setCurrent(com.google.protobuf.BoolValue.Builder builderForValue) { + if (currentBuilder_ == null) { + current_ = builderForValue.build(); onChanged(); } else { - isCurrentBuilder_.setMessage(builderForValue.build()); + currentBuilder_.setMessage(builderForValue.build()); } return this; @@ -1292,19 +1292,19 @@ public Builder setIsCurrent(com.google.protobuf.BoolValue.Builder builderForValu * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { - if (isCurrentBuilder_ == null) { - if (isCurrent_ != null) { - isCurrent_ = - com.google.protobuf.BoolValue.newBuilder(isCurrent_).mergeFrom(value).buildPartial(); + 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 { - isCurrent_ = value; + current_ = value; } onChanged(); } else { - isCurrentBuilder_.mergeFrom(value); + currentBuilder_.mergeFrom(value); } return this; @@ -1317,15 +1317,15 @@ public Builder mergeIsCurrent(com.google.protobuf.BoolValue value) { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public Builder clearIsCurrent() { - if (isCurrentBuilder_ == null) { - isCurrent_ = null; + public Builder clearCurrent() { + if (currentBuilder_ == null) { + current_ = null; onChanged(); } else { - isCurrent_ = null; - isCurrentBuilder_ = null; + current_ = null; + currentBuilder_ = null; } return this; @@ -1338,12 +1338,12 @@ public Builder clearIsCurrent() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { + public com.google.protobuf.BoolValue.Builder getCurrentBuilder() { onChanged(); - return getIsCurrentFieldBuilder().getBuilder(); + return getCurrentFieldBuilder().getBuilder(); } /** * @@ -1353,13 +1353,13 @@ public com.google.protobuf.BoolValue.Builder getIsCurrentBuilder() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { - if (isCurrentBuilder_ != null) { - return isCurrentBuilder_.getMessageOrBuilder(); + public com.google.protobuf.BoolValueOrBuilder getCurrentOrBuilder() { + if (currentBuilder_ != null) { + return currentBuilder_.getMessageOrBuilder(); } else { - return isCurrent_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCurrent_; + return current_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : current_; } } /** @@ -1370,23 +1370,23 @@ public com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder() { * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getIsCurrentFieldBuilder() { - if (isCurrentBuilder_ == null) { - isCurrentBuilder_ = + getCurrentFieldBuilder() { + if (currentBuilder_ == null) { + currentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getIsCurrent(), getParentForChildren(), isClean()); - isCurrent_ = null; + getCurrent(), getParentForChildren(), isClean()); + current_ = null; } - return isCurrentBuilder_; + return currentBuilder_; } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java index b802c5c1fdfa..0aee557f0b18 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java @@ -105,9 +105,9 @@ public interface AddressOrBuilder * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - boolean hasIsCurrent(); + boolean hasCurrent(); /** * * @@ -116,9 +116,9 @@ public interface AddressOrBuilder * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - com.google.protobuf.BoolValue getIsCurrent(); + com.google.protobuf.BoolValue getCurrent(); /** * * @@ -127,9 +127,9 @@ public interface AddressOrBuilder * Indicates if it's the person's current address. * * - * .google.protobuf.BoolValue is_current = 4; + * .google.protobuf.BoolValue current = 4; */ - com.google.protobuf.BoolValueOrBuilder getIsCurrentOrBuilder(); + com.google.protobuf.BoolValueOrBuilder getCurrentOrBuilder(); public com.google.cloud.talent.v4beta1.Address.AddressCase getAddressCase(); } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java new file mode 100644 index 000000000000..e26b4662f4b0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java @@ -0,0 +1,4595 @@ +// 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 + 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_ & 0x00000100) == 0x00000100)) { + interviews_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + 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 (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + 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; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ApplicationState valueOf(int value) { + return forNumber(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() { + 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; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static ApplicationStage valueOf(int value) { + return forNumber(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() { + 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) + } + + private int bitField0_; + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+   * 
+ * + * string name = 1; + */ + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+   * 
+ * + * string name = 1; + */ + 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
+   * recruiter.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 31; + */ + 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
+   * recruiter.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 31; + */ + 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_; + /** + * + * + *
+   * Required.
+   * Resource name of the candidate of this application.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string profile = 2; + */ + 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; + } + } + /** + * + * + *
+   * Required.
+   * Resource name of the candidate of this application.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string profile = 2; + */ + 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_; + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the job which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/bar".
+   * 
+ * + * string job = 4; + */ + 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; + } + } + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the job which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/bar".
+   * 
+ * + * string job = 4; + */ + 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_; + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the company which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/companies/{company_id}",
+   * for example, "projects/api-test-project/companies/foo".
+   * 
+ * + * string company = 5; + */ + 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; + } + } + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the company which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/companies/{company_id}",
+   * for example, "projects/api-test-project/companies/foo".
+   * 
+ * + * string company = 5; + */ + 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_; + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 7; + */ + public boolean hasApplicationDate() { + return applicationDate_ != null; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 7; + */ + public com.google.type.Date getApplicationDate() { + return applicationDate_ == null ? com.google.type.Date.getDefaultInstance() : applicationDate_; + } + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 7; + */ + 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; + */ + 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; + */ + 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_; + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + 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_; + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + public java.util.List getInterviewsList() { + return interviews_; + } + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + public java.util.List + getInterviewsOrBuilderList() { + return interviews_; + } + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + public int getInterviewsCount() { + return interviews_.size(); + } + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + public com.google.cloud.talent.v4beta1.Interview getInterviews(int index) { + return interviews_.get(index); + } + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + 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_; + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + public boolean hasReferral() { + return referral_ != null; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + public com.google.protobuf.BoolValue getReferral() { + return referral_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : referral_; + } + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + 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; + */ + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Required.
+   * Reflects the time that the application was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 19; + */ + 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; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 20; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int OUTCOME_NOTES_FIELD_NUMBER = 21; + private volatile java.lang.Object outcomeNotes_; + /** + * + * + *
+   * Optional.
+   * 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; + */ + 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; + } + } + /** + * + * + *
+   * Optional.
+   * 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; + */ + 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_; + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + public int getOutcomeValue() { + return outcome_; + } + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getProfileBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profile_); + } + if (!getJobBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, job_); + } + if (!getCompanyBytes().isEmpty()) { + 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 (!getOutcomeNotesBytes().isEmpty()) { + 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 (!getJobTitleSnippetBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, jobTitleSnippet_); + } + if (!getExternalIdBytes().isEmpty()) { + 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 (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getProfileBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, profile_); + } + if (!getJobBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, job_); + } + if (!getCompanyBytes().isEmpty()) { + 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 (!getOutcomeNotesBytes().isEmpty()) { + 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 (!getJobTitleSnippetBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, jobTitleSnippet_); + } + if (!getExternalIdBytes().isEmpty()) { + 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; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && getExternalId().equals(other.getExternalId()); + result = result && getProfile().equals(other.getProfile()); + result = result && getJob().equals(other.getJob()); + result = result && getCompany().equals(other.getCompany()); + result = result && (hasApplicationDate() == other.hasApplicationDate()); + if (hasApplicationDate()) { + result = result && getApplicationDate().equals(other.getApplicationDate()); + } + result = result && stage_ == other.stage_; + result = result && state_ == other.state_; + result = result && getInterviewsList().equals(other.getInterviewsList()); + result = result && (hasReferral() == other.hasReferral()); + if (hasReferral()) { + result = result && getReferral().equals(other.getReferral()); + } + result = result && (hasCreateTime() == other.hasCreateTime()); + if (hasCreateTime()) { + result = result && getCreateTime().equals(other.getCreateTime()); + } + result = result && (hasUpdateTime() == other.hasUpdateTime()); + if (hasUpdateTime()) { + result = result && getUpdateTime().equals(other.getUpdateTime()); + } + result = result && getOutcomeNotes().equals(other.getOutcomeNotes()); + result = result && outcome_ == other.outcome_; + result = result && (hasIsMatch() == other.hasIsMatch()); + if (hasIsMatch()) { + result = result && getIsMatch().equals(other.getIsMatch()); + } + result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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_ & ~0x00000100); + } 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_; + int to_bitField0_ = 0; + 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_ & 0x00000100) == 0x00000100)) { + interviews_ = java.util.Collections.unmodifiableList(interviews_); + bitField0_ = (bitField0_ & ~0x00000100); + } + 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_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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_ & ~0x00000100); + } else { + ensureInterviewsIsMutable(); + interviews_.addAll(other.interviews_); + } + onChanged(); + } + } else { + if (!other.interviews_.isEmpty()) { + if (interviewsBuilder_.isEmpty()) { + interviewsBuilder_.dispose(); + interviewsBuilder_ = null; + interviews_ = other.interviews_; + bitField0_ = (bitField0_ & ~0x00000100); + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+     * 
+ * + * string name = 1; + */ + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+     * 
+ * + * string name = 1; + */ + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+     * 
+ * + * string name = 1; + */ + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+     * 
+ * + * string name = 1; + */ + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+     * 
+ * + * string name = 1; + */ + 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
+     * recruiter.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 31; + */ + 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
+     * recruiter.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 31; + */ + 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
+     * recruiter.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 31; + */ + 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
+     * recruiter.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 31; + */ + public Builder clearExternalId() { + + externalId_ = getDefaultInstance().getExternalId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Client side application identifier, used to uniquely identify the
+     * recruiter.
+     * The maximum number of allowed characters is 255.
+     * 
+ * + * string external_id = 31; + */ + 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_ = ""; + /** + * + * + *
+     * Required.
+     * Resource name of the candidate of this application.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string profile = 2; + */ + 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; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the candidate of this application.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string profile = 2; + */ + 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; + } + } + /** + * + * + *
+     * Required.
+     * Resource name of the candidate of this application.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string profile = 2; + */ + public Builder setProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + profile_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the candidate of this application.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string profile = 2; + */ + public Builder clearProfile() { + + profile_ = getDefaultInstance().getProfile(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required.
+     * Resource name of the candidate of this application.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+     * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+     * 
+ * + * string profile = 2; + */ + 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_ = ""; + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the job which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/bar".
+     * 
+ * + * string job = 4; + */ + 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; + } + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the job which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/bar".
+     * 
+ * + * string job = 4; + */ + 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; + } + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the job which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/bar".
+     * 
+ * + * string job = 4; + */ + public Builder setJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + job_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the job which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/bar".
+     * 
+ * + * string job = 4; + */ + public Builder clearJob() { + + job_ = getDefaultInstance().getJob(); + onChanged(); + return this; + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the job which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/jobs/{job_id}",
+     * for example, "projects/api-test-project/jobs/bar".
+     * 
+ * + * string job = 4; + */ + 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_ = ""; + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the company which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/companies/{company_id}",
+     * for example, "projects/api-test-project/companies/foo".
+     * 
+ * + * string company = 5; + */ + 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; + } + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the company which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/companies/{company_id}",
+     * for example, "projects/api-test-project/companies/foo".
+     * 
+ * + * string company = 5; + */ + 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; + } + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the company which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/companies/{company_id}",
+     * for example, "projects/api-test-project/companies/foo".
+     * 
+ * + * string company = 5; + */ + public Builder setCompany(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + company_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the company which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/companies/{company_id}",
+     * for example, "projects/api-test-project/companies/foo".
+     * 
+ * + * string company = 5; + */ + public Builder clearCompany() { + + company_ = getDefaultInstance().getCompany(); + onChanged(); + return this; + } + /** + * + * + *
+     * One of either a job or a company is required.
+     * Resource name of the company which the candidate applied for.
+     * The format is
+     * "projects/{project_id}/companies/{company_id}",
+     * for example, "projects/api-test-project/companies/foo".
+     * 
+ * + * string company = 5; + */ + 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_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + applicationDateBuilder_; + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 7; + */ + public boolean hasApplicationDate() { + return applicationDateBuilder_ != null || applicationDate_ != null; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 7; + */ + public com.google.type.Date getApplicationDate() { + if (applicationDateBuilder_ == null) { + return applicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : applicationDate_; + } else { + return applicationDateBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * The application date.
+     * 
+ * + * .google.type.Date application_date = 7; + */ + public com.google.type.Date.Builder getApplicationDateBuilder() { + + onChanged(); + return getApplicationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * 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_; + } + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + public Builder clearStage() { + + stage_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + public Builder setStateValue(int value) { + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + 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; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + public Builder setState(com.google.cloud.talent.v4beta1.Application.ApplicationState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The application state.
+     * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private java.util.List interviews_ = + java.util.Collections.emptyList(); + + private void ensureInterviewsIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + interviews_ = + new java.util.ArrayList(interviews_); + bitField0_ |= 0x00000100; + } + } + + 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_; + + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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(); + } + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + public int getInterviewsCount() { + if (interviewsBuilder_ == null) { + return interviews_.size(); + } else { + return interviewsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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); + } + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + public Builder clearInterviews() { + if (interviewsBuilder_ == null) { + interviews_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + interviewsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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; + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + public com.google.cloud.talent.v4beta1.Interview.Builder getInterviewsBuilder(int index) { + return getInterviewsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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); + } + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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_); + } + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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()); + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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()); + } + /** + * + * + *
+     * Optional.
+     * All interviews (screen, onsite, etc) conducted as part of this application
+     * (includes details such as user conducting the interview, timestamp,
+     * feedback, etc).
+     * 
+ * + * 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_ & 0x00000100) == 0x00000100), + getParentForChildren(), + isClean()); + interviews_ = null; + } + return interviewsBuilder_; + } + + private com.google.protobuf.BoolValue referral_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + referralBuilder_; + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + public boolean hasReferral() { + return referralBuilder_ != null || referral_ != null; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + public com.google.protobuf.BoolValue getReferral() { + if (referralBuilder_ == null) { + return referral_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : referral_; + } else { + return referralBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * If the candidate is referred by a employee.
+     * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + public com.google.protobuf.BoolValue.Builder getReferralBuilder() { + + onChanged(); + return getReferralFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * 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_; + } + } + /** + * + * + *
+     * Optional.
+     * 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_ = null; + 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; + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Required.
+     * Reflects the time that the application was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 19; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * The last update timestamp.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional.
+     * 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_; + } + } + /** + * + * + *
+     * Optional.
+     * 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_ = ""; + /** + * + * + *
+     * Optional.
+     * 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; + */ + 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; + } + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + 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; + } + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + public Builder setOutcomeNotes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + outcomeNotes_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + public Builder clearOutcomeNotes() { + + outcomeNotes_ = getDefaultInstance().getOutcomeNotes(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + 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; + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + public int getOutcomeValue() { + return outcome_; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + public Builder setOutcomeValue(int value) { + outcome_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + 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; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + public Builder setOutcome(com.google.cloud.talent.v4beta1.Outcome value) { + if (value == null) { + throw new NullPointerException(); + } + + outcome_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * Outcome positiveness shows how positive the outcome is.
+     * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + public Builder clearOutcome() { + + outcome_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue isMatch_ = null; + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java index f3ca6aafe601..8fb0fe0102e2 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java @@ -10,7 +10,7 @@ * Input only. * Application Date Range Filter. * The API matches profiles with - * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date] + * [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] @@ -395,7 +395,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Input only. * Application Date Range Filter. * The API matches profiles with - * [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date] + * [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] diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java index c5b2ed70d139..9fc076a5f651 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java @@ -24,7 +24,7 @@ private ApplicationJobFilter(com.google.protobuf.GeneratedMessageV3.Builder b } private ApplicationJobFilter() { - jobName_ = ""; + job_ = ""; jobRequisitionId_ = ""; jobTitle_ = ""; negated_ = false; @@ -58,7 +58,7 @@ private ApplicationJobFilter( { java.lang.String s = input.readStringRequireUtf8(); - jobName_ = s; + job_ = s; break; } case 18: @@ -114,8 +114,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.talent.v4beta1.ApplicationJobFilter.Builder.class); } - public static final int JOB_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object jobName_; + public static final int JOB_FIELD_NUMBER = 1; + private volatile java.lang.Object job_; /** * * @@ -123,20 +123,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - public java.lang.String getJobName() { - java.lang.Object ref = jobName_; + 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(); - jobName_ = s; + job_ = s; return s; } } @@ -147,18 +146,17 @@ public java.lang.String getJobName() { * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - public com.google.protobuf.ByteString getJobNameBytes() { - java.lang.Object ref = jobName_; + 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); - jobName_ = b; + job_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -174,8 +172,7 @@ public com.google.protobuf.ByteString getJobNameBytes() { * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -198,8 +195,7 @@ public java.lang.String getJobRequisitionId() { * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -225,8 +221,7 @@ public com.google.protobuf.ByteString getJobRequisitionIdBytes() { * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -249,8 +244,7 @@ public java.lang.String getJobTitle() { * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -275,8 +269,8 @@ public com.google.protobuf.ByteString getJobTitleBytes() { *
    * Optional.
    * If true, the API excludes all profiles with any
-   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
-   * matching the filters.
+   * [Application.job][google.cloud.talent.v4beta1.Application.job] matching the
+   * filters.
    * 
* * bool negated = 4; @@ -299,8 +293,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getJobNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobName_); + if (!getJobBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, job_); } if (!getJobRequisitionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobRequisitionId_); @@ -320,8 +314,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getJobNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobName_); + if (!getJobBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, job_); } if (!getJobRequisitionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobRequisitionId_); @@ -349,7 +343,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.talent.v4beta1.ApplicationJobFilter) obj; boolean result = true; - result = result && getJobName().equals(other.getJobName()); + result = result && getJob().equals(other.getJob()); result = result && getJobRequisitionId().equals(other.getJobRequisitionId()); result = result && getJobTitle().equals(other.getJobTitle()); result = result && (getNegated() == other.getNegated()); @@ -364,8 +358,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + JOB_NAME_FIELD_NUMBER; - hash = (53 * hash) + getJobName().hashCode(); + hash = (37 * hash) + JOB_FIELD_NUMBER; + hash = (53 * hash) + getJob().hashCode(); hash = (37 * hash) + JOB_REQUISITION_ID_FIELD_NUMBER; hash = (53 * hash) + getJobRequisitionId().hashCode(); hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; @@ -518,7 +512,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - jobName_ = ""; + job_ = ""; jobRequisitionId_ = ""; @@ -553,7 +547,7 @@ public com.google.cloud.talent.v4beta1.ApplicationJobFilter build() { public com.google.cloud.talent.v4beta1.ApplicationJobFilter buildPartial() { com.google.cloud.talent.v4beta1.ApplicationJobFilter result = new com.google.cloud.talent.v4beta1.ApplicationJobFilter(this); - result.jobName_ = jobName_; + result.job_ = job_; result.jobRequisitionId_ = jobRequisitionId_; result.jobTitle_ = jobTitle_; result.negated_ = negated_; @@ -607,8 +601,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationJobFilter other) { if (other == com.google.cloud.talent.v4beta1.ApplicationJobFilter.getDefaultInstance()) return this; - if (!other.getJobName().isEmpty()) { - jobName_ = other.jobName_; + if (!other.getJob().isEmpty()) { + job_ = other.job_; onChanged(); } if (!other.getJobRequisitionId().isEmpty()) { @@ -652,7 +646,7 @@ public Builder mergeFrom( return this; } - private java.lang.Object jobName_ = ""; + private java.lang.Object job_ = ""; /** * * @@ -660,18 +654,17 @@ public Builder mergeFrom( * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - public java.lang.String getJobName() { - java.lang.Object ref = jobName_; + 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(); - jobName_ = s; + job_ = s; return s; } else { return (java.lang.String) ref; @@ -684,18 +677,17 @@ public java.lang.String getJobName() { * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - public com.google.protobuf.ByteString getJobNameBytes() { - java.lang.Object ref = jobName_; + 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); - jobName_ = b; + job_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -708,18 +700,17 @@ public com.google.protobuf.ByteString getJobNameBytes() { * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - public Builder setJobName(java.lang.String value) { + public Builder setJob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - jobName_ = value; + job_ = value; onChanged(); return this; } @@ -730,15 +721,14 @@ public Builder setJobName(java.lang.String value) { * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - public Builder clearJobName() { + public Builder clearJob() { - jobName_ = getDefaultInstance().getJobName(); + job_ = getDefaultInstance().getJob(); onChanged(); return this; } @@ -749,19 +739,18 @@ public Builder clearJobName() { * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - public Builder setJobNameBytes(com.google.protobuf.ByteString value) { + public Builder setJobBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - jobName_ = value; + job_ = value; onChanged(); return this; } @@ -774,8 +763,7 @@ public Builder setJobNameBytes(com.google.protobuf.ByteString value) { * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -798,8 +786,7 @@ public java.lang.String getJobRequisitionId() { * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -822,8 +809,7 @@ public com.google.protobuf.ByteString getJobRequisitionIdBytes() { * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -844,8 +830,7 @@ public Builder setJobRequisitionId(java.lang.String value) { * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -863,8 +848,7 @@ public Builder clearJobRequisitionId() { * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -888,8 +872,7 @@ public Builder setJobRequisitionIdBytes(com.google.protobuf.ByteString value) { * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -912,8 +895,7 @@ public java.lang.String getJobTitle() { * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -936,8 +918,7 @@ public com.google.protobuf.ByteString getJobTitleBytes() { * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -958,8 +939,7 @@ public Builder setJobTitle(java.lang.String value) { * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -977,8 +957,7 @@ public Builder clearJobTitle() { * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -1001,8 +980,8 @@ public Builder setJobTitleBytes(com.google.protobuf.ByteString value) { *
      * Optional.
      * If true, the API excludes all profiles with any
-     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
-     * matching the filters.
+     * [Application.job][google.cloud.talent.v4beta1.Application.job] matching the
+     * filters.
      * 
* * bool negated = 4; @@ -1016,8 +995,8 @@ public boolean getNegated() { *
      * Optional.
      * If true, the API excludes all profiles with any
-     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
-     * matching the filters.
+     * [Application.job][google.cloud.talent.v4beta1.Application.job] matching the
+     * filters.
      * 
* * bool negated = 4; @@ -1034,8 +1013,8 @@ public Builder setNegated(boolean value) { *
      * Optional.
      * If true, the API excludes all profiles with any
-     * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
-     * matching the filters.
+     * [Application.job][google.cloud.talent.v4beta1.Application.job] matching the
+     * filters.
      * 
* * bool negated = 4; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java index c923b7e12bc8..f10c855a31f3 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java @@ -15,13 +15,12 @@ public interface ApplicationJobFilterOrBuilder * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - java.lang.String getJobName(); + java.lang.String getJob(); /** * * @@ -29,13 +28,12 @@ public interface ApplicationJobFilterOrBuilder * Optional. * The job resource name in the application. The API does an exact match on * the [Job.name][google.cloud.talent.v4beta1.Job.name] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * - * string job_name = 1; + * string job = 1; */ - com.google.protobuf.ByteString getJobNameBytes(); + com.google.protobuf.ByteString getJobBytes(); /** * @@ -44,8 +42,7 @@ public interface ApplicationJobFilterOrBuilder * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -58,8 +55,7 @@ public interface ApplicationJobFilterOrBuilder * Optional. * The job requisition id in the application. The API does an exact match on * the [Job.requisistion_id][] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_requisition_id = 2; @@ -73,8 +69,7 @@ public interface ApplicationJobFilterOrBuilder * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -87,8 +82,7 @@ public interface ApplicationJobFilterOrBuilder * Optional. * The job title in the application. The API does an exact match on the * [Job.title][google.cloud.talent.v4beta1.Job.title] of - * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - * profiles. + * [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. * * * string job_title = 3; @@ -101,8 +95,8 @@ public interface ApplicationJobFilterOrBuilder *
    * Optional.
    * If true, the API excludes all profiles with any
-   * [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job]
-   * matching the filters.
+   * [Application.job][google.cloud.talent.v4beta1.Application.job] matching the
+   * filters.
    * 
* * bool negated = 4; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java index 9bdf0518b7aa..f9c626c60ef5 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilter.java @@ -107,8 +107,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -131,8 +130,7 @@ public java.lang.String getLastStage() { * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -157,8 +155,8 @@ public com.google.protobuf.ByteString getLastStageBytes() { *
    * Optional.
    * If true, The API excludes all candidates with any
-   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
-   * matching the last stage specified in the filter.
+   * [Application.last_stage][] matching the last stage specified in the
+   * filter.
    * 
* * bool negated = 2; @@ -511,8 +509,7 @@ public Builder mergeFrom( * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -535,8 +532,7 @@ public java.lang.String getLastStage() { * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -559,8 +555,7 @@ public com.google.protobuf.ByteString getLastStageBytes() { * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -581,8 +576,7 @@ public Builder setLastStage(java.lang.String value) { * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -600,8 +594,7 @@ public Builder clearLastStage() { * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -624,8 +617,8 @@ public Builder setLastStageBytes(com.google.protobuf.ByteString value) { *
      * Optional.
      * If true, The API excludes all candidates with any
-     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
-     * matching the last stage specified in the filter.
+     * [Application.last_stage][] matching the last stage specified in the
+     * filter.
      * 
* * bool negated = 2; @@ -639,8 +632,8 @@ public boolean getNegated() { *
      * Optional.
      * If true, The API excludes all candidates with any
-     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
-     * matching the last stage specified in the filter.
+     * [Application.last_stage][] matching the last stage specified in the
+     * filter.
      * 
* * bool negated = 2; @@ -657,8 +650,8 @@ public Builder setNegated(boolean value) { *
      * Optional.
      * If true, The API excludes all candidates with any
-     * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
-     * matching the last stage specified in the filter.
+     * [Application.last_stage][] matching the last stage specified in the
+     * filter.
      * 
* * bool negated = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java index 5c20e2464c28..0258ccdeaf39 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationLastStageFilterOrBuilder.java @@ -15,8 +15,7 @@ public interface ApplicationLastStageFilterOrBuilder * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -29,8 +28,7 @@ public interface ApplicationLastStageFilterOrBuilder * Required. * User entered or selected last stage the candidate reached in the * application. The API does an exact match on the - * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - * in profiles. + * [Application.last_stage][] in profiles. * * * string last_stage = 1; @@ -43,8 +41,8 @@ public interface ApplicationLastStageFilterOrBuilder *
    * Optional.
    * If true, The API excludes all candidates with any
-   * [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage]
-   * matching the last stage specified in the filter.
+   * [Application.last_stage][] matching the last stage specified in the
+   * filter.
    * 
* * bool negated = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java new file mode 100644 index 000000000000..793dd67c277a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java @@ -0,0 +1,241 @@ +/* + * Copyright 2018 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. + */ + +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ApplicationName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + 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; + + 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); + } + + 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 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 = + PATH_TEMPLATE.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 PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldMapBuilder.put("profile", profile); + fieldMapBuilder.put("application", application); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate( + "project", project, "tenant", tenant, "profile", profile, "application", application); + } + + /** Builder for ApplicationName. */ + public static class Builder { + + private String project; + private String tenant; + private String profile; + private String application; + + 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() {} + + private Builder(ApplicationName applicationName) { + project = applicationName.project; + tenant = applicationName.tenant; + profile = applicationName.profile; + application = applicationName.application; + } + + public ApplicationName build() { + return new ApplicationName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ApplicationName) { + ApplicationName that = (ApplicationName) o; + return (this.project.equals(that.project)) + && (this.tenant.equals(that.tenant)) + && (this.profile.equals(that.profile)) + && (this.application.equals(that.application)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + h *= 1000003; + h ^= profile.hashCode(); + h *= 1000003; + h ^= application.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java new file mode 100644 index 000000000000..1cad78738d27 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java @@ -0,0 +1,522 @@ +// 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+   * 
+ * + * string name = 1; + */ + 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/api-test-project/tenants/foo/profiles/bar/applications/baz".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required.
+   * Client side application identifier, used to uniquely identify the
+   * recruiter.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 31; + */ + java.lang.String getExternalId(); + /** + * + * + *
+   * Required.
+   * Client side application identifier, used to uniquely identify the
+   * recruiter.
+   * The maximum number of allowed characters is 255.
+   * 
+ * + * string external_id = 31; + */ + com.google.protobuf.ByteString getExternalIdBytes(); + + /** + * + * + *
+   * Required.
+   * Resource name of the candidate of this application.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string profile = 2; + */ + java.lang.String getProfile(); + /** + * + * + *
+   * Required.
+   * Resource name of the candidate of this application.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
+   * for example, "projects/api-test-project/tenants/foo/profiles/bar".
+   * 
+ * + * string profile = 2; + */ + com.google.protobuf.ByteString getProfileBytes(); + + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the job which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/bar".
+   * 
+ * + * string job = 4; + */ + java.lang.String getJob(); + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the job which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/jobs/{job_id}",
+   * for example, "projects/api-test-project/jobs/bar".
+   * 
+ * + * string job = 4; + */ + com.google.protobuf.ByteString getJobBytes(); + + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the company which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/companies/{company_id}",
+   * for example, "projects/api-test-project/companies/foo".
+   * 
+ * + * string company = 5; + */ + java.lang.String getCompany(); + /** + * + * + *
+   * One of either a job or a company is required.
+   * Resource name of the company which the candidate applied for.
+   * The format is
+   * "projects/{project_id}/companies/{company_id}",
+   * for example, "projects/api-test-project/companies/foo".
+   * 
+ * + * string company = 5; + */ + com.google.protobuf.ByteString getCompanyBytes(); + + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 7; + */ + boolean hasApplicationDate(); + /** + * + * + *
+   * Optional.
+   * The application date.
+   * 
+ * + * .google.type.Date application_date = 7; + */ + com.google.type.Date getApplicationDate(); + /** + * + * + *
+   * Optional.
+   * 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; + */ + 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; + */ + com.google.cloud.talent.v4beta1.Application.ApplicationStage getStage(); + + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + int getStateValue(); + /** + * + * + *
+   * Optional.
+   * The application state.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application.ApplicationState state = 13; + */ + com.google.cloud.talent.v4beta1.Application.ApplicationState getState(); + + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + java.util.List getInterviewsList(); + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + com.google.cloud.talent.v4beta1.Interview getInterviews(int index); + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + int getInterviewsCount(); + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + java.util.List + getInterviewsOrBuilderList(); + /** + * + * + *
+   * Optional.
+   * All interviews (screen, onsite, etc) conducted as part of this application
+   * (includes details such as user conducting the interview, timestamp,
+   * feedback, etc).
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Interview interviews = 16; + */ + com.google.cloud.talent.v4beta1.InterviewOrBuilder getInterviewsOrBuilder(int index); + + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + boolean hasReferral(); + /** + * + * + *
+   * Optional.
+   * If the candidate is referred by a employee.
+   * 
+ * + * .google.protobuf.BoolValue referral = 18; + */ + com.google.protobuf.BoolValue getReferral(); + /** + * + * + *
+   * Optional.
+   * 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; + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Required.
+   * Reflects the time that the application was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 19; + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Required.
+   * Reflects the time that the application was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 19; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Optional.
+   * The last update timestamp.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 20; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional.
+   * 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; + */ + java.lang.String getOutcomeNotes(); + /** + * + * + *
+   * Optional.
+   * 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; + */ + com.google.protobuf.ByteString getOutcomeNotesBytes(); + + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + int getOutcomeValue(); + /** + * + * + *
+   * Optional.
+   * Outcome positiveness shows how positive the outcome is.
+   * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 22; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + com.google.protobuf.ByteString getJobTitleSnippetBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java similarity index 73% rename from google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java rename to google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java index a8cd281335c5..153e4237214e 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java @@ -8,24 +8,23 @@ * *
  * Input only.
- * Outcome Reason Filter.
+ * Outcome Notes Filter.
  * 
* - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter} */ -public final class ApplicationOutcomeReasonFilter extends com.google.protobuf.GeneratedMessageV3 +public final class ApplicationOutcomeNotesFilter extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) - ApplicationOutcomeReasonFilterOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) + ApplicationOutcomeNotesFilterOrBuilder { private static final long serialVersionUID = 0L; - // Use ApplicationOutcomeReasonFilter.newBuilder() to construct. - private ApplicationOutcomeReasonFilter( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ApplicationOutcomeNotesFilter.newBuilder() to construct. + private ApplicationOutcomeNotesFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ApplicationOutcomeReasonFilter() { - outcomeReason_ = ""; + private ApplicationOutcomeNotesFilter() { + outcomeNotes_ = ""; negated_ = false; } @@ -34,7 +33,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ApplicationOutcomeReasonFilter( + private ApplicationOutcomeNotesFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -57,7 +56,7 @@ private ApplicationOutcomeReasonFilter( { java.lang.String s = input.readStringRequireUtf8(); - outcomeReason_ = s; + outcomeNotes_ = s; break; } case 16: @@ -86,41 +85,41 @@ private ApplicationOutcomeReasonFilter( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + .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_ApplicationOutcomeReasonFilter_fieldAccessorTable + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder.class); } - public static final int OUTCOME_REASON_FIELD_NUMBER = 1; - private volatile java.lang.Object outcomeReason_; + 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
-   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
    * in profiles.
    * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - public java.lang.String getOutcomeReason() { - java.lang.Object ref = outcomeReason_; + 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(); - outcomeReason_ = s; + outcomeNotes_ = s; return s; } } @@ -130,18 +129,18 @@ public java.lang.String getOutcomeReason() { *
    * Required.
    * User entered or selected outcome reason. The API does an exact match on the
-   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
    * in profiles.
    * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - public com.google.protobuf.ByteString getOutcomeReasonBytes() { - java.lang.Object ref = outcomeReason_; + 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); - outcomeReason_ = b; + outcomeNotes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -156,7 +155,7 @@ public com.google.protobuf.ByteString getOutcomeReasonBytes() { *
    * Optional.
    * If true, The API excludes all candidates with any
-   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
    * matching the outcome reason specified in the filter.
    * 
* @@ -180,8 +179,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getOutcomeReasonBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outcomeReason_); + if (!getOutcomeNotesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outcomeNotes_); } if (negated_ != false) { output.writeBool(2, negated_); @@ -195,8 +194,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getOutcomeReasonBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outcomeReason_); + if (!getOutcomeNotesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outcomeNotes_); } if (negated_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); @@ -211,14 +210,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter)) { + if (!(obj instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter)) { return super.equals(obj); } - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter other = - (com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) obj; + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter other = + (com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) obj; boolean result = true; - result = result && getOutcomeReason().equals(other.getOutcomeReason()); + result = result && getOutcomeNotes().equals(other.getOutcomeNotes()); result = result && (getNegated() == other.getNegated()); result = result && unknownFields.equals(other.unknownFields); return result; @@ -231,8 +230,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; - hash = (53 * hash) + getOutcomeReason().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(); @@ -240,71 +239,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + 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.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseDelimitedFrom( + 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.ApplicationOutcomeReasonFilter parseDelimitedFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( + 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.ApplicationOutcomeReasonFilter parseFrom( + public static com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -322,7 +321,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter prototype) { + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -341,31 +340,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Input only.
-   * Outcome Reason Filter.
+   * Outcome Notes Filter.
    * 
* - * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter} + * 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.ApplicationOutcomeReasonFilter) - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder { + // @@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_ApplicationOutcomeReasonFilter_descriptor; + .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_ApplicationOutcomeReasonFilter_fieldAccessorTable + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.class, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder.class); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.class, + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder.class); } - // Construct using com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.newBuilder() + // Construct using com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -382,7 +381,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - outcomeReason_ = ""; + outcomeNotes_ = ""; negated_ = false; @@ -392,18 +391,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.talent.v4beta1.FiltersProto - .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor; + .internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor; } @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance(); + return com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter build() { - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = buildPartial(); + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter build() { + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -411,10 +410,10 @@ public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter build() { } @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter buildPartial() { - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter result = - new com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter(this); - result.outcomeReason_ = outcomeReason_; + 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; @@ -455,20 +454,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) { - return mergeFrom((com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) 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.ApplicationOutcomeReasonFilter other) { + public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter other) { if (other - == com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()) + == com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance()) return this; - if (!other.getOutcomeReason().isEmpty()) { - outcomeReason_ = other.outcomeReason_; + if (!other.getOutcomeNotes().isEmpty()) { + outcomeNotes_ = other.outcomeNotes_; onChanged(); } if (other.getNegated() != false) { @@ -489,12 +488,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter parsedMessage = null; + 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.ApplicationOutcomeReasonFilter) + (com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -505,25 +504,25 @@ public Builder mergeFrom( return this; } - private java.lang.Object outcomeReason_ = ""; + private java.lang.Object outcomeNotes_ = ""; /** * * *
      * Required.
      * User entered or selected outcome reason. The API does an exact match on the
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * in profiles.
      * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - public java.lang.String getOutcomeReason() { - java.lang.Object ref = outcomeReason_; + 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(); - outcomeReason_ = s; + outcomeNotes_ = s; return s; } else { return (java.lang.String) ref; @@ -535,18 +534,18 @@ public java.lang.String getOutcomeReason() { *
      * Required.
      * User entered or selected outcome reason. The API does an exact match on the
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * in profiles.
      * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - public com.google.protobuf.ByteString getOutcomeReasonBytes() { - java.lang.Object ref = outcomeReason_; + 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); - outcomeReason_ = b; + outcomeNotes_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -558,18 +557,18 @@ public com.google.protobuf.ByteString getOutcomeReasonBytes() { *
      * Required.
      * User entered or selected outcome reason. The API does an exact match on the
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * in profiles.
      * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - public Builder setOutcomeReason(java.lang.String value) { + public Builder setOutcomeNotes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - outcomeReason_ = value; + outcomeNotes_ = value; onChanged(); return this; } @@ -579,15 +578,15 @@ public Builder setOutcomeReason(java.lang.String value) { *
      * Required.
      * User entered or selected outcome reason. The API does an exact match on the
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * in profiles.
      * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - public Builder clearOutcomeReason() { + public Builder clearOutcomeNotes() { - outcomeReason_ = getDefaultInstance().getOutcomeReason(); + outcomeNotes_ = getDefaultInstance().getOutcomeNotes(); onChanged(); return this; } @@ -597,19 +596,19 @@ public Builder clearOutcomeReason() { *
      * Required.
      * User entered or selected outcome reason. The API does an exact match on the
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * in profiles.
      * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { + public Builder setOutcomeNotesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - outcomeReason_ = value; + outcomeNotes_ = value; onChanged(); return this; } @@ -621,7 +620,7 @@ public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { *
      * Optional.
      * If true, The API excludes all candidates with any
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * matching the outcome reason specified in the filter.
      * 
* @@ -636,7 +635,7 @@ public boolean getNegated() { *
      * Optional.
      * If true, The API excludes all candidates with any
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * matching the outcome reason specified in the filter.
      * 
* @@ -654,7 +653,7 @@ public Builder setNegated(boolean value) { *
      * Optional.
      * If true, The API excludes all candidates with any
-     * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+     * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
      * matching the outcome reason specified in the filter.
      * 
* @@ -678,45 +677,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) } - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) - private static final com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter + // @@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.ApplicationOutcomeReasonFilter(); + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter(); } - public static com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter - getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ApplicationOutcomeReasonFilter parsePartialFrom( + public ApplicationOutcomeNotesFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplicationOutcomeReasonFilter(input, extensionRegistry); + return new ApplicationOutcomeNotesFilter(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter - getDefaultInstanceForType() { + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java similarity index 59% rename from google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java rename to google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java index 8bed994d6efd..1ebb2ce50102 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeReasonFilterOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java @@ -3,9 +3,9 @@ package com.google.cloud.talent.v4beta1; -public interface ApplicationOutcomeReasonFilterOrBuilder +public interface ApplicationOutcomeNotesFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter) + // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter) com.google.protobuf.MessageOrBuilder { /** @@ -14,26 +14,26 @@ public interface ApplicationOutcomeReasonFilterOrBuilder *
    * Required.
    * User entered or selected outcome reason. The API does an exact match on the
-   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
    * in profiles.
    * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - java.lang.String getOutcomeReason(); + java.lang.String getOutcomeNotes(); /** * * *
    * Required.
    * User entered or selected outcome reason. The API does an exact match on the
-   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
    * in profiles.
    * 
* - * string outcome_reason = 1; + * string outcome_notes = 1; */ - com.google.protobuf.ByteString getOutcomeReasonBytes(); + com.google.protobuf.ByteString getOutcomeNotesBytes(); /** * @@ -41,7 +41,7 @@ public interface ApplicationOutcomeReasonFilterOrBuilder *
    * Optional.
    * If true, The API excludes all candidates with any
-   * [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason]
+   * [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes]
    * matching the outcome reason specified in the filter.
    * 
* diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java new file mode 100644 index 000000000000..9833795f610b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java @@ -0,0 +1,115 @@ +// 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(google/cloud" + + "/talent/v4beta1/common.proto\032%google/clo" + + "ud/talent/v4beta1/job.proto\032\037google/prot" + + "obuf/timestamp.proto\032\036google/protobuf/wr" + + "appers.proto\032\026google/type/date.proto\"\302\007\n" + + "\013Application\022\014\n\004name\030\001 \001(\t\022\023\n\013external_i" + + "d\030\037 \001(\t\022\017\n\007profile\030\002 \001(\t\022\013\n\003job\030\004 \001(\t\022\017\n" + + "\007company\030\005 \001(\t\022+\n\020application_date\030\007 \001(\013" + + "2\021.google.type.Date\022H\n\005stage\030\013 \001(\01629.goo" + + "gle.cloud.talent.v4beta1.Application.App" + + "licationStage\022H\n\005state\030\r \001(\01629.google.cl" + + "oud.talent.v4beta1.Application.Applicati" + + "onState\022:\n\ninterviews\030\020 \003(\0132&.google.clo" + + "ud.talent.v4beta1.Interview\022,\n\010referral\030" + + "\022 \001(\0132\032.google.protobuf.BoolValue\022/\n\013cre" + + "ate_time\030\023 \001(\0132\032.google.protobuf.Timesta" + + "mp\022/\n\013update_time\030\024 \001(\0132\032.google.protobu" + + "f.Timestamp\022\025\n\routcome_notes\030\025 \001(\t\0225\n\007ou" + + "tcome\030\026 \001(\0162$.google.cloud.talent.v4beta" + + "1.Outcome\022,\n\010is_match\030\034 \001(\0132\032.google.pro" + + "tobuf.BoolValue\022\031\n\021job_title_snippet\030\035 \001" + + "(\t\"\220\001\n\020ApplicationState\022!\n\035APPLICATION_S" + + "TATE_UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\026\n\022C" + + "ANDIDATE_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\020Applic" + + "ationStage\022!\n\035APPLICATION_STAGE_UNSPECIF" + + "IED\020\000\022\007\n\003NEW\020\001\022\n\n\006SCREEN\020\002\022\031\n\025HIRING_MAN" + + "AGER_REVIEW\020\003\022\r\n\tINTERVIEW\020\004\022\022\n\016OFFER_EX" + + "TENDED\020\005\022\022\n\016OFFER_ACCEPTED\020\006\022\013\n\007STARTED\020" + + "\007B\206\001\n\037com.google.cloud.talent.v4beta1B\030A" + + "pplicationResourceProtoP\001ZAgoogle.golang" + + ".org/genproto/googleapis/cloud/talent/v4" + + "beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), + com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }, + assigner); + 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.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); + com.google.cloud.talent.v4beta1.JobResourceProto.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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java new file mode 100644 index 000000000000..0bf87e31cf23 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java @@ -0,0 +1,178 @@ +// 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-goog" + + "le/cloud/talent/v4beta1/application.prot" + + "o\032(google/cloud/talent/v4beta1/common.pr" + + "oto\032\033google/protobuf/empty.proto\032 google" + + "/protobuf/field_mask.proto\"i\n\030CreateAppl" + + "icationRequest\022\016\n\006parent\030\001 \001(\t\022=\n\013applic" + + "ation\030\002 \001(\0132(.google.cloud.talent.v4beta" + + "1.Application\"%\n\025GetApplicationRequest\022\014" + + "\n\004name\030\001 \001(\t\"\212\001\n\030UpdateApplicationReques" + + "t\022=\n\013application\030\001 \001(\0132(.google.cloud.ta" + + "lent.v4beta1.Application\022/\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMask\"(\n\030Del" + + "eteApplicationRequest\022\014\n\004name\030\001 \001(\t\"P\n\027L" + + "istApplicationsRequest\022\016\n\006parent\030\001 \001(\t\022\022" + + "\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\264\001" + + "\n\030ListApplicationsResponse\022>\n\014applicatio" + + "ns\030\001 \003(\0132(.google.cloud.talent.v4beta1.A" + + "pplication\022\027\n\017next_page_token\030\002 \001(\t\022?\n\010m" + + "etadata\030\003 \001(\0132-.google.cloud.talent.v4be" + + "ta1.ResponseMetadata2\324\007\n\022ApplicationServ" + + "ice\022\277\001\n\021CreateApplication\0225.google.cloud" + + ".talent.v4beta1.CreateApplicationRequest" + + "\032(.google.cloud.talent.v4beta1.Applicati" + + "on\"I\202\323\344\223\002C\">/v4beta1/{parent=projects/*/" + + "tenants/*/profiles/*}/applications:\001*\022\266\001" + + "\n\016GetApplication\0222.google.cloud.talent.v" + + "4beta1.GetApplicationRequest\032(.google.cl" + + "oud.talent.v4beta1.Application\"F\202\323\344\223\002@\022>" + + "/v4beta1/{name=projects/*/tenants/*/prof" + + "iles/*/applications/*}\022\313\001\n\021UpdateApplica" + + "tion\0225.google.cloud.talent.v4beta1.Updat" + + "eApplicationRequest\032(.google.cloud.talen" + + "t.v4beta1.Application\"U\202\323\344\223\002O2J/v4beta1/" + + "{application.name=projects/*/tenants/*/p" + + "rofiles/*/applications/*}:\001*\022\252\001\n\021DeleteA" + + "pplication\0225.google.cloud.talent.v4beta1" + + ".DeleteApplicationRequest\032\026.google.proto" + + "buf.Empty\"F\202\323\344\223\002@*>/v4beta1/{name=projec" + + "ts/*/tenants/*/profiles/*/applications/*" + + "}\022\307\001\n\020ListApplications\0224.google.cloud.ta" + + "lent.v4beta1.ListApplicationsRequest\0325.g" + + "oogle.cloud.talent.v4beta1.ListApplicati" + + "onsResponse\"F\202\323\344\223\002@\022>/v4beta1/{parent=pr" + + "ojects/*/tenants/*/profiles/*}/applicati" + + "onsB\205\001\n\037com.google.cloud.talent.v4beta1B" + + "\027ApplicationServiceProtoP\001ZAgoogle.golan" + + "g.org/genproto/googleapis/cloud/talent/v" + + "4beta1;talent\242\002\003CTSb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.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(), + }, + assigner); + 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.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java index 5ba18abb1567..f1f2fcfedb26 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java @@ -8,7 +8,7 @@ * *
  * Input only.
- * Filter on status of Application.
+ * Filter on state of Application.
  * 
* * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} @@ -24,7 +24,7 @@ private ApplicationStatusFilter(com.google.protobuf.GeneratedMessageV3.Builder * Required. - * User entered or selected application status. The API does an exact match - * between the application status specified in this filter and the - * [JobApplication.status][] in profiles. + * User entered or selected application state. The API does an exact match + * between the application state specified in this filter and the + * [Application.state][google.cloud.talent.v4beta1.Application.state] in + * profiles. * * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - public int getApplicationStatusValue() { - return applicationStatus_; + public int getApplicationStateValue() { + return applicationState_; } /** * * *
    * Required.
-   * User entered or selected application status. The API does an exact match
-   * between the application status specified in this filter and the
-   * [JobApplication.status][] in profiles.
+   * User entered or selected application state. The API does an exact match
+   * between the application state specified in this filter and the
+   * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+   * profiles.
    * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + public com.google.cloud.talent.v4beta1.Application.ApplicationState getApplicationState() { @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( - applicationStatus_); + com.google.cloud.talent.v4beta1.Application.ApplicationState result = + com.google.cloud.talent.v4beta1.Application.ApplicationState.valueOf(applicationState_); return result == null - ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + ? com.google.cloud.talent.v4beta1.Application.ApplicationState.UNRECOGNIZED : result; } @@ -146,8 +145,9 @@ public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getAppli * *
    * Optional.
-   * If true, The API excludes all candidates with any [JobApplication.status][]
-   * matching the status specified in the filter.
+   * If true, The API excludes all candidates with any
+   * [Application.state][google.cloud.talent.v4beta1.Application.state] matching
+   * the state specified in the filter.
    * 
* * bool negated = 2; @@ -170,11 +170,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (applicationStatus_ - != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus - .APPLICATION_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, applicationStatus_); + if (applicationState_ + != com.google.cloud.talent.v4beta1.Application.ApplicationState + .APPLICATION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, applicationState_); } if (negated_ != false) { output.writeBool(2, negated_); @@ -188,11 +187,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (applicationStatus_ - != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus - .APPLICATION_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, applicationStatus_); + if (applicationState_ + != com.google.cloud.talent.v4beta1.Application.ApplicationState + .APPLICATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, applicationState_); } if (negated_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, negated_); @@ -214,7 +212,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.talent.v4beta1.ApplicationStatusFilter) obj; boolean result = true; - result = result && applicationStatus_ == other.applicationStatus_; + result = result && applicationState_ == other.applicationState_; result = result && (getNegated() == other.getNegated()); result = result && unknownFields.equals(other.unknownFields); return result; @@ -227,8 +225,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + APPLICATION_STATUS_FIELD_NUMBER; - hash = (53 * hash) + applicationStatus_; + hash = (37 * hash) + APPLICATION_STATE_FIELD_NUMBER; + hash = (53 * hash) + applicationState_; hash = (37 * hash) + NEGATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); hash = (29 * hash) + unknownFields.hashCode(); @@ -337,7 +335,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Input only.
-   * Filter on status of Application.
+   * Filter on state of Application.
    * 
* * Protobuf type {@code google.cloud.talent.v4beta1.ApplicationStatusFilter} @@ -378,7 +376,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - applicationStatus_ = 0; + applicationState_ = 0; negated_ = false; @@ -409,7 +407,7 @@ public com.google.cloud.talent.v4beta1.ApplicationStatusFilter build() { public com.google.cloud.talent.v4beta1.ApplicationStatusFilter buildPartial() { com.google.cloud.talent.v4beta1.ApplicationStatusFilter result = new com.google.cloud.talent.v4beta1.ApplicationStatusFilter(this); - result.applicationStatus_ = applicationStatus_; + result.applicationState_ = applicationState_; result.negated_ = negated_; onBuilt(); return result; @@ -461,8 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.talent.v4beta1.ApplicationStatusFilter other) { if (other == com.google.cloud.talent.v4beta1.ApplicationStatusFilter.getDefaultInstance()) return this; - if (other.applicationStatus_ != 0) { - setApplicationStatusValue(other.getApplicationStatusValue()); + if (other.applicationState_ != 0) { + setApplicationStateValue(other.getApplicationStateValue()); } if (other.getNegated() != false) { setNegated(other.getNegated()); @@ -497,38 +495,38 @@ public Builder mergeFrom( return this; } - private int applicationStatus_ = 0; + private int applicationState_ = 0; /** * * *
      * Required.
-     * User entered or selected application status. The API does an exact match
-     * between the application status specified in this filter and the
-     * [JobApplication.status][] in profiles.
+     * User entered or selected application state. The API does an exact match
+     * between the application state specified in this filter and the
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+     * profiles.
      * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - public int getApplicationStatusValue() { - return applicationStatus_; + public int getApplicationStateValue() { + return applicationState_; } /** * * *
      * Required.
-     * User entered or selected application status. The API does an exact match
-     * between the application status specified in this filter and the
-     * [JobApplication.status][] in profiles.
+     * User entered or selected application state. The API does an exact match
+     * between the application state specified in this filter and the
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+     * profiles.
      * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - public Builder setApplicationStatusValue(int value) { - applicationStatus_ = value; + public Builder setApplicationStateValue(int value) { + applicationState_ = value; onChanged(); return this; } @@ -537,21 +535,20 @@ public Builder setApplicationStatusValue(int value) { * *
      * Required.
-     * User entered or selected application status. The API does an exact match
-     * between the application status specified in this filter and the
-     * [JobApplication.status][] in profiles.
+     * User entered or selected application state. The API does an exact match
+     * between the application state specified in this filter and the
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+     * profiles.
      * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus() { + public com.google.cloud.talent.v4beta1.Application.ApplicationState getApplicationState() { @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf( - applicationStatus_); + com.google.cloud.talent.v4beta1.Application.ApplicationState result = + com.google.cloud.talent.v4beta1.Application.ApplicationState.valueOf(applicationState_); return result == null - ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED + ? com.google.cloud.talent.v4beta1.Application.ApplicationState.UNRECOGNIZED : result; } /** @@ -559,21 +556,21 @@ public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getAppli * *
      * Required.
-     * User entered or selected application status. The API does an exact match
-     * between the application status specified in this filter and the
-     * [JobApplication.status][] in profiles.
+     * User entered or selected application state. The API does an exact match
+     * between the application state specified in this filter and the
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+     * profiles.
      * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - public Builder setApplicationStatus( - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { + public Builder setApplicationState( + com.google.cloud.talent.v4beta1.Application.ApplicationState value) { if (value == null) { throw new NullPointerException(); } - applicationStatus_ = value.getNumber(); + applicationState_ = value.getNumber(); onChanged(); return this; } @@ -582,17 +579,17 @@ public Builder setApplicationStatus( * *
      * Required.
-     * User entered or selected application status. The API does an exact match
-     * between the application status specified in this filter and the
-     * [JobApplication.status][] in profiles.
+     * User entered or selected application state. The API does an exact match
+     * between the application state specified in this filter and the
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+     * profiles.
      * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - public Builder clearApplicationStatus() { + public Builder clearApplicationState() { - applicationStatus_ = 0; + applicationState_ = 0; onChanged(); return this; } @@ -603,8 +600,9 @@ public Builder clearApplicationStatus() { * *
      * Optional.
-     * If true, The API excludes all candidates with any [JobApplication.status][]
-     * matching the status specified in the filter.
+     * If true, The API excludes all candidates with any
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] matching
+     * the state specified in the filter.
      * 
* * bool negated = 2; @@ -617,8 +615,9 @@ public boolean getNegated() { * *
      * Optional.
-     * If true, The API excludes all candidates with any [JobApplication.status][]
-     * matching the status specified in the filter.
+     * If true, The API excludes all candidates with any
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] matching
+     * the state specified in the filter.
      * 
* * bool negated = 2; @@ -634,8 +633,9 @@ public Builder setNegated(boolean value) { * *
      * Optional.
-     * If true, The API excludes all candidates with any [JobApplication.status][]
-     * matching the status specified in the filter.
+     * If true, The API excludes all candidates with any
+     * [Application.state][google.cloud.talent.v4beta1.Application.state] matching
+     * the state specified in the filter.
      * 
* * bool negated = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java index 4ba49edc271a..687038040b71 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilterOrBuilder.java @@ -13,37 +13,38 @@ public interface ApplicationStatusFilterOrBuilder * *
    * Required.
-   * User entered or selected application status. The API does an exact match
-   * between the application status specified in this filter and the
-   * [JobApplication.status][] in profiles.
+   * User entered or selected application state. The API does an exact match
+   * between the application state specified in this filter and the
+   * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+   * profiles.
    * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - int getApplicationStatusValue(); + int getApplicationStateValue(); /** * * *
    * Required.
-   * User entered or selected application status. The API does an exact match
-   * between the application status specified in this filter and the
-   * [JobApplication.status][] in profiles.
+   * User entered or selected application state. The API does an exact match
+   * between the application state specified in this filter and the
+   * [Application.state][google.cloud.talent.v4beta1.Application.state] in
+   * profiles.
    * 
* - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus application_status = 1; - * + * .google.cloud.talent.v4beta1.Application.ApplicationState application_state = 1; */ - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getApplicationStatus(); + com.google.cloud.talent.v4beta1.Application.ApplicationState getApplicationState(); /** * * *
    * Optional.
-   * If true, The API excludes all candidates with any [JobApplication.status][]
-   * matching the status specified in the filter.
+   * If true, The API excludes all candidates with any
+   * [Application.state][google.cloud.talent.v4beta1.Application.state] matching
+   * the state specified in the filter.
    * 
* * bool negated = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java index 92cd60c74796..5e279335653a 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java @@ -107,9 +107,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -130,9 +132,11 @@ public java.lang.String getParent() { * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -549,9 +553,11 @@ public Builder mergeFrom( * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -572,9 +578,11 @@ public java.lang.String getParent() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -595,9 +603,11 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -616,9 +626,11 @@ public Builder setParent(java.lang.String value) { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -634,9 +646,11 @@ public Builder clearParent() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java index 6a473063f72d..940329496df5 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java @@ -13,9 +13,11 @@ public interface BatchDeleteJobsRequestOrBuilder * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -26,9 +28,11 @@ public interface BatchDeleteJobsRequestOrBuilder * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java index cc70411de259..860443da0261 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto +// source: google/cloud/talent/v4beta1/common.proto package com.google.cloud.talent.v4beta1; @@ -121,14 +121,14 @@ private Certification( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto + 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.ProfileResourceProto + return com.google.cloud.talent.v4beta1.CommonProto .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.talent.v4beta1.Certification.class, @@ -189,7 +189,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * *
    * Optional.
-   * Acquirement date or effective date of license or certification.
+   * Acquisition date or effective date of license or certification.
    * 
* * .google.type.Date acquire_date = 2; @@ -202,7 +202,7 @@ public boolean hasAcquireDate() { * *
    * Optional.
-   * Acquirement date or effective date of license or certification.
+   * Acquisition date or effective date of license or certification.
    * 
* * .google.type.Date acquire_date = 2; @@ -215,7 +215,7 @@ public com.google.type.Date getAcquireDate() { * *
    * Optional.
-   * Acquirement date or effective date of license or certification.
+   * Acquisition date or effective date of license or certification.
    * 
* * .google.type.Date acquire_date = 2; @@ -580,14 +580,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@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.ProfileResourceProto + 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.ProfileResourceProto + return com.google.cloud.talent.v4beta1.CommonProto .internal_static_google_cloud_talent_v4beta1_Certification_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.talent.v4beta1.Certification.class, @@ -634,7 +634,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto + return com.google.cloud.talent.v4beta1.CommonProto .internal_static_google_cloud_talent_v4beta1_Certification_descriptor; } @@ -878,7 +878,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -891,7 +891,7 @@ public boolean hasAcquireDate() { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -908,7 +908,7 @@ public com.google.type.Date getAcquireDate() { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -931,7 +931,7 @@ public Builder setAcquireDate(com.google.type.Date value) { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -951,7 +951,7 @@ public Builder setAcquireDate(com.google.type.Date.Builder builderForValue) { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -976,7 +976,7 @@ public Builder mergeAcquireDate(com.google.type.Date value) { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -997,7 +997,7 @@ public Builder clearAcquireDate() { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -1012,7 +1012,7 @@ public com.google.type.Date.Builder getAcquireDateBuilder() { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; @@ -1029,7 +1029,7 @@ public com.google.type.DateOrBuilder getAcquireDateOrBuilder() { * *
      * Optional.
-     * Acquirement date or effective date of license or certification.
+     * Acquisition date or effective date of license or certification.
      * 
* * .google.type.Date acquire_date = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java index fedbadb23e35..60053d02974c 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto +// source: google/cloud/talent/v4beta1/common.proto package com.google.cloud.talent.v4beta1; @@ -38,7 +38,7 @@ public interface CertificationOrBuilder * *
    * Optional.
-   * Acquirement date or effective date of license or certification.
+   * Acquisition date or effective date of license or certification.
    * 
* * .google.type.Date acquire_date = 2; @@ -49,7 +49,7 @@ public interface CertificationOrBuilder * *
    * Optional.
-   * Acquirement date or effective date of license or certification.
+   * Acquisition date or effective date of license or certification.
    * 
* * .google.type.Date acquire_date = 2; @@ -60,7 +60,7 @@ public interface CertificationOrBuilder * *
    * Optional.
-   * Acquirement date or effective date of license or certification.
+   * Acquisition date or effective date of license or certification.
    * 
* * .google.type.Date acquire_date = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java index a24c6d2e2d73..285af5b8b71c 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java @@ -29,6 +29,7 @@ private ClientEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { private ClientEvent() { requestId_ = ""; eventId_ = ""; + eventNotes_ = ""; } @java.lang.Override @@ -116,19 +117,11 @@ private ClientEvent( eventCase_ = 6; break; } - case 58: + case 74: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - extraInfo_ = - com.google.protobuf.MapField.newMapField( - ExtraInfoDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry extraInfo__ = - input.readMessage( - ExtraInfoDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - extraInfo_.getMutableMap().put(extraInfo__.getKey(), extraInfo__.getValue()); + java.lang.String s = input.readStringRequireUtf8(); + + eventNotes_ = s; break; } default: @@ -155,17 +148,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; } - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetExtraInfo(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -176,7 +158,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.cloud.talent.v4beta1.ClientEvent.Builder.class); } - private int bitField0_; private int eventCase_ = 0; private java.lang.Object event_; @@ -445,118 +426,51 @@ public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBu return com.google.cloud.talent.v4beta1.ProfileEvent.getDefaultInstance(); } - public static final int EXTRA_INFO_FIELD_NUMBER = 7; - - private static final class ExtraInfoDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.talent.v4beta1.EventProto - .internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField extraInfo_; - - private com.google.protobuf.MapField internalGetExtraInfo() { - if (extraInfo_ == null) { - return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); - } - return extraInfo_; - } - - public int getExtraInfoCount() { - return internalGetExtraInfo().getMap().size(); - } + public static final int EVENT_NOTES_FIELD_NUMBER = 9; + private volatile java.lang.Object eventNotes_; /** * * *
    * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
+   * Notes about the event provided by recruiters or other users, for example,
+   * feedback on why a profile was bookmarked.
    * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - public boolean containsExtraInfo(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetExtraInfo().getMap().containsKey(key); - } - /** Use {@link #getExtraInfoMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getExtraInfo() { - return getExtraInfoMap(); - } - /** - * - * - *
-   * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
-   * 
- * - * map<string, string> extra_info = 7; - */ - public java.util.Map getExtraInfoMap() { - return internalGetExtraInfo().getMap(); - } - /** - * - * - *
-   * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
-   * 
- * - * map<string, string> extra_info = 7; - */ - public java.lang.String getExtraInfoOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); + public java.lang.String getEventNotes() { + java.lang.Object ref = eventNotes_; + 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(); + eventNotes_ = s; + return s; } - java.util.Map map = internalGetExtraInfo().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
+   * Notes about the event provided by recruiters or other users, for example,
+   * feedback on why a profile was bookmarked.
    * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - public java.lang.String getExtraInfoOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetExtraInfo().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public com.google.protobuf.ByteString getEventNotesBytes() { + java.lang.Object ref = eventNotes_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventNotes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return map.get(key); } private byte memoizedIsInitialized = -1; @@ -588,8 +502,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (eventCase_ == 6) { output.writeMessage(6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetExtraInfo(), ExtraInfoDefaultEntryHolder.defaultEntry, 7); + if (!getEventNotesBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, eventNotes_); + } unknownFields.writeTo(output); } @@ -618,15 +533,8 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.talent.v4beta1.ProfileEvent) event_); } - for (java.util.Map.Entry entry : - internalGetExtraInfo().getMap().entrySet()) { - com.google.protobuf.MapEntry extraInfo__ = - ExtraInfoDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, extraInfo__); + if (!getEventNotesBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, eventNotes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -651,7 +559,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { result = result && getCreateTime().equals(other.getCreateTime()); } - result = result && internalGetExtraInfo().equals(other.internalGetExtraInfo()); + result = result && getEventNotes().equals(other.getEventNotes()); result = result && getEventCase().equals(other.getEventCase()); if (!result) return false; switch (eventCase_) { @@ -683,10 +591,8 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } - if (!internalGetExtraInfo().getMap().isEmpty()) { - hash = (37 * hash) + EXTRA_INFO_FIELD_NUMBER; - hash = (53 * hash) + internalGetExtraInfo().hashCode(); - } + hash = (37 * hash) + EVENT_NOTES_FIELD_NUMBER; + hash = (53 * hash) + getEventNotes().hashCode(); switch (eventCase_) { case 5: hash = (37 * hash) + JOB_EVENT_FIELD_NUMBER; @@ -821,26 +727,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 7: - return internalGetExtraInfo(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 7: - return internalGetMutableExtraInfo(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -878,7 +764,8 @@ public Builder clear() { createTime_ = null; createTimeBuilder_ = null; } - internalGetMutableExtraInfo().clear(); + eventNotes_ = ""; + eventCase_ = 0; event_ = null; return this; @@ -908,8 +795,6 @@ public com.google.cloud.talent.v4beta1.ClientEvent build() { public com.google.cloud.talent.v4beta1.ClientEvent buildPartial() { com.google.cloud.talent.v4beta1.ClientEvent result = new com.google.cloud.talent.v4beta1.ClientEvent(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.requestId_ = requestId_; result.eventId_ = eventId_; if (createTimeBuilder_ == null) { @@ -931,9 +816,7 @@ public com.google.cloud.talent.v4beta1.ClientEvent buildPartial() { result.event_ = profileEventBuilder_.build(); } } - result.extraInfo_ = internalGetExtraInfo(); - result.extraInfo_.makeImmutable(); - result.bitField0_ = to_bitField0_; + result.eventNotes_ = eventNotes_; result.eventCase_ = eventCase_; onBuilt(); return result; @@ -995,7 +878,10 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.ClientEvent other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - internalGetMutableExtraInfo().mergeFrom(other.internalGetExtraInfo()); + if (!other.getEventNotes().isEmpty()) { + eventNotes_ = other.eventNotes_; + onChanged(); + } switch (other.getEventCase()) { case JOB_EVENT: { @@ -1055,8 +941,6 @@ public Builder clearEvent() { return this; } - private int bitField0_; - private java.lang.Object requestId_ = ""; /** * @@ -1869,124 +1753,69 @@ public com.google.cloud.talent.v4beta1.ProfileEventOrBuilder getProfileEventOrBu return profileEventBuilder_; } - private com.google.protobuf.MapField extraInfo_; - - private com.google.protobuf.MapField - internalGetExtraInfo() { - if (extraInfo_ == null) { - return com.google.protobuf.MapField.emptyMapField(ExtraInfoDefaultEntryHolder.defaultEntry); - } - return extraInfo_; - } - - private com.google.protobuf.MapField - internalGetMutableExtraInfo() { - onChanged(); - ; - if (extraInfo_ == null) { - extraInfo_ = - com.google.protobuf.MapField.newMapField(ExtraInfoDefaultEntryHolder.defaultEntry); - } - if (!extraInfo_.isMutable()) { - extraInfo_ = extraInfo_.copy(); - } - return extraInfo_; - } - - public int getExtraInfoCount() { - return internalGetExtraInfo().getMap().size(); - } + private java.lang.Object eventNotes_ = ""; /** * * *
      * Optional.
-     * Extra information about this event. Used for storing information with no
-     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-     * example, user application specific context or details.
-     * At most 20 keys are supported. The maximum total size of all keys and
-     * values is 2 KB.
+     * Notes about the event provided by recruiters or other users, for example,
+     * feedback on why a profile was bookmarked.
      * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - public boolean containsExtraInfo(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); + public java.lang.String getEventNotes() { + java.lang.Object ref = eventNotes_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventNotes_ = s; + return s; + } else { + return (java.lang.String) ref; } - return internalGetExtraInfo().getMap().containsKey(key); - } - /** Use {@link #getExtraInfoMap()} instead. */ - @java.lang.Deprecated - public java.util.Map getExtraInfo() { - return getExtraInfoMap(); - } - /** - * - * - *
-     * Optional.
-     * Extra information about this event. Used for storing information with no
-     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-     * example, user application specific context or details.
-     * At most 20 keys are supported. The maximum total size of all keys and
-     * values is 2 KB.
-     * 
- * - * map<string, string> extra_info = 7; - */ - public java.util.Map getExtraInfoMap() { - return internalGetExtraInfo().getMap(); } /** * * *
      * Optional.
-     * Extra information about this event. Used for storing information with no
-     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-     * example, user application specific context or details.
-     * At most 20 keys are supported. The maximum total size of all keys and
-     * values is 2 KB.
+     * Notes about the event provided by recruiters or other users, for example,
+     * feedback on why a profile was bookmarked.
      * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - public java.lang.String getExtraInfoOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); + public com.google.protobuf.ByteString getEventNotesBytes() { + java.lang.Object ref = eventNotes_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventNotes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - java.util.Map map = internalGetExtraInfo().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
      * Optional.
-     * Extra information about this event. Used for storing information with no
-     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-     * example, user application specific context or details.
-     * At most 20 keys are supported. The maximum total size of all keys and
-     * values is 2 KB.
+     * Notes about the event provided by recruiters or other users, for example,
+     * feedback on why a profile was bookmarked.
      * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - public java.lang.String getExtraInfoOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetExtraInfo().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setEventNotes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return map.get(key); - } - public Builder clearExtraInfo() { - internalGetMutableExtraInfo().getMutableMap().clear(); + eventNotes_ = value; + onChanged(); return this; } /** @@ -1994,67 +1823,37 @@ public Builder clearExtraInfo() { * *
      * Optional.
-     * Extra information about this event. Used for storing information with no
-     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-     * example, user application specific context or details.
-     * At most 20 keys are supported. The maximum total size of all keys and
-     * values is 2 KB.
+     * Notes about the event provided by recruiters or other users, for example,
+     * feedback on why a profile was bookmarked.
      * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - public Builder removeExtraInfo(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableExtraInfo().getMutableMap().remove(key); + public Builder clearEventNotes() { + + eventNotes_ = getDefaultInstance().getEventNotes(); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableExtraInfo() { - return internalGetMutableExtraInfo().getMutableMap(); - } /** * * *
      * Optional.
-     * Extra information about this event. Used for storing information with no
-     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-     * example, user application specific context or details.
-     * At most 20 keys are supported. The maximum total size of all keys and
-     * values is 2 KB.
+     * Notes about the event provided by recruiters or other users, for example,
+     * feedback on why a profile was bookmarked.
      * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - public Builder putExtraInfo(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public Builder setEventNotesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException(); } - internalGetMutableExtraInfo().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Optional.
-     * Extra information about this event. Used for storing information with no
-     * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-     * example, user application specific context or details.
-     * At most 20 keys are supported. The maximum total size of all keys and
-     * values is 2 KB.
-     * 
- * - * map<string, string> extra_info = 7; - */ - public Builder putAllExtraInfo(java.util.Map values) { - internalGetMutableExtraInfo().getMutableMap().putAll(values); + checkByteStringIsUtf8(value); + + eventNotes_ = value; + onChanged(); return this; } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java index 281e3bd905e1..526705367ac4 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java @@ -163,79 +163,25 @@ public interface ClientEventOrBuilder * *
    * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
+   * Notes about the event provided by recruiters or other users, for example,
+   * feedback on why a profile was bookmarked.
    * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - int getExtraInfoCount(); + java.lang.String getEventNotes(); /** * * *
    * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
+   * Notes about the event provided by recruiters or other users, for example,
+   * feedback on why a profile was bookmarked.
    * 
* - * map<string, string> extra_info = 7; + * string event_notes = 9; */ - boolean containsExtraInfo(java.lang.String key); - /** Use {@link #getExtraInfoMap()} instead. */ - @java.lang.Deprecated - java.util.Map getExtraInfo(); - /** - * - * - *
-   * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
-   * 
- * - * map<string, string> extra_info = 7; - */ - java.util.Map getExtraInfoMap(); - /** - * - * - *
-   * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
-   * 
- * - * map<string, string> extra_info = 7; - */ - java.lang.String getExtraInfoOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Optional.
-   * Extra information about this event. Used for storing information with no
-   * matching field in [event][google.cloud.talent.v4beta1.event] payload, for
-   * example, user application specific context or details.
-   * At most 20 keys are supported. The maximum total size of all keys and
-   * values is 2 KB.
-   * 
- * - * map<string, string> extra_info = 7; - */ - java.lang.String getExtraInfoOrThrow(java.lang.String key); + com.google.protobuf.ByteString getEventNotesBytes(); public com.google.cloud.talent.v4beta1.ClientEvent.EventCase getEventCase(); } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java index f97ab435d1be..b2c2ad525dc3 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java @@ -52,6 +52,22 @@ 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; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -65,128 +81,150 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\022\033google.cloud.talent.v4beta1\032\034google/" + "api/annotations.proto\032\037google/protobuf/t" + "imestamp.proto\032\036google/protobuf/wrappers" - + ".proto\032\030google/type/latlng.proto\032\027google" - + "/type/money.proto\032 google/type/postal_ad" - + "dress.proto\"n\n\016TimestampRange\022.\n\nstart_t" - + "ime\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" - + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp\"\267\003\n\010Location\022I\n\rlocation_type\030\001 \001(\0162" - + "2.google.cloud.talent.v4beta1.Location.L" - + "ocationType\0222\n\016postal_address\030\002 \001(\0132\032.go" - + "ogle.type.PostalAddress\022$\n\007lat_lng\030\003 \001(\013" - + "2\023.google.type.LatLng\022\024\n\014radius_miles\030\004 " - + "\001(\001\"\357\001\n\014LocationType\022\035\n\031LOCATION_TYPE_UN" - + "SPECIFIED\020\000\022\013\n\007COUNTRY\020\001\022\027\n\023ADMINISTRATI" - + "VE_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_LOC" - + "ALITY\020\006\022\022\n\016SUB_LOCALITY_1\020\007\022\022\n\016SUB_LOCAL" - + "ITY_2\020\010\022\020\n\014NEIGHBORHOOD\020\t\022\022\n\016STREET_ADDR" - + "ESS\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_info" - + "\030\005 \001(\0132\'.google.cloud.talent.v4beta1.Dev" - + "iceInfo\"&\n\020ResponseMetadata\022\022\n\nrequest_i" - + "d\030\001 \001(\t\"\317\001\n\nDeviceInfo\022G\n\013device_type\030\001 " - + "\001(\01622.google.cloud.talent.v4beta1.Device" - + "Info.DeviceType\022\n\n\002id\030\002 \001(\t\"l\n\nDeviceTyp" - + "e\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\"Q\n\017CustomAttribute\022\025\n\r" - + "string_values\030\001 \003(\t\022\023\n\013long_values\030\002 \003(\003" - + "\022\022\n\nfilterable\030\003 \001(\010\"W\n\022SpellingCorrecti" - + "on\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\"\234\t\n\020Compen" - + "sationInfo\022P\n\007entries\030\001 \003(\0132?.google.clo" - + "ud.talent.v4beta1.CompensationInfo.Compe" - + "nsationEntry\022k\n\"annualized_base_compensa" - + "tion_range\030\002 \001(\0132?.google.cloud.talent.v" - + "4beta1.CompensationInfo.CompensationRang" - + "e\022l\n#annualized_total_compensation_range" - + "\030\003 \001(\0132?.google.cloud.talent.v4beta1.Com" - + "pensationInfo.CompensationRange\032\222\003\n\021Comp" - + "ensationEntry\022L\n\004type\030\001 \001(\0162>.google.clo" + + ".proto\032\026google/type/date.proto\032\033google/t" + + "ype/dayofweek.proto\032\030google/type/latlng." + + "proto\032\027google/type/money.proto\032 google/t" + + "ype/postal_address.proto\032\033google/type/ti" + + "meofday.proto\"n\n\016TimestampRange\022.\n\nstart" + + "_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stamp\"\267\003\n\010Location\022I\n\rlocation_type\030\001 \001(" + + "\01622.google.cloud.talent.v4beta1.Location" + + ".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\023ADMINISTRA" + + "TIVE_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_L" + + "OCALITY\020\006\022\022\n\016SUB_LOCALITY_1\020\007\022\022\n\016SUB_LOC" + + "ALITY_2\020\010\022\020\n\014NEIGHBORHOOD\020\t\022\022\n\016STREET_AD" + + "DRESS\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_in" + + "fo\030\005 \001(\0132\'.google.cloud.talent.v4beta1.D" + + "eviceInfo\"&\n\020ResponseMetadata\022\022\n\nrequest" + + "_id\030\001 \001(\t\"\317\001\n\nDeviceInfo\022G\n\013device_type\030" + + "\001 \001(\01622.google.cloud.talent.v4beta1.Devi" + + "ceInfo.DeviceType\022\n\n\002id\030\002 \001(\t\"l\n\nDeviceT" + + "ype\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\"Q\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\"W\n\022SpellingCorrec" + + "tion\022\021\n\tcorrected\030\001 \001(\010\022\026\n\016corrected_tex" + + "t\030\002 \001(\t\022\026\n\016corrected_html\030\003 \001(\t\"\234\t\n\020Comp" + + "ensationInfo\022P\n\007entries\030\001 \003(\0132?.google.c" + + "loud.talent.v4beta1.CompensationInfo.Com" + + "pensationEntry\022k\n\"annualized_base_compen" + + "sation_range\030\002 \001(\0132?.google.cloud.talent" + + ".v4beta1.CompensationInfo.CompensationRa" + + "nge\022l\n#annualized_total_compensation_ran" + + "ge\030\003 \001(\0132?.google.cloud.talent.v4beta1.C" + + "ompensationInfo.CompensationRange\032\222\003\n\021Co" + + "mpensationEntry\022L\n\004type\030\001 \001(\0162>.google.c" + + "loud.talent.v4beta1.CompensationInfo.Com" + + "pensationType\022L\n\004unit\030\002 \001(\0162>.google.clo" + "ud.talent.v4beta1.CompensationInfo.Compe" - + "nsationType\022L\n\004unit\030\002 \001(\0162>.google.cloud" - + ".talent.v4beta1.CompensationInfo.Compens" - + "ationUnit\022$\n\006amount\030\003 \001(\0132\022.google.type." - + "MoneyH\000\022P\n\005range\030\004 \001(\0132?.google.cloud.ta" - + "lent.v4beta1.CompensationInfo.Compensati" - + "onRangeH\000\022\023\n\013description\030\005 \001(\t\022=\n\027expect" - + "ed_units_per_year\030\006 \001(\0132\034.google.protobu" - + "f.DoubleValueB\025\n\023compensation_amount\032o\n\021" - + "CompensationRange\022,\n\020max_compensation\030\002 " - + "\001(\0132\022.google.type.Money\022,\n\020min_compensat" - + "ion\030\001 \001(\0132\022.google.type.Money\"\265\001\n\020Compen" - + "sationType\022!\n\035COMPENSATION_TYPE_UNSPECIF" - + "IED\020\000\022\010\n\004BASE\020\001\022\t\n\005BONUS\020\002\022\021\n\rSIGNING_BO" - + "NUS\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_COMPEN" - + "SATION_TYPE\020\010\"\234\001\n\020CompensationUnit\022!\n\035CO" - + "MPENSATION_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_COMPENS" - + "ATION_UNIT\020\007*y\n\013CompanySize\022\034\n\030COMPANY_S" - + "IZE_UNSPECIFIED\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\006BIGG" - + "ER\020\006\022\t\n\005GIANT\020\007*\342\001\n\nJobBenefit\022\033\n\027JOB_BE" - + "NEFIT_UNSPECIFIED\020\000\022\016\n\nCHILD_CARE\020\001\022\n\n\006D" - + "ENTAL\020\002\022\024\n\020DOMESTIC_PARTNER\020\003\022\022\n\016FLEXIBL" - + "E_HOURS\020\004\022\013\n\007MEDICAL\020\005\022\022\n\016LIFE_INSURANCE" - + "\020\006\022\022\n\016PARENTAL_LEAVE\020\007\022\023\n\017RETIREMENT_PLA" - + "N\020\010\022\r\n\tSICK_DAYS\020\t\022\014\n\010VACATION\020\n\022\n\n\006VISI" - + "ON\020\013*\216\002\n\nDegreeType\022\033\n\027DEGREE_TYPE_UNSPE" - + "CIFIED\020\000\022\025\n\021PRIMARY_EDUCATION\020\001\022\035\n\031LOWER" - + "_SECONDARY_EDUCATION\020\002\022\035\n\031UPPER_SECONDAR" - + "Y_EDUCATION\020\003\022\034\n\030ADULT_REMEDIAL_EDUCATIO" - + "N\020\004\022\034\n\030ASSOCIATES_OR_EQUIVALENT\020\005\022\033\n\027BAC" - + "HELORS_OR_EQUIVALENT\020\006\022\031\n\025MASTERS_OR_EQU" - + "IVALENT\020\007\022\032\n\026DOCTORAL_OR_EQUIVALENT\020\010*\334\001" - + "\n\016EmploymentType\022\037\n\033EMPLOYMENT_TYPE_UNSP" - + "ECIFIED\020\000\022\r\n\tFULL_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\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\025OTH" - + "ER_EMPLOYMENT_TYPE\020\n*q\n\010JobLevel\022\031\n\025JOB_" - + "LEVEL_UNSPECIFIED\020\000\022\017\n\013ENTRY_LEVEL\020\001\022\017\n\013" - + "EXPERIENCED\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_C" - + "ATEGORY_UNSPECIFIED\020\000\022\032\n\026ACCOUNTING_AND_" - + "FINANCE\020\001\022\035\n\031ADMINISTRATIVE_AND_OFFICE\020\002" - + "\022\035\n\031ADVERTISING_AND_MARKETING\020\003\022\017\n\013ANIMA" - + "L_CARE\020\004\022\032\n\026ART_FASHION_AND_DESIGN\020\005\022\027\n\023" - + "BUSINESS_OPERATIONS\020\006\022\033\n\027CLEANING_AND_FA" - + "CILITIES\020\007\022\023\n\017COMPUTER_AND_IT\020\010\022\020\n\014CONST" - + "RUCTION\020\t\022\024\n\020CUSTOMER_SERVICE\020\n\022\r\n\tEDUCA" - + "TION\020\013\022\034\n\030ENTERTAINMENT_AND_TRAVEL\020\014\022\030\n\024" - + "FARMING_AND_OUTDOORS\020\r\022\016\n\nHEALTHCARE\020\016\022\023" - + "\n\017HUMAN_RESOURCES\020\017\022\'\n#INSTALLATION_MAIN" - + "TENANCE_AND_REPAIR\020\020\022\t\n\005LEGAL\020\021\022\016\n\nMANAG" - + "EMENT\020\022\022\037\n\033MANUFACTURING_AND_WAREHOUSE\020\023" - + "\022$\n MEDIA_COMMUNICATIONS_AND_WRITING\020\024\022\026" - + "\n\022OIL_GAS_AND_MINING\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_HOSPI" - + "TALITY\020\031\022\024\n\020SALES_AND_RETAIL\020\032\022\033\n\027SCIENC" - + "E_AND_ENGINEERING\020\033\022\"\n\036SOCIAL_SERVICES_A" - + "ND_NON_PROFIT\020\034\022!\n\035SPORTS_FITNESS_AND_RE" - + "CREATION\020\035\022 \n\034TRANSPORTATION_AND_LOGISTI" - + "CS\020\036*e\n\rPostingRegion\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*j\n\nVisibilit" - + "y\022\032\n\026VISIBILITY_UNSPECIFIED\020\000\022\020\n\014ACCOUNT" - + "_ONLY\020\001\022\026\n\022SHARED_WITH_GOOGLE\020\002\022\026\n\022SHARE" - + "D_WITH_PUBLIC\020\003*Z\n\020ContactInfoUsage\022\"\n\036C" - + "ONTACT_INFO_USAGE_UNSPECIFIED\020\000\022\014\n\010PERSO" - + "NAL\020\001\022\010\n\004WORK\020\002\022\n\n\006SCHOOL\020\003*q\n\020HtmlSanit" - + "ization\022!\n\035HTML_SANITIZATION_UNSPECIFIED" - + "\020\000\022\036\n\032HTML_SANITIZATION_DISABLED\020\001\022\032\n\026SI" - + "MPLE_FORMATTING_ONLY\020\002*{\n\rCommuteMethod\022" - + "\036\n\032COMMUTE_METHOD_UNSPECIFIED\020\000\022\013\n\007DRIVI" - + "NG\020\001\022\013\n\007TRANSIT\020\002\022\013\n\007WALKING\020\003\022\013\n\007CYCLIN" - + "G\020\004\022\026\n\022TRANSIT_ACCESSIBLE\020\005By\n\037com.googl" - + "e.cloud.talent.v4beta1B\013CommonProtoP\001ZAg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/talent/v4beta1;talent\242\002\003CTSb\006proto3" + + "nsationUnit\022$\n\006amount\030\003 \001(\0132\022.google.typ" + + "e.MoneyH\000\022P\n\005range\030\004 \001(\0132?.google.cloud." + + "talent.v4beta1.CompensationInfo.Compensa" + + "tionRangeH\000\022\023\n\013description\030\005 \001(\t\022=\n\027expe" + + "cted_units_per_year\030\006 \001(\0132\034.google.proto" + + "buf.DoubleValueB\025\n\023compensation_amount\032o" + + "\n\021CompensationRange\022,\n\020max_compensation\030" + + "\002 \001(\0132\022.google.type.Money\022,\n\020min_compens" + + "ation\030\001 \001(\0132\022.google.type.Money\"\265\001\n\020Comp" + + "ensationType\022!\n\035COMPENSATION_TYPE_UNSPEC" + + "IFIED\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\016PROFIT_SHARING\020\005\022" + + "\017\n\013COMMISSIONS\020\006\022\010\n\004TIPS\020\007\022\033\n\027OTHER_COMP" + + "ENSATION_TYPE\020\010\"\234\001\n\020CompensationUnit\022!\n\035" + + "COMPENSATION_UNIT_UNSPECIFIED\020\000\022\n\n\006HOURL" + + "Y\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_COMPE" + + "NSATION_UNIT\020\007\"\236\001\n\rCertification\022\024\n\014disp" + + "lay_name\030\001 \001(\t\022\'\n\014acquire_date\030\002 \001(\0132\021.g" + + "oogle.type.Date\022&\n\013expire_date\030\003 \001(\0132\021.g" + + "oogle.type.Date\022\021\n\tauthority\030\004 \001(\t\022\023\n\013de" + + "scription\030\005 \001(\t\"\270\001\n\005Skill\022\024\n\014display_nam" + + "e\030\001 \001(\t\022)\n\016last_used_date\030\002 \001(\0132\021.google" + + ".type.Date\022A\n\005level\030\003 \001(\01622.google.cloud" + + ".talent.v4beta1.SkillProficiencyLevel\022\017\n" + + "\007context\030\004 \001(\t\022\032\n\022skill_name_snippet\030\005 \001" + + "(\t\"w\n\tInterview\0223\n\006rating\030\006 \001(\0132#.google" + + ".cloud.talent.v4beta1.Rating\0225\n\007outcome\030" + + "\007 \001(\0162$.google.cloud.talent.v4beta1.Outc" + + "ome\"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*y\n\013Co" + + "mpanySize\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\006MED" + + "IUM\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_UNSPECIFIED\020" + + "\000\022\016\n\nCHILD_CARE\020\001\022\n\n\006DENTAL\020\002\022\024\n\020DOMESTI" + + "C_PARTNER\020\003\022\022\n\016FLEXIBLE_HOURS\020\004\022\013\n\007MEDIC" + + "AL\020\005\022\022\n\016LIFE_INSURANCE\020\006\022\022\n\016PARENTAL_LEA" + + "VE\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\nDegreeTyp" + + "e\022\033\n\027DEGREE_TYPE_UNSPECIFIED\020\000\022\025\n\021PRIMAR" + + "Y_EDUCATION\020\001\022\035\n\031LOWER_SECONDARY_EDUCATI" + + "ON\020\002\022\035\n\031UPPER_SECONDARY_EDUCATION\020\003\022\034\n\030A" + + "DULT_REMEDIAL_EDUCATION\020\004\022\034\n\030ASSOCIATES_" + + "OR_EQUIVALENT\020\005\022\033\n\027BACHELORS_OR_EQUIVALE" + + "NT\020\006\022\031\n\025MASTERS_OR_EQUIVALENT\020\007\022\032\n\026DOCTO" + + "RAL_OR_EQUIVALENT\020\010*\334\001\n\016EmploymentType\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\nCONTRACTOR\020\003\022\024\n" + + "\020CONTRACT_TO_HIRE\020\004\022\r\n\tTEMPORARY\020\005\022\n\n\006IN" + + "TERN\020\006\022\r\n\tVOLUNTEER\020\007\022\014\n\010PER_DIEM\020\010\022\022\n\016F" + + "LY_IN_FLY_OUT\020\t\022\031\n\025OTHER_EMPLOYMENT_TYPE" + + "\020\n*q\n\010JobLevel\022\031\n\025JOB_LEVEL_UNSPECIFIED\020" + + "\000\022\017\n\013ENTRY_LEVEL\020\001\022\017\n\013EXPERIENCED\020\002\022\013\n\007M" + + "ANAGER\020\003\022\014\n\010DIRECTOR\020\004\022\r\n\tEXECUTIVE\020\005*\272\006" + + "\n\013JobCategory\022\034\n\030JOB_CATEGORY_UNSPECIFIE" + + "D\020\000\022\032\n\026ACCOUNTING_AND_FINANCE\020\001\022\035\n\031ADMIN" + + "ISTRATIVE_AND_OFFICE\020\002\022\035\n\031ADVERTISING_AN" + + "D_MARKETING\020\003\022\017\n\013ANIMAL_CARE\020\004\022\032\n\026ART_FA" + + "SHION_AND_DESIGN\020\005\022\027\n\023BUSINESS_OPERATION" + + "S\020\006\022\033\n\027CLEANING_AND_FACILITIES\020\007\022\023\n\017COMP" + + "UTER_AND_IT\020\010\022\020\n\014CONSTRUCTION\020\t\022\024\n\020CUSTO" + + "MER_SERVICE\020\n\022\r\n\tEDUCATION\020\013\022\034\n\030ENTERTAI" + + "NMENT_AND_TRAVEL\020\014\022\030\n\024FARMING_AND_OUTDOO" + + "RS\020\r\022\016\n\nHEALTHCARE\020\016\022\023\n\017HUMAN_RESOURCES\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\033MANUFAC" + + "TURING_AND_WAREHOUSE\020\023\022$\n MEDIA_COMMUNIC" + + "ATIONS_AND_WRITING\020\024\022\026\n\022OIL_GAS_AND_MINI" + + "NG\020\025\022\036\n\032PERSONAL_CARE_AND_SERVICES\020\026\022\027\n\023" + + "PROTECTIVE_SERVICES\020\027\022\017\n\013REAL_ESTATE\020\030\022\036" + + "\n\032RESTAURANT_AND_HOSPITALITY\020\031\022\024\n\020SALES_" + + "AND_RETAIL\020\032\022\033\n\027SCIENCE_AND_ENGINEERING\020" + + "\033\022\"\n\036SOCIAL_SERVICES_AND_NON_PROFIT\020\034\022!\n" + + "\035SPORTS_FITNESS_AND_RECREATION\020\035\022 \n\034TRAN" + + "SPORTATION_AND_LOGISTICS\020\036*e\n\rPostingReg" + + "ion\022\036\n\032POSTING_REGION_UNSPECIFIED\020\000\022\027\n\023A" + + "DMINISTRATIVE_AREA\020\001\022\n\n\006NATION\020\002\022\017\n\013TELE" + + "COMMUTE\020\003*j\n\nVisibility\022\032\n\026VISIBILITY_UN" + + "SPECIFIED\020\000\022\020\n\014ACCOUNT_ONLY\020\001\022\026\n\022SHARED_" + + "WITH_GOOGLE\020\002\022\026\n\022SHARED_WITH_PUBLIC\020\003*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_SA" + + "NITIZATION_UNSPECIFIED\020\000\022\036\n\032HTML_SANITIZ" + + "ATION_DISABLED\020\001\022\032\n\026SIMPLE_FORMATTING_ON" + + "LY\020\002*c\n\rCommuteMethod\022\036\n\032COMMUTE_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*\223\001\n\025SkillProfi" + + "ciencyLevel\022\'\n#SKILL_PROFICIENCY_LEVEL_U" + + "NSPECIFIED\020\000\022\031\n\025FUNDAMENTAL_AWARENESS\020\001\022" + + "\n\n\006NOVICE\020\002\022\020\n\014INTERMEDIATE\020\003\022\014\n\010ADVANCE" + + "D\020\004\022\n\n\006EXPERT\020\005*f\n\007Outcome\022\027\n\023OUTCOME_UN" + + "SPECIFIED\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\004B" + + "y\n\037com.google.cloud.talent.v4beta1B\013Comm" + + "onProtoP\001ZAgoogle.golang.org/genproto/go" + + "ogleapis/cloud/talent/v4beta1;talent\242\002\003C" + + "TSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -202,9 +240,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), com.google.type.LatLngProto.getDescriptor(), com.google.type.MoneyProto.getDescriptor(), com.google.type.PostalAddressProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), }, assigner); internal_static_google_cloud_talent_v4beta1_TimestampRange_descriptor = @@ -297,12 +338,47 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( 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", + }); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); com.google.type.LatLngProto.getDescriptor(); com.google.type.MoneyProto.getDescriptor(); com.google.type.PostalAddressProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java index aab05ed814a5..243b6c642662 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java @@ -64,17 +64,6 @@ public enum CommuteMethod implements com.google.protobuf.ProtocolMessageEnum { * CYCLING = 4; */ CYCLING(4), - /** - * - * - *
-   * Commute time is calculated based on public transit that is wheelchair
-   * accessible.
-   * 
- * - * TRANSIT_ACCESSIBLE = 5; - */ - TRANSIT_ACCESSIBLE(5), UNRECOGNIZED(-1), ; @@ -129,17 +118,6 @@ public enum CommuteMethod implements com.google.protobuf.ProtocolMessageEnum { * CYCLING = 4; */ public static final int CYCLING_VALUE = 4; - /** - * - * - *
-   * Commute time is calculated based on public transit that is wheelchair
-   * accessible.
-   * 
- * - * TRANSIT_ACCESSIBLE = 5; - */ - public static final int TRANSIT_ACCESSIBLE_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -167,8 +145,6 @@ public static CommuteMethod forNumber(int value) { return WALKING; case 4: return CYCLING; - case 5: - return TRANSIT_ACCESSIBLE; default: return null; } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java index c9bf56fcb850..c67390d3a1ae 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java @@ -970,8 +970,11 @@ public com.google.cloud.talent.v4beta1.Company.DerivedInfo getDefaultInstanceFor * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -994,8 +997,11 @@ public java.lang.String getName() { * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -1410,11 +1416,11 @@ public com.google.protobuf.ByteString getImageUriBytes() { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -1429,11 +1435,11 @@ public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttri * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -1448,11 +1454,11 @@ public int getKeywordSearchableJobCustomAttributesCount() { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -1467,11 +1473,11 @@ public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -2092,8 +2098,11 @@ public Builder mergeFrom( * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -2116,8 +2125,11 @@ public java.lang.String getName() { * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -2140,8 +2152,11 @@ public com.google.protobuf.ByteString getNameBytes() { * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -2162,8 +2177,11 @@ public Builder setName(java.lang.String value) { * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -2181,8 +2199,11 @@ public Builder clearName() { * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -3102,11 +3123,11 @@ private void ensureKeywordSearchableJobCustomAttributesIsMutable() { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3121,11 +3142,11 @@ public com.google.protobuf.ProtocolStringList getKeywordSearchableJobCustomAttri * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3140,11 +3161,11 @@ public int getKeywordSearchableJobCustomAttributesCount() { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3159,11 +3180,11 @@ public java.lang.String getKeywordSearchableJobCustomAttributes(int index) { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3178,11 +3199,11 @@ public com.google.protobuf.ByteString getKeywordSearchableJobCustomAttributesByt * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3203,11 +3224,11 @@ public Builder setKeywordSearchableJobCustomAttributes(int index, java.lang.Stri * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3228,11 +3249,11 @@ public Builder addKeywordSearchableJobCustomAttributes(java.lang.String value) { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3252,11 +3273,11 @@ public Builder addAllKeywordSearchableJobCustomAttributes( * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -3274,11 +3295,11 @@ public Builder clearKeywordSearchableJobCustomAttributes() { * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java index 68ca5feb6ef0..83b3fe3f5dd2 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java @@ -14,167 +14,10 @@ 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; // AUTO-GENERATED DOCUMENTATION AND CLASS @javax.annotation.Generated("by GAPIC protoc plugin") -public class CompanyName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/companies/{company}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String company; - - public String getProject() { - return project; - } - - public String getCompany() { - return company; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private CompanyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - company = Preconditions.checkNotNull(builder.getCompany()); - } - - public static CompanyName of(String project, String company) { - return newBuilder().setProject(project).setCompany(company).build(); - } - - public static String format(String project, String company) { - return newBuilder().setProject(project).setCompany(company).build().toString(); - } - - public static CompanyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "CompanyName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("company")); - } - - 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 (CompanyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("company", company); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "company", company); - } - - /** Builder for CompanyName. */ - public static class Builder { - - private String project; - private String company; - - public String getProject() { - return project; - } - - public String getCompany() { - return company; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setCompany(String company) { - this.company = company; - return this; - } - - private Builder() {} - - private Builder(CompanyName companyName) { - project = companyName.project; - company = companyName.company; - } - - public CompanyName build() { - return new CompanyName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof CompanyName) { - CompanyName that = (CompanyName) o; - return (this.project.equals(that.project)) && (this.company.equals(that.company)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= company.hashCode(); - return h; - } +public abstract class CompanyName implements ResourceName { + protected CompanyName() {} } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNames.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNames.java new file mode 100644 index 000000000000..dd50725fe0a1 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNames.java @@ -0,0 +1,31 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class CompanyNames { + private CompanyNames() {} + + public static CompanyName parse(String resourceNameString) { + if (CompanyOldName.isParsableFrom(resourceNameString)) { + return CompanyOldName.parse(resourceNameString); + } + if (CompanyNewName.isParsableFrom(resourceNameString)) { + return CompanyNewName.parse(resourceNameString); + } + return UntypedCompanyName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNewName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNewName.java new file mode 100644 index 000000000000..8a6a409fa21f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyNewName.java @@ -0,0 +1,207 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class CompanyNewName extends CompanyName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/tenants/{tenant}/companies/{company}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + private final String company; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getCompany() { + return company; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private CompanyNewName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + company = Preconditions.checkNotNull(builder.getCompany()); + } + + public static CompanyNewName of(String project, String tenant, String company) { + return newBuilder().setProject(project).setTenant(tenant).setCompany(company).build(); + } + + public static String format(String project, String tenant, String company) { + return newBuilder() + .setProject(project) + .setTenant(tenant) + .setCompany(company) + .build() + .toString(); + } + + public static CompanyNewName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "CompanyNewName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant"), matchMap.get("company")); + } + + 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 (CompanyNewName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldMapBuilder.put("company", company); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant, "company", company); + } + + /** Builder for CompanyNewName. */ + public static class Builder { + + private String project; + private String tenant; + private String company; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getCompany() { + return company; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + public Builder setCompany(String company) { + this.company = company; + return this; + } + + private Builder() {} + + private Builder(CompanyNewName companyNewName) { + project = companyNewName.project; + tenant = companyNewName.tenant; + company = companyNewName.company; + } + + public CompanyNewName build() { + return new CompanyNewName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof CompanyNewName) { + CompanyNewName that = (CompanyNewName) o; + return (this.project.equals(that.project)) + && (this.tenant.equals(that.tenant)) + && (this.company.equals(that.company)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + h *= 1000003; + h ^= company.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOldName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOldName.java new file mode 100644 index 000000000000..bf1c382371ae --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOldName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class CompanyOldName extends CompanyName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/companies/{company}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private CompanyOldName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + company = Preconditions.checkNotNull(builder.getCompany()); + } + + public static CompanyOldName of(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build(); + } + + public static String format(String project, String company) { + return newBuilder().setProject(project).setCompany(company).build().toString(); + } + + public static CompanyOldName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "CompanyOldName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("company")); + } + + 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 (CompanyOldName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("company", company); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "company", company); + } + + /** Builder for CompanyOldName. */ + public static class Builder { + + private String project; + private String company; + + public String getProject() { + return project; + } + + public String getCompany() { + return company; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setCompany(String company) { + this.company = company; + return this; + } + + private Builder() {} + + private Builder(CompanyOldName companyOldName) { + project = companyOldName.project; + company = companyOldName.company; + } + + public CompanyOldName build() { + return new CompanyOldName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof CompanyOldName) { + CompanyOldName that = (CompanyOldName) o; + return (this.project.equals(that.project)) && (this.company.equals(that.company)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= company.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java index 575187124d9f..81a6af749a31 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java @@ -15,8 +15,11 @@ public interface CompanyOrBuilder * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -29,8 +32,11 @@ public interface CompanyOrBuilder * Required during company update. * The resource name for a company. This is generated by the service when a * company is created. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * * * string name = 1; @@ -266,11 +272,11 @@ public interface CompanyOrBuilder * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -283,11 +289,11 @@ public interface CompanyOrBuilder * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -300,11 +306,11 @@ public interface CompanyOrBuilder * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; @@ -317,11 +323,11 @@ public interface CompanyOrBuilder * Optional. * A list of keys of filterable * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - * whose corresponding `string_values` are used in keyword search. Jobs with + * whose corresponding `string_values` are used in keyword searches. Jobs with * `string_values` under these specified field keys are returned if any - * of the values matches the search keyword. Custom field values with - * parenthesis, brackets and special symbols won't be properly searchable, - * and those keyword queries need to be surrounded by quotes. + * of the values match the search keyword. Custom field values with + * parenthesis, brackets and special symbols are not searchable as-is, + * and those keyword queries must be surrounded by quotes. * * * repeated string keyword_searchable_job_custom_attributes = 11; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java index 4b042810a7d3..6ff174bf7509 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java @@ -65,31 +65,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sponse\0227\n\tcompanies\030\001 \003(\0132$.google.cloud" + ".talent.v4beta1.Company\022\027\n\017next_page_tok" + "en\030\002 \001(\t\022?\n\010metadata\030\003 \001(\0132-.google.clou" - + "d.talent.v4beta1.ResponseMetadata2\237\006\n\016Co" - + "mpanyService\022\233\001\n\rCreateCompany\0221.google." + + "d.talent.v4beta1.ResponseMetadata2\261\010\n\016Co" + + "mpanyService\022\322\001\n\rCreateCompany\0221.google." + "cloud.talent.v4beta1.CreateCompanyReques" + "t\032$.google.cloud.talent.v4beta1.Company\"" - + "1\202\323\344\223\002+\"&/v4beta1/{parent=projects/*}/co" - + "mpanies:\001*\022\222\001\n\nGetCompany\022..google.cloud" - + ".talent.v4beta1.GetCompanyRequest\032$.goog" - + "le.cloud.talent.v4beta1.Company\".\202\323\344\223\002(\022" - + "&/v4beta1/{name=projects/*/companies/*}\022" - + "\243\001\n\rUpdateCompany\0221.google.cloud.talent." - + "v4beta1.UpdateCompanyRequest\032$.google.cl" - + "oud.talent.v4beta1.Company\"9\202\323\344\223\00232./v4b" - + "eta1/{company.name=projects/*/companies/" - + "*}:\001*\022\212\001\n\rDeleteCompany\0221.google.cloud.t" - + "alent.v4beta1.DeleteCompanyRequest\032\026.goo" - + "gle.protobuf.Empty\".\202\323\344\223\002(*&/v4beta1/{na" - + "me=projects/*/companies/*}\022\246\001\n\rListCompa" - + "nies\0221.google.cloud.talent.v4beta1.ListC" - + "ompaniesRequest\0322.google.cloud.talent.v4" - + "beta1.ListCompaniesResponse\".\202\323\344\223\002(\022&/v4" - + "beta1/{parent=projects/*}/companiesB\201\001\n\037" - + "com.google.cloud.talent.v4beta1B\023Company" - + "ServiceProtoP\001ZAgoogle.golang.org/genpro" - + "to/googleapis/cloud/talent/v4beta1;talen" - + "t\242\002\003CTSb\006proto3" + + "h\202\323\344\223\002b\"0/v4beta1/{parent=projects/*/ten" + + "ants/*}/companies:\001*Z+\"&/v4beta1/{parent" + + "=projects/*}/companies:\001*\022\306\001\n\nGetCompany" + + "\022..google.cloud.talent.v4beta1.GetCompan" + + "yRequest\032$.google.cloud.talent.v4beta1.C" + + "ompany\"b\202\323\344\223\002\\\0220/v4beta1/{name=projects/" + + "*/tenants/*/companies/*}Z(\022&/v4beta1/{na" + + "me=projects/*/companies/*}\022\342\001\n\rUpdateCom" + + "pany\0221.google.cloud.talent.v4beta1.Updat" + + "eCompanyRequest\032$.google.cloud.talent.v4" + + "beta1.Company\"x\202\323\344\223\002r28/v4beta1/{company" + + ".name=projects/*/tenants/*/companies/*}:" + + "\001*Z32./v4beta1/{company.name=projects/*/" + + "companies/*}:\001*\022\276\001\n\rDeleteCompany\0221.goog" + + "le.cloud.talent.v4beta1.DeleteCompanyReq" + + "uest\032\026.google.protobuf.Empty\"b\202\323\344\223\002\\*0/v" + + "4beta1/{name=projects/*/tenants/*/compan" + + "ies/*}Z(*&/v4beta1/{name=projects/*/comp" + + "anies/*}\022\332\001\n\rListCompanies\0221.google.clou" + + "d.talent.v4beta1.ListCompaniesRequest\0322." + + "google.cloud.talent.v4beta1.ListCompanie" + + "sResponse\"b\202\323\344\223\002\\\0220/v4beta1/{parent=proj" + + "ects/*/tenants/*}/companiesZ(\022&/v4beta1/" + + "{parent=projects/*}/companiesB\201\001\n\037com.go" + + "ogle.cloud.talent.v4beta1B\023CompanyServic" + + "eProtoP\001ZAgoogle.golang.org/genproto/goo" + + "gleapis/cloud/talent/v4beta1;talent\242\002\003CT" + + "Sb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java index 2882f322f519..e34da32b4d57 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java @@ -1438,14 +1438,12 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType - .COMPENSATION_TYPE_UNSPECIFIED - .getNumber()) { + .COMPENSATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (unit_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit - .COMPENSATION_UNIT_UNSPECIFIED - .getNumber()) { + .COMPENSATION_UNIT_UNSPECIFIED.getNumber()) { output.writeEnum(2, unit_); } if (compensationAmountCase_ == 3) { @@ -1474,14 +1472,12 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType - .COMPENSATION_TYPE_UNSPECIFIED - .getNumber()) { + .COMPENSATION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (unit_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit - .COMPENSATION_UNIT_UNSPECIFIED - .getNumber()) { + .COMPENSATION_UNIT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unit_); } if (compensationAmountCase_ == 3) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java index f363034e4261..140a3a7257db 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java @@ -24,11 +24,11 @@ private CompleteQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder b } private CompleteQueryRequest() { - name_ = ""; + parent_ = ""; query_ = ""; languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; pageSize_ = 0; - companyName_ = ""; + company_ = ""; scope_ = 0; type_ = 0; } @@ -61,7 +61,7 @@ private CompleteQueryRequest( { java.lang.String s = input.readStringRequireUtf8(); - name_ = s; + parent_ = s; break; } case 18: @@ -90,7 +90,7 @@ private CompleteQueryRequest( { java.lang.String s = input.readStringRequireUtf8(); - companyName_ = s; + company_ = s; break; } case 48: @@ -465,28 +465,30 @@ private CompletionType(int value) { } private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; /** * * *
    * Required.
-   * Resource name of project the completion is performed within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of tenant the completion is performed within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* - * string name = 1; + * string parent = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + 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(); - name_ = s; + parent_ = s; return s; } } @@ -495,19 +497,21 @@ public java.lang.String getName() { * *
    * Required.
-   * Resource name of project the completion is performed within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of tenant the completion is performed within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* - * string name = 1; + * string parent = 1; */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + 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); - name_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -717,28 +721,31 @@ public int getPageSize() { return pageSize_; } - public static final int COMPANY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object companyName_; + public static final int COMPANY_FIELD_NUMBER = 5; + private volatile java.lang.Object company_; /** * * *
    * Optional.
    * If provided, restricts completion to specified company.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 5; + * string company = 5; */ - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; + 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(); - companyName_ = s; + company_ = s; return s; } } @@ -748,18 +755,21 @@ public java.lang.String getCompanyName() { *
    * Optional.
    * If provided, restricts completion to specified company.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 5; + * string company = 5; */ - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; + 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); - companyName_ = b; + company_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -852,8 +862,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); @@ -864,19 +874,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } - if (!getCompanyNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, companyName_); + if (!getCompanyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, company_); } if (scope_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope - .COMPLETION_SCOPE_UNSPECIFIED - .getNumber()) { + .COMPLETION_SCOPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, scope_); } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED - .getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(7, type_); } unknownFields.writeTo(output); @@ -888,8 +896,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); @@ -905,19 +913,17 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } - if (!getCompanyNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, companyName_); + if (!getCompanyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, company_); } if (scope_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope - .COMPLETION_SCOPE_UNSPECIFIED - .getNumber()) { + .COMPLETION_SCOPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED - .getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); } size += unknownFields.getSerializedSize(); @@ -937,11 +943,11 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.talent.v4beta1.CompleteQueryRequest) obj; boolean result = true; - result = result && getName().equals(other.getName()); + result = result && getParent().equals(other.getParent()); result = result && getQuery().equals(other.getQuery()); result = result && getLanguageCodesList().equals(other.getLanguageCodesList()); result = result && (getPageSize() == other.getPageSize()); - result = result && getCompanyName().equals(other.getCompanyName()); + result = result && getCompany().equals(other.getCompany()); result = result && scope_ == other.scope_; result = result && type_ == other.type_; result = result && unknownFields.equals(other.unknownFields); @@ -955,8 +961,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); if (getLanguageCodesCount() > 0) { @@ -965,8 +971,8 @@ public int hashCode() { } hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + scope_; hash = (37 * hash) + TYPE_FIELD_NUMBER; @@ -1117,7 +1123,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; + parent_ = ""; query_ = ""; @@ -1125,7 +1131,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; - companyName_ = ""; + company_ = ""; scope_ = 0; @@ -1160,7 +1166,7 @@ public com.google.cloud.talent.v4beta1.CompleteQueryRequest buildPartial() { new com.google.cloud.talent.v4beta1.CompleteQueryRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - result.name_ = name_; + result.parent_ = parent_; result.query_ = query_; if (((bitField0_ & 0x00000004) == 0x00000004)) { languageCodes_ = languageCodes_.getUnmodifiableView(); @@ -1168,7 +1174,7 @@ public com.google.cloud.talent.v4beta1.CompleteQueryRequest buildPartial() { } result.languageCodes_ = languageCodes_; result.pageSize_ = pageSize_; - result.companyName_ = companyName_; + result.company_ = company_; result.scope_ = scope_; result.type_ = type_; result.bitField0_ = to_bitField0_; @@ -1222,8 +1228,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryRequest other) { if (other == com.google.cloud.talent.v4beta1.CompleteQueryRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; onChanged(); } if (!other.getQuery().isEmpty()) { @@ -1243,8 +1249,8 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompleteQueryRequest ot if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - if (!other.getCompanyName().isEmpty()) { - companyName_ = other.companyName_; + if (!other.getCompany().isEmpty()) { + company_ = other.company_; onChanged(); } if (other.scope_ != 0) { @@ -1285,25 +1291,27 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object name_ = ""; + private java.lang.Object parent_ = ""; /** * * *
      * Required.
-     * Resource name of project the completion is performed within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of tenant the completion is performed within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* - * string name = 1; + * string parent = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + 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(); - name_ = s; + parent_ = s; return s; } else { return (java.lang.String) ref; @@ -1314,19 +1322,21 @@ public java.lang.String getName() { * *
      * Required.
-     * Resource name of project the completion is performed within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of tenant the completion is performed within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* - * string name = 1; + * string parent = 1; */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + 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); - name_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1337,19 +1347,21 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required.
-     * Resource name of project the completion is performed within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of tenant the completion is performed within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* - * string name = 1; + * string parent = 1; */ - public Builder setName(java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + parent_ = value; onChanged(); return this; } @@ -1358,16 +1370,18 @@ public Builder setName(java.lang.String value) { * *
      * Required.
-     * Resource name of project the completion is performed within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of tenant the completion is performed within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* - * string name = 1; + * string parent = 1; */ - public Builder clearName() { + public Builder clearParent() { - name_ = getDefaultInstance().getName(); + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } @@ -1376,20 +1390,22 @@ public Builder clearName() { * *
      * Required.
-     * Resource name of project the completion is performed within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of tenant the completion is performed within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* - * string name = 1; + * string parent = 1; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + parent_ = value; onChanged(); return this; } @@ -1889,25 +1905,28 @@ public Builder clearPageSize() { return this; } - private java.lang.Object companyName_ = ""; + private java.lang.Object company_ = ""; /** * * *
      * Optional.
      * If provided, restricts completion to specified company.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 5; + * string company = 5; */ - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; + 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(); - companyName_ = s; + company_ = s; return s; } else { return (java.lang.String) ref; @@ -1919,18 +1938,21 @@ public java.lang.String getCompanyName() { *
      * Optional.
      * If provided, restricts completion to specified company.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 5; + * string company = 5; */ - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; + 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); - companyName_ = b; + company_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1942,18 +1964,21 @@ public com.google.protobuf.ByteString getCompanyNameBytes() { *
      * Optional.
      * If provided, restricts completion to specified company.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 5; + * string company = 5; */ - public Builder setCompanyName(java.lang.String value) { + public Builder setCompany(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - companyName_ = value; + company_ = value; onChanged(); return this; } @@ -1963,15 +1988,18 @@ public Builder setCompanyName(java.lang.String value) { *
      * Optional.
      * If provided, restricts completion to specified company.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 5; + * string company = 5; */ - public Builder clearCompanyName() { + public Builder clearCompany() { - companyName_ = getDefaultInstance().getCompanyName(); + company_ = getDefaultInstance().getCompany(); onChanged(); return this; } @@ -1981,19 +2009,22 @@ public Builder clearCompanyName() { *
      * Optional.
      * If provided, restricts completion to specified company.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 5; + * string company = 5; */ - public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + public Builder setCompanyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - companyName_ = value; + company_ = value; onChanged(); return this; } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java index 982aa5ea5358..bd0fed0ec143 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java @@ -13,27 +13,31 @@ public interface CompleteQueryRequestOrBuilder * *
    * Required.
-   * Resource name of project the completion is performed within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of tenant the completion is performed within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* - * string name = 1; + * string parent = 1; */ - java.lang.String getName(); + java.lang.String getParent(); /** * * *
    * Required.
-   * Resource name of project the completion is performed within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of tenant the completion is performed within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* - * string name = 1; + * string parent = 1; */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString getParentBytes(); /** * @@ -208,26 +212,32 @@ public interface CompleteQueryRequestOrBuilder *
    * Optional.
    * If provided, restricts completion to specified company.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 5; + * string company = 5; */ - java.lang.String getCompanyName(); + java.lang.String getCompany(); /** * * *
    * Optional.
    * If provided, restricts completion to specified company.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 5; + * string company = 5; */ - com.google.protobuf.ByteString getCompanyNameBytes(); + com.google.protobuf.ByteString getCompanyBytes(); /** * diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java index 10807621f658..ef701c12e252 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java @@ -429,8 +429,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED - .getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (!getImageUriBytes().isEmpty()) { @@ -450,8 +449,7 @@ public int getSerializedSize() { } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED - .getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!getImageUriBytes().isEmpty()) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java index 71b87989a667..9e26e58cfaa8 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java @@ -36,35 +36,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n4google/cloud/talent/v4beta1/completion" + "_service.proto\022\033google.cloud.talent.v4be" + "ta1\032\034google/api/annotations.proto\032(googl" - + "e/cloud/talent/v4beta1/common.proto\"\305\003\n\024" - + "CompleteQueryRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005qu" - + "ery\030\002 \001(\t\022\026\n\016language_codes\030\003 \003(\t\022\021\n\tpag" - + "e_size\030\004 \001(\005\022\024\n\014company_name\030\005 \001(\t\022P\n\005sc" - + "ope\030\006 \001(\0162A.google.cloud.talent.v4beta1." - + "CompleteQueryRequest.CompletionScope\022N\n\004" - + "type\030\007 \001(\0162@.google.cloud.talent.v4beta1" - + ".CompleteQueryRequest.CompletionType\"K\n\017" - + "CompletionScope\022 \n\034COMPLETION_SCOPE_UNSP" - + "ECIFIED\020\000\022\n\n\006TENANT\020\001\022\n\n\006PUBLIC\020\002\"`\n\016Com" - + "pletionType\022\037\n\033COMPLETION_TYPE_UNSPECIFI" - + "ED\020\000\022\r\n\tJOB_TITLE\020\001\022\020\n\014COMPANY_NAME\020\002\022\014\n" - + "\010COMBINED\020\003\"\305\002\n\025CompleteQueryResponse\022_\n" - + "\022completion_results\030\001 \003(\0132C.google.cloud" - + ".talent.v4beta1.CompleteQueryResponse.Co" - + "mpletionResult\022?\n\010metadata\030\002 \001(\0132-.googl" - + "e.cloud.talent.v4beta1.ResponseMetadata\032" - + "\211\001\n\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t" - + "\022N\n\004type\030\002 \001(\0162@.google.cloud.talent.v4b" - + "eta1.CompleteQueryRequest.CompletionType" - + "\022\021\n\timage_uri\030\003 \001(\t2\262\001\n\nCompletion\022\243\001\n\rC" - + "ompleteQuery\0221.google.cloud.talent.v4bet" - + "a1.CompleteQueryRequest\0322.google.cloud.t" - + "alent.v4beta1.CompleteQueryResponse\"+\202\323\344" - + "\223\002%\022#/v4beta1/{name=projects/*}:complete" - + "B\204\001\n\037com.google.cloud.talent.v4beta1B\026Co" - + "mpletionServiceProtoP\001ZAgoogle.golang.or" - + "g/genproto/googleapis/cloud/talent/v4bet" - + "a1;talent\242\002\003CTSb\006proto3" + + "e/cloud/talent/v4beta1/common.proto\"\302\003\n\024" + + "CompleteQueryRequest\022\016\n\006parent\030\001 \001(\t\022\r\n\005" + + "query\030\002 \001(\t\022\026\n\016language_codes\030\003 \003(\t\022\021\n\tp" + + "age_size\030\004 \001(\005\022\017\n\007company\030\005 \001(\t\022P\n\005scope" + + "\030\006 \001(\0162A.google.cloud.talent.v4beta1.Com" + + "pleteQueryRequest.CompletionScope\022N\n\004typ" + + "e\030\007 \001(\0162@.google.cloud.talent.v4beta1.Co" + + "mpleteQueryRequest.CompletionType\"K\n\017Com" + + "pletionScope\022 \n\034COMPLETION_SCOPE_UNSPECI" + + "FIED\020\000\022\n\n\006TENANT\020\001\022\n\n\006PUBLIC\020\002\"`\n\016Comple" + + "tionType\022\037\n\033COMPLETION_TYPE_UNSPECIFIED\020" + + "\000\022\r\n\tJOB_TITLE\020\001\022\020\n\014COMPANY_NAME\020\002\022\014\n\010CO" + + "MBINED\020\003\"\305\002\n\025CompleteQueryResponse\022_\n\022co" + + "mpletion_results\030\001 \003(\0132C.google.cloud.ta" + + "lent.v4beta1.CompleteQueryResponse.Compl" + + "etionResult\022?\n\010metadata\030\002 \001(\0132-.google.c" + + "loud.talent.v4beta1.ResponseMetadata\032\211\001\n" + + "\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t\022N\n" + + "\004type\030\002 \001(\0162@.google.cloud.talent.v4beta" + + "1.CompleteQueryRequest.CompletionType\022\021\n" + + "\timage_uri\030\003 \001(\t2\347\001\n\nCompletion\022\330\001\n\rComp" + + "leteQuery\0221.google.cloud.talent.v4beta1." + + "CompleteQueryRequest\0322.google.cloud.tale" + + "nt.v4beta1.CompleteQueryResponse\"`\202\323\344\223\002Z" + + "\022//v4beta1/{parent=projects/*/tenants/*}" + + ":completeZ\'\022%/v4beta1/{parent=projects/*" + + "}:completeB\204\001\n\037com.google.cloud.talent.v" + + "4beta1B\026CompletionServiceProtoP\001ZAgoogle" + + ".golang.org/genproto/googleapis/cloud/ta" + + "lent/v4beta1;talent\242\002\003CTSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -87,7 +88,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_CompleteQueryRequest_descriptor, new java.lang.String[] { - "Name", "Query", "LanguageCodes", "PageSize", "CompanyName", "Scope", "Type", + "Parent", "Query", "LanguageCodes", "PageSize", "Company", "Scope", "Type", }); internal_static_google_cloud_talent_v4beta1_CompleteQueryResponse_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java new file mode 100644 index 000000000000..e64de487246b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java @@ -0,0 +1,907 @@ +// 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 + 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(); + } + 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.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 (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + 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; + */ + public boolean hasApplication() { + return application_ != null; + } + /** + * + * + *
+   * Required.
+   * The application to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application application = 2; + */ + 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; + */ + 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 (!getParentBytes().isEmpty()) { + 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 (!getParentBytes().isEmpty()) { + 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; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && (hasApplication() == other.hasApplication()); + if (hasApplication()) { + result = result && getApplication().equals(other.getApplication()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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 (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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_ = null; + 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; + */ + public boolean hasApplication() { + return applicationBuilder_ != null || application_ != null; + } + /** + * + * + *
+     * Required.
+     * The application to be created.
+     * 
+ * + * .google.cloud.talent.v4beta1.Application application = 2; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..d49a51f3fad0 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java @@ -0,0 +1,73 @@ +// 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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required.
+   * The application to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application application = 2; + */ + boolean hasApplication(); + /** + * + * + *
+   * Required.
+   * The application to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application application = 2; + */ + com.google.cloud.talent.v4beta1.Application getApplication(); + /** + * + * + *
+   * Required.
+   * The application to be created.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application application = 2; + */ + com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java index fc01eee2b685..205341053fea 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java @@ -113,7 +113,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Parent project name.
+   * Required.
+   * Resource name of the tenant under which the event is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -133,7 +138,12 @@ public java.lang.String getParent() { * * *
-   * Parent project name.
+   * Required.
+   * Resource name of the tenant under which the event is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -550,7 +560,12 @@ public Builder mergeFrom( * * *
-     * Parent project name.
+     * Required.
+     * Resource name of the tenant under which the event is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -570,7 +585,12 @@ public java.lang.String getParent() { * * *
-     * Parent project name.
+     * Required.
+     * Resource name of the tenant under which the event is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -590,7 +610,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Parent project name.
+     * Required.
+     * Resource name of the tenant under which the event is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -608,7 +633,12 @@ public Builder setParent(java.lang.String value) { * * *
-     * Parent project name.
+     * Required.
+     * Resource name of the tenant under which the event is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -623,7 +653,12 @@ public Builder clearParent() { * * *
-     * Parent project name.
+     * Required.
+     * Resource name of the tenant under which the event is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java index fc28ad9c1563..5a8ec7225fce 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java @@ -12,7 +12,12 @@ public interface CreateClientEventRequestOrBuilder * * *
-   * Parent project name.
+   * Required.
+   * Resource name of the tenant under which the event is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -22,7 +27,12 @@ public interface CreateClientEventRequestOrBuilder * * *
-   * Parent project name.
+   * Required.
+   * Resource name of the tenant under which the event is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java index 3d96e5681665..1ffb10476510 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java @@ -114,9 +114,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -137,9 +139,11 @@ public java.lang.String getParent() { * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -553,9 +557,11 @@ public Builder mergeFrom( * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -576,9 +582,11 @@ public java.lang.String getParent() { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -599,9 +607,11 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -620,9 +630,11 @@ public Builder setParent(java.lang.String value) { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -638,9 +650,11 @@ public Builder clearParent() { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java index 66c77cc47271..1fc6c76c6daf 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java @@ -13,9 +13,11 @@ public interface CreateCompanyRequestOrBuilder * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -26,9 +28,11 @@ public interface CreateCompanyRequestOrBuilder * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java index ef27d7e96821..1b8d0110931a 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java @@ -115,9 +115,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -138,9 +140,11 @@ public java.lang.String getParent() { * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -552,9 +556,11 @@ public Builder mergeFrom( * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -575,9 +581,11 @@ public java.lang.String getParent() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -598,9 +606,11 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -619,9 +629,11 @@ public Builder setParent(java.lang.String value) { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -637,9 +649,11 @@ public Builder clearParent() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and a default tenant is created if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java index d26387c15ca5..b1d74d059f92 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java @@ -13,9 +13,11 @@ public interface CreateJobRequestOrBuilder * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -26,9 +28,11 @@ public interface CreateJobRequestOrBuilder * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and a default tenant is created if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java new file mode 100644 index 000000000000..e3a5b8bb5098 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java @@ -0,0 +1,635 @@ +// 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 + 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(); + } + 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; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+   * 
+ * + * string name = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+   * 
+ * + * string name = 1; + */ + 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 (!getNameBytes().isEmpty()) { + 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 (!getNameBytes().isEmpty()) { + 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; + + boolean result = true; + result = result && getName().equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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 (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+     * 
+ * + * string name = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+     * 
+ * + * string name = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+     * 
+ * + * string name = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+     * 
+ * + * string name = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+     * 
+ * + * string name = 1; + */ + 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.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..aba3e0997479 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java @@ -0,0 +1,41 @@ +// 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+   * 
+ * + * string name = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java index 7833f2f99391..7c95d4c8b9bd 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java @@ -99,8 +99,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required.
    * The resource name of the company to be deleted.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; @@ -122,8 +125,11 @@ public java.lang.String getName() { *
    * Required.
    * The resource name of the company to be deleted.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; @@ -466,8 +472,11 @@ public Builder mergeFrom( *
      * Required.
      * The resource name of the company to be deleted.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -489,8 +498,11 @@ public java.lang.String getName() { *
      * Required.
      * The resource name of the company to be deleted.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -512,8 +524,11 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required.
      * The resource name of the company to be deleted.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -533,8 +548,11 @@ public Builder setName(java.lang.String value) { *
      * Required.
      * The resource name of the company to be deleted.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -551,8 +569,11 @@ public Builder clearName() { *
      * Required.
      * The resource name of the company to be deleted.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java index c58559744c28..f9e2c33538d6 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java @@ -14,8 +14,11 @@ public interface DeleteCompanyRequestOrBuilder *
    * Required.
    * The resource name of the company to be deleted.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; @@ -27,8 +30,11 @@ public interface DeleteCompanyRequestOrBuilder *
    * Required.
    * The resource name of the company to be deleted.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java index 686a3020320c..fc370f961d60 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java @@ -100,8 +100,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required.
    * The resource name of the job to be deleted.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; @@ -123,8 +126,11 @@ public java.lang.String getName() { *
    * Required.
    * The resource name of the job to be deleted.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; @@ -467,8 +473,11 @@ public Builder mergeFrom( *
      * Required.
      * The resource name of the job to be deleted.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -490,8 +499,11 @@ public java.lang.String getName() { *
      * Required.
      * The resource name of the job to be deleted.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -513,8 +525,11 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required.
      * The resource name of the job to be deleted.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -534,8 +549,11 @@ public Builder setName(java.lang.String value) { *
      * Required.
      * The resource name of the job to be deleted.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -552,8 +570,11 @@ public Builder clearName() { *
      * Required.
      * The resource name of the job to be deleted.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java index 5d5d2736def3..fadf96c121a2 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java @@ -14,8 +14,11 @@ public interface DeleteJobRequestOrBuilder *
    * Required.
    * The resource name of the job to be deleted.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; @@ -27,8 +30,11 @@ public interface DeleteJobRequestOrBuilder *
    * Required.
    * The resource name of the job to be deleted.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java index 1bcb27c02484..fbc5511bbe35 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java @@ -407,8 +407,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (mode_ != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode - .EMPLOYER_FILTER_MODE_UNSPECIFIED - .getNumber()) { + .EMPLOYER_FILTER_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, mode_); } if (negated_ != false) { @@ -428,8 +427,7 @@ public int getSerializedSize() { } if (mode_ != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode - .EMPLOYER_FILTER_MODE_UNSPECIFIED - .getNumber()) { + .EMPLOYER_FILTER_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); } if (negated_ != false) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java index 5455e7e9e686..b3b353d8f26c 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java @@ -131,14 +131,14 @@ private EmploymentRecord( case 66: { com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isSupervisedPosition_ != null) { - subBuilder = isSupervisedPosition_.toBuilder(); + if (isSupervisor_ != null) { + subBuilder = isSupervisor_.toBuilder(); } - isSupervisedPosition_ = + isSupervisor_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(isSupervisedPosition_); - isSupervisedPosition_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(isSupervisor_); + isSupervisor_ = subBuilder.buildPartial(); } break; @@ -583,48 +583,48 @@ public com.google.protobuf.ByteString getJobDescriptionBytes() { } } - public static final int IS_SUPERVISED_POSITION_FIELD_NUMBER = 8; - private com.google.protobuf.BoolValue isSupervisedPosition_; + public static final int IS_SUPERVISOR_FIELD_NUMBER = 8; + private com.google.protobuf.BoolValue isSupervisor_; /** * * *
    * Optional.
-   * If it's a supervised position.
+   * If it is a supervisor position.
    * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public boolean hasIsSupervisedPosition() { - return isSupervisedPosition_ != null; + public boolean hasIsSupervisor() { + return isSupervisor_ != null; } /** * * *
    * Optional.
-   * If it's a supervised position.
+   * If it is a supervisor position.
    * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public com.google.protobuf.BoolValue getIsSupervisedPosition() { - return isSupervisedPosition_ == null + public com.google.protobuf.BoolValue getIsSupervisor() { + return isSupervisor_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSupervisedPosition_; + : isSupervisor_; } /** * * *
    * Optional.
-   * If it's a supervised position.
+   * If it is a supervisor position.
    * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { - return getIsSupervisedPosition(); + public com.google.protobuf.BoolValueOrBuilder getIsSupervisorOrBuilder() { + return getIsSupervisor(); } public static final int IS_SELF_EMPLOYED_FIELD_NUMBER = 9; @@ -901,8 +901,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getJobDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, jobDescription_); } - if (isSupervisedPosition_ != null) { - output.writeMessage(8, getIsSupervisedPosition()); + if (isSupervisor_ != null) { + output.writeMessage(8, getIsSupervisor()); } if (isSelfEmployed_ != null) { output.writeMessage(9, getIsSelfEmployed()); @@ -949,9 +949,8 @@ public int getSerializedSize() { if (!getJobDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, jobDescription_); } - if (isSupervisedPosition_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIsSupervisedPosition()); + if (isSupervisor_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getIsSupervisor()); } if (isSelfEmployed_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsSelfEmployed()); @@ -1001,9 +1000,9 @@ public boolean equals(final java.lang.Object obj) { } result = result && getJobTitle().equals(other.getJobTitle()); result = result && getJobDescription().equals(other.getJobDescription()); - result = result && (hasIsSupervisedPosition() == other.hasIsSupervisedPosition()); - if (hasIsSupervisedPosition()) { - result = result && getIsSupervisedPosition().equals(other.getIsSupervisedPosition()); + result = result && (hasIsSupervisor() == other.hasIsSupervisor()); + if (hasIsSupervisor()) { + result = result && getIsSupervisor().equals(other.getIsSupervisor()); } result = result && (hasIsSelfEmployed() == other.hasIsSelfEmployed()); if (hasIsSelfEmployed()) { @@ -1047,9 +1046,9 @@ public int hashCode() { hash = (53 * hash) + getJobTitle().hashCode(); hash = (37 * hash) + JOB_DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getJobDescription().hashCode(); - if (hasIsSupervisedPosition()) { - hash = (37 * hash) + IS_SUPERVISED_POSITION_FIELD_NUMBER; - hash = (53 * hash) + getIsSupervisedPosition().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; @@ -1236,11 +1235,11 @@ public Builder clear() { jobDescription_ = ""; - if (isSupervisedPositionBuilder_ == null) { - isSupervisedPosition_ = null; + if (isSupervisorBuilder_ == null) { + isSupervisor_ = null; } else { - isSupervisedPosition_ = null; - isSupervisedPositionBuilder_ = null; + isSupervisor_ = null; + isSupervisorBuilder_ = null; } if (isSelfEmployedBuilder_ == null) { isSelfEmployed_ = null; @@ -1306,10 +1305,10 @@ public com.google.cloud.talent.v4beta1.EmploymentRecord buildPartial() { } result.jobTitle_ = jobTitle_; result.jobDescription_ = jobDescription_; - if (isSupervisedPositionBuilder_ == null) { - result.isSupervisedPosition_ = isSupervisedPosition_; + if (isSupervisorBuilder_ == null) { + result.isSupervisor_ = isSupervisor_; } else { - result.isSupervisedPosition_ = isSupervisedPositionBuilder_.build(); + result.isSupervisor_ = isSupervisorBuilder_.build(); } if (isSelfEmployedBuilder_ == null) { result.isSelfEmployed_ = isSelfEmployed_; @@ -1399,8 +1398,8 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.EmploymentRecord other) jobDescription_ = other.jobDescription_; onChanged(); } - if (other.hasIsSupervisedPosition()) { - mergeIsSupervisedPosition(other.getIsSupervisedPosition()); + if (other.hasIsSupervisor()) { + mergeIsSupervisor(other.getIsSupervisor()); } if (other.hasIsSelfEmployed()) { mergeIsSelfEmployed(other.getIsSelfEmployed()); @@ -2523,42 +2522,42 @@ public Builder setJobDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.BoolValue isSupervisedPosition_ = null; + private com.google.protobuf.BoolValue isSupervisor_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - isSupervisedPositionBuilder_; + isSupervisorBuilder_; /** * * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public boolean hasIsSupervisedPosition() { - return isSupervisedPositionBuilder_ != null || isSupervisedPosition_ != null; + public boolean hasIsSupervisor() { + return isSupervisorBuilder_ != null || isSupervisor_ != null; } /** * * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public com.google.protobuf.BoolValue getIsSupervisedPosition() { - if (isSupervisedPositionBuilder_ == null) { - return isSupervisedPosition_ == null + public com.google.protobuf.BoolValue getIsSupervisor() { + if (isSupervisorBuilder_ == null) { + return isSupervisor_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSupervisedPosition_; + : isSupervisor_; } else { - return isSupervisedPositionBuilder_.getMessage(); + return isSupervisorBuilder_.getMessage(); } } /** @@ -2566,20 +2565,20 @@ public com.google.protobuf.BoolValue getIsSupervisedPosition() { * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue value) { - if (isSupervisedPositionBuilder_ == null) { + public Builder setIsSupervisor(com.google.protobuf.BoolValue value) { + if (isSupervisorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - isSupervisedPosition_ = value; + isSupervisor_ = value; onChanged(); } else { - isSupervisedPositionBuilder_.setMessage(value); + isSupervisorBuilder_.setMessage(value); } return this; @@ -2589,17 +2588,17 @@ public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue value) { * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isSupervisedPositionBuilder_ == null) { - isSupervisedPosition_ = builderForValue.build(); + public Builder setIsSupervisor(com.google.protobuf.BoolValue.Builder builderForValue) { + if (isSupervisorBuilder_ == null) { + isSupervisor_ = builderForValue.build(); onChanged(); } else { - isSupervisedPositionBuilder_.setMessage(builderForValue.build()); + isSupervisorBuilder_.setMessage(builderForValue.build()); } return this; @@ -2609,24 +2608,24 @@ public Builder setIsSupervisedPosition(com.google.protobuf.BoolValue.Builder bui * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public Builder mergeIsSupervisedPosition(com.google.protobuf.BoolValue value) { - if (isSupervisedPositionBuilder_ == null) { - if (isSupervisedPosition_ != null) { - isSupervisedPosition_ = - com.google.protobuf.BoolValue.newBuilder(isSupervisedPosition_) + 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 { - isSupervisedPosition_ = value; + isSupervisor_ = value; } onChanged(); } else { - isSupervisedPositionBuilder_.mergeFrom(value); + isSupervisorBuilder_.mergeFrom(value); } return this; @@ -2636,18 +2635,18 @@ public Builder mergeIsSupervisedPosition(com.google.protobuf.BoolValue value) { * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public Builder clearIsSupervisedPosition() { - if (isSupervisedPositionBuilder_ == null) { - isSupervisedPosition_ = null; + public Builder clearIsSupervisor() { + if (isSupervisorBuilder_ == null) { + isSupervisor_ = null; onChanged(); } else { - isSupervisedPosition_ = null; - isSupervisedPositionBuilder_ = null; + isSupervisor_ = null; + isSupervisorBuilder_ = null; } return this; @@ -2657,33 +2656,33 @@ public Builder clearIsSupervisedPosition() { * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public com.google.protobuf.BoolValue.Builder getIsSupervisedPositionBuilder() { + public com.google.protobuf.BoolValue.Builder getIsSupervisorBuilder() { onChanged(); - return getIsSupervisedPositionFieldBuilder().getBuilder(); + return getIsSupervisorFieldBuilder().getBuilder(); } /** * * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() { - if (isSupervisedPositionBuilder_ != null) { - return isSupervisedPositionBuilder_.getMessageOrBuilder(); + public com.google.protobuf.BoolValueOrBuilder getIsSupervisorOrBuilder() { + if (isSupervisorBuilder_ != null) { + return isSupervisorBuilder_.getMessageOrBuilder(); } else { - return isSupervisedPosition_ == null + return isSupervisor_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() - : isSupervisedPosition_; + : isSupervisor_; } } /** @@ -2691,26 +2690,26 @@ public com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder() * *
      * Optional.
-     * If it's a supervised position.
+     * If it is a supervisor position.
      * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getIsSupervisedPositionFieldBuilder() { - if (isSupervisedPositionBuilder_ == null) { - isSupervisedPositionBuilder_ = + getIsSupervisorFieldBuilder() { + if (isSupervisorBuilder_ == null) { + isSupervisorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getIsSupervisedPosition(), getParentForChildren(), isClean()); - isSupervisedPosition_ = null; + getIsSupervisor(), getParentForChildren(), isClean()); + isSupervisor_ = null; } - return isSupervisedPositionBuilder_; + return isSupervisorBuilder_; } private com.google.protobuf.BoolValue isSelfEmployed_ = null; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java index 547750279263..348ecbabe9a7 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java @@ -254,34 +254,34 @@ public interface EmploymentRecordOrBuilder * *
    * Optional.
-   * If it's a supervised position.
+   * If it is a supervisor position.
    * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - boolean hasIsSupervisedPosition(); + boolean hasIsSupervisor(); /** * * *
    * Optional.
-   * If it's a supervised position.
+   * If it is a supervisor position.
    * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - com.google.protobuf.BoolValue getIsSupervisedPosition(); + com.google.protobuf.BoolValue getIsSupervisor(); /** * * *
    * Optional.
-   * If it's a supervised position.
+   * If it is a supervisor position.
    * 
* - * .google.protobuf.BoolValue is_supervised_position = 8; + * .google.protobuf.BoolValue is_supervisor = 8; */ - com.google.protobuf.BoolValueOrBuilder getIsSupervisedPositionOrBuilder(); + com.google.protobuf.BoolValueOrBuilder getIsSupervisorOrBuilder(); /** * diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java index 103263f5aae9..283df63518a1 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java @@ -16,10 +16,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_talent_v4beta1_ClientEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -40,41 +36,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n\'google/cloud/talent/v4beta1/event.prot" + "o\022\033google.cloud.talent.v4beta1\032\034google/a" + "pi/annotations.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\354\002\n\013ClientEvent\022\022\n\nrequest" + + "mestamp.proto\"\202\002\n\013ClientEvent\022\022\n\nrequest" + "_id\030\001 \001(\t\022\020\n\010event_id\030\002 \001(\t\022/\n\013create_ti" + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022:\n\t" + "job_event\030\005 \001(\0132%.google.cloud.talent.v4" + "beta1.JobEventH\000\022B\n\rprofile_event\030\006 \001(\0132" + ").google.cloud.talent.v4beta1.ProfileEve" - + "ntH\000\022K\n\nextra_info\030\007 \003(\01327.google.cloud." - + "talent.v4beta1.ClientEvent.ExtraInfoEntr" - + "y\0320\n\016ExtraInfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\007\n\005event\"\357\003\n\010JobEvent\022@\n\004typ" - + "e\030\001 \001(\01622.google.cloud.talent.v4beta1.Jo" - + "bEvent.JobEventType\022\014\n\004jobs\030\002 \003(\t\"\222\003\n\014Jo" - + "bEventType\022\036\n\032JOB_EVENT_TYPE_UNSPECIFIED" - + "\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004VIEW\020\002\022\021\n\rVIEW_RED" - + "IRECT\020\003\022\025\n\021APPLICATION_START\020\004\022\026\n\022APPLIC" - + "ATION_FINISH\020\005\022 \n\034APPLICATION_QUICK_SUBM" - + "ISSION\020\006\022\030\n\024APPLICATION_REDIRECT\020\007\022!\n\035AP" - + "PLICATION_START_FROM_SEARCH\020\010\022$\n APPLICA" - + "TION_REDIRECT_FROM_SEARCH\020\t\022\036\n\032APPLICATI" - + "ON_COMPANY_SUBMIT\020\n\022\014\n\010BOOKMARK\020\013\022\020\n\014NOT" - + "IFICATION\020\014\022\t\n\005HIRED\020\r\022\013\n\007SENT_CV\020\016\022\025\n\021I" - + "NTERVIEW_GRANTED\020\017\022\022\n\016NOT_INTERESTED\020\020\"\361" - + "\002\n\014ProfileEvent\022H\n\004type\030\001 \001(\0162:.google.c" - + "loud.talent.v4beta1.ProfileEvent.Profile" - + "EventType\022\020\n\010profiles\030\002 \003(\t\022\016\n\006job_id\030\003 " - + "\001(\t\"\364\001\n\020ProfileEventType\022\"\n\036PROFILE_EVEN" - + "T_TYPE_UNSPECIFIED\020\000\022\016\n\nIMPRESSION\020\001\022\010\n\004" - + "VIEW\020\002\022\014\n\010BOOKMARK\020\003\022\021\n\rCOMMENT_ADDED\020\004\022" - + "\016\n\nEMAIL_SENT\020\005\022\021\n\rRESUME_VIEWED\020\006\022\016\n\nAD" - + "D_TO_JOB\020\007\022 \n\034POSITIVE_REACTION_TO_PROFI" - + "LE\020\010\022 \n\034NEGATIVE_REACTION_TO_PROFILE\020\t\022\n" - + "\n\006SCREEN\020\nBx\n\037com.google.cloud.talent.v4" - + "beta1B\nEventProtoP\001ZAgoogle.golang.org/g" - + "enproto/googleapis/cloud/talent/v4beta1;" - + "talent\242\002\003CTSb\006proto3" + + "ntH\000\022\023\n\013event_notes\030\t \001(\tB\007\n\005event\"\357\003\n\010J" + + "obEvent\022@\n\004type\030\001 \001(\01622.google.cloud.tal" + + "ent.v4beta1.JobEvent.JobEventType\022\014\n\004job" + + "s\030\002 \003(\t\"\222\003\n\014JobEventType\022\036\n\032JOB_EVENT_TY" + + "PE_UNSPECIFIED\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_STA" + + "RT\020\004\022\026\n\022APPLICATION_FINISH\020\005\022 \n\034APPLICAT" + + "ION_QUICK_SUBMISSION\020\006\022\030\n\024APPLICATION_RE" + + "DIRECT\020\007\022!\n\035APPLICATION_START_FROM_SEARC" + + "H\020\010\022$\n APPLICATION_REDIRECT_FROM_SEARCH\020" + + "\t\022\036\n\032APPLICATION_COMPANY_SUBMIT\020\n\022\014\n\010BOO" + + "KMARK\020\013\022\020\n\014NOTIFICATION\020\014\022\t\n\005HIRED\020\r\022\013\n\007" + + "SENT_CV\020\016\022\025\n\021INTERVIEW_GRANTED\020\017\022\022\n\016NOT_" + + "INTERESTED\020\020\"\330\001\n\014ProfileEvent\022H\n\004type\030\001 " + + "\001(\0162:.google.cloud.talent.v4beta1.Profil" + + "eEvent.ProfileEventType\022\020\n\010profiles\030\002 \003(" + + "\t\022\014\n\004jobs\030\006 \003(\t\"^\n\020ProfileEventType\022\"\n\036P" + + "ROFILE_EVENT_TYPE_UNSPECIFIED\020\000\022\016\n\nIMPRE" + + "SSION\020\001\022\010\n\004VIEW\020\002\022\014\n\010BOOKMARK\020\003Bx\n\037com.g" + + "oogle.cloud.talent.v4beta1B\nEventProtoP\001" + + "ZAgoogle.golang.org/genproto/googleapis/" + + "cloud/talent/v4beta1;talent\242\002\003CTSb\006proto" + + "3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -102,17 +92,9 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "CreateTime", "JobEvent", "ProfileEvent", - "ExtraInfo", + "EventNotes", "Event", }); - internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor = - internal_static_google_cloud_talent_v4beta1_ClientEvent_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ClientEvent_ExtraInfoEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); internal_static_google_cloud_talent_v4beta1_JobEvent_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_talent_v4beta1_JobEvent_fieldAccessorTable = @@ -127,7 +109,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_ProfileEvent_descriptor, new java.lang.String[] { - "Type", "Profiles", "JobId", + "Type", "Profiles", "Jobs", }); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java index 0cf1c3a2ed60..1fdfe68cb9a9 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java @@ -31,15 +31,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud/talent/v4beta1/event.proto\"j\n\030CreateC" + "lientEventRequest\022\016\n\006parent\030\001 \001(\t\022>\n\014cli" + "ent_event\030\002 \001(\0132(.google.cloud.talent.v4" - + "beta1.ClientEvent2\273\001\n\014EventService\022\252\001\n\021C" + + "beta1.ClientEvent2\365\001\n\014EventService\022\344\001\n\021C" + "reateClientEvent\0225.google.cloud.talent.v" + "4beta1.CreateClientEventRequest\032(.google" - + ".cloud.talent.v4beta1.ClientEvent\"4\202\323\344\223\002" - + ".\")/v4beta1/{parent=projects/*}/clientEv" - + "ents:\001*B\177\n\037com.google.cloud.talent.v4bet" - + "a1B\021EventServiceProtoP\001ZAgoogle.golang.o" - + "rg/genproto/googleapis/cloud/talent/v4be" - + "ta1;talent\242\002\003CTSb\006proto3" + + ".cloud.talent.v4beta1.ClientEvent\"n\202\323\344\223\002" + + "h\"3/v4beta1/{parent=projects/*/tenants/*" + + "}/clientEvents:\001*Z.\")/v4beta1/{parent=pr" + + "ojects/*}/clientEvents:\001*B\177\n\037com.google." + + "cloud.talent.v4beta1B\021EventServiceProtoP" + + "\001ZAgoogle.golang.org/genproto/googleapis" + + "/cloud/talent/v4beta1;talent\242\002\003CTSb\006prot" + + "o3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java index c7d13f936a44..31ed9818328a 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java @@ -57,9 +57,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_ApplicationOutcomeReasonFilter_descriptor; + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable; + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -87,126 +87,127 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n)google/cloud/talent/v4beta1/filters.pr" + "oto\022\033google.cloud.talent.v4beta1\032\034google" - + "/api/annotations.proto\032(google/cloud/tal" - + "ent/v4beta1/common.proto\032%google/cloud/t" - + "alent/v4beta1/job.proto\032)google/cloud/ta" - + "lent/v4beta1/profile.proto\032\036google/proto" - + "buf/duration.proto\032\037google/protobuf/time" - + "stamp.proto\032\036google/protobuf/wrappers.pr" - + "oto\032\026google/type/date.proto\032\030google/type" - + "/latlng.proto\032\033google/type/timeofday.pro" - + "to\"\347\004\n\010JobQuery\022\r\n\005query\030\001 \001(\t\022\025\n\rcompan" - + "y_names\030\002 \003(\t\022E\n\020location_filters\030\003 \003(\0132" - + "+.google.cloud.talent.v4beta1.LocationFi" - + "lter\022@\n\016job_categories\030\004 \003(\0162(.google.cl" - + "oud.talent.v4beta1.JobCategory\022B\n\016commut" - + "e_filter\030\005 \001(\0132*.google.cloud.talent.v4b" - + "eta1.CommuteFilter\022\035\n\025company_display_na" - + "mes\030\006 \003(\t\022L\n\023compensation_filter\030\007 \001(\0132/" - + ".google.cloud.talent.v4beta1.Compensatio" - + "nFilter\022\037\n\027custom_attribute_filter\030\010 \001(\t" - + "\022\033\n\023disable_spell_check\030\t \001(\010\022E\n\020employm" - + "ent_types\030\n \003(\0162+.google.cloud.talent.v4" - + "beta1.EmploymentType\022\026\n\016language_codes\030\013" - + " \003(\t\022G\n\022publish_time_range\030\014 \001(\0132+.googl" - + "e.cloud.talent.v4beta1.TimestampRange\022\025\n" - + "\rexcluded_jobs\030\r \003(\t\"\256\010\n\014ProfileQuery\022\r\n" - + "\005query\030\001 \001(\t\022E\n\020location_filters\030\002 \003(\0132+" - + ".google.cloud.talent.v4beta1.LocationFil" - + "ter\022F\n\021job_title_filters\030\003 \003(\0132+.google." - + "cloud.talent.v4beta1.JobTitleFilter\022E\n\020e" - + "mployer_filters\030\004 \003(\0132+.google.cloud.tal" - + "ent.v4beta1.EmployerFilter\022G\n\021education_" - + "filters\030\005 \003(\0132,.google.cloud.talent.v4be" - + "ta1.EducationFilter\022?\n\rskill_filters\030\006 \003" - + "(\0132(.google.cloud.talent.v4beta1.SkillFi" - + "lter\022Q\n\026work_experience_filter\030\007 \003(\01321.g" - + "oogle.cloud.talent.v4beta1.WorkExperienc" - + "eFilter\022=\n\014time_filters\030\010 \003(\0132\'.google.c" - + "loud.talent.v4beta1.TimeFilter\0222\n\016hirabl" - + "e_filter\030\t \001(\0132\032.google.protobuf.BoolVal" - + "ue\022T\n\030application_date_filters\030\n \003(\01322.g" - + "oogle.cloud.talent.v4beta1.ApplicationDa" - + "teFilter\022g\n\"application_outcome_reason_f" - + "ilters\030\013 \003(\0132;.google.cloud.talent.v4bet" - + "a1.ApplicationOutcomeReasonFilter\022_\n\036app" - + "lication_last_stage_filters\030\014 \003(\01327.goog" - + "le.cloud.talent.v4beta1.ApplicationLastS" - + "tageFilter\022R\n\027application_job_filters\030\r " - + "\003(\01321.google.cloud.talent.v4beta1.Applic" - + "ationJobFilter\022X\n\032application_status_fil" - + "ters\030\016 \003(\01324.google.cloud.talent.v4beta1" - + ".ApplicationStatusFilter\022\033\n\023custom_field" - + "_filter\030\017 \001(\t\"\337\002\n\016LocationFilter\022\017\n\007addr" - + "ess\030\001 \001(\t\022\023\n\013region_code\030\002 \001(\t\022$\n\007lat_ln" - + "g\030\003 \001(\0132\023.google.type.LatLng\022\031\n\021distance" - + "_in_miles\030\004 \001(\001\022a\n\026telecommute_preferenc" - + "e\030\005 \001(\0162A.google.cloud.talent.v4beta1.Lo" - + "cationFilter.TelecommutePreference\022\017\n\007ne" - + "gated\030\006 \001(\010\"r\n\025TelecommutePreference\022&\n\"" - + "TELECOMMUTE_PREFERENCE_UNSPECIFIED\020\000\022\030\n\024" - + "TELECOMMUTE_EXCLUDED\020\001\022\027\n\023TELECOMMUTE_AL" - + "LOWED\020\002\"\300\003\n\022CompensationFilter\022H\n\004type\030\001" - + " \001(\0162:.google.cloud.talent.v4beta1.Compe" - + "nsationFilter.FilterType\022M\n\005units\030\002 \003(\0162" - + ">.google.cloud.talent.v4beta1.Compensati" - + "onInfo.CompensationUnit\022N\n\005range\030\003 \001(\0132?" - + ".google.cloud.talent.v4beta1.Compensatio" - + "nInfo.CompensationRange\0228\n0include_jobs_" - + "with_unspecified_compensation_range\030\004 \001(" - + "\010\"\206\001\n\nFilterType\022\033\n\027FILTER_TYPE_UNSPECIF" - + "IED\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\027ANNUALI" - + "ZED_TOTAL_AMOUNT\020\004\"\274\003\n\rCommuteFilter\022B\n\016" - + "commute_method\030\001 \001(\0162*.google.cloud.tale" - + "nt.v4beta1.CommuteMethod\022.\n\021start_coordi" - + "nates\030\002 \001(\0132\023.google.type.LatLng\0222\n\017trav" - + "el_duration\030\003 \001(\0132\031.google.protobuf.Dura" - + "tion\022!\n\031allow_imprecise_addresses\030\004 \001(\010\022" - + "N\n\014road_traffic\030\005 \001(\01626.google.cloud.tal" - + "ent.v4beta1.CommuteFilter.RoadTrafficH\000\022" - + "0\n\016departure_time\030\006 \001(\0132\026.google.type.Ti" - + "meOfDayH\000\"L\n\013RoadTraffic\022\034\n\030ROAD_TRAFFIC" - + "_UNSPECIFIED\020\000\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tBUSY" - + "_HOUR\020\002B\020\n\016traffic_option\"4\n\016JobTitleFil" - + "ter\022\021\n\tjob_title\030\001 \001(\t\022\017\n\007negated\030\002 \001(\010\"" - + "-\n\013SkillFilter\022\r\n\005skill\030\001 \001(\t\022\017\n\007negated" - + "\030\002 \001(\010\"\241\002\n\016EmployerFilter\022\020\n\010employer\030\001 " - + "\001(\t\022L\n\004mode\030\002 \001(\0162>.google.cloud.talent." - + "v4beta1.EmployerFilter.EmployerFilterMod" - + "e\022\017\n\007negated\030\003 \001(\010\"\235\001\n\022EmployerFilterMod" - + "e\022$\n EMPLOYER_FILTER_MODE_UNSPECIFIED\020\000\022" - + "\032\n\026ALL_EMPLOYMENT_RECORDS\020\001\022#\n\037CURRENT_E" - + "MPLOYMENT_RECORDS_ONLY\020\002\022 \n\034PAST_EMPLOYM" - + "ENT_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.talen" - + "t.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.Durat" - + "ion\"c\n\025ApplicationDateFilter\022%\n\nstart_da" - + "te\030\001 \001(\0132\021.google.type.Date\022#\n\010end_date\030" - + "\002 \001(\0132\021.google.type.Date\"I\n\036ApplicationO" - + "utcomeReasonFilter\022\026\n\016outcome_reason\030\001 \001" - + "(\t\022\017\n\007negated\030\002 \001(\010\"A\n\032ApplicationLastSt" - + "ageFilter\022\022\n\nlast_stage\030\001 \001(\t\022\017\n\007negated" - + "\030\002 \001(\010\"h\n\024ApplicationJobFilter\022\020\n\010job_na" - + "me\030\001 \001(\t\022\032\n\022job_requisition_id\030\002 \001(\t\022\021\n\t" - + "job_title\030\003 \001(\t\022\017\n\007negated\030\004 \001(\010\"\205\001\n\027App" - + "licationStatusFilter\022Y\n\022application_stat" - + "us\030\001 \001(\0162=.google.cloud.talent.v4beta1.J" - + "obApplication.ApplicationStatus\022\017\n\007negat" - + "ed\030\002 \001(\010\"\374\001\n\nTimeFilter\022.\n\nstart_time\030\001 " - + "\001(\0132\032.google.protobuf.Timestamp\022,\n\010end_t" - + "ime\030\002 \001(\0132\032.google.protobuf.Timestamp\022E\n" - + "\ntime_field\030\003 \001(\01621.google.cloud.talent." - + "v4beta1.TimeFilter.TimeField\"I\n\tTimeFiel" - + "d\022\032\n\026TIME_FIELD_UNSPECIFIED\020\000\022\017\n\013CREATE_" - + "TIME\020\001\022\017\n\013UPDATE_TIME\020\002Bz\n\037com.google.cl" - + "oud.talent.v4beta1B\014FiltersProtoP\001ZAgoog" - + "le.golang.org/genproto/googleapis/cloud/" - + "talent/v4beta1;talent\242\002\003CTSb\006proto3" + + "/api/annotations.proto\032-google/cloud/tal" + + "ent/v4beta1/application.proto\032(google/cl" + + "oud/talent/v4beta1/common.proto\032%google/" + + "cloud/talent/v4beta1/job.proto\032)google/c" + + "loud/talent/v4beta1/profile.proto\032\036googl" + + "e/protobuf/duration.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/wrap" + + "pers.proto\032\026google/type/date.proto\032\030goog" + + "le/type/latlng.proto\032\033google/type/timeof" + + "day.proto\"\343\004\n\010JobQuery\022\r\n\005query\030\001 \001(\t\022\021\n" + + "\tcompanies\030\002 \003(\t\022E\n\020location_filters\030\003 \003" + + "(\0132+.google.cloud.talent.v4beta1.Locatio" + + "nFilter\022@\n\016job_categories\030\004 \003(\0162(.google" + + ".cloud.talent.v4beta1.JobCategory\022B\n\016com" + + "mute_filter\030\005 \001(\0132*.google.cloud.talent." + + "v4beta1.CommuteFilter\022\035\n\025company_display" + + "_names\030\006 \003(\t\022L\n\023compensation_filter\030\007 \001(" + + "\0132/.google.cloud.talent.v4beta1.Compensa" + + "tionFilter\022\037\n\027custom_attribute_filter\030\010 " + + "\001(\t\022\033\n\023disable_spell_check\030\t \001(\010\022E\n\020empl" + + "oyment_types\030\n \003(\0162+.google.cloud.talent" + + ".v4beta1.EmploymentType\022\026\n\016language_code" + + "s\030\013 \003(\t\022G\n\022publish_time_range\030\014 \001(\0132+.go" + + "ogle.cloud.talent.v4beta1.TimestampRange" + + "\022\025\n\rexcluded_jobs\030\r \003(\t\"\254\010\n\014ProfileQuery" + + "\022\r\n\005query\030\001 \001(\t\022E\n\020location_filters\030\002 \003(" + + "\0132+.google.cloud.talent.v4beta1.Location" + + "Filter\022F\n\021job_title_filters\030\003 \003(\0132+.goog" + + "le.cloud.talent.v4beta1.JobTitleFilter\022E" + + "\n\020employer_filters\030\004 \003(\0132+.google.cloud." + + "talent.v4beta1.EmployerFilter\022G\n\021educati" + + "on_filters\030\005 \003(\0132,.google.cloud.talent.v" + + "4beta1.EducationFilter\022?\n\rskill_filters\030" + + "\006 \003(\0132(.google.cloud.talent.v4beta1.Skil" + + "lFilter\022Q\n\026work_experience_filter\030\007 \003(\0132" + + "1.google.cloud.talent.v4beta1.WorkExperi" + + "enceFilter\022=\n\014time_filters\030\010 \003(\0132\'.googl" + + "e.cloud.talent.v4beta1.TimeFilter\0222\n\016hir" + + "able_filter\030\t \001(\0132\032.google.protobuf.Bool" + + "Value\022T\n\030application_date_filters\030\n \003(\0132" + + "2.google.cloud.talent.v4beta1.Applicatio" + + "nDateFilter\022e\n!application_outcome_notes" + + "_filters\030\013 \003(\0132:.google.cloud.talent.v4b" + + "eta1.ApplicationOutcomeNotesFilter\022_\n\036ap" + + "plication_last_stage_filters\030\014 \003(\01327.goo" + + "gle.cloud.talent.v4beta1.ApplicationLast" + + "StageFilter\022R\n\027application_job_filters\030\r" + + " \003(\01321.google.cloud.talent.v4beta1.Appli" + + "cationJobFilter\022X\n\032application_status_fi" + + "lters\030\016 \003(\01324.google.cloud.talent.v4beta" + + "1.ApplicationStatusFilter\022\033\n\023custom_fiel" + + "d_filter\030\017 \001(\t\"\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\"\300\003\n\022CompensationFilter\022H\n\004type\030" + + "\001 \001(\0162:.google.cloud.talent.v4beta1.Comp" + + "ensationFilter.FilterType\022M\n\005units\030\002 \003(\016" + + "2>.google.cloud.talent.v4beta1.Compensat" + + "ionInfo.CompensationUnit\022N\n\005range\030\003 \001(\0132" + + "?.google.cloud.talent.v4beta1.Compensati" + + "onInfo.CompensationRange\0228\n0include_jobs" + + "_with_unspecified_compensation_range\030\004 \001" + + "(\010\"\206\001\n\nFilterType\022\033\n\027FILTER_TYPE_UNSPECI" + + "FIED\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\027ANNUAL" + + "IZED_TOTAL_AMOUNT\020\004\"\274\003\n\rCommuteFilter\022B\n" + + "\016commute_method\030\001 \001(\0162*.google.cloud.tal" + + "ent.v4beta1.CommuteMethod\022.\n\021start_coord" + + "inates\030\002 \001(\0132\023.google.type.LatLng\0222\n\017tra" + + "vel_duration\030\003 \001(\0132\031.google.protobuf.Dur" + + "ation\022!\n\031allow_imprecise_addresses\030\004 \001(\010" + + "\022N\n\014road_traffic\030\005 \001(\01626.google.cloud.ta" + + "lent.v4beta1.CommuteFilter.RoadTrafficH\000" + + "\0220\n\016departure_time\030\006 \001(\0132\026.google.type.T" + + "imeOfDayH\000\"L\n\013RoadTraffic\022\034\n\030ROAD_TRAFFI" + + "C_UNSPECIFIED\020\000\022\020\n\014TRAFFIC_FREE\020\001\022\r\n\tBUS" + + "Y_HOUR\020\002B\020\n\016traffic_option\"4\n\016JobTitleFi" + + "lter\022\021\n\tjob_title\030\001 \001(\t\022\017\n\007negated\030\002 \001(\010" + + "\"-\n\013SkillFilter\022\r\n\005skill\030\001 \001(\t\022\017\n\007negate" + + "d\030\002 \001(\010\"\241\002\n\016EmployerFilter\022\020\n\010employer\030\001" + + " \001(\t\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\"G\n\035Application" + + "OutcomeNotesFilter\022\025\n\routcome_notes\030\001 \001(" + + "\t\022\017\n\007negated\030\002 \001(\010\"A\n\032ApplicationLastSta" + + "geFilter\022\022\n\nlast_stage\030\001 \001(\t\022\017\n\007negated\030" + + "\002 \001(\010\"c\n\024ApplicationJobFilter\022\013\n\003job\030\001 \001" + + "(\t\022\032\n\022job_requisition_id\030\002 \001(\t\022\021\n\tjob_ti" + + "tle\030\003 \001(\t\022\017\n\007negated\030\004 \001(\010\"\200\001\n\027Applicati" + + "onStatusFilter\022T\n\021application_state\030\001 \001(" + + "\01629.google.cloud.talent.v4beta1.Applicat" + + "ion.ApplicationState\022\017\n\007negated\030\002 \001(\010\"\374\001" + + "\n\nTimeFilter\022.\n\nstart_time\030\001 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022E\n\ntime_field" + + "\030\003 \001(\01621.google.cloud.talent.v4beta1.Tim" + + "eFilter.TimeField\"I\n\tTimeField\022\032\n\026TIME_F" + + "IELD_UNSPECIFIED\020\000\022\017\n\013CREATE_TIME\020\001\022\017\n\013U" + + "PDATE_TIME\020\002Bz\n\037com.google.cloud.talent." + + "v4beta1B\014FiltersProtoP\001ZAgoogle.golang.o" + + "rg/genproto/googleapis/cloud/talent/v4be" + + "ta1;talent\242\002\003CTSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -220,6 +221,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.cloud.talent.v4beta1.ApplicationResourceProto.getDescriptor(), com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(), com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), @@ -238,7 +240,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor, new java.lang.String[] { "Query", - "CompanyNames", + "Companies", "LocationFilters", "JobCategories", "CommuteFilter", @@ -267,7 +269,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "TimeFilters", "HirableFilter", "ApplicationDateFilters", - "ApplicationOutcomeReasonFilters", + "ApplicationOutcomeNotesFilters", "ApplicationLastStageFilters", "ApplicationJobFilters", "ApplicationStatusFilters", @@ -356,13 +358,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "StartDate", "EndDate", }); - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor = + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor = getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_fieldAccessorTable = + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeReasonFilter_descriptor, + internal_static_google_cloud_talent_v4beta1_ApplicationOutcomeNotesFilter_descriptor, new java.lang.String[] { - "OutcomeReason", "Negated", + "OutcomeNotes", "Negated", }); internal_static_google_cloud_talent_v4beta1_ApplicationLastStageFilter_descriptor = getDescriptor().getMessageTypes().get(12); @@ -378,7 +380,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_ApplicationJobFilter_descriptor, new java.lang.String[] { - "JobName", "JobRequisitionId", "JobTitle", "Negated", + "Job", "JobRequisitionId", "JobTitle", "Negated", }); internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor = getDescriptor().getMessageTypes().get(14); @@ -386,7 +388,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_ApplicationStatusFilter_descriptor, new java.lang.String[] { - "ApplicationStatus", "Negated", + "ApplicationState", "Negated", }); internal_static_google_cloud_talent_v4beta1_TimeFilter_descriptor = getDescriptor().getMessageTypes().get(15); @@ -397,6 +399,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "StartTime", "EndTime", "TimeField", }); com.google.api.AnnotationsProto.getDescriptor(); + com.google.cloud.talent.v4beta1.ApplicationResourceProto.getDescriptor(); com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); com.google.cloud.talent.v4beta1.JobResourceProto.getDescriptor(); com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java similarity index 50% rename from google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java rename to google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java index 7c09ccb1d5fe..03a7d4e957e0 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptions.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/resume_service.proto +// source: google/cloud/talent/v4beta1/application_service.proto package com.google.cloud.talent.v4beta1; @@ -7,24 +7,23 @@ * * *
- * Options that change how the resume parse is performed.
+ * Request for getting a application by name.
  * 
* - * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + * Protobuf type {@code google.cloud.talent.v4beta1.GetApplicationRequest} */ -public final class ParseResumeOptions extends com.google.protobuf.GeneratedMessageV3 +public final class GetApplicationRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeOptions) - ParseResumeOptionsOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.GetApplicationRequest) + GetApplicationRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ParseResumeOptions.newBuilder() to construct. - private ParseResumeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetApplicationRequest.newBuilder() to construct. + private GetApplicationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ParseResumeOptions() { - enableOcr_ = false; - enableFullSkillDetection_ = false; + private GetApplicationRequest() { + name_ = ""; } @java.lang.Override @@ -32,7 +31,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ParseResumeOptions( + private GetApplicationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -51,14 +50,11 @@ private ParseResumeOptions( case 0: done = true; break; - case 8: + case 10: { - enableOcr_ = input.readBool(); - break; - } - case 16: - { - enableFullSkillDetection_ = input.readBool(); + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; break; } default: @@ -81,58 +77,71 @@ private ParseResumeOptions( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + 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.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + return com.google.cloud.talent.v4beta1.ApplicationServiceProto + .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ParseResumeOptions.class, - com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + com.google.cloud.talent.v4beta1.GetApplicationRequest.class, + com.google.cloud.talent.v4beta1.GetApplicationRequest.Builder.class); } - public static final int ENABLE_OCR_FIELD_NUMBER = 1; - private boolean enableOcr_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; /** * * *
-   * Optional.
-   * Controls whether Optical Character Recognition (OCR) is enabled.
-   * OCR is used to decipher pictorial resumes, or resumes that have some
-   * element of pictorial detail (for example, contact information placed within
-   * an image in a pdf). Note that the API call has a higher latency if OCR is
-   * enabled.
+   * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
    * 
* - * bool enable_ocr = 1; + * string name = 1; */ - public boolean getEnableOcr() { - return enableOcr_; + 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; + } } - - public static final int ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER = 2; - private boolean enableFullSkillDetection_; /** * * *
-   * Optional.
-   * Controls whether detected skills are included in the parsed profile from
-   * sections of the resume other than just skills sections.
-   * Normally, returned skills are limited to those taken from a resume section
-   * intended to list skills. When enabled, this feature causes detected
-   * skills in other sections to also be included in the returned profile.
+   * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
    * 
* - * bool enable_full_skill_detection = 2; + * string name = 1; */ - public boolean getEnableFullSkillDetection() { - return enableFullSkillDetection_; + 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; @@ -149,11 +158,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enableOcr_ != false) { - output.writeBool(1, enableOcr_); - } - if (enableFullSkillDetection_ != false) { - output.writeBool(2, enableFullSkillDetection_); + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); } @@ -164,11 +170,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (enableOcr_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableOcr_); - } - if (enableFullSkillDetection_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableFullSkillDetection_); + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -180,15 +183,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.talent.v4beta1.ParseResumeOptions)) { + if (!(obj instanceof com.google.cloud.talent.v4beta1.GetApplicationRequest)) { return super.equals(obj); } - com.google.cloud.talent.v4beta1.ParseResumeOptions other = - (com.google.cloud.talent.v4beta1.ParseResumeOptions) obj; + com.google.cloud.talent.v4beta1.GetApplicationRequest other = + (com.google.cloud.talent.v4beta1.GetApplicationRequest) obj; boolean result = true; - result = result && (getEnableOcr() == other.getEnableOcr()); - result = result && (getEnableFullSkillDetection() == other.getEnableFullSkillDetection()); + result = result && getName().equals(other.getName()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -200,80 +202,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_OCR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableOcr()); - hash = (37 * hash) + ENABLE_FULL_SKILL_DETECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableFullSkillDetection()); + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseFrom(byte[] data) + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseDelimitedFrom( + 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.ParseResumeOptions parseDelimitedFrom( + 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.ParseResumeOptions parseFrom( + 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.ParseResumeOptions parseFrom( + public static com.google.cloud.talent.v4beta1.GetApplicationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -290,7 +290,8 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.talent.v4beta1.ParseResumeOptions prototype) { + public static Builder newBuilder( + com.google.cloud.talent.v4beta1.GetApplicationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -308,31 +309,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Options that change how the resume parse is performed.
+   * Request for getting a application by name.
    * 
* - * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeOptions} + * 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.ParseResumeOptions) - com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder { + // @@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.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + 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.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable + return com.google.cloud.talent.v4beta1.ApplicationServiceProto + .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ParseResumeOptions.class, - com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder.class); + com.google.cloud.talent.v4beta1.GetApplicationRequest.class, + com.google.cloud.talent.v4beta1.GetApplicationRequest.Builder.class); } - // Construct using com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder() + // Construct using com.google.cloud.talent.v4beta1.GetApplicationRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -349,27 +350,25 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - enableOcr_ = false; - - enableFullSkillDetection_ = false; + name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; + return com.google.cloud.talent.v4beta1.ApplicationServiceProto + .internal_static_google_cloud_talent_v4beta1_GetApplicationRequest_descriptor; } @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance(); + 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.ParseResumeOptions build() { - com.google.cloud.talent.v4beta1.ParseResumeOptions result = buildPartial(); + public com.google.cloud.talent.v4beta1.GetApplicationRequest build() { + com.google.cloud.talent.v4beta1.GetApplicationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -377,11 +376,10 @@ public com.google.cloud.talent.v4beta1.ParseResumeOptions build() { } @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeOptions buildPartial() { - com.google.cloud.talent.v4beta1.ParseResumeOptions result = - new com.google.cloud.talent.v4beta1.ParseResumeOptions(this); - result.enableOcr_ = enableOcr_; - result.enableFullSkillDetection_ = enableFullSkillDetection_; + 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; } @@ -421,22 +419,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeOptions) { - return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeOptions) 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.ParseResumeOptions other) { - if (other == com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.talent.v4beta1.GetApplicationRequest other) { + if (other == com.google.cloud.talent.v4beta1.GetApplicationRequest.getDefaultInstance()) return this; - if (other.getEnableOcr() != false) { - setEnableOcr(other.getEnableOcr()); - } - if (other.getEnableFullSkillDetection() != false) { - setEnableFullSkillDetection(other.getEnableFullSkillDetection()); + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -453,12 +449,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.talent.v4beta1.ParseResumeOptions parsedMessage = null; + 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.ParseResumeOptions) e.getUnfinishedMessage(); + (com.google.cloud.talent.v4beta1.GetApplicationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -468,100 +464,97 @@ public Builder mergeFrom( return this; } - private boolean enableOcr_; + private java.lang.Object name_ = ""; /** * * *
-     * Optional.
-     * Controls whether Optical Character Recognition (OCR) is enabled.
-     * OCR is used to decipher pictorial resumes, or resumes that have some
-     * element of pictorial detail (for example, contact information placed within
-     * an image in a pdf). Note that the API call has a higher latency if OCR is
-     * enabled.
+     * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
      * 
* - * bool enable_ocr = 1; + * string name = 1; */ - public boolean getEnableOcr() { - return enableOcr_; + 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; + } } /** * * *
-     * Optional.
-     * Controls whether Optical Character Recognition (OCR) is enabled.
-     * OCR is used to decipher pictorial resumes, or resumes that have some
-     * element of pictorial detail (for example, contact information placed within
-     * an image in a pdf). Note that the API call has a higher latency if OCR is
-     * enabled.
+     * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
      * 
* - * bool enable_ocr = 1; + * string name = 1; */ - public Builder setEnableOcr(boolean value) { - - enableOcr_ = value; - onChanged(); - return this; + 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; + } } /** * * *
-     * Optional.
-     * Controls whether Optical Character Recognition (OCR) is enabled.
-     * OCR is used to decipher pictorial resumes, or resumes that have some
-     * element of pictorial detail (for example, contact information placed within
-     * an image in a pdf). Note that the API call has a higher latency if OCR is
-     * enabled.
+     * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
      * 
* - * bool enable_ocr = 1; + * string name = 1; */ - public Builder clearEnableOcr() { + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - enableOcr_ = false; + name_ = value; onChanged(); return this; } - - private boolean enableFullSkillDetection_; - /** - * - * - *
-     * Optional.
-     * Controls whether detected skills are included in the parsed profile from
-     * sections of the resume other than just skills sections.
-     * Normally, returned skills are limited to those taken from a resume section
-     * intended to list skills. When enabled, this feature causes detected
-     * skills in other sections to also be included in the returned profile.
-     * 
- * - * bool enable_full_skill_detection = 2; - */ - public boolean getEnableFullSkillDetection() { - return enableFullSkillDetection_; - } /** * * *
-     * Optional.
-     * Controls whether detected skills are included in the parsed profile from
-     * sections of the resume other than just skills sections.
-     * Normally, returned skills are limited to those taken from a resume section
-     * intended to list skills. When enabled, this feature causes detected
-     * skills in other sections to also be included in the returned profile.
+     * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
      * 
* - * bool enable_full_skill_detection = 2; + * string name = 1; */ - public Builder setEnableFullSkillDetection(boolean value) { + public Builder clearName() { - enableFullSkillDetection_ = value; + name_ = getDefaultInstance().getName(); onChanged(); return this; } @@ -569,19 +562,23 @@ public Builder setEnableFullSkillDetection(boolean value) { * * *
-     * Optional.
-     * Controls whether detected skills are included in the parsed profile from
-     * sections of the resume other than just skills sections.
-     * Normally, returned skills are limited to those taken from a resume section
-     * intended to list skills. When enabled, this feature causes detected
-     * skills in other sections to also be included in the returned profile.
+     * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
      * 
* - * bool enable_full_skill_detection = 2; + * string name = 1; */ - public Builder clearEnableFullSkillDetection() { + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - enableFullSkillDetection_ = false; + name_ = value; onChanged(); return this; } @@ -597,42 +594,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.ParseResumeOptions) + // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.GetApplicationRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeOptions) - private static final com.google.cloud.talent.v4beta1.ParseResumeOptions DEFAULT_INSTANCE; + // @@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.ParseResumeOptions(); + DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.GetApplicationRequest(); } - public static com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstance() { + 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() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ParseResumeOptions parsePartialFrom( + public GetApplicationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ParseResumeOptions(input, extensionRegistry); + return new GetApplicationRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeOptions getDefaultInstanceForType() { + public com.google.cloud.talent.v4beta1.GetApplicationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..bfb2b23837b8 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java @@ -0,0 +1,41 @@ +// 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+   * 
+ * + * string name = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application".
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java index ef15568e61ab..e0754d13e557 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java @@ -99,8 +99,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required.
    * The resource name of the company to be retrieved.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; @@ -122,8 +125,11 @@ public java.lang.String getName() { *
    * Required.
    * The resource name of the company to be retrieved.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; @@ -466,8 +472,11 @@ public Builder mergeFrom( *
      * Required.
      * The resource name of the company to be retrieved.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -489,8 +498,11 @@ public java.lang.String getName() { *
      * Required.
      * The resource name of the company to be retrieved.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -512,8 +524,11 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required.
      * The resource name of the company to be retrieved.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -533,8 +548,11 @@ public Builder setName(java.lang.String value) { *
      * Required.
      * The resource name of the company to be retrieved.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; @@ -551,8 +569,11 @@ public Builder clearName() { *
      * Required.
      * The resource name of the company to be retrieved.
-     * The format is "projects/{project_id}/companies/{company_id}", for example,
-     * "projects/api-test-project/companies/foo".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java index a9dc06a78964..16a917ad51d2 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java @@ -14,8 +14,11 @@ public interface GetCompanyRequestOrBuilder *
    * Required.
    * The resource name of the company to be retrieved.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; @@ -27,8 +30,11 @@ public interface GetCompanyRequestOrBuilder *
    * Required.
    * The resource name of the company to be retrieved.
-   * The format is "projects/{project_id}/companies/{company_id}", for example,
-   * "projects/api-test-project/companies/foo".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java index bd8bd4574a68..ce9cf0e042d0 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java @@ -100,8 +100,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required.
    * The resource name of the job to retrieve.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; @@ -123,8 +126,11 @@ public java.lang.String getName() { *
    * Required.
    * The resource name of the job to retrieve.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; @@ -466,8 +472,11 @@ public Builder mergeFrom( *
      * Required.
      * The resource name of the job to retrieve.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -489,8 +498,11 @@ public java.lang.String getName() { *
      * Required.
      * The resource name of the job to retrieve.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -512,8 +524,11 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required.
      * The resource name of the job to retrieve.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -533,8 +548,11 @@ public Builder setName(java.lang.String value) { *
      * Required.
      * The resource name of the job to retrieve.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; @@ -551,8 +569,11 @@ public Builder clearName() { *
      * Required.
      * The resource name of the job to retrieve.
-     * The format is "projects/{project_id}/jobs/{job_id}",
-     * for example, "projects/api-test-project/jobs/1234".
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+     * example, "projects/api-test-project/tenants/foo/jobs/1234".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/jobs/1234".
      * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java index 29731ee39b5e..9c2783265eb2 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java @@ -14,8 +14,11 @@ public interface GetJobRequestOrBuilder *
    * Required.
    * The resource name of the job to retrieve.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; @@ -27,8 +30,11 @@ public interface GetJobRequestOrBuilder *
    * Required.
    * The resource name of the job to retrieve.
-   * The format is "projects/{project_id}/jobs/{job_id}",
-   * for example, "projects/api-test-project/jobs/1234".
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
+   * example, "projects/api-test-project/tenants/foo/jobs/1234".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/jobs/1234".
    * 
* * string name = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java new file mode 100644 index 000000000000..0afc017d614d --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java @@ -0,0 +1,855 @@ +// 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 + 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(); + } + 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 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 (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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_; + /** + * + * + *
+   * Optional.
+   * The rating on this interview.
+   * 
+ * + * .google.cloud.talent.v4beta1.Rating rating = 6; + */ + public boolean hasRating() { + return rating_ != null; + } + /** + * + * + *
+   * Optional.
+   * The rating on this interview.
+   * 
+ * + * .google.cloud.talent.v4beta1.Rating rating = 6; + */ + public com.google.cloud.talent.v4beta1.Rating getRating() { + return rating_ == null ? com.google.cloud.talent.v4beta1.Rating.getDefaultInstance() : rating_; + } + /** + * + * + *
+   * Optional.
+   * The rating on this interview.
+   * 
+ * + * .google.cloud.talent.v4beta1.Rating rating = 6; + */ + 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; + */ + public int getOutcomeValue() { + return outcome_; + } + /** + * + * + *
+   * Required.
+   * The overall decision resulting from this interview (positive, negative,
+   * nuetral).
+   * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 7; + */ + 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; + + boolean result = true; + result = result && (hasRating() == other.hasRating()); + if (hasRating()) { + result = result && getRating().equals(other.getRating()); + } + result = result && outcome_ == other.outcome_; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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 (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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_ = null; + 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_; + /** + * + * + *
+     * Optional.
+     * The rating on this interview.
+     * 
+ * + * .google.cloud.talent.v4beta1.Rating rating = 6; + */ + public boolean hasRating() { + return ratingBuilder_ != null || rating_ != null; + } + /** + * + * + *
+     * Optional.
+     * The rating on this interview.
+     * 
+ * + * .google.cloud.talent.v4beta1.Rating rating = 6; + */ + 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(); + } + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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; + } + /** + * + * + *
+     * Optional.
+     * 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(); + } + /** + * + * + *
+     * Optional.
+     * 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_; + } + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + public int getOutcomeValue() { + return outcome_; + } + /** + * + * + *
+     * Required.
+     * The overall decision resulting from this interview (positive, negative,
+     * nuetral).
+     * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 7; + */ + 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; + */ + 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; + */ + 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; + */ + public Builder clearOutcome() { + + outcome_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java new file mode 100644 index 000000000000..c5a4354bca35 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java @@ -0,0 +1,69 @@ +// 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 { + + /** + * + * + *
+   * Optional.
+   * The rating on this interview.
+   * 
+ * + * .google.cloud.talent.v4beta1.Rating rating = 6; + */ + boolean hasRating(); + /** + * + * + *
+   * Optional.
+   * The rating on this interview.
+   * 
+ * + * .google.cloud.talent.v4beta1.Rating rating = 6; + */ + com.google.cloud.talent.v4beta1.Rating getRating(); + /** + * + * + *
+   * Optional.
+   * 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; + */ + int getOutcomeValue(); + /** + * + * + *
+   * Required.
+   * The overall decision resulting from this interview (positive, negative,
+   * nuetral).
+   * 
+ * + * .google.cloud.talent.v4beta1.Outcome outcome = 7; + */ + com.google.cloud.talent.v4beta1.Outcome getOutcome(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java index b3a27d40fbe1..3cca7153dd31 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java @@ -27,7 +27,7 @@ private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Job() { name_ = ""; - companyName_ = ""; + company_ = ""; requisitionId_ = ""; title_ = ""; description_ = ""; @@ -82,7 +82,7 @@ private Job( { java.lang.String s = input.readStringRequireUtf8(); - companyName_ = s; + company_ = s; break; } case 26: @@ -4384,8 +4384,11 @@ public com.google.cloud.talent.v4beta1.Job.ProcessingOptions getDefaultInstanceF * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -4411,8 +4414,11 @@ public java.lang.String getName() { * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -4432,27 +4438,31 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int COMPANY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object companyName_; + public static final int COMPANY_FIELD_NUMBER = 2; + private volatile java.lang.Object company_; /** * * *
    * Required.
-   * The resource name of the company listing the job, such as
-   * "projects/api-test-project/companies/foo".
+   * The resource name of the company listing the job.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 2; + * string company = 2; */ - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; + 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(); - companyName_ = s; + company_ = s; return s; } } @@ -4461,18 +4471,22 @@ public java.lang.String getCompanyName() { * *
    * Required.
-   * The resource name of the company listing the job, such as
-   * "projects/api-test-project/companies/foo".
+   * The resource name of the company listing the job.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 2; + * string company = 2; */ - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; + 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); - companyName_ = b; + company_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4901,7 +4915,8 @@ public int getJobBenefitsValue(int index) { * *
    * Optional.
-   * Job compensation information.
+   * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+   * that will paid to the employee.
    * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -4914,7 +4929,8 @@ public boolean hasCompensationInfo() { * *
    * Optional.
-   * Job compensation information.
+   * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+   * that will paid to the employee.
    * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -4929,7 +4945,8 @@ public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { * *
    * Optional.
-   * Job compensation information.
+   * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+   * that will paid to the employee.
    * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -5845,8 +5862,7 @@ public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -5886,8 +5902,7 @@ public boolean hasPostingExpireTime() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -5929,8 +5944,7 @@ public com.google.protobuf.Timestamp getPostingExpireTime() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -6187,8 +6201,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getCompanyNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyName_); + if (!getCompanyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, company_); } if (!getRequisitionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requisitionId_); @@ -6299,8 +6313,8 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getCompanyNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, companyName_); + if (!getCompanyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, company_); } if (!getRequisitionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requisitionId_); @@ -6447,7 +6461,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getName().equals(other.getName()); - result = result && getCompanyName().equals(other.getCompanyName()); + result = result && getCompany().equals(other.getCompany()); result = result && getRequisitionId().equals(other.getRequisitionId()); result = result && getTitle().equals(other.getTitle()); result = result && getDescription().equals(other.getDescription()); @@ -6519,8 +6533,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getCompanyName().hashCode(); + hash = (37 * hash) + COMPANY_FIELD_NUMBER; + hash = (53 * hash) + getCompany().hashCode(); hash = (37 * hash) + REQUISITION_ID_FIELD_NUMBER; hash = (53 * hash) + getRequisitionId().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; @@ -6776,7 +6790,7 @@ public Builder clear() { super.clear(); name_ = ""; - companyName_ = ""; + company_ = ""; requisitionId_ = ""; @@ -6902,7 +6916,7 @@ public com.google.cloud.talent.v4beta1.Job buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; - result.companyName_ = companyName_; + result.company_ = company_; result.requisitionId_ = requisitionId_; result.title_ = title_; result.description_ = description_; @@ -7042,8 +7056,8 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.Job other) { name_ = other.name_; onChanged(); } - if (!other.getCompanyName().isEmpty()) { - companyName_ = other.companyName_; + if (!other.getCompany().isEmpty()) { + company_ = other.company_; onChanged(); } if (!other.getRequisitionId().isEmpty()) { @@ -7204,8 +7218,11 @@ public Builder mergeFrom( * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -7231,8 +7248,11 @@ public java.lang.String getName() { * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -7258,8 +7278,11 @@ public com.google.protobuf.ByteString getNameBytes() { * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -7283,8 +7306,11 @@ public Builder setName(java.lang.String value) { * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -7305,8 +7331,11 @@ public Builder clearName() { * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -7325,24 +7354,28 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object companyName_ = ""; + private java.lang.Object company_ = ""; /** * * *
      * Required.
-     * The resource name of the company listing the job, such as
-     * "projects/api-test-project/companies/foo".
+     * The resource name of the company listing the job.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 2; + * string company = 2; */ - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; + 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(); - companyName_ = s; + company_ = s; return s; } else { return (java.lang.String) ref; @@ -7353,18 +7386,22 @@ public java.lang.String getCompanyName() { * *
      * Required.
-     * The resource name of the company listing the job, such as
-     * "projects/api-test-project/companies/foo".
+     * The resource name of the company listing the job.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 2; + * string company = 2; */ - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; + 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); - companyName_ = b; + company_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7375,18 +7412,22 @@ public com.google.protobuf.ByteString getCompanyNameBytes() { * *
      * Required.
-     * The resource name of the company listing the job, such as
-     * "projects/api-test-project/companies/foo".
+     * The resource name of the company listing the job.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 2; + * string company = 2; */ - public Builder setCompanyName(java.lang.String value) { + public Builder setCompany(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - companyName_ = value; + company_ = value; onChanged(); return this; } @@ -7395,15 +7436,19 @@ public Builder setCompanyName(java.lang.String value) { * *
      * Required.
-     * The resource name of the company listing the job, such as
-     * "projects/api-test-project/companies/foo".
+     * The resource name of the company listing the job.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 2; + * string company = 2; */ - public Builder clearCompanyName() { + public Builder clearCompany() { - companyName_ = getDefaultInstance().getCompanyName(); + company_ = getDefaultInstance().getCompany(); onChanged(); return this; } @@ -7412,19 +7457,23 @@ public Builder clearCompanyName() { * *
      * Required.
-     * The resource name of the company listing the job, such as
-     * "projects/api-test-project/companies/foo".
+     * The resource name of the company listing the job.
+     * The format is
+     * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+     * example, "projects/api-test-project/tenants/foo/companies/bar".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project/companies/bar".
      * 
* - * string company_name = 2; + * string company = 2; */ - public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + public Builder setCompanyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - companyName_ = value; + company_ = value; onChanged(); return this; } @@ -8504,7 +8553,8 @@ public Builder addAllJobBenefitsValue(java.lang.Iterable valu * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8517,7 +8567,8 @@ public boolean hasCompensationInfo() { * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8536,7 +8587,8 @@ public com.google.cloud.talent.v4beta1.CompensationInfo getCompensationInfo() { * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8559,7 +8611,8 @@ public Builder setCompensationInfo(com.google.cloud.talent.v4beta1.CompensationI * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8580,7 +8633,8 @@ public Builder setCompensationInfo( * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8607,7 +8661,8 @@ public Builder mergeCompensationInfo(com.google.cloud.talent.v4beta1.Compensatio * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8628,7 +8683,8 @@ public Builder clearCompensationInfo() { * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8643,7 +8699,8 @@ public com.google.cloud.talent.v4beta1.CompensationInfo.Builder getCompensationI * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -8663,7 +8720,8 @@ public com.google.cloud.talent.v4beta1.CompensationInfo.Builder getCompensationI * *
      * Optional.
-     * Job compensation information.
+     * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+     * that will paid to the employee.
      * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -10961,8 +11019,7 @@ public com.google.protobuf.TimestampOrBuilder getPostingPublishTimeOrBuilder() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11002,8 +11059,7 @@ public boolean hasPostingExpireTime() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11049,8 +11105,7 @@ public com.google.protobuf.Timestamp getPostingExpireTime() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11100,8 +11155,7 @@ public Builder setPostingExpireTime(com.google.protobuf.Timestamp value) { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11148,8 +11202,7 @@ public Builder setPostingExpireTime(com.google.protobuf.Timestamp.Builder builde * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11203,8 +11256,7 @@ public Builder mergePostingExpireTime(com.google.protobuf.Timestamp value) { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11252,8 +11304,7 @@ public Builder clearPostingExpireTime() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11295,8 +11346,7 @@ public com.google.protobuf.Timestamp.Builder getPostingExpireTimeBuilder() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -11342,8 +11392,7 @@ public com.google.protobuf.TimestampOrBuilder getPostingExpireTimeOrBuilder() { * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java deleted file mode 100644 index 50fe42668444..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplication.java +++ /dev/null @@ -1,3468 +0,0 @@ -// 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 job application record of a candidate.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.JobApplication} - */ -public final class JobApplication extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobApplication) - JobApplicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use JobApplication.newBuilder() to construct. - private JobApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private JobApplication() { - applicationId_ = ""; - lastStage_ = ""; - state_ = 0; - averageInterviewScore_ = 0D; - interviewScoreScaleId_ = ""; - numberOfInterviews_ = 0; - outcomeReason_ = ""; - outcomePositiveness_ = 0D; - jobTitleSnippet_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private JobApplication( - 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: - { - com.google.cloud.talent.v4beta1.Job.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); - } - job_ = - input.readMessage( - com.google.cloud.talent.v4beta1.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - applicationId_ = s; - break; - } - case 26: - { - 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 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - lastStage_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 49: - { - averageInterviewScore_ = input.readDouble(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - interviewScoreScaleId_ = s; - break; - } - case 64: - { - numberOfInterviews_ = input.readInt32(); - break; - } - case 74: - { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (isEmployeeReferred_ != null) { - subBuilder = isEmployeeReferred_.toBuilder(); - } - isEmployeeReferred_ = - input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(isEmployeeReferred_); - isEmployeeReferred_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - - outcomeReason_ = s; - break; - } - case 97: - { - outcomePositiveness_ = input.readDouble(); - break; - } - case 106: - { - 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 114: - { - java.lang.String s = input.readStringRequireUtf8(); - - jobTitleSnippet_ = s; - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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_JobApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.JobApplication.class, - com.google.cloud.talent.v4beta1.JobApplication.Builder.class); - } - - /** - * - * - *
-   * Enum that represents the application status.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.JobApplication.ApplicationStatus} - */ - public enum ApplicationStatus implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * APPLICATION_STATUS_UNSPECIFIED = 0; - */ - APPLICATION_STATUS_UNSPECIFIED(0), - /** - * - * - *
-     * The offer is extended.
-     * 
- * - * OFFER_EXTENDED = 1; - */ - OFFER_EXTENDED(1), - /** - * - * - *
-     * The offer is rejected by candidate.
-     * 
- * - * REJECTED_BY_CANDIDATE = 2; - */ - REJECTED_BY_CANDIDATE(2), - /** - * - * - *
-     * The application is active.
-     * 
- * - * ACTIVE = 3; - */ - ACTIVE(3), - /** - * - * - *
-     * The candidate is rejected by employer.
-     * 
- * - * REJECTED_BY_EMPLOYER = 4; - */ - REJECTED_BY_EMPLOYER(4), - /** - * - * - *
-     * The candidate is hired and hasn't started the new job.
-     * 
- * - * HIRED_PENDING_DATE = 5; - */ - HIRED_PENDING_DATE(5), - /** - * - * - *
-     * The candidate is hired started.
-     * 
- * - * HIRED_STARTED = 6; - */ - HIRED_STARTED(6), - /** - * - * - *
-     * The candidate is a prospect candidate.
-     * 
- * - * PROSPECTED = 7; - */ - PROSPECTED(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * APPLICATION_STATUS_UNSPECIFIED = 0; - */ - public static final int APPLICATION_STATUS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The offer is extended.
-     * 
- * - * OFFER_EXTENDED = 1; - */ - public static final int OFFER_EXTENDED_VALUE = 1; - /** - * - * - *
-     * The offer is rejected by candidate.
-     * 
- * - * REJECTED_BY_CANDIDATE = 2; - */ - public static final int REJECTED_BY_CANDIDATE_VALUE = 2; - /** - * - * - *
-     * The application is active.
-     * 
- * - * ACTIVE = 3; - */ - public static final int ACTIVE_VALUE = 3; - /** - * - * - *
-     * The candidate is rejected by employer.
-     * 
- * - * REJECTED_BY_EMPLOYER = 4; - */ - public static final int REJECTED_BY_EMPLOYER_VALUE = 4; - /** - * - * - *
-     * The candidate is hired and hasn't started the new job.
-     * 
- * - * HIRED_PENDING_DATE = 5; - */ - public static final int HIRED_PENDING_DATE_VALUE = 5; - /** - * - * - *
-     * The candidate is hired started.
-     * 
- * - * HIRED_STARTED = 6; - */ - public static final int HIRED_STARTED_VALUE = 6; - /** - * - * - *
-     * The candidate is a prospect candidate.
-     * 
- * - * PROSPECTED = 7; - */ - public static final int PROSPECTED_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; - } - - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static ApplicationStatus valueOf(int value) { - return forNumber(value); - } - - public static ApplicationStatus forNumber(int value) { - switch (value) { - case 0: - return APPLICATION_STATUS_UNSPECIFIED; - case 1: - return OFFER_EXTENDED; - case 2: - return REJECTED_BY_CANDIDATE; - case 3: - return ACTIVE; - case 4: - return REJECTED_BY_EMPLOYER; - case 5: - return HIRED_PENDING_DATE; - case 6: - return HIRED_STARTED; - case 7: - return PROSPECTED; - 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 ApplicationStatus findValueByNumber(int number) { - return ApplicationStatus.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - 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.JobApplication.getDescriptor().getEnumTypes().get(0); - } - - private static final ApplicationStatus[] VALUES = values(); - - public static ApplicationStatus 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 ApplicationStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobApplication.ApplicationStatus) - } - - public static final int JOB_FIELD_NUMBER = 1; - private com.google.cloud.talent.v4beta1.Job job_; - /** - * - * - *
-   * Optional.
-   * The information of job which the candidate applied for.
-   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-   * Otherwise, only
-   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-   * [Job.title][google.cloud.talent.v4beta1.Job.title],
-   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-   * entity is created in this case.
-   * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public boolean hasJob() { - return job_ != null; - } - /** - * - * - *
-   * Optional.
-   * The information of job which the candidate applied for.
-   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-   * Otherwise, only
-   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-   * [Job.title][google.cloud.talent.v4beta1.Job.title],
-   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-   * entity is created in this case.
-   * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public com.google.cloud.talent.v4beta1.Job getJob() { - return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; - } - /** - * - * - *
-   * Optional.
-   * The information of job which the candidate applied for.
-   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-   * Otherwise, only
-   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-   * [Job.title][google.cloud.talent.v4beta1.Job.title],
-   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-   * entity is created in this case.
-   * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { - return getJob(); - } - - public static final int APPLICATION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object applicationId_; - /** - * - * - *
-   * Optional.
-   * The job application id.
-   * Number of characters allowed is 100.
-   * 
- * - * string application_id = 2; - */ - public java.lang.String getApplicationId() { - java.lang.Object ref = applicationId_; - 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(); - applicationId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The job application id.
-   * Number of characters allowed is 100.
-   * 
- * - * string application_id = 2; - */ - public com.google.protobuf.ByteString getApplicationIdBytes() { - java.lang.Object ref = applicationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - applicationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APPLICATION_DATE_FIELD_NUMBER = 3; - private com.google.type.Date applicationDate_; - /** - * - * - *
-   * Optional.
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 3; - */ - public boolean hasApplicationDate() { - return applicationDate_ != null; - } - /** - * - * - *
-   * Optional.
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 3; - */ - public com.google.type.Date getApplicationDate() { - return applicationDate_ == null ? com.google.type.Date.getDefaultInstance() : applicationDate_; - } - /** - * - * - *
-   * Optional.
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 3; - */ - public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { - return getApplicationDate(); - } - - public static final int LAST_STAGE_FIELD_NUMBER = 4; - private volatile java.lang.Object lastStage_; - /** - * - * - *
-   * Optional.
-   * The last stage the candidate reached in the application progress.
-   * For example, "new", "phone screen", "interview".
-   * 
- * - * string last_stage = 4; - */ - public java.lang.String getLastStage() { - java.lang.Object ref = lastStage_; - 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(); - lastStage_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The last stage the candidate reached in the application progress.
-   * For example, "new", "phone screen", "interview".
-   * 
- * - * string last_stage = 4; - */ - public com.google.protobuf.ByteString getLastStageBytes() { - java.lang.Object ref = lastStage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - lastStage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 5; - private int state_; - /** - * - * - *
-   * Optional.
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Optional.
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); - return result == null - ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED - : result; - } - - public static final int AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER = 6; - private double averageInterviewScore_; - /** - * - * - *
-   * Optional.
-   * The average interview score.
-   * 
- * - * double average_interview_score = 6; - */ - public double getAverageInterviewScore() { - return averageInterviewScore_; - } - - public static final int INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object interviewScoreScaleId_; - /** - * - * - *
-   * Optional.
-   * The scale id of the interview score.
-   * Number of characters allowed is 100.
-   * 
- * - * string interview_score_scale_id = 7; - */ - public java.lang.String getInterviewScoreScaleId() { - java.lang.Object ref = interviewScoreScaleId_; - 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(); - interviewScoreScaleId_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The scale id of the interview score.
-   * Number of characters allowed is 100.
-   * 
- * - * string interview_score_scale_id = 7; - */ - public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { - java.lang.Object ref = interviewScoreScaleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - interviewScoreScaleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NUMBER_OF_INTERVIEWS_FIELD_NUMBER = 8; - private int numberOfInterviews_; - /** - * - * - *
-   * Optional.
-   * The number of interviews.
-   * 
- * - * int32 number_of_interviews = 8; - */ - public int getNumberOfInterviews() { - return numberOfInterviews_; - } - - public static final int IS_EMPLOYEE_REFERRED_FIELD_NUMBER = 9; - private com.google.protobuf.BoolValue isEmployeeReferred_; - /** - * - * - *
-   * Optional.
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public boolean hasIsEmployeeReferred() { - return isEmployeeReferred_ != null; - } - /** - * - * - *
-   * Optional.
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public com.google.protobuf.BoolValue getIsEmployeeReferred() { - return isEmployeeReferred_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isEmployeeReferred_; - } - /** - * - * - *
-   * Optional.
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { - return getIsEmployeeReferred(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 10; - private com.google.protobuf.Timestamp updateTime_; - /** - * - * - *
-   * Optional.
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - * - * - *
-   * Optional.
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - * - * - *
-   * Optional.
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int OUTCOME_REASON_FIELD_NUMBER = 11; - private volatile java.lang.Object outcomeReason_; - /** - * - * - *
-   * Optional.
-   * The outcome reason for the job application.
-   * Number of characters allowed is 100.
-   * 
- * - * string outcome_reason = 11; - */ - public java.lang.String getOutcomeReason() { - java.lang.Object ref = outcomeReason_; - 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(); - outcomeReason_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The outcome reason for the job application.
-   * Number of characters allowed is 100.
-   * 
- * - * string outcome_reason = 11; - */ - public com.google.protobuf.ByteString getOutcomeReasonBytes() { - java.lang.Object ref = outcomeReason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outcomeReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTCOME_POSITIVENESS_FIELD_NUMBER = 12; - private double outcomePositiveness_; - /** - * - * - *
-   * Optional.
-   * Outcome positiveness shows how positive the outcome is.
-   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
-   * means neutral and 1 means positive. An error is thrown if other value is
-   * set.
-   * 
- * - * double outcome_positiveness = 12; - */ - public double getOutcomePositiveness() { - return outcomePositiveness_; - } - - public static final int IS_MATCH_FIELD_NUMBER = 13; - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - public com.google.protobuf.BoolValueOrBuilder getIsMatchOrBuilder() { - return getIsMatch(); - } - - public static final int JOB_TITLE_SNIPPET_FIELD_NUMBER = 14; - 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 = 14; - */ - 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 = 14; - */ - 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 (job_ != null) { - output.writeMessage(1, getJob()); - } - if (!getApplicationIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applicationId_); - } - if (applicationDate_ != null) { - output.writeMessage(3, getApplicationDate()); - } - if (!getLastStageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastStage_); - } - if (state_ - != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus - .APPLICATION_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, state_); - } - if (averageInterviewScore_ != 0D) { - output.writeDouble(6, averageInterviewScore_); - } - if (!getInterviewScoreScaleIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, interviewScoreScaleId_); - } - if (numberOfInterviews_ != 0) { - output.writeInt32(8, numberOfInterviews_); - } - if (isEmployeeReferred_ != null) { - output.writeMessage(9, getIsEmployeeReferred()); - } - if (updateTime_ != null) { - output.writeMessage(10, getUpdateTime()); - } - if (!getOutcomeReasonBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, outcomeReason_); - } - if (outcomePositiveness_ != 0D) { - output.writeDouble(12, outcomePositiveness_); - } - if (isMatch_ != null) { - output.writeMessage(13, getIsMatch()); - } - if (!getJobTitleSnippetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, jobTitleSnippet_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getJob()); - } - if (!getApplicationIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applicationId_); - } - if (applicationDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getApplicationDate()); - } - if (!getLastStageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastStage_); - } - if (state_ - != com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus - .APPLICATION_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); - } - if (averageInterviewScore_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, averageInterviewScore_); - } - if (!getInterviewScoreScaleIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interviewScoreScaleId_); - } - if (numberOfInterviews_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, numberOfInterviews_); - } - if (isEmployeeReferred_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getIsEmployeeReferred()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); - } - if (!getOutcomeReasonBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, outcomeReason_); - } - if (outcomePositiveness_ != 0D) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, outcomePositiveness_); - } - if (isMatch_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIsMatch()); - } - if (!getJobTitleSnippetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, jobTitleSnippet_); - } - 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.JobApplication)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.JobApplication other = - (com.google.cloud.talent.v4beta1.JobApplication) obj; - - boolean result = true; - result = result && (hasJob() == other.hasJob()); - if (hasJob()) { - result = result && getJob().equals(other.getJob()); - } - result = result && getApplicationId().equals(other.getApplicationId()); - result = result && (hasApplicationDate() == other.hasApplicationDate()); - if (hasApplicationDate()) { - result = result && getApplicationDate().equals(other.getApplicationDate()); - } - result = result && getLastStage().equals(other.getLastStage()); - result = result && state_ == other.state_; - result = - result - && (java.lang.Double.doubleToLongBits(getAverageInterviewScore()) - == java.lang.Double.doubleToLongBits(other.getAverageInterviewScore())); - result = result && getInterviewScoreScaleId().equals(other.getInterviewScoreScaleId()); - result = result && (getNumberOfInterviews() == other.getNumberOfInterviews()); - result = result && (hasIsEmployeeReferred() == other.hasIsEmployeeReferred()); - if (hasIsEmployeeReferred()) { - result = result && getIsEmployeeReferred().equals(other.getIsEmployeeReferred()); - } - result = result && (hasUpdateTime() == other.hasUpdateTime()); - if (hasUpdateTime()) { - result = result && getUpdateTime().equals(other.getUpdateTime()); - } - result = result && getOutcomeReason().equals(other.getOutcomeReason()); - result = - result - && (java.lang.Double.doubleToLongBits(getOutcomePositiveness()) - == java.lang.Double.doubleToLongBits(other.getOutcomePositiveness())); - result = result && (hasIsMatch() == other.hasIsMatch()); - if (hasIsMatch()) { - result = result && getIsMatch().equals(other.getIsMatch()); - } - result = result && getJobTitleSnippet().equals(other.getJobTitleSnippet()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasJob()) { - hash = (37 * hash) + JOB_FIELD_NUMBER; - hash = (53 * hash) + getJob().hashCode(); - } - hash = (37 * hash) + APPLICATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getApplicationId().hashCode(); - if (hasApplicationDate()) { - hash = (37 * hash) + APPLICATION_DATE_FIELD_NUMBER; - hash = (53 * hash) + getApplicationDate().hashCode(); - } - hash = (37 * hash) + LAST_STAGE_FIELD_NUMBER; - hash = (53 * hash) + getLastStage().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + AVERAGE_INTERVIEW_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAverageInterviewScore())); - hash = (37 * hash) + INTERVIEW_SCORE_SCALE_ID_FIELD_NUMBER; - hash = (53 * hash) + getInterviewScoreScaleId().hashCode(); - hash = (37 * hash) + NUMBER_OF_INTERVIEWS_FIELD_NUMBER; - hash = (53 * hash) + getNumberOfInterviews(); - if (hasIsEmployeeReferred()) { - hash = (37 * hash) + IS_EMPLOYEE_REFERRED_FIELD_NUMBER; - hash = (53 * hash) + getIsEmployeeReferred().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + OUTCOME_REASON_FIELD_NUMBER; - hash = (53 * hash) + getOutcomeReason().hashCode(); - hash = (37 * hash) + OUTCOME_POSITIVENESS_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getOutcomePositiveness())); - 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.JobApplication parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.JobApplication 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.JobApplication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.JobApplication 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.JobApplication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.JobApplication 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.JobApplication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.JobApplication 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.JobApplication parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.JobApplication 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.JobApplication 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.JobApplication 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.JobApplication 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.JobApplication} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobApplication) - com.google.cloud.talent.v4beta1.JobApplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.JobApplication.class, - com.google.cloud.talent.v4beta1.JobApplication.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.JobApplication.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 (jobBuilder_ == null) { - job_ = null; - } else { - job_ = null; - jobBuilder_ = null; - } - applicationId_ = ""; - - if (applicationDateBuilder_ == null) { - applicationDate_ = null; - } else { - applicationDate_ = null; - applicationDateBuilder_ = null; - } - lastStage_ = ""; - - state_ = 0; - - averageInterviewScore_ = 0D; - - interviewScoreScaleId_ = ""; - - numberOfInterviews_ = 0; - - if (isEmployeeReferredBuilder_ == null) { - isEmployeeReferred_ = null; - } else { - isEmployeeReferred_ = null; - isEmployeeReferredBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - outcomeReason_ = ""; - - outcomePositiveness_ = 0D; - - 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.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobApplication getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobApplication build() { - com.google.cloud.talent.v4beta1.JobApplication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.JobApplication buildPartial() { - com.google.cloud.talent.v4beta1.JobApplication result = - new com.google.cloud.talent.v4beta1.JobApplication(this); - if (jobBuilder_ == null) { - result.job_ = job_; - } else { - result.job_ = jobBuilder_.build(); - } - result.applicationId_ = applicationId_; - if (applicationDateBuilder_ == null) { - result.applicationDate_ = applicationDate_; - } else { - result.applicationDate_ = applicationDateBuilder_.build(); - } - result.lastStage_ = lastStage_; - result.state_ = state_; - result.averageInterviewScore_ = averageInterviewScore_; - result.interviewScoreScaleId_ = interviewScoreScaleId_; - result.numberOfInterviews_ = numberOfInterviews_; - if (isEmployeeReferredBuilder_ == null) { - result.isEmployeeReferred_ = isEmployeeReferred_; - } else { - result.isEmployeeReferred_ = isEmployeeReferredBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.outcomeReason_ = outcomeReason_; - result.outcomePositiveness_ = outcomePositiveness_; - if (isMatchBuilder_ == null) { - result.isMatch_ = isMatch_; - } else { - result.isMatch_ = isMatchBuilder_.build(); - } - result.jobTitleSnippet_ = jobTitleSnippet_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.JobApplication) { - return mergeFrom((com.google.cloud.talent.v4beta1.JobApplication) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobApplication other) { - if (other == com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()) return this; - if (other.hasJob()) { - mergeJob(other.getJob()); - } - if (!other.getApplicationId().isEmpty()) { - applicationId_ = other.applicationId_; - onChanged(); - } - if (other.hasApplicationDate()) { - mergeApplicationDate(other.getApplicationDate()); - } - if (!other.getLastStage().isEmpty()) { - lastStage_ = other.lastStage_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.getAverageInterviewScore() != 0D) { - setAverageInterviewScore(other.getAverageInterviewScore()); - } - if (!other.getInterviewScoreScaleId().isEmpty()) { - interviewScoreScaleId_ = other.interviewScoreScaleId_; - onChanged(); - } - if (other.getNumberOfInterviews() != 0) { - setNumberOfInterviews(other.getNumberOfInterviews()); - } - if (other.hasIsEmployeeReferred()) { - mergeIsEmployeeReferred(other.getIsEmployeeReferred()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getOutcomeReason().isEmpty()) { - outcomeReason_ = other.outcomeReason_; - onChanged(); - } - if (other.getOutcomePositiveness() != 0D) { - setOutcomePositiveness(other.getOutcomePositiveness()); - } - 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.JobApplication parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.JobApplication) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.talent.v4beta1.Job job_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Job, - com.google.cloud.talent.v4beta1.Job.Builder, - com.google.cloud.talent.v4beta1.JobOrBuilder> - jobBuilder_; - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public boolean hasJob() { - return jobBuilder_ != null || job_ != null; - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public com.google.cloud.talent.v4beta1.Job getJob() { - if (jobBuilder_ == null) { - return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; - } else { - return jobBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public Builder setJob(com.google.cloud.talent.v4beta1.Job value) { - if (jobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - job_ = value; - onChanged(); - } else { - jobBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public Builder setJob(com.google.cloud.talent.v4beta1.Job.Builder builderForValue) { - if (jobBuilder_ == null) { - job_ = builderForValue.build(); - onChanged(); - } else { - jobBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public Builder mergeJob(com.google.cloud.talent.v4beta1.Job value) { - if (jobBuilder_ == null) { - if (job_ != null) { - job_ = - com.google.cloud.talent.v4beta1.Job.newBuilder(job_).mergeFrom(value).buildPartial(); - } else { - job_ = value; - } - onChanged(); - } else { - jobBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public Builder clearJob() { - if (jobBuilder_ == null) { - job_ = null; - onChanged(); - } else { - job_ = null; - jobBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public com.google.cloud.talent.v4beta1.Job.Builder getJobBuilder() { - - onChanged(); - return getJobFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - public com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder() { - if (jobBuilder_ != null) { - return jobBuilder_.getMessageOrBuilder(); - } else { - return job_ == null ? com.google.cloud.talent.v4beta1.Job.getDefaultInstance() : job_; - } - } - /** - * - * - *
-     * Optional.
-     * The information of job which the candidate applied for.
-     * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-     * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-     * Otherwise, only
-     * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-     * [Job.title][google.cloud.talent.v4beta1.Job.title],
-     * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-     * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-     * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-     * entity is created in this case.
-     * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Job, - com.google.cloud.talent.v4beta1.Job.Builder, - com.google.cloud.talent.v4beta1.JobOrBuilder> - getJobFieldBuilder() { - if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.Job, - com.google.cloud.talent.v4beta1.Job.Builder, - com.google.cloud.talent.v4beta1.JobOrBuilder>( - getJob(), getParentForChildren(), isClean()); - job_ = null; - } - return jobBuilder_; - } - - private java.lang.Object applicationId_ = ""; - /** - * - * - *
-     * Optional.
-     * The job application id.
-     * Number of characters allowed is 100.
-     * 
- * - * string application_id = 2; - */ - public java.lang.String getApplicationId() { - java.lang.Object ref = applicationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - applicationId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The job application id.
-     * Number of characters allowed is 100.
-     * 
- * - * string application_id = 2; - */ - public com.google.protobuf.ByteString getApplicationIdBytes() { - java.lang.Object ref = applicationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - applicationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The job application id.
-     * Number of characters allowed is 100.
-     * 
- * - * string application_id = 2; - */ - public Builder setApplicationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - applicationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The job application id.
-     * Number of characters allowed is 100.
-     * 
- * - * string application_id = 2; - */ - public Builder clearApplicationId() { - - applicationId_ = getDefaultInstance().getApplicationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The job application id.
-     * Number of characters allowed is 100.
-     * 
- * - * string application_id = 2; - */ - public Builder setApplicationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - applicationId_ = value; - onChanged(); - return this; - } - - private com.google.type.Date applicationDate_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - applicationDateBuilder_; - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - public boolean hasApplicationDate() { - return applicationDateBuilder_ != null || applicationDate_ != null; - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - public com.google.type.Date getApplicationDate() { - if (applicationDateBuilder_ == null) { - return applicationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : applicationDate_; - } else { - return applicationDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - 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; - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - public Builder setApplicationDate(com.google.type.Date.Builder builderForValue) { - if (applicationDateBuilder_ == null) { - applicationDate_ = builderForValue.build(); - onChanged(); - } else { - applicationDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - 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; - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - public Builder clearApplicationDate() { - if (applicationDateBuilder_ == null) { - applicationDate_ = null; - onChanged(); - } else { - applicationDate_ = null; - applicationDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - public com.google.type.Date.Builder getApplicationDateBuilder() { - - onChanged(); - return getApplicationDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - public com.google.type.DateOrBuilder getApplicationDateOrBuilder() { - if (applicationDateBuilder_ != null) { - return applicationDateBuilder_.getMessageOrBuilder(); - } else { - return applicationDate_ == null - ? com.google.type.Date.getDefaultInstance() - : applicationDate_; - } - } - /** - * - * - *
-     * Optional.
-     * The application date.
-     * 
- * - * .google.type.Date application_date = 3; - */ - 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 java.lang.Object lastStage_ = ""; - /** - * - * - *
-     * Optional.
-     * The last stage the candidate reached in the application progress.
-     * For example, "new", "phone screen", "interview".
-     * 
- * - * string last_stage = 4; - */ - public java.lang.String getLastStage() { - java.lang.Object ref = lastStage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - lastStage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The last stage the candidate reached in the application progress.
-     * For example, "new", "phone screen", "interview".
-     * 
- * - * string last_stage = 4; - */ - public com.google.protobuf.ByteString getLastStageBytes() { - java.lang.Object ref = lastStage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - lastStage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The last stage the candidate reached in the application progress.
-     * For example, "new", "phone screen", "interview".
-     * 
- * - * string last_stage = 4; - */ - public Builder setLastStage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - lastStage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The last stage the candidate reached in the application progress.
-     * For example, "new", "phone screen", "interview".
-     * 
- * - * string last_stage = 4; - */ - public Builder clearLastStage() { - - lastStage_ = getDefaultInstance().getLastStage(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The last stage the candidate reached in the application progress.
-     * For example, "new", "phone screen", "interview".
-     * 
- * - * string last_stage = 4; - */ - public Builder setLastStageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - lastStage_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Optional.
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Optional.
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - public com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState() { - @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus result = - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.valueOf(state_); - return result == null - ? com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional.
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - public Builder setState( - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The application state.
-     * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private double averageInterviewScore_; - /** - * - * - *
-     * Optional.
-     * The average interview score.
-     * 
- * - * double average_interview_score = 6; - */ - public double getAverageInterviewScore() { - return averageInterviewScore_; - } - /** - * - * - *
-     * Optional.
-     * The average interview score.
-     * 
- * - * double average_interview_score = 6; - */ - public Builder setAverageInterviewScore(double value) { - - averageInterviewScore_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The average interview score.
-     * 
- * - * double average_interview_score = 6; - */ - public Builder clearAverageInterviewScore() { - - averageInterviewScore_ = 0D; - onChanged(); - return this; - } - - private java.lang.Object interviewScoreScaleId_ = ""; - /** - * - * - *
-     * Optional.
-     * The scale id of the interview score.
-     * Number of characters allowed is 100.
-     * 
- * - * string interview_score_scale_id = 7; - */ - public java.lang.String getInterviewScoreScaleId() { - java.lang.Object ref = interviewScoreScaleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - interviewScoreScaleId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The scale id of the interview score.
-     * Number of characters allowed is 100.
-     * 
- * - * string interview_score_scale_id = 7; - */ - public com.google.protobuf.ByteString getInterviewScoreScaleIdBytes() { - java.lang.Object ref = interviewScoreScaleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - interviewScoreScaleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The scale id of the interview score.
-     * Number of characters allowed is 100.
-     * 
- * - * string interview_score_scale_id = 7; - */ - public Builder setInterviewScoreScaleId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - interviewScoreScaleId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The scale id of the interview score.
-     * Number of characters allowed is 100.
-     * 
- * - * string interview_score_scale_id = 7; - */ - public Builder clearInterviewScoreScaleId() { - - interviewScoreScaleId_ = getDefaultInstance().getInterviewScoreScaleId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The scale id of the interview score.
-     * Number of characters allowed is 100.
-     * 
- * - * string interview_score_scale_id = 7; - */ - public Builder setInterviewScoreScaleIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - interviewScoreScaleId_ = value; - onChanged(); - return this; - } - - private int numberOfInterviews_; - /** - * - * - *
-     * Optional.
-     * The number of interviews.
-     * 
- * - * int32 number_of_interviews = 8; - */ - public int getNumberOfInterviews() { - return numberOfInterviews_; - } - /** - * - * - *
-     * Optional.
-     * The number of interviews.
-     * 
- * - * int32 number_of_interviews = 8; - */ - public Builder setNumberOfInterviews(int value) { - - numberOfInterviews_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The number of interviews.
-     * 
- * - * int32 number_of_interviews = 8; - */ - public Builder clearNumberOfInterviews() { - - numberOfInterviews_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue isEmployeeReferred_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - isEmployeeReferredBuilder_; - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public boolean hasIsEmployeeReferred() { - return isEmployeeReferredBuilder_ != null || isEmployeeReferred_ != null; - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public com.google.protobuf.BoolValue getIsEmployeeReferred() { - if (isEmployeeReferredBuilder_ == null) { - return isEmployeeReferred_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isEmployeeReferred_; - } else { - return isEmployeeReferredBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue value) { - if (isEmployeeReferredBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - isEmployeeReferred_ = value; - onChanged(); - } else { - isEmployeeReferredBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public Builder setIsEmployeeReferred(com.google.protobuf.BoolValue.Builder builderForValue) { - if (isEmployeeReferredBuilder_ == null) { - isEmployeeReferred_ = builderForValue.build(); - onChanged(); - } else { - isEmployeeReferredBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public Builder mergeIsEmployeeReferred(com.google.protobuf.BoolValue value) { - if (isEmployeeReferredBuilder_ == null) { - if (isEmployeeReferred_ != null) { - isEmployeeReferred_ = - com.google.protobuf.BoolValue.newBuilder(isEmployeeReferred_) - .mergeFrom(value) - .buildPartial(); - } else { - isEmployeeReferred_ = value; - } - onChanged(); - } else { - isEmployeeReferredBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public Builder clearIsEmployeeReferred() { - if (isEmployeeReferredBuilder_ == null) { - isEmployeeReferred_ = null; - onChanged(); - } else { - isEmployeeReferred_ = null; - isEmployeeReferredBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public com.google.protobuf.BoolValue.Builder getIsEmployeeReferredBuilder() { - - onChanged(); - return getIsEmployeeReferredFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - public com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder() { - if (isEmployeeReferredBuilder_ != null) { - return isEmployeeReferredBuilder_.getMessageOrBuilder(); - } else { - return isEmployeeReferred_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : isEmployeeReferred_; - } - } - /** - * - * - *
-     * Optional.
-     * If the candidate is referred by a employee.
-     * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - getIsEmployeeReferredFieldBuilder() { - if (isEmployeeReferredBuilder_ == null) { - isEmployeeReferredBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder>( - getIsEmployeeReferred(), getParentForChildren(), isClean()); - isEmployeeReferred_ = null; - } - return isEmployeeReferredBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - 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; - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - 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; - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - /** - * - * - *
-     * Optional.
-     * The last update timestamp.
-     * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - 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 outcomeReason_ = ""; - /** - * - * - *
-     * Optional.
-     * The outcome reason for the job application.
-     * Number of characters allowed is 100.
-     * 
- * - * string outcome_reason = 11; - */ - public java.lang.String getOutcomeReason() { - java.lang.Object ref = outcomeReason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outcomeReason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The outcome reason for the job application.
-     * Number of characters allowed is 100.
-     * 
- * - * string outcome_reason = 11; - */ - public com.google.protobuf.ByteString getOutcomeReasonBytes() { - java.lang.Object ref = outcomeReason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - outcomeReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The outcome reason for the job application.
-     * Number of characters allowed is 100.
-     * 
- * - * string outcome_reason = 11; - */ - public Builder setOutcomeReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outcomeReason_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The outcome reason for the job application.
-     * Number of characters allowed is 100.
-     * 
- * - * string outcome_reason = 11; - */ - public Builder clearOutcomeReason() { - - outcomeReason_ = getDefaultInstance().getOutcomeReason(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The outcome reason for the job application.
-     * Number of characters allowed is 100.
-     * 
- * - * string outcome_reason = 11; - */ - public Builder setOutcomeReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outcomeReason_ = value; - onChanged(); - return this; - } - - private double outcomePositiveness_; - /** - * - * - *
-     * Optional.
-     * Outcome positiveness shows how positive the outcome is.
-     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
-     * means neutral and 1 means positive. An error is thrown if other value is
-     * set.
-     * 
- * - * double outcome_positiveness = 12; - */ - public double getOutcomePositiveness() { - return outcomePositiveness_; - } - /** - * - * - *
-     * Optional.
-     * Outcome positiveness shows how positive the outcome is.
-     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
-     * means neutral and 1 means positive. An error is thrown if other value is
-     * set.
-     * 
- * - * double outcome_positiveness = 12; - */ - public Builder setOutcomePositiveness(double value) { - - outcomePositiveness_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * Outcome positiveness shows how positive the outcome is.
-     * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
-     * means neutral and 1 means positive. An error is thrown if other value is
-     * set.
-     * 
- * - * double outcome_positiveness = 12; - */ - public Builder clearOutcomePositiveness() { - - outcomePositiveness_ = 0D; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue isMatch_ = null; - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 14; - */ - 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 = 14; - */ - 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 = 14; - */ - 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 = 14; - */ - 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 = 14; - */ - 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.setUnknownFieldsProto3(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.JobApplication) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobApplication) - private static final com.google.cloud.talent.v4beta1.JobApplication DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobApplication(); - } - - public static com.google.cloud.talent.v4beta1.JobApplication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobApplication(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.JobApplication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java deleted file mode 100644 index 1b49e17ee3ba..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobApplicationOrBuilder.java +++ /dev/null @@ -1,397 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface JobApplicationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.JobApplication) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional.
-   * The information of job which the candidate applied for.
-   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-   * Otherwise, only
-   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-   * [Job.title][google.cloud.talent.v4beta1.Job.title],
-   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-   * entity is created in this case.
-   * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - boolean hasJob(); - /** - * - * - *
-   * Optional.
-   * The information of job which the candidate applied for.
-   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-   * Otherwise, only
-   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-   * [Job.title][google.cloud.talent.v4beta1.Job.title],
-   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-   * entity is created in this case.
-   * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - com.google.cloud.talent.v4beta1.Job getJob(); - /** - * - * - *
-   * Optional.
-   * The information of job which the candidate applied for.
-   * If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the
-   * corresponding [Job][google.cloud.talent.v4beta1.Job] must be created.
-   * Otherwise, only
-   * [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id],
-   * [Job.title][google.cloud.talent.v4beta1.Job.title],
-   * [Job.description][google.cloud.talent.v4beta1.Job.description] and
-   * [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here
-   * are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job]
-   * entity is created in this case.
-   * 
- * - * .google.cloud.talent.v4beta1.Job job = 1; - */ - com.google.cloud.talent.v4beta1.JobOrBuilder getJobOrBuilder(); - - /** - * - * - *
-   * Optional.
-   * The job application id.
-   * Number of characters allowed is 100.
-   * 
- * - * string application_id = 2; - */ - java.lang.String getApplicationId(); - /** - * - * - *
-   * Optional.
-   * The job application id.
-   * Number of characters allowed is 100.
-   * 
- * - * string application_id = 2; - */ - com.google.protobuf.ByteString getApplicationIdBytes(); - - /** - * - * - *
-   * Optional.
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 3; - */ - boolean hasApplicationDate(); - /** - * - * - *
-   * Optional.
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 3; - */ - com.google.type.Date getApplicationDate(); - /** - * - * - *
-   * Optional.
-   * The application date.
-   * 
- * - * .google.type.Date application_date = 3; - */ - com.google.type.DateOrBuilder getApplicationDateOrBuilder(); - - /** - * - * - *
-   * Optional.
-   * The last stage the candidate reached in the application progress.
-   * For example, "new", "phone screen", "interview".
-   * 
- * - * string last_stage = 4; - */ - java.lang.String getLastStage(); - /** - * - * - *
-   * Optional.
-   * The last stage the candidate reached in the application progress.
-   * For example, "new", "phone screen", "interview".
-   * 
- * - * string last_stage = 4; - */ - com.google.protobuf.ByteString getLastStageBytes(); - - /** - * - * - *
-   * Optional.
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - int getStateValue(); - /** - * - * - *
-   * Optional.
-   * The application state.
-   * 
- * - * .google.cloud.talent.v4beta1.JobApplication.ApplicationStatus state = 5; - */ - com.google.cloud.talent.v4beta1.JobApplication.ApplicationStatus getState(); - - /** - * - * - *
-   * Optional.
-   * The average interview score.
-   * 
- * - * double average_interview_score = 6; - */ - double getAverageInterviewScore(); - - /** - * - * - *
-   * Optional.
-   * The scale id of the interview score.
-   * Number of characters allowed is 100.
-   * 
- * - * string interview_score_scale_id = 7; - */ - java.lang.String getInterviewScoreScaleId(); - /** - * - * - *
-   * Optional.
-   * The scale id of the interview score.
-   * Number of characters allowed is 100.
-   * 
- * - * string interview_score_scale_id = 7; - */ - com.google.protobuf.ByteString getInterviewScoreScaleIdBytes(); - - /** - * - * - *
-   * Optional.
-   * The number of interviews.
-   * 
- * - * int32 number_of_interviews = 8; - */ - int getNumberOfInterviews(); - - /** - * - * - *
-   * Optional.
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - boolean hasIsEmployeeReferred(); - /** - * - * - *
-   * Optional.
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - com.google.protobuf.BoolValue getIsEmployeeReferred(); - /** - * - * - *
-   * Optional.
-   * If the candidate is referred by a employee.
-   * 
- * - * .google.protobuf.BoolValue is_employee_referred = 9; - */ - com.google.protobuf.BoolValueOrBuilder getIsEmployeeReferredOrBuilder(); - - /** - * - * - *
-   * Optional.
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - boolean hasUpdateTime(); - /** - * - * - *
-   * Optional.
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - * - * - *
-   * Optional.
-   * The last update timestamp.
-   * 
- * - * .google.protobuf.Timestamp update_time = 10; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Optional.
-   * The outcome reason for the job application.
-   * Number of characters allowed is 100.
-   * 
- * - * string outcome_reason = 11; - */ - java.lang.String getOutcomeReason(); - /** - * - * - *
-   * Optional.
-   * The outcome reason for the job application.
-   * Number of characters allowed is 100.
-   * 
- * - * string outcome_reason = 11; - */ - com.google.protobuf.ByteString getOutcomeReasonBytes(); - - /** - * - * - *
-   * Optional.
-   * Outcome positiveness shows how positive the outcome is.
-   * Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0
-   * means neutral and 1 means positive. An error is thrown if other value is
-   * set.
-   * 
- * - * double outcome_positiveness = 12; - */ - double getOutcomePositiveness(); - - /** - * - * - *
-   * 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 = 13; - */ - 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 = 13; - */ - 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 = 13; - */ - 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 = 14; - */ - 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 = 14; - */ - com.google.protobuf.ByteString getJobTitleSnippetBytes(); -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java index 5bf3fec9adf1..293ffa8f7497 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java @@ -14,167 +14,10 @@ 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; // AUTO-GENERATED DOCUMENTATION AND CLASS @javax.annotation.Generated("by GAPIC protoc plugin") -public class JobName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}/jobs/{jobs}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String jobs; - - public String getProject() { - return project; - } - - public String getJobs() { - return jobs; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private JobName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - jobs = Preconditions.checkNotNull(builder.getJobs()); - } - - public static JobName of(String project, String jobs) { - return newBuilder().setProject(project).setJobs(jobs).build(); - } - - public static String format(String project, String jobs) { - return newBuilder().setProject(project).setJobs(jobs).build().toString(); - } - - public static JobName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "JobName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("jobs")); - } - - 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 (JobName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("jobs", jobs); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "jobs", jobs); - } - - /** Builder for JobName. */ - public static class Builder { - - private String project; - private String jobs; - - public String getProject() { - return project; - } - - public String getJobs() { - return jobs; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setJobs(String jobs) { - this.jobs = jobs; - return this; - } - - private Builder() {} - - private Builder(JobName jobName) { - project = jobName.project; - jobs = jobName.jobs; - } - - public JobName build() { - return new JobName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof JobName) { - JobName that = (JobName) o; - return (this.project.equals(that.project)) && (this.jobs.equals(that.jobs)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= jobs.hashCode(); - return h; - } +public abstract class JobName implements ResourceName { + protected JobName() {} } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNames.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNames.java new file mode 100644 index 000000000000..f0c44f47bf64 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNames.java @@ -0,0 +1,31 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class JobNames { + private JobNames() {} + + public static JobName parse(String resourceNameString) { + if (JobOldName.isParsableFrom(resourceNameString)) { + return JobOldName.parse(resourceNameString); + } + if (JobNewName.isParsableFrom(resourceNameString)) { + return JobNewName.parse(resourceNameString); + } + return UntypedJobName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNewName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNewName.java new file mode 100644 index 000000000000..5f5bceaead9a --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobNewName.java @@ -0,0 +1,201 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class JobNewName extends JobName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/tenants/{tenant}/jobs/{jobs}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String tenant; + private final String jobs; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getJobs() { + return jobs; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private JobNewName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + jobs = Preconditions.checkNotNull(builder.getJobs()); + } + + public static JobNewName of(String project, String tenant, String jobs) { + return newBuilder().setProject(project).setTenant(tenant).setJobs(jobs).build(); + } + + public static String format(String project, String tenant, String jobs) { + return newBuilder().setProject(project).setTenant(tenant).setJobs(jobs).build().toString(); + } + + public static JobNewName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "JobNewName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("tenant"), matchMap.get("jobs")); + } + + 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 (JobNewName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("tenant", tenant); + fieldMapBuilder.put("jobs", jobs); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "tenant", tenant, "jobs", jobs); + } + + /** Builder for JobNewName. */ + public static class Builder { + + private String project; + private String tenant; + private String jobs; + + public String getProject() { + return project; + } + + public String getTenant() { + return tenant; + } + + public String getJobs() { + return jobs; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + public Builder setJobs(String jobs) { + this.jobs = jobs; + return this; + } + + private Builder() {} + + private Builder(JobNewName jobNewName) { + project = jobNewName.project; + tenant = jobNewName.tenant; + jobs = jobNewName.jobs; + } + + public JobNewName build() { + return new JobNewName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof JobNewName) { + JobNewName that = (JobNewName) o; + return (this.project.equals(that.project)) + && (this.tenant.equals(that.tenant)) + && (this.jobs.equals(that.jobs)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= tenant.hashCode(); + h *= 1000003; + h ^= jobs.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOldName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOldName.java new file mode 100644 index 000000000000..5e6cb4be4ea9 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOldName.java @@ -0,0 +1,179 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class JobOldName extends JobName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/jobs/{jobs}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private JobOldName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + jobs = Preconditions.checkNotNull(builder.getJobs()); + } + + public static JobOldName of(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build(); + } + + public static String format(String project, String jobs) { + return newBuilder().setProject(project).setJobs(jobs).build().toString(); + } + + public static JobOldName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "JobOldName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("jobs")); + } + + 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 (JobOldName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("jobs", jobs); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "jobs", jobs); + } + + /** Builder for JobOldName. */ + public static class Builder { + + private String project; + private String jobs; + + public String getProject() { + return project; + } + + public String getJobs() { + return jobs; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setJobs(String jobs) { + this.jobs = jobs; + return this; + } + + private Builder() {} + + private Builder(JobOldName jobOldName) { + project = jobOldName.project; + jobs = jobOldName.jobs; + } + + public JobOldName build() { + return new JobOldName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof JobOldName) { + JobOldName that = (JobOldName) o; + return (this.project.equals(that.project)) && (this.jobs.equals(that.jobs)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= jobs.hashCode(); + return h; + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java index 4667ecf62c2f..5ccaf8b0a436 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java @@ -15,8 +15,11 @@ public interface JobOrBuilder * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -32,8 +35,11 @@ public interface JobOrBuilder * Required during job update. * The resource name for the job. This is generated by the service when a * job is created. - * The format is "projects/{project_id}/jobs/{job_id}", - * for example, "projects/api-test-project/jobs/1234". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + * example, "projects/api-test-project/tenants/foo/jobs/1234". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/jobs/1234". * Use of this field in job queries and API calls is preferred over the use of * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this * value is unique. @@ -48,25 +54,33 @@ public interface JobOrBuilder * *
    * Required.
-   * The resource name of the company listing the job, such as
-   * "projects/api-test-project/companies/foo".
+   * The resource name of the company listing the job.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 2; + * string company = 2; */ - java.lang.String getCompanyName(); + java.lang.String getCompany(); /** * * *
    * Required.
-   * The resource name of the company listing the job, such as
-   * "projects/api-test-project/companies/foo".
+   * The resource name of the company listing the job.
+   * The format is
+   * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for
+   * example, "projects/api-test-project/tenants/foo/companies/bar".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project/companies/bar".
    * 
* - * string company_name = 2; + * string company = 2; */ - com.google.protobuf.ByteString getCompanyNameBytes(); + com.google.protobuf.ByteString getCompanyBytes(); /** * @@ -371,7 +385,8 @@ public interface JobOrBuilder * *
    * Optional.
-   * Job compensation information.
+   * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+   * that will paid to the employee.
    * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -382,7 +397,8 @@ public interface JobOrBuilder * *
    * Optional.
-   * Job compensation information.
+   * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+   * that will paid to the employee.
    * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -393,7 +409,8 @@ public interface JobOrBuilder * *
    * Optional.
-   * Job compensation information.
+   * Job compensation information (a.k.a. "pay rate") i.e., the compensation
+   * that will paid to the employee.
    * 
* * .google.cloud.talent.v4beta1.CompensationInfo compensation_info = 9; @@ -1036,8 +1053,7 @@ com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -1075,8 +1091,7 @@ com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs @@ -1114,8 +1129,7 @@ com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( * updated with the [UpdateJob][] API. An expired job can be updated and * opened again by using a future expiration timestamp. Updating an expired * job fails if there is another existing open job with same - * [company][google.cloud.talent.v4beta1.Job.name][], - * [language_code][google.cloud.talent.v4beta1.Job.language_code] and + * [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and * [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. * The expired jobs are retained in our system for 90 days. However, the * overall expired job count cannot exceed 3 times the maximum of open jobs diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java index bbe1abacaa37..dde0157b5457 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java @@ -25,7 +25,7 @@ private JobQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { private JobQuery() { query_ = ""; - companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; locationFilters_ = java.util.Collections.emptyList(); jobCategories_ = java.util.Collections.emptyList(); companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -71,10 +71,10 @@ private JobQuery( { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - companyNames_ = new com.google.protobuf.LazyStringArrayList(); + companies_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } - companyNames_.add(s); + companies_.add(s); break; } case 26: @@ -245,7 +245,7 @@ private JobQuery( throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - companyNames_ = companyNames_.getUnmodifiableView(); + companies_ = companies_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); @@ -335,8 +335,8 @@ public com.google.protobuf.ByteString getQueryBytes() { } } - public static final int COMPANY_NAMES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList companyNames_; + public static final int COMPANIES_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList companies_; /** * * @@ -347,15 +347,18 @@ public com.google.protobuf.ByteString getQueryBytes() { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public com.google.protobuf.ProtocolStringList getCompanyNamesList() { - return companyNames_; + public com.google.protobuf.ProtocolStringList getCompaniesList() { + return companies_; } /** * @@ -367,15 +370,18 @@ public com.google.protobuf.ProtocolStringList getCompanyNamesList() { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public int getCompanyNamesCount() { - return companyNames_.size(); + public int getCompaniesCount() { + return companies_.size(); } /** * @@ -387,15 +393,18 @@ public int getCompanyNamesCount() { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public java.lang.String getCompanyNames(int index) { - return companyNames_.get(index); + public java.lang.String getCompanies(int index) { + return companies_.get(index); } /** * @@ -407,15 +416,18 @@ public java.lang.String getCompanyNames(int index) { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { - return companyNames_.getByteString(index); + public com.google.protobuf.ByteString getCompaniesBytes(int index) { + return companies_.getByteString(index); } public static final int LOCATION_FILTERS_FIELD_NUMBER = 3; @@ -1257,8 +1269,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } - for (int i = 0; i < companyNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companyNames_.getRaw(i)); + for (int i = 0; i < companies_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companies_.getRaw(i)); } for (int i = 0; i < locationFilters_.size(); i++) { output.writeMessage(3, locationFilters_.get(i)); @@ -1315,11 +1327,11 @@ public int getSerializedSize() { } { int dataSize = 0; - for (int i = 0; i < companyNames_.size(); i++) { - dataSize += computeStringSizeNoTag(companyNames_.getRaw(i)); + for (int i = 0; i < companies_.size(); i++) { + dataSize += computeStringSizeNoTag(companies_.getRaw(i)); } size += dataSize; - size += 1 * getCompanyNamesList().size(); + size += 1 * getCompaniesList().size(); } for (int i = 0; i < locationFilters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, locationFilters_.get(i)); @@ -1406,7 +1418,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getQuery().equals(other.getQuery()); - result = result && getCompanyNamesList().equals(other.getCompanyNamesList()); + result = result && getCompaniesList().equals(other.getCompaniesList()); result = result && getLocationFiltersList().equals(other.getLocationFiltersList()); result = result && jobCategories_.equals(other.jobCategories_); result = result && (hasCommuteFilter() == other.hasCommuteFilter()); @@ -1440,9 +1452,9 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); - if (getCompanyNamesCount() > 0) { - hash = (37 * hash) + COMPANY_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getCompanyNamesList().hashCode(); + if (getCompaniesCount() > 0) { + hash = (37 * hash) + COMPANIES_FIELD_NUMBER; + hash = (53 * hash) + getCompaniesList().hashCode(); } if (getLocationFiltersCount() > 0) { hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER; @@ -1634,7 +1646,7 @@ public Builder clear() { super.clear(); query_ = ""; - companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (locationFiltersBuilder_ == null) { locationFilters_ = java.util.Collections.emptyList(); @@ -1705,10 +1717,10 @@ public com.google.cloud.talent.v4beta1.JobQuery buildPartial() { int to_bitField0_ = 0; result.query_ = query_; if (((bitField0_ & 0x00000002) == 0x00000002)) { - companyNames_ = companyNames_.getUnmodifiableView(); + companies_ = companies_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } - result.companyNames_ = companyNames_; + result.companies_ = companies_; if (locationFiltersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_); @@ -1814,13 +1826,13 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) { query_ = other.query_; onChanged(); } - if (!other.companyNames_.isEmpty()) { - if (companyNames_.isEmpty()) { - companyNames_ = other.companyNames_; + if (!other.companies_.isEmpty()) { + if (companies_.isEmpty()) { + companies_ = other.companies_; bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureCompanyNamesIsMutable(); - companyNames_.addAll(other.companyNames_); + ensureCompaniesIsMutable(); + companies_.addAll(other.companies_); } onChanged(); } @@ -2057,12 +2069,12 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList companyNames_ = + private com.google.protobuf.LazyStringList companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCompanyNamesIsMutable() { + private void ensureCompaniesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { - companyNames_ = new com.google.protobuf.LazyStringArrayList(companyNames_); + companies_ = new com.google.protobuf.LazyStringArrayList(companies_); bitField0_ |= 0x00000002; } } @@ -2076,15 +2088,18 @@ private void ensureCompanyNamesIsMutable() { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public com.google.protobuf.ProtocolStringList getCompanyNamesList() { - return companyNames_.getUnmodifiableView(); + public com.google.protobuf.ProtocolStringList getCompaniesList() { + return companies_.getUnmodifiableView(); } /** * @@ -2096,15 +2111,18 @@ public com.google.protobuf.ProtocolStringList getCompanyNamesList() { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public int getCompanyNamesCount() { - return companyNames_.size(); + public int getCompaniesCount() { + return companies_.size(); } /** * @@ -2116,15 +2134,18 @@ public int getCompanyNamesCount() { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public java.lang.String getCompanyNames(int index) { - return companyNames_.get(index); + public java.lang.String getCompanies(int index) { + return companies_.get(index); } /** * @@ -2136,15 +2157,18 @@ public java.lang.String getCompanyNames(int index) { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { - return companyNames_.getByteString(index); + public com.google.protobuf.ByteString getCompaniesBytes(int index) { + return companies_.getByteString(index); } /** * @@ -2156,19 +2180,22 @@ public com.google.protobuf.ByteString getCompanyNamesBytes(int index) { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public Builder setCompanyNames(int index, java.lang.String value) { + public Builder setCompanies(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureCompanyNamesIsMutable(); - companyNames_.set(index, value); + ensureCompaniesIsMutable(); + companies_.set(index, value); onChanged(); return this; } @@ -2182,19 +2209,22 @@ public Builder setCompanyNames(int index, java.lang.String value) { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public Builder addCompanyNames(java.lang.String value) { + public Builder addCompanies(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureCompanyNamesIsMutable(); - companyNames_.add(value); + ensureCompaniesIsMutable(); + companies_.add(value); onChanged(); return this; } @@ -2208,16 +2238,19 @@ public Builder addCompanyNames(java.lang.String value) { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public Builder addAllCompanyNames(java.lang.Iterable values) { - ensureCompanyNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyNames_); + public Builder addAllCompanies(java.lang.Iterable values) { + ensureCompaniesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companies_); onChanged(); return this; } @@ -2231,15 +2264,18 @@ public Builder addAllCompanyNames(java.lang.Iterable values) { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public Builder clearCompanyNames() { - companyNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + public Builder clearCompanies() { + companies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -2254,20 +2290,23 @@ public Builder clearCompanyNames() { * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - public Builder addCompanyNamesBytes(com.google.protobuf.ByteString value) { + public Builder addCompaniesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureCompanyNamesIsMutable(); - companyNames_.add(value); + ensureCompaniesIsMutable(); + companies_.add(value); onChanged(); return this; } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java index a087101e8b33..839f0b8e5215 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java @@ -45,14 +45,17 @@ public interface JobQueryOrBuilder * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - java.util.List getCompanyNamesList(); + java.util.List getCompaniesList(); /** * * @@ -63,14 +66,17 @@ public interface JobQueryOrBuilder * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - int getCompanyNamesCount(); + int getCompaniesCount(); /** * * @@ -81,14 +87,17 @@ public interface JobQueryOrBuilder * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - java.lang.String getCompanyNames(int index); + java.lang.String getCompanies(int index); /** * * @@ -99,14 +108,17 @@ public interface JobQueryOrBuilder * companies. * If multiple values are specified, jobs are searched against the * companies specified. - * The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * Tenant id is optional and the default tenant is used if unspecified, for + * example, "projects/api-test-project/companies/bar". * At most 20 company filters are allowed. * * - * repeated string company_names = 2; + * repeated string companies = 2; */ - com.google.protobuf.ByteString getCompanyNamesBytes(int index); + com.google.protobuf.ByteString getCompaniesBytes(int index); /** * diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java index 5c503c1d3997..94cd1d406fb8 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java @@ -45,56 +45,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033google.cloud.talent.v4beta1\032\034google/api" + "/annotations.proto\032(google/cloud/talent/" + "v4beta1/common.proto\032\037google/protobuf/ti" - + "mestamp.proto\"\254\016\n\003Job\022\014\n\004name\030\001 \001(\t\022\024\n\014c" - + "ompany_name\030\002 \001(\t\022\026\n\016requisition_id\030\003 \001(" - + "\t\022\r\n\005title\030\004 \001(\t\022\023\n\013description\030\005 \001(\t\022\021\n" - + "\taddresses\030\006 \003(\t\022J\n\020application_info\030\007 \001" - + "(\01320.google.cloud.talent.v4beta1.Job.App" - + "licationInfo\022=\n\014job_benefits\030\010 \003(\0162\'.goo" - + "gle.cloud.talent.v4beta1.JobBenefit\022H\n\021c" - + "ompensation_info\030\t \001(\0132-.google.cloud.ta" - + "lent.v4beta1.CompensationInfo\022Q\n\021custom_" - + "attributes\030\n \003(\01326.google.cloud.talent.v" - + "4beta1.Job.CustomAttributesEntry\022=\n\014degr" - + "ee_types\030\013 \003(\0162\'.google.cloud.talent.v4b" - + "eta1.DegreeType\022\022\n\ndepartment\030\014 \001(\t\022E\n\020e" - + "mployment_types\030\r \003(\0162+.google.cloud.tal" - + "ent.v4beta1.EmploymentType\022\022\n\nincentives" - + "\030\016 \001(\t\022\025\n\rlanguage_code\030\017 \001(\t\0228\n\tjob_lev" - + "el\030\020 \001(\0162%.google.cloud.talent.v4beta1.J" - + "obLevel\022\027\n\017promotion_value\030\021 \001(\005\022\026\n\016qual" - + "ifications\030\022 \001(\t\022\030\n\020responsibilities\030\023 \001" - + "(\t\022B\n\016posting_region\030\024 \001(\0162*.google.clou" - + "d.talent.v4beta1.PostingRegion\022;\n\nvisibi" - + "lity\030\025 \001(\0162\'.google.cloud.talent.v4beta1" - + ".Visibility\0222\n\016job_start_time\030\026 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\0220\n\014job_end_time\030" - + "\027 \001(\0132\032.google.protobuf.Timestamp\0228\n\024pos" - + "ting_publish_time\030\030 \001(\0132\032.google.protobu" - + "f.Timestamp\0227\n\023posting_expire_time\030\031 \001(\013" - + "2\032.google.protobuf.Timestamp\0227\n\023posting_" - + "create_time\030\032 \001(\0132\032.google.protobuf.Time" - + "stamp\0227\n\023posting_update_time\030\033 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022\034\n\024company_displa" - + "y_name\030\034 \001(\t\022B\n\014derived_info\030\035 \001(\0132,.goo" - + "gle.cloud.talent.v4beta1.Job.DerivedInfo" - + "\022N\n\022processing_options\030\036 \001(\01322.google.cl" - + "oud.talent.v4beta1.Job.ProcessingOptions" - + "\032D\n\017ApplicationInfo\022\016\n\006emails\030\001 \003(\t\022\023\n\013i" - + "nstruction\030\002 \001(\t\022\014\n\004uris\030\003 \003(\t\032\211\001\n\013Deriv" - + "edInfo\0228\n\tlocations\030\001 \003(\0132%.google.cloud" - + ".talent.v4beta1.Location\022@\n\016job_categori" - + "es\030\003 \003(\0162(.google.cloud.talent.v4beta1.J" - + "obCategory\032\210\001\n\021ProcessingOptions\022)\n!disa" - + "ble_street_address_resolution\030\001 \001(\010\022H\n\021h" - + "tml_sanitization\030\002 \001(\0162-.google.cloud.ta" - + "lent.v4beta1.HtmlSanitization\032e\n\025CustomA" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001" - + "(\0132,.google.cloud.talent.v4beta1.CustomA" - + "ttribute:\0028\001B~\n\037com.google.cloud.talent." - + "v4beta1B\020JobResourceProtoP\001ZAgoogle.gola" - + "ng.org/genproto/googleapis/cloud/talent/" - + "v4beta1;talent\242\002\003CTSb\006proto3" + + "mestamp.proto\032\036google/protobuf/wrappers." + + "proto\"\247\016\n\003Job\022\014\n\004name\030\001 \001(\t\022\017\n\007company\030\002" + + " \001(\t\022\026\n\016requisition_id\030\003 \001(\t\022\r\n\005title\030\004 " + + "\001(\t\022\023\n\013description\030\005 \001(\t\022\021\n\taddresses\030\006 " + + "\003(\t\022J\n\020application_info\030\007 \001(\01320.google.c" + + "loud.talent.v4beta1.Job.ApplicationInfo\022" + + "=\n\014job_benefits\030\010 \003(\0162\'.google.cloud.tal" + + "ent.v4beta1.JobBenefit\022H\n\021compensation_i" + + "nfo\030\t \001(\0132-.google.cloud.talent.v4beta1." + + "CompensationInfo\022Q\n\021custom_attributes\030\n " + + "\003(\01326.google.cloud.talent.v4beta1.Job.Cu" + + "stomAttributesEntry\022=\n\014degree_types\030\013 \003(" + + "\0162\'.google.cloud.talent.v4beta1.DegreeTy" + + "pe\022\022\n\ndepartment\030\014 \001(\t\022E\n\020employment_typ" + + "es\030\r \003(\0162+.google.cloud.talent.v4beta1.E" + + "mploymentType\022\022\n\nincentives\030\016 \001(\t\022\025\n\rlan" + + "guage_code\030\017 \001(\t\0228\n\tjob_level\030\020 \001(\0162%.go" + + "ogle.cloud.talent.v4beta1.JobLevel\022\027\n\017pr" + + "omotion_value\030\021 \001(\005\022\026\n\016qualifications\030\022 " + + "\001(\t\022\030\n\020responsibilities\030\023 \001(\t\022B\n\016posting" + + "_region\030\024 \001(\0162*.google.cloud.talent.v4be" + + "ta1.PostingRegion\022;\n\nvisibility\030\025 \001(\0162\'." + + "google.cloud.talent.v4beta1.Visibility\0222" + + "\n\016job_start_time\030\026 \001(\0132\032.google.protobuf" + + ".Timestamp\0220\n\014job_end_time\030\027 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0228\n\024posting_publish_" + + "time\030\030 \001(\0132\032.google.protobuf.Timestamp\0227" + + "\n\023posting_expire_time\030\031 \001(\0132\032.google.pro" + + "tobuf.Timestamp\0227\n\023posting_create_time\030\032" + + " \001(\0132\032.google.protobuf.Timestamp\0227\n\023post" + + "ing_update_time\030\033 \001(\0132\032.google.protobuf." + + "Timestamp\022\034\n\024company_display_name\030\034 \001(\t\022" + + "B\n\014derived_info\030\035 \001(\0132,.google.cloud.tal" + + "ent.v4beta1.Job.DerivedInfo\022N\n\022processin" + + "g_options\030\036 \001(\01322.google.cloud.talent.v4" + + "beta1.Job.ProcessingOptions\032D\n\017Applicati" + + "onInfo\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\tloc" + + "ations\030\001 \003(\0132%.google.cloud.talent.v4bet" + + "a1.Location\022@\n\016job_categories\030\003 \003(\0162(.go" + + "ogle.cloud.talent.v4beta1.JobCategory\032\210\001" + + "\n\021ProcessingOptions\022)\n!disable_street_ad" + + "dress_resolution\030\001 \001(\010\022H\n\021html_sanitizat" + + "ion\030\002 \001(\0162-.google.cloud.talent.v4beta1." + + "HtmlSanitization\032e\n\025CustomAttributesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.c" + + "loud.talent.v4beta1.CustomAttribute:\0028\001B" + + "~\n\037com.google.cloud.talent.v4beta1B\020JobR" + + "esourceProtoP\001ZAgoogle.golang.org/genpro" + + "to/googleapis/cloud/talent/v4beta1;talen" + + "t\242\002\003CTSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -110,6 +111,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), }, assigner); internal_static_google_cloud_talent_v4beta1_Job_descriptor = @@ -119,7 +121,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_cloud_talent_v4beta1_Job_descriptor, new java.lang.String[] { "Name", - "CompanyName", + "Company", "RequisitionId", "Title", "Description", @@ -184,6 +186,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java index 73488e373bf5..578d808c1a98 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java @@ -150,40 +150,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n*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_MINIMAL" + "\020\002\022\022\n\016JOB_VIEW_SMALL\020\003\022\021\n\rJOB_VIEW_FULL\020" - + "\0042\267\t\n\nJobService\022\212\001\n\tCreateJob\022-.google." + + "\0042\342\014\n\nJobService\022\274\001\n\tCreateJob\022-.google." + "cloud.talent.v4beta1.CreateJobRequest\032 ." - + "google.cloud.talent.v4beta1.Job\",\202\323\344\223\002&\"" - + "!/v4beta1/{parent=projects/*}/jobs:\001*\022\201\001" - + "\n\006GetJob\022*.google.cloud.talent.v4beta1.G" - + "etJobRequest\032 .google.cloud.talent.v4bet" - + "a1.Job\")\202\323\344\223\002#\022!/v4beta1/{name=projects/" - + "*/jobs/*}\022\216\001\n\tUpdateJob\022-.google.cloud.t" - + "alent.v4beta1.UpdateJobRequest\032 .google." - + "cloud.talent.v4beta1.Job\"0\202\323\344\223\002*2%/v4bet" - + "a1/{job.name=projects/*/jobs/*}:\001*\022}\n\tDe" - + "leteJob\022-.google.cloud.talent.v4beta1.De" - + "leteJobRequest\032\026.google.protobuf.Empty\")" - + "\202\323\344\223\002#*!/v4beta1/{name=projects/*/jobs/*" - + "}\022\222\001\n\010ListJobs\022,.google.cloud.talent.v4b" - + "eta1.ListJobsRequest\032-.google.cloud.tale" - + "nt.v4beta1.ListJobsResponse\")\202\323\344\223\002#\022!/v4" - + "beta1/{parent=projects/*}/jobs\022\230\001\n\017Batch" - + "DeleteJobs\0223.google.cloud.talent.v4beta1" - + ".BatchDeleteJobsRequest\032\026.google.protobu" - + "f.Empty\"8\202\323\344\223\0022\"-/v4beta1/{parent=projec" - + "ts/*}/jobs:batchDelete:\001*\022\242\001\n\nSearchJobs" - + "\022..google.cloud.talent.v4beta1.SearchJob" - + "sRequest\032/.google.cloud.talent.v4beta1.S" - + "earchJobsResponse\"3\202\323\344\223\002-\"(/v4beta1/{par" - + "ent=projects/*}/jobs:search:\001*\022\262\001\n\022Searc" - + "hJobsForAlert\022..google.cloud.talent.v4be" - + "ta1.SearchJobsRequest\032/.google.cloud.tal" - + "ent.v4beta1.SearchJobsResponse\";\202\323\344\223\0025\"0" - + "/v4beta1/{parent=projects/*}/jobs:search" - + "ForAlert:\001*B}\n\037com.google.cloud.talent.v" - + "4beta1B\017JobServiceProtoP\001ZAgoogle.golang" - + ".org/genproto/googleapis/cloud/talent/v4" - + "beta1;talent\242\002\003CTSb\006proto3" + + "google.cloud.talent.v4beta1.Job\"^\202\323\344\223\002X\"" + + "+/v4beta1/{parent=projects/*/tenants/*}/" + + "jobs:\001*Z&\"!/v4beta1/{parent=projects/*}/" + + "jobs:\001*\022\260\001\n\006GetJob\022*.google.cloud.talent" + + ".v4beta1.GetJobRequest\032 .google.cloud.ta" + + "lent.v4beta1.Job\"X\202\323\344\223\002R\022+/v4beta1/{name" + + "=projects/*/tenants/*/jobs/*}Z#\022!/v4beta" + + "1/{name=projects/*/jobs/*}\022\304\001\n\tUpdateJob" + + "\022-.google.cloud.talent.v4beta1.UpdateJob" + + "Request\032 .google.cloud.talent.v4beta1.Jo" + + "b\"f\202\323\344\223\002`2//v4beta1/{job.name=projects/*" + + "/tenants/*/jobs/*}:\001*Z*2%/v4beta1/{job.n" + + "ame=projects/*/jobs/*}:\001*\022\254\001\n\tDeleteJob\022" + + "-.google.cloud.talent.v4beta1.DeleteJobR" + + "equest\032\026.google.protobuf.Empty\"X\202\323\344\223\002R*+" + + "/v4beta1/{name=projects/*/tenants/*/jobs" + + "/*}Z#*!/v4beta1/{name=projects/*/jobs/*}" + + "\022\301\001\n\010ListJobs\022,.google.cloud.talent.v4be" + + "ta1.ListJobsRequest\032-.google.cloud.talen" + + "t.v4beta1.ListJobsResponse\"X\202\323\344\223\002R\022+/v4b" + + "eta1/{parent=projects/*/tenants/*}/jobsZ" + + "#\022!/v4beta1/{parent=projects/*}/jobs\022\323\001\n" + + "\017BatchDeleteJobs\0223.google.cloud.talent.v" + + "4beta1.BatchDeleteJobsRequest\032\026.google.p" + + "rotobuf.Empty\"s\202\323\344\223\002m\"7/v4beta1/{parent=" + + "projects/*/tenants/*}/jobs:batchDelete:\001" + + "*Z/\"-/v4beta1/{parent=projects/*}/jobs:b" + + "atchDelete\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*B}" + + "\n\037com.google.cloud.talent.v4beta1B\017JobSe" + + "rviceProtoP\001ZAgoogle.golang.org/genproto" + + "/googleapis/cloud/talent/v4beta1;talent\242" + + "\002\003CTSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java index b5f0cb13fd5b..7e5b04c665d7 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java @@ -47,8 +47,7 @@ public enum JobView implements com.google.protobuf.ProtocolMessageEnum { * 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.job_title][], - * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + * [Job.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]. * @@ -63,8 +62,7 @@ public enum JobView implements com.google.protobuf.ProtocolMessageEnum { * 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.job_title][], - * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + * [Job.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], @@ -117,8 +115,7 @@ public enum JobView implements com.google.protobuf.ProtocolMessageEnum { * 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.job_title][], - * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + * [Job.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]. * @@ -133,8 +130,7 @@ public enum JobView implements com.google.protobuf.ProtocolMessageEnum { * 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.job_title][], - * [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + * [Job.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], diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java new file mode 100644 index 000000000000..d2dc9caec0ea --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java @@ -0,0 +1,884 @@ +// 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_ = ""; + pageSize_ = 0; + } + + @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(); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + 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_; + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + 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; + } + } + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + 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_; + /** + * + * + *
+   * Optional.
+   * 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; + */ + 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + 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 (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getPageTokenBytes().isEmpty()) { + 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; + + boolean result = true; + result = result && getParent().equals(other.getParent()); + result = result && getPageToken().equals(other.getPageToken()); + result = result && (getPageSize() == other.getPageSize()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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 (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+     * 
+ * + * string parent = 1; + */ + 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_ = ""; + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + 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; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + 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; + } + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The starting indicator from which to return results.
+     * 
+ * + * string page_token = 2; + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional.
+     * 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; + */ + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * 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; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java new file mode 100644 index 000000000000..04ec1a44a703 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java @@ -0,0 +1,75 @@ +// 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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + 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/test-project/tenants/test-tenant/profiles/test-profile".
+   * 
+ * + * string parent = 1; + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional.
+   * The starting indicator from which to return results.
+   * 
+ * + * string page_token = 2; + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional.
+   * 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; + */ + int getPageSize(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java new file mode 100644 index 000000000000..e4bb59fbf285 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java @@ -0,0 +1,1377 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/talent/v4beta1/application_service.proto + +package com.google.cloud.talent.v4beta1; + +/** + * + * + *
+ * Output only.
+ * 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 + 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) == 0x00000001)) { + 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 (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + 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); + } + + private int bitField0_; + 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; + */ + public java.util.List getApplicationsList() { + return applications_; + } + /** + * + * + *
+   * Applications for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Application applications = 1; + */ + public java.util.List + getApplicationsOrBuilderList() { + return applications_; + } + /** + * + * + *
+   * Applications for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Application applications = 1; + */ + public int getApplicationsCount() { + return applications_.size(); + } + /** + * + * + *
+   * Applications for the current client.
+   * 
+ * + * repeated .google.cloud.talent.v4beta1.Application applications = 1; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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 (!getNextPageTokenBytes().isEmpty()) { + 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 (!getNextPageTokenBytes().isEmpty()) { + 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; + + boolean result = true; + result = result && getApplicationsList().equals(other.getApplicationsList()); + result = result && getNextPageToken().equals(other.getNextPageToken()); + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata().equals(other.getMetadata()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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; + } + /** + * + * + *
+   * Output only.
+   * 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_; + int to_bitField0_ = 0; + if (applicationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + 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(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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) == 0x00000001)) { + 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) == 0x00000001), + 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; + */ + 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; + */ + 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; + */ + 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; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + */ + 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_ = null; + 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; + */ + 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; + */ + 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.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java new file mode 100644 index 000000000000..78bc21082b0f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java @@ -0,0 +1,117 @@ +// 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; + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + boolean hasMetadata(); + /** + * + * + *
+   * Additional information for the API invocation, such as the request
+   * tracking id.
+   * 
+ * + * .google.cloud.talent.v4beta1.ResponseMetadata metadata = 3; + */ + 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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java index 0e2d9968fd23..d2e61c39fd40 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java @@ -118,9 +118,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -141,9 +143,11 @@ public java.lang.String getParent() { * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -613,9 +617,11 @@ public Builder mergeFrom( * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -636,9 +642,11 @@ public java.lang.String getParent() { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -659,9 +667,11 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -680,9 +690,11 @@ public Builder setParent(java.lang.String value) { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -698,9 +710,11 @@ public Builder clearParent() { * *
      * Required.
-     * Resource name of the project under which the company is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * Resource name of the tenant under which the company is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java index 7392d93df2f5..ed325c2aa3cd 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java @@ -13,9 +13,11 @@ public interface ListCompaniesRequestOrBuilder * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -26,9 +28,11 @@ public interface ListCompaniesRequestOrBuilder * *
    * Required.
-   * Resource name of the project under which the company is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * Resource name of the tenant under which the company is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java index 13c2012aa246..3f969b37b115 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java @@ -129,9 +129,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -152,9 +154,11 @@ public java.lang.String getParent() { * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -186,11 +190,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; @@ -219,11 +223,11 @@ public java.lang.String getFilter() { * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; @@ -732,9 +736,11 @@ public Builder mergeFrom( * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -755,9 +761,11 @@ public java.lang.String getParent() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -778,9 +786,11 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -799,9 +809,11 @@ public Builder setParent(java.lang.String value) { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -817,9 +829,11 @@ public Builder clearParent() { * *
      * Required.
-     * The resource name of the project under which the job is created.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant under which the job is created.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -849,11 +863,11 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; @@ -882,11 +896,11 @@ public java.lang.String getFilter() { * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; @@ -915,11 +929,11 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; @@ -946,11 +960,11 @@ public Builder setFilter(java.lang.String value) { * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; @@ -974,11 +988,11 @@ public Builder clearFilter() { * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java index 7b6046a8dc03..1e5a4f53cfb3 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java @@ -13,9 +13,11 @@ public interface ListJobsRequestOrBuilder * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -26,9 +28,11 @@ public interface ListJobsRequestOrBuilder * *
    * Required.
-   * The resource name of the project under which the job is created.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant under which the job is created.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -48,11 +52,11 @@ public interface ListJobsRequestOrBuilder * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; @@ -71,11 +75,11 @@ public interface ListJobsRequestOrBuilder * * `status` (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to * OPEN if no value is specified. * Sample Query: - * * companyName = "projects/api-test-project/companies/123" - * * companyName = "projects/api-test-project/companies/123" AND requisitionId - * = "req-1" - * * companyName = "projects/api-test-project/companies/123" AND status = - * "EXPIRED" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * requisitionId = "req-1" + * * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * * * string filter = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java index a9393cd5c846..39efad5b2b7e 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java @@ -74,14 +74,14 @@ private ListProfilesRequest( case 34: { com.google.protobuf.FieldMask.Builder subBuilder = null; - if (fieldMask_ != null) { - subBuilder = fieldMask_.toBuilder(); + if (readMask_ != null) { + subBuilder = readMask_.toBuilder(); } - fieldMask_ = + readMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(fieldMask_); - fieldMask_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(readMask_); + readMask_ = subBuilder.buildPartial(); } break; @@ -237,8 +237,8 @@ public int getPageSize() { return pageSize_; } - public static final int FIELD_MASK_FIELD_NUMBER = 4; - private com.google.protobuf.FieldMask fieldMask_; + public static final int READ_MASK_FIELD_NUMBER = 4; + private com.google.protobuf.FieldMask readMask_; /** * * @@ -250,10 +250,10 @@ public int getPageSize() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public boolean hasFieldMask() { - return fieldMask_ != null; + public boolean hasReadMask() { + return readMask_ != null; } /** * @@ -266,10 +266,10 @@ public boolean hasFieldMask() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public com.google.protobuf.FieldMask getFieldMask() { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** * @@ -282,10 +282,10 @@ public com.google.protobuf.FieldMask getFieldMask() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { - return getFieldMask(); + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return getReadMask(); } private byte memoizedIsInitialized = -1; @@ -311,8 +311,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (fieldMask_ != null) { - output.writeMessage(4, getFieldMask()); + if (readMask_ != null) { + output.writeMessage(4, getReadMask()); } unknownFields.writeTo(output); } @@ -332,8 +332,8 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (fieldMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFieldMask()); + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -355,9 +355,9 @@ public boolean equals(final java.lang.Object obj) { result = result && getParent().equals(other.getParent()); result = result && getPageToken().equals(other.getPageToken()); result = result && (getPageSize() == other.getPageSize()); - result = result && (hasFieldMask() == other.hasFieldMask()); - if (hasFieldMask()) { - result = result && getFieldMask().equals(other.getFieldMask()); + result = result && (hasReadMask() == other.hasReadMask()); + if (hasReadMask()) { + result = result && getReadMask().equals(other.getReadMask()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -376,9 +376,9 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + getPageSize(); - if (hasFieldMask()) { - hash = (37 * hash) + FIELD_MASK_FIELD_NUMBER; - hash = (53 * hash) + getFieldMask().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -531,11 +531,11 @@ public Builder clear() { pageSize_ = 0; - if (fieldMaskBuilder_ == null) { - fieldMask_ = null; + if (readMaskBuilder_ == null) { + readMask_ = null; } else { - fieldMask_ = null; - fieldMaskBuilder_ = null; + readMask_ = null; + readMaskBuilder_ = null; } return this; } @@ -567,10 +567,10 @@ public com.google.cloud.talent.v4beta1.ListProfilesRequest buildPartial() { result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; - if (fieldMaskBuilder_ == null) { - result.fieldMask_ = fieldMask_; + if (readMaskBuilder_ == null) { + result.readMask_ = readMask_; } else { - result.fieldMask_ = fieldMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_.build(); } onBuilt(); return result; @@ -633,8 +633,8 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.ListProfilesRequest oth if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } - if (other.hasFieldMask()) { - mergeFieldMask(other.getFieldMask()); + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -939,12 +939,12 @@ public Builder clearPageSize() { return this; } - private com.google.protobuf.FieldMask fieldMask_ = null; + private com.google.protobuf.FieldMask readMask_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - fieldMaskBuilder_; + readMaskBuilder_; /** * * @@ -956,10 +956,10 @@ public Builder clearPageSize() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public boolean hasFieldMask() { - return fieldMaskBuilder_ != null || fieldMask_ != null; + public boolean hasReadMask() { + return readMaskBuilder_ != null || readMask_ != null; } /** * @@ -972,13 +972,13 @@ public boolean hasFieldMask() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public com.google.protobuf.FieldMask getFieldMask() { - if (fieldMaskBuilder_ == null) { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } else { - return fieldMaskBuilder_.getMessage(); + return readMaskBuilder_.getMessage(); } } /** @@ -992,17 +992,17 @@ public com.google.protobuf.FieldMask getFieldMask() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public Builder setFieldMask(com.google.protobuf.FieldMask value) { - if (fieldMaskBuilder_ == null) { + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - fieldMask_ = value; + readMask_ = value; onChanged(); } else { - fieldMaskBuilder_.setMessage(value); + readMaskBuilder_.setMessage(value); } return this; @@ -1018,14 +1018,14 @@ public Builder setFieldMask(com.google.protobuf.FieldMask value) { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (fieldMaskBuilder_ == null) { - fieldMask_ = builderForValue.build(); + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); onChanged(); } else { - fieldMaskBuilder_.setMessage(builderForValue.build()); + readMaskBuilder_.setMessage(builderForValue.build()); } return this; @@ -1041,19 +1041,19 @@ public Builder setFieldMask(com.google.protobuf.FieldMask.Builder builderForValu * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { - if (fieldMaskBuilder_ == null) { - if (fieldMask_ != null) { - fieldMask_ = - com.google.protobuf.FieldMask.newBuilder(fieldMask_).mergeFrom(value).buildPartial(); + 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 { - fieldMask_ = value; + readMask_ = value; } onChanged(); } else { - fieldMaskBuilder_.mergeFrom(value); + readMaskBuilder_.mergeFrom(value); } return this; @@ -1069,15 +1069,15 @@ public Builder mergeFieldMask(com.google.protobuf.FieldMask value) { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public Builder clearFieldMask() { - if (fieldMaskBuilder_ == null) { - fieldMask_ = null; + public Builder clearReadMask() { + if (readMaskBuilder_ == null) { + readMask_ = null; onChanged(); } else { - fieldMask_ = null; - fieldMaskBuilder_ = null; + readMask_ = null; + readMaskBuilder_ = null; } return this; @@ -1093,12 +1093,12 @@ public Builder clearFieldMask() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { onChanged(); - return getFieldMaskFieldBuilder().getBuilder(); + return getReadMaskFieldBuilder().getBuilder(); } /** * @@ -1111,13 +1111,13 @@ public com.google.protobuf.FieldMask.Builder getFieldMaskBuilder() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { - if (fieldMaskBuilder_ != null) { - return fieldMaskBuilder_.getMessageOrBuilder(); + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); } else { - return fieldMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : fieldMask_; + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } } /** @@ -1131,23 +1131,23 @@ public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder() { * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getFieldMaskFieldBuilder() { - if (fieldMaskBuilder_ == null) { - fieldMaskBuilder_ = + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getFieldMask(), getParentForChildren(), isClean()); - fieldMask_ = null; + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; } - return fieldMaskBuilder_; + return readMaskBuilder_; } @java.lang.Override diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java index 7cbb0c4929f1..547a776f8ae4 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java @@ -88,9 +88,9 @@ public interface ListProfilesRequestOrBuilder * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - boolean hasFieldMask(); + boolean hasReadMask(); /** * * @@ -102,9 +102,9 @@ public interface ListProfilesRequestOrBuilder * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - com.google.protobuf.FieldMask getFieldMask(); + com.google.protobuf.FieldMask getReadMask(); /** * * @@ -116,7 +116,7 @@ public interface ListProfilesRequestOrBuilder * * name * * - * .google.protobuf.FieldMask field_mask = 4; + * .google.protobuf.FieldMask read_mask = 4; */ - com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder(); + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java index 40f7bbb05452..0b8d3ba9beed 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java @@ -569,8 +569,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (telecommutePreference_ != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference - .TELECOMMUTE_PREFERENCE_UNSPECIFIED - .getNumber()) { + .TELECOMMUTE_PREFERENCE_UNSPECIFIED.getNumber()) { output.writeEnum(5, telecommutePreference_); } if (negated_ != false) { @@ -599,8 +598,7 @@ public int getSerializedSize() { } if (telecommutePreference_ != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference - .TELECOMMUTE_PREFERENCE_UNSPECIFIED - .getNumber()) { + .TELECOMMUTE_PREFERENCE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, telecommutePreference_); } if (negated_ != false) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java new file mode 100644 index 000000000000..91f2cc2a088e --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java @@ -0,0 +1,203 @@ +// 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; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static Outcome valueOf(int value) { + return forNumber(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() { + 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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java deleted file mode 100644 index d6d88c786dc4..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeOptionsOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/resume_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface ParseResumeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional.
-   * Controls whether Optical Character Recognition (OCR) is enabled.
-   * OCR is used to decipher pictorial resumes, or resumes that have some
-   * element of pictorial detail (for example, contact information placed within
-   * an image in a pdf). Note that the API call has a higher latency if OCR is
-   * enabled.
-   * 
- * - * bool enable_ocr = 1; - */ - boolean getEnableOcr(); - - /** - * - * - *
-   * Optional.
-   * Controls whether detected skills are included in the parsed profile from
-   * sections of the resume other than just skills sections.
-   * Normally, returned skills are limited to those taken from a resume section
-   * intended to list skills. When enabled, this feature causes detected
-   * skills in other sections to also be included in the returned profile.
-   * 
- * - * bool enable_full_skill_detection = 2; - */ - boolean getEnableFullSkillDetection(); -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java deleted file mode 100644 index b7a095feb2db..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequest.java +++ /dev/null @@ -1,1387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/resume_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Parse resume request.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} - */ -public final class ParseResumeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeRequest) - ParseResumeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParseResumeRequest.newBuilder() to construct. - private ParseResumeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ParseResumeRequest() { - parent_ = ""; - resume_ = com.google.protobuf.ByteString.EMPTY; - regionCode_ = ""; - languageCode_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ParseResumeRequest( - 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: - { - resume_ = input.readBytes(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - regionCode_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - languageCode_ = s; - break; - } - case 42: - { - com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder subBuilder = null; - if (options_ != null) { - subBuilder = options_.toBuilder(); - } - options_ = - input.readMessage( - com.google.cloud.talent.v4beta1.ParseResumeOptions.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ParseResumeRequest.class, - com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required.
-   * The resource name of the project.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
-   * 
- * - * string parent = 1; - */ - 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 project.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
-   * 
- * - * string parent = 1; - */ - 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 RESUME_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString resume_; - /** - * - * - *
-   * Required.
-   * The bytes of the resume file in common format, for example, PDF, TXT.
-   * UTF-8 encoding is required if the resume is text-based, otherwise an error
-   * is thrown.
-   * 
- * - * bytes resume = 2; - */ - public com.google.protobuf.ByteString getResume() { - return resume_; - } - - public static final int REGION_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object regionCode_; - /** - * - * - *
-   * Optional.
-   * The region code indicating where the resume is from. Values
-   * are as per the ISO-3166-2 format. For example, US, FR, DE.
-   * This value is optional, but providing this value improves the resume
-   * parsing quality and performance.
-   * An error is thrown if the regionCode is invalid.
-   * 
- * - * string region_code = 3; - */ - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - 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(); - regionCode_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The region code indicating where the resume is from. Values
-   * are as per the ISO-3166-2 format. For example, US, FR, DE.
-   * This value is optional, but providing this value improves the resume
-   * parsing quality and performance.
-   * An error is thrown if the regionCode is invalid.
-   * 
- * - * string region_code = 3; - */ - public com.google.protobuf.ByteString getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; - private volatile java.lang.Object languageCode_; - /** - * - * - *
-   * Optional.
-   * The language code of contents in the resume.
-   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-   * For more information, see
-   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-   * class="external" target="_blank" }.
-   * 
- * - * string language_code = 4; - */ - public java.lang.String getLanguageCode() { - java.lang.Object ref = languageCode_; - 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(); - languageCode_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The language code of contents in the resume.
-   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-   * For more information, see
-   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-   * class="external" target="_blank" }.
-   * 
- * - * string language_code = 4; - */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { - java.lang.Object ref = languageCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - languageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPTIONS_FIELD_NUMBER = 5; - private com.google.cloud.talent.v4beta1.ParseResumeOptions options_; - /** - * - * - *
-   * Optional.
-   * Options that change how the resume parse is performed.
-   * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public boolean hasOptions() { - return options_ != null; - } - /** - * - * - *
-   * Optional.
-   * Options that change how the resume parse is performed.
-   * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { - return options_ == null - ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() - : options_; - } - /** - * - * - *
-   * Optional.
-   * Options that change how the resume parse is performed.
-   * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { - return getOptions(); - } - - 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 (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!resume_.isEmpty()) { - output.writeBytes(2, resume_); - } - if (!getRegionCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, regionCode_); - } - if (!getLanguageCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageCode_); - } - if (options_ != null) { - output.writeMessage(5, getOptions()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!resume_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, resume_); - } - if (!getRegionCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, regionCode_); - } - if (!getLanguageCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageCode_); - } - if (options_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOptions()); - } - 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.ParseResumeRequest)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ParseResumeRequest other = - (com.google.cloud.talent.v4beta1.ParseResumeRequest) obj; - - boolean result = true; - result = result && getParent().equals(other.getParent()); - result = result && getResume().equals(other.getResume()); - result = result && getRegionCode().equals(other.getRegionCode()); - result = result && getLanguageCode().equals(other.getLanguageCode()); - result = result && (hasOptions() == other.hasOptions()); - if (hasOptions()) { - result = result && getOptions().equals(other.getOptions()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @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) + RESUME_FIELD_NUMBER; - hash = (53 * hash) + getResume().hashCode(); - hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getRegionCode().hashCode(); - hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getLanguageCode().hashCode(); - if (hasOptions()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptions().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ParseResumeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.ParseResumeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.ParseResumeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.ParseResumeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.ParseResumeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeRequest 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.ParseResumeRequest 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.ParseResumeRequest 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.ParseResumeRequest 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; - } - /** - * - * - *
-   * Parse resume request.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeRequest) - com.google.cloud.talent.v4beta1.ParseResumeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ParseResumeRequest.class, - com.google.cloud.talent.v4beta1.ParseResumeRequest.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ParseResumeRequest.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_ = ""; - - resume_ = com.google.protobuf.ByteString.EMPTY; - - regionCode_ = ""; - - languageCode_ = ""; - - if (optionsBuilder_ == null) { - options_ = null; - } else { - options_ = null; - optionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeRequest build() { - com.google.cloud.talent.v4beta1.ParseResumeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeRequest buildPartial() { - com.google.cloud.talent.v4beta1.ParseResumeRequest result = - new com.google.cloud.talent.v4beta1.ParseResumeRequest(this); - result.parent_ = parent_; - result.resume_ = resume_; - result.regionCode_ = regionCode_; - result.languageCode_ = languageCode_; - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeRequest) { - return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeRequest other) { - if (other == com.google.cloud.talent.v4beta1.ParseResumeRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getResume() != com.google.protobuf.ByteString.EMPTY) { - setResume(other.getResume()); - } - if (!other.getRegionCode().isEmpty()) { - regionCode_ = other.regionCode_; - onChanged(); - } - if (!other.getLanguageCode().isEmpty()) { - languageCode_ = other.languageCode_; - onChanged(); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - 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.ParseResumeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ParseResumeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required.
-     * The resource name of the project.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
-     * 
- * - * string parent = 1; - */ - 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 project.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
-     * 
- * - * string parent = 1; - */ - 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 project.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
-     * 
- * - * string parent = 1; - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required.
-     * The resource name of the project.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
-     * 
- * - * string parent = 1; - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required.
-     * The resource name of the project.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
-     * 
- * - * string parent = 1; - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString resume_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * Required.
-     * The bytes of the resume file in common format, for example, PDF, TXT.
-     * UTF-8 encoding is required if the resume is text-based, otherwise an error
-     * is thrown.
-     * 
- * - * bytes resume = 2; - */ - public com.google.protobuf.ByteString getResume() { - return resume_; - } - /** - * - * - *
-     * Required.
-     * The bytes of the resume file in common format, for example, PDF, TXT.
-     * UTF-8 encoding is required if the resume is text-based, otherwise an error
-     * is thrown.
-     * 
- * - * bytes resume = 2; - */ - public Builder setResume(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - resume_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required.
-     * The bytes of the resume file in common format, for example, PDF, TXT.
-     * UTF-8 encoding is required if the resume is text-based, otherwise an error
-     * is thrown.
-     * 
- * - * bytes resume = 2; - */ - public Builder clearResume() { - - resume_ = getDefaultInstance().getResume(); - onChanged(); - return this; - } - - private java.lang.Object regionCode_ = ""; - /** - * - * - *
-     * Optional.
-     * The region code indicating where the resume is from. Values
-     * are as per the ISO-3166-2 format. For example, US, FR, DE.
-     * This value is optional, but providing this value improves the resume
-     * parsing quality and performance.
-     * An error is thrown if the regionCode is invalid.
-     * 
- * - * string region_code = 3; - */ - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regionCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The region code indicating where the resume is from. Values
-     * are as per the ISO-3166-2 format. For example, US, FR, DE.
-     * This value is optional, but providing this value improves the resume
-     * parsing quality and performance.
-     * An error is thrown if the regionCode is invalid.
-     * 
- * - * string region_code = 3; - */ - public com.google.protobuf.ByteString getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The region code indicating where the resume is from. Values
-     * are as per the ISO-3166-2 format. For example, US, FR, DE.
-     * This value is optional, but providing this value improves the resume
-     * parsing quality and performance.
-     * An error is thrown if the regionCode is invalid.
-     * 
- * - * string region_code = 3; - */ - public Builder setRegionCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - regionCode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The region code indicating where the resume is from. Values
-     * are as per the ISO-3166-2 format. For example, US, FR, DE.
-     * This value is optional, but providing this value improves the resume
-     * parsing quality and performance.
-     * An error is thrown if the regionCode is invalid.
-     * 
- * - * string region_code = 3; - */ - public Builder clearRegionCode() { - - regionCode_ = getDefaultInstance().getRegionCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The region code indicating where the resume is from. Values
-     * are as per the ISO-3166-2 format. For example, US, FR, DE.
-     * This value is optional, but providing this value improves the resume
-     * parsing quality and performance.
-     * An error is thrown if the regionCode is invalid.
-     * 
- * - * string region_code = 3; - */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - regionCode_ = value; - onChanged(); - return this; - } - - private java.lang.Object languageCode_ = ""; - /** - * - * - *
-     * Optional.
-     * The language code of contents in the resume.
-     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-     * class="external" target="_blank" }.
-     * 
- * - * string language_code = 4; - */ - public java.lang.String getLanguageCode() { - java.lang.Object ref = languageCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - languageCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The language code of contents in the resume.
-     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-     * class="external" target="_blank" }.
-     * 
- * - * string language_code = 4; - */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { - java.lang.Object ref = languageCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - languageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The language code of contents in the resume.
-     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-     * class="external" target="_blank" }.
-     * 
- * - * string language_code = 4; - */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - languageCode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The language code of contents in the resume.
-     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-     * class="external" target="_blank" }.
-     * 
- * - * string language_code = 4; - */ - public Builder clearLanguageCode() { - - languageCode_ = getDefaultInstance().getLanguageCode(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The language code of contents in the resume.
-     * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-     * For more information, see
-     * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-     * class="external" target="_blank" }.
-     * 
- * - * string language_code = 4; - */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - languageCode_ = value; - onChanged(); - return this; - } - - private com.google.cloud.talent.v4beta1.ParseResumeOptions options_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ParseResumeOptions, - com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, - com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> - optionsBuilder_; - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public boolean hasOptions() { - return optionsBuilder_ != null || options_ != null; - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions() { - if (optionsBuilder_ == null) { - return options_ == null - ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() - : options_; - } else { - return optionsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public Builder setOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - optionsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public Builder setOptions( - com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public Builder mergeOptions(com.google.cloud.talent.v4beta1.ParseResumeOptions value) { - if (optionsBuilder_ == null) { - if (options_ != null) { - options_ = - com.google.cloud.talent.v4beta1.ParseResumeOptions.newBuilder(options_) - .mergeFrom(value) - .buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - optionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = null; - onChanged(); - } else { - options_ = null; - optionsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder getOptionsBuilder() { - - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - public com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_ == null - ? com.google.cloud.talent.v4beta1.ParseResumeOptions.getDefaultInstance() - : options_; - } - } - /** - * - * - *
-     * Optional.
-     * Options that change how the resume parse is performed.
-     * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ParseResumeOptions, - com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, - com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.talent.v4beta1.ParseResumeOptions, - com.google.cloud.talent.v4beta1.ParseResumeOptions.Builder, - com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder>( - getOptions(), getParentForChildren(), isClean()); - options_ = null; - } - return optionsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(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.ParseResumeRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeRequest) - private static final com.google.cloud.talent.v4beta1.ParseResumeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeRequest(); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParseResumeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParseResumeRequest(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.ParseResumeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java deleted file mode 100644 index f4ca4847d5fb..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeRequestOrBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/resume_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface ParseResumeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required.
-   * The resource name of the project.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
-   * 
- * - * string parent = 1; - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required.
-   * The resource name of the project.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
-   * 
- * - * string parent = 1; - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required.
-   * The bytes of the resume file in common format, for example, PDF, TXT.
-   * UTF-8 encoding is required if the resume is text-based, otherwise an error
-   * is thrown.
-   * 
- * - * bytes resume = 2; - */ - com.google.protobuf.ByteString getResume(); - - /** - * - * - *
-   * Optional.
-   * The region code indicating where the resume is from. Values
-   * are as per the ISO-3166-2 format. For example, US, FR, DE.
-   * This value is optional, but providing this value improves the resume
-   * parsing quality and performance.
-   * An error is thrown if the regionCode is invalid.
-   * 
- * - * string region_code = 3; - */ - java.lang.String getRegionCode(); - /** - * - * - *
-   * Optional.
-   * The region code indicating where the resume is from. Values
-   * are as per the ISO-3166-2 format. For example, US, FR, DE.
-   * This value is optional, but providing this value improves the resume
-   * parsing quality and performance.
-   * An error is thrown if the regionCode is invalid.
-   * 
- * - * string region_code = 3; - */ - com.google.protobuf.ByteString getRegionCodeBytes(); - - /** - * - * - *
-   * Optional.
-   * The language code of contents in the resume.
-   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-   * For more information, see
-   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-   * class="external" target="_blank" }.
-   * 
- * - * string language_code = 4; - */ - java.lang.String getLanguageCode(); - /** - * - * - *
-   * Optional.
-   * The language code of contents in the resume.
-   * Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
-   * For more information, see
-   * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
-   * class="external" target="_blank" }.
-   * 
- * - * string language_code = 4; - */ - com.google.protobuf.ByteString getLanguageCodeBytes(); - - /** - * - * - *
-   * Optional.
-   * Options that change how the resume parse is performed.
-   * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - boolean hasOptions(); - /** - * - * - *
-   * Optional.
-   * Options that change how the resume parse is performed.
-   * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - com.google.cloud.talent.v4beta1.ParseResumeOptions getOptions(); - /** - * - * - *
-   * Optional.
-   * Options that change how the resume parse is performed.
-   * 
- * - * .google.cloud.talent.v4beta1.ParseResumeOptions options = 5; - */ - com.google.cloud.talent.v4beta1.ParseResumeOptionsOrBuilder getOptionsOrBuilder(); -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java deleted file mode 100644 index aa52350520c9..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponse.java +++ /dev/null @@ -1,865 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/resume_service.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * Parse resume response.
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} - */ -public final class ParseResumeResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.ParseResumeResponse) - ParseResumeResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParseResumeResponse.newBuilder() to construct. - private ParseResumeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ParseResumeResponse() { - rawText_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ParseResumeResponse( - 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: - { - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - - rawText_ = s; - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ParseResumeResponse.class, - com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); - } - - public static final int PROFILE_FIELD_NUMBER = 1; - private com.google.cloud.talent.v4beta1.Profile profile_; - /** - * - * - *
-   * The profile parsed from resume.
-   * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - public boolean hasProfile() { - return profile_ != null; - } - /** - * - * - *
-   * The profile parsed from resume.
-   * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - public com.google.cloud.talent.v4beta1.Profile getProfile() { - return profile_ == null - ? com.google.cloud.talent.v4beta1.Profile.getDefaultInstance() - : profile_; - } - /** - * - * - *
-   * The profile parsed from resume.
-   * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { - return getProfile(); - } - - public static final int RAW_TEXT_FIELD_NUMBER = 2; - private volatile java.lang.Object rawText_; - /** - * - * - *
-   * Raw text from resume.
-   * 
- * - * string raw_text = 2; - */ - public java.lang.String getRawText() { - java.lang.Object ref = rawText_; - 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(); - rawText_ = s; - return s; - } - } - /** - * - * - *
-   * Raw text from resume.
-   * 
- * - * string raw_text = 2; - */ - public com.google.protobuf.ByteString getRawTextBytes() { - java.lang.Object ref = rawText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rawText_ = 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 (profile_ != null) { - output.writeMessage(1, getProfile()); - } - if (!getRawTextBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rawText_); - } - 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 (!getRawTextBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rawText_); - } - 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.ParseResumeResponse)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.ParseResumeResponse other = - (com.google.cloud.talent.v4beta1.ParseResumeResponse) obj; - - boolean result = true; - result = result && (hasProfile() == other.hasProfile()); - if (hasProfile()) { - result = result && getProfile().equals(other.getProfile()); - } - result = result && getRawText().equals(other.getRawText()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @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(); - } - hash = (37 * hash) + RAW_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getRawText().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.ParseResumeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.ParseResumeResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.ParseResumeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.ParseResumeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.ParseResumeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeResponse 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.ParseResumeResponse 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.ParseResumeResponse 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.ParseResumeResponse 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; - } - /** - * - * - *
-   * Parse resume response.
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.ParseResumeResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.ParseResumeResponse) - com.google.cloud.talent.v4beta1.ParseResumeResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.ParseResumeResponse.class, - com.google.cloud.talent.v4beta1.ParseResumeResponse.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.ParseResumeResponse.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; - } - rawText_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ResumeServiceProto - .internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeResponse build() { - com.google.cloud.talent.v4beta1.ParseResumeResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.ParseResumeResponse buildPartial() { - com.google.cloud.talent.v4beta1.ParseResumeResponse result = - new com.google.cloud.talent.v4beta1.ParseResumeResponse(this); - if (profileBuilder_ == null) { - result.profile_ = profile_; - } else { - result.profile_ = profileBuilder_.build(); - } - result.rawText_ = rawText_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.ParseResumeResponse) { - return mergeFrom((com.google.cloud.talent.v4beta1.ParseResumeResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.ParseResumeResponse other) { - if (other == com.google.cloud.talent.v4beta1.ParseResumeResponse.getDefaultInstance()) - return this; - if (other.hasProfile()) { - mergeProfile(other.getProfile()); - } - if (!other.getRawText().isEmpty()) { - rawText_ = other.rawText_; - 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.ParseResumeResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.talent.v4beta1.ParseResumeResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.talent.v4beta1.Profile profile_ = null; - 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_; - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - public boolean hasProfile() { - return profileBuilder_ != null || profile_ != null; - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - 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(); - } - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - 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; - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - 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; - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - 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; - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - public Builder clearProfile() { - if (profileBuilder_ == null) { - profile_ = null; - onChanged(); - } else { - profile_ = null; - profileBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - public com.google.cloud.talent.v4beta1.Profile.Builder getProfileBuilder() { - - onChanged(); - return getProfileFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - 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_; - } - } - /** - * - * - *
-     * The profile parsed from resume.
-     * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - 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 java.lang.Object rawText_ = ""; - /** - * - * - *
-     * Raw text from resume.
-     * 
- * - * string raw_text = 2; - */ - public java.lang.String getRawText() { - java.lang.Object ref = rawText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rawText_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Raw text from resume.
-     * 
- * - * string raw_text = 2; - */ - public com.google.protobuf.ByteString getRawTextBytes() { - java.lang.Object ref = rawText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rawText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Raw text from resume.
-     * 
- * - * string raw_text = 2; - */ - public Builder setRawText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rawText_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Raw text from resume.
-     * 
- * - * string raw_text = 2; - */ - public Builder clearRawText() { - - rawText_ = getDefaultInstance().getRawText(); - onChanged(); - return this; - } - /** - * - * - *
-     * Raw text from resume.
-     * 
- * - * string raw_text = 2; - */ - public Builder setRawTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rawText_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(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.ParseResumeResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.ParseResumeResponse) - private static final com.google.cloud.talent.v4beta1.ParseResumeResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.ParseResumeResponse(); - } - - public static com.google.cloud.talent.v4beta1.ParseResumeResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParseResumeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParseResumeResponse(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.ParseResumeResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java deleted file mode 100644 index a0a8563223a8..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ParseResumeResponseOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/resume_service.proto - -package com.google.cloud.talent.v4beta1; - -public interface ParseResumeResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.ParseResumeResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The profile parsed from resume.
-   * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - boolean hasProfile(); - /** - * - * - *
-   * The profile parsed from resume.
-   * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - com.google.cloud.talent.v4beta1.Profile getProfile(); - /** - * - * - *
-   * The profile parsed from resume.
-   * 
- * - * .google.cloud.talent.v4beta1.Profile profile = 1; - */ - com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder(); - - /** - * - * - *
-   * Raw text from resume.
-   * 
- * - * string raw_text = 2; - */ - java.lang.String getRawText(); - /** - * - * - *
-   * Raw text from resume.
-   * 
- * - * string raw_text = 2; - */ - com.google.protobuf.ByteString getRawTextBytes(); -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java index 96236e9874e4..5cae9bcf923e 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java @@ -9,8 +9,8 @@ *
  * A resource that represents the profile for a job candidate (also referred to
  * as a "single-source profile"). A profile belongs to a
- * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
- * of the customer that owns the profile.
+ * [Company][google.cloud.talent.v4beta1.Company], which is the
+ * company/organization that owns the profile.
  * 
* * Protobuf type {@code google.cloud.talent.v4beta1.Profile} @@ -45,8 +45,8 @@ private Profile() { publications_ = java.util.Collections.emptyList(); patents_ = java.util.Collections.emptyList(); certifications_ = java.util.Collections.emptyList(); - jobApplications_ = java.util.Collections.emptyList(); - recruitingNotes_ = java.util.Collections.emptyList(); + applications_ = com.google.protobuf.LazyStringArrayList.EMPTY; + assignments_ = com.google.protobuf.LazyStringArrayList.EMPTY; processed_ = false; keywordSnippet_ = ""; } @@ -315,30 +315,6 @@ private Profile( com.google.cloud.talent.v4beta1.Certification.parser(), extensionRegistry)); break; } - case 194: - { - if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { - jobApplications_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00400000; - } - jobApplications_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.JobApplication.parser(), extensionRegistry)); - break; - } - case 202: - { - if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { - recruitingNotes_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00800000; - } - recruitingNotes_.add( - input.readMessage( - com.google.cloud.talent.v4beta1.RecruitingNote.parser(), extensionRegistry)); - break; - } case 210: { if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) { @@ -370,6 +346,26 @@ private Profile( keywordSnippet_ = s; break; } + case 378: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + applications_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00400000; + } + applications_.add(s); + break; + } + case 386: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + assignments_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00800000; + } + assignments_.add(s); + break; + } default: { if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { @@ -424,10 +420,10 @@ private Profile( certifications_ = java.util.Collections.unmodifiableList(certifications_); } if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { - jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); + applications_ = applications_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) { - recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); + assignments_ = assignments_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -2001,154 +1997,106 @@ public com.google.cloud.talent.v4beta1.CertificationOrBuilder getCertificationsO return certifications_.get(index); } - public static final int JOB_APPLICATIONS_FIELD_NUMBER = 24; - private java.util.List jobApplications_; + public static final int APPLICATIONS_FIELD_NUMBER = 47; + private com.google.protobuf.LazyStringList applications_; /** * * *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public java.util.List getJobApplicationsList() { - return jobApplications_; + public com.google.protobuf.ProtocolStringList getApplicationsList() { + return applications_; } /** * * *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public java.util.List - getJobApplicationsOrBuilderList() { - return jobApplications_; + public int getApplicationsCount() { + return applications_.size(); } /** * * *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public int getJobApplicationsCount() { - return jobApplications_.size(); + public java.lang.String getApplications(int index) { + return applications_.get(index); } /** * * *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { - return jobApplications_.get(index); - } - /** - * - * - *
-   * Optional.
-   * The job applications of the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( - int index) { - return jobApplications_.get(index); + public com.google.protobuf.ByteString getApplicationsBytes(int index) { + return applications_.getByteString(index); } - public static final int RECRUITING_NOTES_FIELD_NUMBER = 25; - private java.util.List recruitingNotes_; + public static final int ASSIGNMENTS_FIELD_NUMBER = 48; + private com.google.protobuf.LazyStringList assignments_; /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public java.util.List getRecruitingNotesList() { - return recruitingNotes_; + public com.google.protobuf.ProtocolStringList getAssignmentsList() { + return assignments_; } /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public java.util.List - getRecruitingNotesOrBuilderList() { - return recruitingNotes_; + public int getAssignmentsCount() { + return assignments_.size(); } /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public int getRecruitingNotesCount() { - return recruitingNotes_.size(); - } - /** - * - * - *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { - return recruitingNotes_.get(index); + public java.lang.String getAssignments(int index) { + return assignments_.get(index); } /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( - int index) { - return recruitingNotes_.get(index); + public com.google.protobuf.ByteString getAssignmentsBytes(int index) { + return assignments_.getByteString(index); } public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 26; @@ -2195,16 +2143,17 @@ public int getCustomAttributesCount() { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -2232,16 +2181,17 @@ public boolean containsCustomAttributes(java.lang.String key) { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -2261,16 +2211,17 @@ public boolean containsCustomAttributes(java.lang.String key) { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -2295,16 +2246,17 @@ public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefa * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -2463,12 +2415,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < certifications_.size(); i++) { output.writeMessage(23, certifications_.get(i)); } - for (int i = 0; i < jobApplications_.size(); i++) { - output.writeMessage(24, jobApplications_.get(i)); - } - for (int i = 0; i < recruitingNotes_.size(); i++) { - output.writeMessage(25, recruitingNotes_.get(i)); - } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 26); if (processed_ != false) { @@ -2477,6 +2423,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getKeywordSnippetBytes().isEmpty()) { 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)); + } unknownFields.writeTo(output); } @@ -2556,12 +2508,6 @@ public int getSerializedSize() { for (int i = 0; i < certifications_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, certifications_.get(i)); } - for (int i = 0; i < jobApplications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, jobApplications_.get(i)); - } - for (int i = 0; i < recruitingNotes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, recruitingNotes_.get(i)); - } for (java.util.Map.Entry entry : internalGetCustomAttributes().getMap().entrySet()) { com.google.protobuf.MapEntry< @@ -2580,6 +2526,22 @@ public int getSerializedSize() { if (!getKeywordSnippetBytes().isEmpty()) { 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(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2627,8 +2589,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getPublicationsList().equals(other.getPublicationsList()); result = result && getPatentsList().equals(other.getPatentsList()); result = result && getCertificationsList().equals(other.getCertificationsList()); - result = result && getJobApplicationsList().equals(other.getJobApplicationsList()); - result = result && getRecruitingNotesList().equals(other.getRecruitingNotesList()); + result = result && getApplicationsList().equals(other.getApplicationsList()); + result = result && getAssignmentsList().equals(other.getAssignmentsList()); result = result && internalGetCustomAttributes().equals(other.internalGetCustomAttributes()); result = result && (getProcessed() == other.getProcessed()); result = result && getKeywordSnippet().equals(other.getKeywordSnippet()); @@ -2719,13 +2681,13 @@ public int hashCode() { hash = (37 * hash) + CERTIFICATIONS_FIELD_NUMBER; hash = (53 * hash) + getCertificationsList().hashCode(); } - if (getJobApplicationsCount() > 0) { - hash = (37 * hash) + JOB_APPLICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getJobApplicationsList().hashCode(); + if (getApplicationsCount() > 0) { + hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationsList().hashCode(); } - if (getRecruitingNotesCount() > 0) { - hash = (37 * hash) + RECRUITING_NOTES_FIELD_NUMBER; - hash = (53 * hash) + getRecruitingNotesList().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; @@ -2841,8 +2803,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * A resource that represents the profile for a job candidate (also referred to
    * as a "single-source profile"). A profile belongs to a
-   * [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance
-   * of the customer that owns the profile.
+   * [Company][google.cloud.talent.v4beta1.Company], which is the
+   * company/organization that owns the profile.
    * 
* * Protobuf type {@code google.cloud.talent.v4beta1.Profile} @@ -2911,8 +2873,6 @@ private void maybeForceBuilderInitialization() { getPublicationsFieldBuilder(); getPatentsFieldBuilder(); getCertificationsFieldBuilder(); - getJobApplicationsFieldBuilder(); - getRecruitingNotesFieldBuilder(); } } @@ -3027,18 +2987,10 @@ public Builder clear() { } else { certificationsBuilder_.clear(); } - if (jobApplicationsBuilder_ == null) { - jobApplications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00400000); - } else { - jobApplicationsBuilder_.clear(); - } - if (recruitingNotesBuilder_ == null) { - recruitingNotes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00800000); - } else { - recruitingNotesBuilder_.clear(); - } + applications_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00400000); + assignments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00800000); internalGetMutableCustomAttributes().clear(); processed_ = false; @@ -3211,24 +3163,16 @@ public com.google.cloud.talent.v4beta1.Profile buildPartial() { } else { result.certifications_ = certificationsBuilder_.build(); } - if (jobApplicationsBuilder_ == null) { - if (((bitField0_ & 0x00400000) == 0x00400000)) { - jobApplications_ = java.util.Collections.unmodifiableList(jobApplications_); - bitField0_ = (bitField0_ & ~0x00400000); - } - result.jobApplications_ = jobApplications_; - } else { - result.jobApplications_ = jobApplicationsBuilder_.build(); + if (((bitField0_ & 0x00400000) == 0x00400000)) { + applications_ = applications_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00400000); } - if (recruitingNotesBuilder_ == null) { - if (((bitField0_ & 0x00800000) == 0x00800000)) { - recruitingNotes_ = java.util.Collections.unmodifiableList(recruitingNotes_); - bitField0_ = (bitField0_ & ~0x00800000); - } - result.recruitingNotes_ = recruitingNotes_; - } else { - result.recruitingNotes_ = recruitingNotesBuilder_.build(); + result.applications_ = applications_; + if (((bitField0_ & 0x00800000) == 0x00800000)) { + assignments_ = assignments_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00800000); } + result.assignments_ = assignments_; result.customAttributes_ = internalGetCustomAttributes(); result.customAttributes_.makeImmutable(); result.processed_ = processed_; @@ -3667,59 +3611,25 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.Profile other) { } } } - if (jobApplicationsBuilder_ == null) { - if (!other.jobApplications_.isEmpty()) { - if (jobApplications_.isEmpty()) { - jobApplications_ = other.jobApplications_; - bitField0_ = (bitField0_ & ~0x00400000); - } else { - ensureJobApplicationsIsMutable(); - jobApplications_.addAll(other.jobApplications_); - } - onChanged(); - } - } else { - if (!other.jobApplications_.isEmpty()) { - if (jobApplicationsBuilder_.isEmpty()) { - jobApplicationsBuilder_.dispose(); - jobApplicationsBuilder_ = null; - jobApplications_ = other.jobApplications_; - bitField0_ = (bitField0_ & ~0x00400000); - jobApplicationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getJobApplicationsFieldBuilder() - : null; - } else { - jobApplicationsBuilder_.addAllMessages(other.jobApplications_); - } + if (!other.applications_.isEmpty()) { + if (applications_.isEmpty()) { + applications_ = other.applications_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensureApplicationsIsMutable(); + applications_.addAll(other.applications_); } + onChanged(); } - if (recruitingNotesBuilder_ == null) { - if (!other.recruitingNotes_.isEmpty()) { - if (recruitingNotes_.isEmpty()) { - recruitingNotes_ = other.recruitingNotes_; - bitField0_ = (bitField0_ & ~0x00800000); - } else { - ensureRecruitingNotesIsMutable(); - recruitingNotes_.addAll(other.recruitingNotes_); - } - onChanged(); - } - } else { - if (!other.recruitingNotes_.isEmpty()) { - if (recruitingNotesBuilder_.isEmpty()) { - recruitingNotesBuilder_.dispose(); - recruitingNotesBuilder_ = null; - recruitingNotes_ = other.recruitingNotes_; - bitField0_ = (bitField0_ & ~0x00800000); - recruitingNotesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRecruitingNotesFieldBuilder() - : null; - } else { - recruitingNotesBuilder_.addAllMessages(other.recruitingNotes_); - } + if (!other.assignments_.isEmpty()) { + if (assignments_.isEmpty()) { + assignments_ = other.assignments_; + bitField0_ = (bitField0_ & ~0x00800000); + } else { + ensureAssignmentsIsMutable(); + assignments_.addAll(other.assignments_); } + onChanged(); } internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); if (other.getProcessed() != false) { @@ -10567,797 +10477,291 @@ public com.google.cloud.talent.v4beta1.Certification.Builder addCertificationsBu return certificationsBuilder_; } - private java.util.List jobApplications_ = - java.util.Collections.emptyList(); + private com.google.protobuf.LazyStringList applications_ = + com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureJobApplicationsIsMutable() { + private void ensureApplicationsIsMutable() { if (!((bitField0_ & 0x00400000) == 0x00400000)) { - jobApplications_ = - new java.util.ArrayList( - jobApplications_); + applications_ = new com.google.protobuf.LazyStringArrayList(applications_); bitField0_ |= 0x00400000; } } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.JobApplication, - com.google.cloud.talent.v4beta1.JobApplication.Builder, - com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> - jobApplicationsBuilder_; - - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public java.util.List getJobApplicationsList() { - if (jobApplicationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(jobApplications_); - } else { - return jobApplicationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public int getJobApplicationsCount() { - if (jobApplicationsBuilder_ == null) { - return jobApplications_.size(); - } else { - return jobApplicationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index) { - if (jobApplicationsBuilder_ == null) { - return jobApplications_.get(index); - } else { - return jobApplicationsBuilder_.getMessage(index); - } - } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder setJobApplications( - int index, com.google.cloud.talent.v4beta1.JobApplication value) { - if (jobApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobApplicationsIsMutable(); - jobApplications_.set(index, value); - onChanged(); - } else { - jobApplicationsBuilder_.setMessage(index, value); - } - return this; + public com.google.protobuf.ProtocolStringList getApplicationsList() { + return applications_.getUnmodifiableView(); } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder setJobApplications( - int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { - if (jobApplicationsBuilder_ == null) { - ensureJobApplicationsIsMutable(); - jobApplications_.set(index, builderForValue.build()); - onChanged(); - } else { - jobApplicationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public int getApplicationsCount() { + return applications_.size(); } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder addJobApplications(com.google.cloud.talent.v4beta1.JobApplication value) { - if (jobApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobApplicationsIsMutable(); - jobApplications_.add(value); - onChanged(); - } else { - jobApplicationsBuilder_.addMessage(value); - } - return this; + public java.lang.String getApplications(int index) { + return applications_.get(index); } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder addJobApplications( - int index, com.google.cloud.talent.v4beta1.JobApplication value) { - if (jobApplicationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureJobApplicationsIsMutable(); - jobApplications_.add(index, value); - onChanged(); - } else { - jobApplicationsBuilder_.addMessage(index, value); - } - return this; + public com.google.protobuf.ByteString getApplicationsBytes(int index) { + return applications_.getByteString(index); } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder addJobApplications( - com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { - if (jobApplicationsBuilder_ == null) { - ensureJobApplicationsIsMutable(); - jobApplications_.add(builderForValue.build()); - onChanged(); - } else { - jobApplicationsBuilder_.addMessage(builderForValue.build()); + public Builder setApplications(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureApplicationsIsMutable(); + applications_.set(index, value); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder addJobApplications( - int index, com.google.cloud.talent.v4beta1.JobApplication.Builder builderForValue) { - if (jobApplicationsBuilder_ == null) { - ensureJobApplicationsIsMutable(); - jobApplications_.add(index, builderForValue.build()); - onChanged(); - } else { - jobApplicationsBuilder_.addMessage(index, builderForValue.build()); + public Builder addApplications(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureApplicationsIsMutable(); + applications_.add(value); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder addAllJobApplications( - java.lang.Iterable values) { - if (jobApplicationsBuilder_ == null) { - ensureJobApplicationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobApplications_); - onChanged(); - } else { - jobApplicationsBuilder_.addAllMessages(values); - } + public Builder addAllApplications(java.lang.Iterable values) { + ensureApplicationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, applications_); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder clearJobApplications() { - if (jobApplicationsBuilder_ == null) { - jobApplications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00400000); - onChanged(); - } else { - jobApplicationsBuilder_.clear(); - } + public Builder clearApplications() { + applications_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The job applications of the candidate.
+     * Output only. The resource names of the candidate's applications.
      * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - public Builder removeJobApplications(int index) { - if (jobApplicationsBuilder_ == null) { - ensureJobApplicationsIsMutable(); - jobApplications_.remove(index); - onChanged(); - } else { - jobApplicationsBuilder_.remove(index); + public Builder addApplicationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureApplicationsIsMutable(); + applications_.add(value); + onChanged(); return this; } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public com.google.cloud.talent.v4beta1.JobApplication.Builder getJobApplicationsBuilder( - int index) { - return getJobApplicationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder( - int index) { - if (jobApplicationsBuilder_ == null) { - return jobApplications_.get(index); - } else { - return jobApplicationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public java.util.List - getJobApplicationsOrBuilderList() { - if (jobApplicationsBuilder_ != null) { - return jobApplicationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(jobApplications_); - } - } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder() { - return getJobApplicationsFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); - } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public com.google.cloud.talent.v4beta1.JobApplication.Builder addJobApplicationsBuilder( - int index) { - return getJobApplicationsFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.JobApplication.getDefaultInstance()); - } - /** - * - * - *
-     * Optional.
-     * The job applications of the candidate.
-     * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - public java.util.List - getJobApplicationsBuilderList() { - return getJobApplicationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.JobApplication, - com.google.cloud.talent.v4beta1.JobApplication.Builder, - com.google.cloud.talent.v4beta1.JobApplicationOrBuilder> - getJobApplicationsFieldBuilder() { - if (jobApplicationsBuilder_ == null) { - jobApplicationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.JobApplication, - com.google.cloud.talent.v4beta1.JobApplication.Builder, - com.google.cloud.talent.v4beta1.JobApplicationOrBuilder>( - jobApplications_, - ((bitField0_ & 0x00400000) == 0x00400000), - getParentForChildren(), - isClean()); - jobApplications_ = null; - } - return jobApplicationsBuilder_; - } + private com.google.protobuf.LazyStringList assignments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; - private java.util.List recruitingNotes_ = - java.util.Collections.emptyList(); - - private void ensureRecruitingNotesIsMutable() { + private void ensureAssignmentsIsMutable() { if (!((bitField0_ & 0x00800000) == 0x00800000)) { - recruitingNotes_ = - new java.util.ArrayList( - recruitingNotes_); + assignments_ = new com.google.protobuf.LazyStringArrayList(assignments_); bitField0_ |= 0x00800000; } } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.RecruitingNote, - com.google.cloud.talent.v4beta1.RecruitingNote.Builder, - com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> - recruitingNotesBuilder_; - - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public java.util.List getRecruitingNotesList() { - if (recruitingNotesBuilder_ == null) { - return java.util.Collections.unmodifiableList(recruitingNotes_); - } else { - return recruitingNotesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public int getRecruitingNotesCount() { - if (recruitingNotesBuilder_ == null) { - return recruitingNotes_.size(); - } else { - return recruitingNotesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index) { - if (recruitingNotesBuilder_ == null) { - return recruitingNotes_.get(index); - } else { - return recruitingNotesBuilder_.getMessage(index); - } - } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder setRecruitingNotes( - int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { - if (recruitingNotesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecruitingNotesIsMutable(); - recruitingNotes_.set(index, value); - onChanged(); - } else { - recruitingNotesBuilder_.setMessage(index, value); - } - return this; + public com.google.protobuf.ProtocolStringList getAssignmentsList() { + return assignments_.getUnmodifiableView(); } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder setRecruitingNotes( - int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { - if (recruitingNotesBuilder_ == null) { - ensureRecruitingNotesIsMutable(); - recruitingNotes_.set(index, builderForValue.build()); - onChanged(); - } else { - recruitingNotesBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public int getAssignmentsCount() { + return assignments_.size(); } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder addRecruitingNotes(com.google.cloud.talent.v4beta1.RecruitingNote value) { - if (recruitingNotesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecruitingNotesIsMutable(); - recruitingNotes_.add(value); - onChanged(); - } else { - recruitingNotesBuilder_.addMessage(value); - } - return this; + public java.lang.String getAssignments(int index) { + return assignments_.get(index); } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder addRecruitingNotes( - int index, com.google.cloud.talent.v4beta1.RecruitingNote value) { - if (recruitingNotesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecruitingNotesIsMutable(); - recruitingNotes_.add(index, value); - onChanged(); - } else { - recruitingNotesBuilder_.addMessage(index, value); - } - return this; + public com.google.protobuf.ByteString getAssignmentsBytes(int index) { + return assignments_.getByteString(index); } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder addRecruitingNotes( - com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { - if (recruitingNotesBuilder_ == null) { - ensureRecruitingNotesIsMutable(); - recruitingNotes_.add(builderForValue.build()); - onChanged(); - } else { - recruitingNotesBuilder_.addMessage(builderForValue.build()); + public Builder setAssignments(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureAssignmentsIsMutable(); + assignments_.set(index, value); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder addRecruitingNotes( - int index, com.google.cloud.talent.v4beta1.RecruitingNote.Builder builderForValue) { - if (recruitingNotesBuilder_ == null) { - ensureRecruitingNotesIsMutable(); - recruitingNotes_.add(index, builderForValue.build()); - onChanged(); - } else { - recruitingNotesBuilder_.addMessage(index, builderForValue.build()); + public Builder addAssignments(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureAssignmentsIsMutable(); + assignments_.add(value); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder addAllRecruitingNotes( - java.lang.Iterable values) { - if (recruitingNotesBuilder_ == null) { - ensureRecruitingNotesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recruitingNotes_); - onChanged(); - } else { - recruitingNotesBuilder_.addAllMessages(values); - } + public Builder addAllAssignments(java.lang.Iterable values) { + ensureAssignmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assignments_); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder clearRecruitingNotes() { - if (recruitingNotesBuilder_ == null) { - recruitingNotes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00800000); - onChanged(); - } else { - recruitingNotesBuilder_.clear(); - } + public Builder clearAssignments() { + assignments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); return this; } /** * * *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
+     * Output only. The resource names of the candidate's assignments.
      * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - public Builder removeRecruitingNotes(int index) { - if (recruitingNotesBuilder_ == null) { - ensureRecruitingNotesIsMutable(); - recruitingNotes_.remove(index); - onChanged(); - } else { - recruitingNotesBuilder_.remove(index); + public Builder addAssignmentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureAssignmentsIsMutable(); + assignments_.add(value); + onChanged(); return this; } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public com.google.cloud.talent.v4beta1.RecruitingNote.Builder getRecruitingNotesBuilder( - int index) { - return getRecruitingNotesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder( - int index) { - if (recruitingNotesBuilder_ == null) { - return recruitingNotes_.get(index); - } else { - return recruitingNotesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public java.util.List - getRecruitingNotesOrBuilderList() { - if (recruitingNotesBuilder_ != null) { - return recruitingNotesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(recruitingNotes_); - } - } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder() { - return getRecruitingNotesFieldBuilder() - .addBuilder(com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); - } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public com.google.cloud.talent.v4beta1.RecruitingNote.Builder addRecruitingNotesBuilder( - int index) { - return getRecruitingNotesFieldBuilder() - .addBuilder(index, com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()); - } - /** - * - * - *
-     * Optional.
-     * The recruiting notes added for the candidate.
-     * For example, the recruiter can add some unstructured comments for this
-     * candidate like "this candidate also has experiences in volunteer work".
-     * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - public java.util.List - getRecruitingNotesBuilderList() { - return getRecruitingNotesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.RecruitingNote, - com.google.cloud.talent.v4beta1.RecruitingNote.Builder, - com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder> - getRecruitingNotesFieldBuilder() { - if (recruitingNotesBuilder_ == null) { - recruitingNotesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.RecruitingNote, - com.google.cloud.talent.v4beta1.RecruitingNote.Builder, - com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder>( - recruitingNotes_, - ((bitField0_ & 0x00800000) == 0x00800000), - getParentForChildren(), - isClean()); - recruitingNotes_ = null; - } - return recruitingNotesBuilder_; - } private com.google.protobuf.MapField< java.lang.String, com.google.cloud.talent.v4beta1.CustomAttribute> @@ -11402,16 +10806,17 @@ public int getCustomAttributesCount() { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -11439,16 +10844,17 @@ public boolean containsCustomAttributes(java.lang.String key) { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -11468,16 +10874,17 @@ public boolean containsCustomAttributes(java.lang.String key) { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -11502,16 +10909,17 @@ public com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefa * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -11544,16 +10952,17 @@ public Builder clearCustomAttributes() { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -11582,16 +10991,17 @@ public Builder removeCustomAttributes(java.lang.String key) { * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -11618,16 +11028,17 @@ public Builder putCustomAttributes( * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java index 4f5135abeb0c..126589c78e64 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java @@ -26,7 +26,7 @@ private ProfileEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) private ProfileEvent() { type_ = 0; profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jobId_ = ""; + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -70,11 +70,14 @@ private ProfileEvent( profiles_.add(s); break; } - case 26: + case 50: { java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + jobs_.add(s); break; } default: @@ -94,6 +97,9 @@ private ProfileEvent( if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { profiles_ = profiles_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + jobs_ = jobs_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -164,80 +170,6 @@ public enum ProfileEventType implements com.google.protobuf.ProtocolMessageEnum * BOOKMARK = 3; */ BOOKMARK(3), - /** - * - * - *
-     * Comment added to the profile.
-     * 
- * - * COMMENT_ADDED = 4; - */ - COMMENT_ADDED(4), - /** - * - * - *
-     * Email sent regarding the profile.
-     * 
- * - * EMAIL_SENT = 5; - */ - EMAIL_SENT(5), - /** - * - * - *
-     * The resume of the profile is viewed.
-     * 
- * - * RESUME_VIEWED = 6; - */ - RESUME_VIEWED(6), - /** - * - * - *
-     * The profile is added to a job.
-     * 
- * - * ADD_TO_JOB = 7; - */ - ADD_TO_JOB(7), - /** - * - * - *
-     * The recruiter explicitly highlights that a given profile is interesting
-     * enough for later review or is a good result for the search.
-     * 
- * - * POSITIVE_REACTION_TO_PROFILE = 8; - */ - POSITIVE_REACTION_TO_PROFILE(8), - /** - * - * - *
-     * The recruiter explicitly highlights that a given profile is not
-     * interesting enough for later review or is not a good result for the
-     * search.
-     * 
- * - * NEGATIVE_REACTION_TO_PROFILE = 9; - */ - NEGATIVE_REACTION_TO_PROFILE(9), - /** - * - * - *
-     * The candidate is interesting enough to set up an initial screen with the
-     * recruiter. This step may be skipped based on the interview process.
-     * 
- * - * SCREEN = 10; - */ - SCREEN(10), UNRECOGNIZED(-1), ; @@ -281,80 +213,6 @@ public enum ProfileEventType implements com.google.protobuf.ProtocolMessageEnum * BOOKMARK = 3; */ public static final int BOOKMARK_VALUE = 3; - /** - * - * - *
-     * Comment added to the profile.
-     * 
- * - * COMMENT_ADDED = 4; - */ - public static final int COMMENT_ADDED_VALUE = 4; - /** - * - * - *
-     * Email sent regarding the profile.
-     * 
- * - * EMAIL_SENT = 5; - */ - public static final int EMAIL_SENT_VALUE = 5; - /** - * - * - *
-     * The resume of the profile is viewed.
-     * 
- * - * RESUME_VIEWED = 6; - */ - public static final int RESUME_VIEWED_VALUE = 6; - /** - * - * - *
-     * The profile is added to a job.
-     * 
- * - * ADD_TO_JOB = 7; - */ - public static final int ADD_TO_JOB_VALUE = 7; - /** - * - * - *
-     * The recruiter explicitly highlights that a given profile is interesting
-     * enough for later review or is a good result for the search.
-     * 
- * - * POSITIVE_REACTION_TO_PROFILE = 8; - */ - public static final int POSITIVE_REACTION_TO_PROFILE_VALUE = 8; - /** - * - * - *
-     * The recruiter explicitly highlights that a given profile is not
-     * interesting enough for later review or is not a good result for the
-     * search.
-     * 
- * - * NEGATIVE_REACTION_TO_PROFILE = 9; - */ - public static final int NEGATIVE_REACTION_TO_PROFILE_VALUE = 9; - /** - * - * - *
-     * The candidate is interesting enough to set up an initial screen with the
-     * recruiter. This step may be skipped based on the interview process.
-     * 
- * - * SCREEN = 10; - */ - public static final int SCREEN_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -380,20 +238,6 @@ public static ProfileEventType forNumber(int value) { return VIEW; case 3: return BOOKMARK; - case 4: - return COMMENT_ADDED; - case 5: - return EMAIL_SENT; - case 6: - return RESUME_VIEWED; - case 7: - return ADD_TO_JOB; - case 8: - return POSITIVE_REACTION_TO_PROFILE; - case 9: - return NEGATIVE_REACTION_TO_PROFILE; - case 10: - return SCREEN; default: return null; } @@ -539,8 +383,8 @@ public com.google.protobuf.ByteString getProfilesBytes(int index) { return profiles_.getByteString(index); } - public static final int JOB_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object jobId_; + public static final int JOBS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList jobs_; /** * * @@ -552,18 +396,10 @@ public com.google.protobuf.ByteString getProfilesBytes(int index) { * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - 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(); - jobId_ = s; - return s; - } + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_; } /** * @@ -576,18 +412,42 @@ public java.lang.String getJobId() { * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * repeated string jobs = 6; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * repeated string jobs = 6; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -606,15 +466,14 @@ public final boolean isInitialized() { 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()) { + .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)); } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, jobId_); + for (int i = 0; i < jobs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, jobs_.getRaw(i)); } unknownFields.writeTo(output); } @@ -627,8 +486,7 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType - .PROFILE_EVENT_TYPE_UNSPECIFIED - .getNumber()) { + .PROFILE_EVENT_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } { @@ -639,8 +497,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProfilesList().size(); } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobId_); + { + 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; @@ -661,7 +524,7 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && type_ == other.type_; result = result && getProfilesList().equals(other.getProfilesList()); - result = result && getJobId().equals(other.getJobId()); + result = result && getJobsList().equals(other.getJobsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -679,8 +542,10 @@ public int hashCode() { hash = (37 * hash) + PROFILES_FIELD_NUMBER; hash = (53 * hash) + getProfilesList().hashCode(); } - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); + if (getJobsCount() > 0) { + hash = (37 * hash) + JOBS_FIELD_NUMBER; + hash = (53 * hash) + getJobsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -831,8 +696,8 @@ public Builder clear() { profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); - jobId_ = ""; - + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -868,7 +733,11 @@ public com.google.cloud.talent.v4beta1.ProfileEvent buildPartial() { bitField0_ = (bitField0_ & ~0x00000002); } result.profiles_ = profiles_; - result.jobId_ = jobId_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + jobs_ = jobs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.jobs_ = jobs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -932,8 +801,14 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileEvent other) { } onChanged(); } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; + if (!other.jobs_.isEmpty()) { + if (jobs_.isEmpty()) { + jobs_ = other.jobs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureJobsIsMutable(); + jobs_.addAll(other.jobs_); + } onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -1211,7 +1086,15 @@ public Builder addProfilesBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object jobId_ = ""; + private com.google.protobuf.LazyStringList jobs_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureJobsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + jobs_ = new com.google.protobuf.LazyStringArrayList(jobs_); + bitField0_ |= 0x00000004; + } + } /** * * @@ -1223,18 +1106,10 @@ public Builder addProfilesBytes(com.google.protobuf.ByteString value) { * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public com.google.protobuf.ProtocolStringList getJobsList() { + return jobs_.getUnmodifiableView(); } /** * @@ -1247,18 +1122,64 @@ public java.lang.String getJobId() { * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public int getJobsCount() { + return jobs_.size(); + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * repeated string jobs = 6; + */ + public java.lang.String getJobs(int index) { + return jobs_.get(index); + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * repeated string jobs = 6; + */ + public com.google.protobuf.ByteString getJobsBytes(int index) { + return jobs_.getByteString(index); + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * repeated string jobs = 6; + */ + public Builder setJobs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureJobsIsMutable(); + jobs_.set(index, value); + onChanged(); + return this; } /** * @@ -1271,14 +1192,14 @@ public com.google.protobuf.ByteString getJobIdBytes() { * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - public Builder setJobId(java.lang.String value) { + public Builder addJobs(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - - jobId_ = value; + ensureJobsIsMutable(); + jobs_.add(value); onChanged(); return this; } @@ -1293,11 +1214,11 @@ public Builder setJobId(java.lang.String value) { * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); + public Builder addAllJobs(java.lang.Iterable values) { + ensureJobsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobs_); onChanged(); return this; } @@ -1312,15 +1233,34 @@ public Builder clearJobId() { * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { + public Builder clearJobs() { + jobs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional.
+     * The job ID associated with this client event if there is one. Leave it
+     * empty if the event isn't associated with a job.
+     * The job ID should be consistent with the
+     * [JobApplication.job.requisition_id][] in the profile.
+     * 
+ * + * repeated string jobs = 6; + */ + public Builder addJobsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - - jobId_ = value; + ensureJobsIsMutable(); + jobs_.add(value); onChanged(); return this; } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java index 54ca5e7cf1b3..1451cae92a5a 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java @@ -91,9 +91,9 @@ public interface ProfileEventOrBuilder * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - java.lang.String getJobId(); + java.util.List getJobsList(); /** * * @@ -105,7 +105,35 @@ public interface ProfileEventOrBuilder * [JobApplication.job.requisition_id][] in the profile. * * - * string job_id = 3; + * repeated string jobs = 6; */ - com.google.protobuf.ByteString getJobIdBytes(); + int getJobsCount(); + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * repeated string jobs = 6; + */ + java.lang.String getJobs(int index); + /** + * + * + *
+   * Optional.
+   * The job ID associated with this client event if there is one. Leave it
+   * empty if the event isn't associated with a job.
+   * The job ID should be consistent with the
+   * [JobApplication.job.requisition_id][] in the profile.
+   * 
+ * + * repeated string jobs = 6; + */ + com.google.protobuf.ByteString getJobsBytes(int index); } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java index a0e89e668a3c..a3dfa088c85e 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java @@ -1235,125 +1235,83 @@ com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOr * * *
-   * Optional.
-   * The job applications of the candidate.
-   * 
- * - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; - */ - java.util.List getJobApplicationsList(); - /** - * - * - *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - com.google.cloud.talent.v4beta1.JobApplication getJobApplications(int index); + java.util.List getApplicationsList(); /** * * *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - int getJobApplicationsCount(); + int getApplicationsCount(); /** * * *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - java.util.List - getJobApplicationsOrBuilderList(); + java.lang.String getApplications(int index); /** * * *
-   * Optional.
-   * The job applications of the candidate.
+   * Output only. The resource names of the candidate's applications.
    * 
* - * repeated .google.cloud.talent.v4beta1.JobApplication job_applications = 24; + * repeated string applications = 47; */ - com.google.cloud.talent.v4beta1.JobApplicationOrBuilder getJobApplicationsOrBuilder(int index); + com.google.protobuf.ByteString getApplicationsBytes(int index); /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
-   * 
- * - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; - */ - java.util.List getRecruitingNotesList(); - /** - * - * - *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - com.google.cloud.talent.v4beta1.RecruitingNote getRecruitingNotes(int index); + java.util.List getAssignmentsList(); /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - int getRecruitingNotesCount(); + int getAssignmentsCount(); /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - java.util.List - getRecruitingNotesOrBuilderList(); + java.lang.String getAssignments(int index); /** * * *
-   * Optional.
-   * The recruiting notes added for the candidate.
-   * For example, the recruiter can add some unstructured comments for this
-   * candidate like "this candidate also has experiences in volunteer work".
+   * Output only. The resource names of the candidate's assignments.
    * 
* - * repeated .google.cloud.talent.v4beta1.RecruitingNote recruiting_notes = 25; + * repeated string assignments = 48; */ - com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder getRecruitingNotesOrBuilder(int index); + com.google.protobuf.ByteString getAssignmentsBytes(int index); /** * @@ -1365,16 +1323,17 @@ com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOr * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -1391,16 +1350,17 @@ com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOr * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -1421,16 +1381,17 @@ com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOr * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -1448,16 +1409,17 @@ com.google.cloud.talent.v4beta1.EmploymentRecordOrBuilder getEmploymentRecordsOr * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; @@ -1475,16 +1437,17 @@ com.google.cloud.talent.v4beta1.CustomAttribute getCustomAttributesOrDefault( * [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. + * 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. + * 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. - * Currently filterable numeric custom attributes are not supported, and - * they automatically set to unfilterable. * * * map<string, .google.cloud.talent.v4beta1.CustomAttribute> custom_attributes = 26; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java index 41055b884d2f..4a8587dc40ae 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java @@ -32,7 +32,7 @@ private ProfileQuery() { workExperienceFilter_ = java.util.Collections.emptyList(); timeFilters_ = java.util.Collections.emptyList(); applicationDateFilters_ = java.util.Collections.emptyList(); - applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); applicationLastStageFilters_ = java.util.Collections.emptyList(); applicationJobFilters_ = java.util.Collections.emptyList(); applicationStatusFilters_ = java.util.Collections.emptyList(); @@ -187,14 +187,14 @@ private ProfileQuery( case 90: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - applicationOutcomeReasonFilters_ = + applicationOutcomeNotesFilters_ = new java.util.ArrayList< - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter>(); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter>(); mutable_bitField0_ |= 0x00000400; } - applicationOutcomeReasonFilters_.add( + applicationOutcomeNotesFilters_.add( input.readMessage( - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.parser(), + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.parser(), extensionRegistry)); break; } @@ -285,8 +285,8 @@ private ProfileQuery( applicationDateFilters_ = java.util.Collections.unmodifiableList(applicationDateFilters_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { - applicationOutcomeReasonFilters_ = - java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + applicationOutcomeNotesFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { applicationLastStageFilters_ = @@ -1219,93 +1219,93 @@ public com.google.cloud.talent.v4beta1.ApplicationDateFilter getApplicationDateF return applicationDateFilters_.get(index); } - public static final int APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER = 11; - private java.util.List - applicationOutcomeReasonFilters_; + public static final int APPLICATION_OUTCOME_NOTES_FILTERS_FIELD_NUMBER = 11; + private java.util.List + applicationOutcomeNotesFilters_; /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public java.util.List - getApplicationOutcomeReasonFiltersList() { - return applicationOutcomeReasonFilters_; + public java.util.List + getApplicationOutcomeNotesFiltersList() { + return applicationOutcomeNotesFilters_; } /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ public java.util.List< - ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> - getApplicationOutcomeReasonFiltersOrBuilderList() { - return applicationOutcomeReasonFilters_; + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder> + getApplicationOutcomeNotesFiltersOrBuilderList() { + return applicationOutcomeNotesFilters_; } /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public int getApplicationOutcomeReasonFiltersCount() { - return applicationOutcomeReasonFilters_.size(); + public int getApplicationOutcomeNotesFiltersCount() { + return applicationOutcomeNotesFilters_.size(); } /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter - getApplicationOutcomeReasonFilters(int index) { - return applicationOutcomeReasonFilters_.get(index); + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter + getApplicationOutcomeNotesFilters(int index) { + return applicationOutcomeNotesFilters_.get(index); } /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder - getApplicationOutcomeReasonFiltersOrBuilder(int index) { - return applicationOutcomeReasonFilters_.get(index); + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder + getApplicationOutcomeNotesFiltersOrBuilder(int index) { + return applicationOutcomeNotesFilters_.get(index); } public static final int APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER = 12; @@ -1568,9 +1568,12 @@ public com.google.cloud.talent.v4beta1.ApplicationStatusFilter getApplicationSta * [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. - * 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. + * 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. @@ -1604,9 +1607,12 @@ public java.lang.String getCustomFieldFilter() { * [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. - * 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. + * 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. @@ -1676,8 +1682,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < applicationDateFilters_.size(); i++) { output.writeMessage(10, applicationDateFilters_.get(i)); } - for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { - output.writeMessage(11, applicationOutcomeReasonFilters_.get(i)); + for (int i = 0; i < applicationOutcomeNotesFilters_.size(); i++) { + output.writeMessage(11, applicationOutcomeNotesFilters_.get(i)); } for (int i = 0; i < applicationLastStageFilters_.size(); i++) { output.writeMessage(12, applicationLastStageFilters_.get(i)); @@ -1733,10 +1739,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, applicationDateFilters_.get(i)); } - for (int i = 0; i < applicationOutcomeReasonFilters_.size(); i++) { + for (int i = 0; i < applicationOutcomeNotesFilters_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, applicationOutcomeReasonFilters_.get(i)); + 11, applicationOutcomeNotesFilters_.get(i)); } for (int i = 0; i < applicationLastStageFilters_.size(); i++) { size += @@ -1789,8 +1795,8 @@ public boolean equals(final java.lang.Object obj) { result && getApplicationDateFiltersList().equals(other.getApplicationDateFiltersList()); result = result - && getApplicationOutcomeReasonFiltersList() - .equals(other.getApplicationOutcomeReasonFiltersList()); + && getApplicationOutcomeNotesFiltersList() + .equals(other.getApplicationOutcomeNotesFiltersList()); result = result && getApplicationLastStageFiltersList() @@ -1848,9 +1854,9 @@ public int hashCode() { hash = (37 * hash) + APPLICATION_DATE_FILTERS_FIELD_NUMBER; hash = (53 * hash) + getApplicationDateFiltersList().hashCode(); } - if (getApplicationOutcomeReasonFiltersCount() > 0) { - hash = (37 * hash) + APPLICATION_OUTCOME_REASON_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getApplicationOutcomeReasonFiltersList().hashCode(); + if (getApplicationOutcomeNotesFiltersCount() > 0) { + hash = (37 * hash) + APPLICATION_OUTCOME_NOTES_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getApplicationOutcomeNotesFiltersList().hashCode(); } if (getApplicationLastStageFiltersCount() > 0) { hash = (37 * hash) + APPLICATION_LAST_STAGE_FILTERS_FIELD_NUMBER; @@ -2014,7 +2020,7 @@ private void maybeForceBuilderInitialization() { getWorkExperienceFilterFieldBuilder(); getTimeFiltersFieldBuilder(); getApplicationDateFiltersFieldBuilder(); - getApplicationOutcomeReasonFiltersFieldBuilder(); + getApplicationOutcomeNotesFiltersFieldBuilder(); getApplicationLastStageFiltersFieldBuilder(); getApplicationJobFiltersFieldBuilder(); getApplicationStatusFiltersFieldBuilder(); @@ -2080,11 +2086,11 @@ public Builder clear() { } else { applicationDateFiltersBuilder_.clear(); } - if (applicationOutcomeReasonFiltersBuilder_ == null) { - applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + if (applicationOutcomeNotesFiltersBuilder_ == null) { + applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { - applicationOutcomeReasonFiltersBuilder_.clear(); + applicationOutcomeNotesFiltersBuilder_.clear(); } if (applicationLastStageFiltersBuilder_ == null) { applicationLastStageFilters_ = java.util.Collections.emptyList(); @@ -2213,15 +2219,15 @@ public com.google.cloud.talent.v4beta1.ProfileQuery buildPartial() { } else { result.applicationDateFilters_ = applicationDateFiltersBuilder_.build(); } - if (applicationOutcomeReasonFiltersBuilder_ == null) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { - applicationOutcomeReasonFilters_ = - java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + applicationOutcomeNotesFilters_ = + java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); bitField0_ = (bitField0_ & ~0x00000400); } - result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFilters_; + result.applicationOutcomeNotesFilters_ = applicationOutcomeNotesFilters_; } else { - result.applicationOutcomeReasonFilters_ = applicationOutcomeReasonFiltersBuilder_.build(); + result.applicationOutcomeNotesFilters_ = applicationOutcomeNotesFiltersBuilder_.build(); } if (applicationLastStageFiltersBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { @@ -2526,31 +2532,31 @@ public Builder mergeFrom(com.google.cloud.talent.v4beta1.ProfileQuery other) { } } } - if (applicationOutcomeReasonFiltersBuilder_ == null) { - if (!other.applicationOutcomeReasonFilters_.isEmpty()) { - if (applicationOutcomeReasonFilters_.isEmpty()) { - applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + if (applicationOutcomeNotesFiltersBuilder_ == null) { + if (!other.applicationOutcomeNotesFilters_.isEmpty()) { + if (applicationOutcomeNotesFilters_.isEmpty()) { + applicationOutcomeNotesFilters_ = other.applicationOutcomeNotesFilters_; bitField0_ = (bitField0_ & ~0x00000400); } else { - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.addAll(other.applicationOutcomeReasonFilters_); + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.addAll(other.applicationOutcomeNotesFilters_); } onChanged(); } } else { - if (!other.applicationOutcomeReasonFilters_.isEmpty()) { - if (applicationOutcomeReasonFiltersBuilder_.isEmpty()) { - applicationOutcomeReasonFiltersBuilder_.dispose(); - applicationOutcomeReasonFiltersBuilder_ = null; - applicationOutcomeReasonFilters_ = other.applicationOutcomeReasonFilters_; + if (!other.applicationOutcomeNotesFilters_.isEmpty()) { + if (applicationOutcomeNotesFiltersBuilder_.isEmpty()) { + applicationOutcomeNotesFiltersBuilder_.dispose(); + applicationOutcomeNotesFiltersBuilder_ = null; + applicationOutcomeNotesFilters_ = other.applicationOutcomeNotesFilters_; bitField0_ = (bitField0_ & ~0x00000400); - applicationOutcomeReasonFiltersBuilder_ = + applicationOutcomeNotesFiltersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getApplicationOutcomeReasonFiltersFieldBuilder() + ? getApplicationOutcomeNotesFiltersFieldBuilder() : null; } else { - applicationOutcomeReasonFiltersBuilder_.addAllMessages( - other.applicationOutcomeReasonFilters_); + applicationOutcomeNotesFiltersBuilder_.addAllMessages( + other.applicationOutcomeNotesFilters_); } } } @@ -6870,43 +6876,43 @@ public Builder removeApplicationDateFilters(int index) { return applicationDateFiltersBuilder_; } - private java.util.List - applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + private java.util.List + applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); - private void ensureApplicationOutcomeReasonFiltersIsMutable() { + private void ensureApplicationOutcomeNotesFiltersIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { - applicationOutcomeReasonFilters_ = - new java.util.ArrayList( - applicationOutcomeReasonFilters_); + applicationOutcomeNotesFilters_ = + new java.util.ArrayList( + applicationOutcomeNotesFilters_); bitField0_ |= 0x00000400; } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> - applicationOutcomeReasonFiltersBuilder_; + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder> + applicationOutcomeNotesFiltersBuilder_; /** * * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public java.util.List - getApplicationOutcomeReasonFiltersList() { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + public java.util.List + getApplicationOutcomeNotesFiltersList() { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); } else { - return applicationOutcomeReasonFiltersBuilder_.getMessageList(); + return applicationOutcomeNotesFiltersBuilder_.getMessageList(); } } /** @@ -6914,19 +6920,19 @@ private void ensureApplicationOutcomeReasonFiltersIsMutable() { * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public int getApplicationOutcomeReasonFiltersCount() { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - return applicationOutcomeReasonFilters_.size(); + public int getApplicationOutcomeNotesFiltersCount() { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + return applicationOutcomeNotesFilters_.size(); } else { - return applicationOutcomeReasonFiltersBuilder_.getCount(); + return applicationOutcomeNotesFiltersBuilder_.getCount(); } } /** @@ -6934,20 +6940,20 @@ public int getApplicationOutcomeReasonFiltersCount() { * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter - getApplicationOutcomeReasonFilters(int index) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - return applicationOutcomeReasonFilters_.get(index); + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter + getApplicationOutcomeNotesFilters(int index) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + return applicationOutcomeNotesFilters_.get(index); } else { - return applicationOutcomeReasonFiltersBuilder_.getMessage(index); + return applicationOutcomeNotesFiltersBuilder_.getMessage(index); } } /** @@ -6955,25 +6961,25 @@ public int getApplicationOutcomeReasonFiltersCount() { * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder setApplicationOutcomeReasonFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { + public Builder setApplicationOutcomeNotesFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter value) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.set(index, value); + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.set(index, value); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.setMessage(index, value); + applicationOutcomeNotesFiltersBuilder_.setMessage(index, value); } return this; } @@ -6982,23 +6988,23 @@ public Builder setApplicationOutcomeReasonFilters( * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder setApplicationOutcomeReasonFilters( + public Builder setApplicationOutcomeNotesFilters( int index, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.set(index, builderForValue.build()); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder builderForValue) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.set(index, builderForValue.build()); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.setMessage(index, builderForValue.build()); + applicationOutcomeNotesFiltersBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -7007,25 +7013,25 @@ public Builder setApplicationOutcomeReasonFilters( * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder addApplicationOutcomeReasonFilters( - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { + public Builder addApplicationOutcomeNotesFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter value) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.add(value); + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.add(value); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.addMessage(value); + applicationOutcomeNotesFiltersBuilder_.addMessage(value); } return this; } @@ -7034,25 +7040,25 @@ public Builder addApplicationOutcomeReasonFilters( * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder addApplicationOutcomeReasonFilters( - int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter value) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { + public Builder addApplicationOutcomeNotesFilters( + int index, com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter value) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.add(index, value); + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.add(index, value); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.addMessage(index, value); + applicationOutcomeNotesFiltersBuilder_.addMessage(index, value); } return this; } @@ -7061,22 +7067,22 @@ public Builder addApplicationOutcomeReasonFilters( * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder addApplicationOutcomeReasonFilters( - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.add(builderForValue.build()); + public Builder addApplicationOutcomeNotesFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder builderForValue) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.add(builderForValue.build()); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.addMessage(builderForValue.build()); + applicationOutcomeNotesFiltersBuilder_.addMessage(builderForValue.build()); } return this; } @@ -7085,23 +7091,23 @@ public Builder addApplicationOutcomeReasonFilters( * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder addApplicationOutcomeReasonFilters( + public Builder addApplicationOutcomeNotesFilters( int index, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder builderForValue) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.add(index, builderForValue.build()); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder builderForValue) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.add(index, builderForValue.build()); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.addMessage(index, builderForValue.build()); + applicationOutcomeNotesFiltersBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -7110,24 +7116,24 @@ public Builder addApplicationOutcomeReasonFilters( * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder addAllApplicationOutcomeReasonFilters( - java.lang.Iterable + public Builder addAllApplicationOutcomeNotesFilters( + java.lang.Iterable values) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - ensureApplicationOutcomeReasonFiltersIsMutable(); + if (applicationOutcomeNotesFiltersBuilder_ == null) { + ensureApplicationOutcomeNotesFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, applicationOutcomeReasonFilters_); + values, applicationOutcomeNotesFilters_); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.addAllMessages(values); + applicationOutcomeNotesFiltersBuilder_.addAllMessages(values); } return this; } @@ -7136,21 +7142,21 @@ public Builder addAllApplicationOutcomeReasonFilters( * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder clearApplicationOutcomeReasonFilters() { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - applicationOutcomeReasonFilters_ = java.util.Collections.emptyList(); + public Builder clearApplicationOutcomeNotesFilters() { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + applicationOutcomeNotesFilters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.clear(); + applicationOutcomeNotesFiltersBuilder_.clear(); } return this; } @@ -7159,21 +7165,21 @@ public Builder clearApplicationOutcomeReasonFilters() { * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public Builder removeApplicationOutcomeReasonFilters(int index) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - ensureApplicationOutcomeReasonFiltersIsMutable(); - applicationOutcomeReasonFilters_.remove(index); + public Builder removeApplicationOutcomeNotesFilters(int index) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + ensureApplicationOutcomeNotesFiltersIsMutable(); + applicationOutcomeNotesFilters_.remove(index); onChanged(); } else { - applicationOutcomeReasonFiltersBuilder_.remove(index); + applicationOutcomeNotesFiltersBuilder_.remove(index); } return this; } @@ -7182,37 +7188,37 @@ public Builder removeApplicationOutcomeReasonFilters(int index) { * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder - getApplicationOutcomeReasonFiltersBuilder(int index) { - return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilder(index); + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder + getApplicationOutcomeNotesFiltersBuilder(int index) { + return getApplicationOutcomeNotesFiltersFieldBuilder().getBuilder(index); } /** * * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder - getApplicationOutcomeReasonFiltersOrBuilder(int index) { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - return applicationOutcomeReasonFilters_.get(index); + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder + getApplicationOutcomeNotesFiltersOrBuilder(int index) { + if (applicationOutcomeNotesFiltersBuilder_ == null) { + return applicationOutcomeNotesFilters_.get(index); } else { - return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilder(index); + return applicationOutcomeNotesFiltersBuilder_.getMessageOrBuilder(index); } } /** @@ -7220,21 +7226,21 @@ public Builder removeApplicationOutcomeReasonFilters(int index) { * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ public java.util.List< - ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> - getApplicationOutcomeReasonFiltersOrBuilderList() { - if (applicationOutcomeReasonFiltersBuilder_ != null) { - return applicationOutcomeReasonFiltersBuilder_.getMessageOrBuilderList(); + ? extends com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder> + getApplicationOutcomeNotesFiltersOrBuilderList() { + if (applicationOutcomeNotesFiltersBuilder_ != null) { + return applicationOutcomeNotesFiltersBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(applicationOutcomeReasonFilters_); + return java.util.Collections.unmodifiableList(applicationOutcomeNotesFilters_); } } /** @@ -7242,76 +7248,76 @@ public Builder removeApplicationOutcomeReasonFilters(int index) { * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder - addApplicationOutcomeReasonFiltersBuilder() { - return getApplicationOutcomeReasonFiltersFieldBuilder() + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder + addApplicationOutcomeNotesFiltersBuilder() { + return getApplicationOutcomeNotesFiltersFieldBuilder() .addBuilder( - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance()); } /** * * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder - addApplicationOutcomeReasonFiltersBuilder(int index) { - return getApplicationOutcomeReasonFiltersFieldBuilder() + public com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder + addApplicationOutcomeNotesFiltersBuilder(int index) { + return getApplicationOutcomeNotesFiltersFieldBuilder() .addBuilder( index, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.getDefaultInstance()); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.getDefaultInstance()); } /** * * *
      * Optional.
-     * The application outcome reason filters specify the reasons for outcome of
+     * The application outcome notes filters specify the notes for the outcome of
      * the job application.
      * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - public java.util.List - getApplicationOutcomeReasonFiltersBuilderList() { - return getApplicationOutcomeReasonFiltersFieldBuilder().getBuilderList(); + public java.util.List + getApplicationOutcomeNotesFiltersBuilderList() { + return getApplicationOutcomeNotesFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder> - getApplicationOutcomeReasonFiltersFieldBuilder() { - if (applicationOutcomeReasonFiltersBuilder_ == null) { - applicationOutcomeReasonFiltersBuilder_ = + 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.ApplicationOutcomeReasonFilter, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter.Builder, - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder>( - applicationOutcomeReasonFilters_, + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter, + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter.Builder, + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder>( + applicationOutcomeNotesFilters_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); - applicationOutcomeReasonFilters_ = null; + applicationOutcomeNotesFilters_ = null; } - return applicationOutcomeReasonFiltersBuilder_; + return applicationOutcomeNotesFiltersBuilder_; } private java.util.List @@ -8610,9 +8616,12 @@ public Builder removeApplicationStatusFilters(int index) { * [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. - * 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. + * 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. @@ -8646,9 +8655,12 @@ public java.lang.String getCustomFieldFilter() { * [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. - * 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. + * 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. @@ -8682,9 +8694,12 @@ public com.google.protobuf.ByteString getCustomFieldFilterBytes() { * [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. - * 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. + * 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. @@ -8716,9 +8731,12 @@ public Builder setCustomFieldFilter(java.lang.String value) { * [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. - * 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. + * 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. @@ -8747,9 +8765,12 @@ public Builder clearCustomFieldFilter() { * [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. - * 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. + * 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. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java index caff2452efe9..d1d085636711 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java @@ -777,75 +777,75 @@ com.google.cloud.talent.v4beta1.ApplicationDateFilterOrBuilder getApplicationDat * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - java.util.List - getApplicationOutcomeReasonFiltersList(); + java.util.List + getApplicationOutcomeNotesFiltersList(); /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter getApplicationOutcomeReasonFilters( + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter getApplicationOutcomeNotesFilters( int index); /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - int getApplicationOutcomeReasonFiltersCount(); + int getApplicationOutcomeNotesFiltersCount(); /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - java.util.List - getApplicationOutcomeReasonFiltersOrBuilderList(); + java.util.List + getApplicationOutcomeNotesFiltersOrBuilderList(); /** * * *
    * Optional.
-   * The application outcome reason filters specify the reasons for outcome of
+   * The application outcome notes filters specify the notes for the outcome of
    * the job application.
    * 
* * - * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter application_outcome_reason_filters = 11; + * repeated .google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; * */ - com.google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilterOrBuilder - getApplicationOutcomeReasonFiltersOrBuilder(int index); + com.google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilterOrBuilder + getApplicationOutcomeNotesFiltersOrBuilder(int index); /** * @@ -1064,9 +1064,12 @@ com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder getApplicationJobF * [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. - * 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. + * 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. @@ -1090,9 +1093,12 @@ com.google.cloud.talent.v4beta1.ApplicationJobFilterOrBuilder getApplicationJobF * [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. - * 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. + * 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. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java index 32ef535b4be8..f38cd6433e6a 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java @@ -60,10 +60,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_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_Activity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,18 +72,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_talent_v4beta1_Patent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_JobApplication_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_RecruitingNote_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -101,160 +85,124 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\022\033google.cloud.talent.v4beta1\032\034google" + "/api/annotations.proto\032(google/cloud/tal" + "ent/v4beta1/common.proto\032%google/cloud/t" - + "alent/v4beta1/job.proto\032\037google/protobuf" - + "/timestamp.proto\032\036google/protobuf/wrappe" - + "rs.proto\032\026google/type/date.proto\032 google" - + "/type/postal_address.proto\"\276\013\n\007Profile\022\014" - + "\n\004name\030\001 \001(\t\022\023\n\013external_id\030\002 \001(\t\022\016\n\006sou" - + "rce\030\003 \001(\t\022\013\n\003uri\030\004 \001(\t\022\020\n\010group_id\030\005 \001(\t" - + "\022.\n\nis_hirable\030\006 \001(\0132\032.google.protobuf.B" - + "oolValue\022/\n\013create_time\030\007 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022/\n\013update_time\030\010 \001(\0132\032" - + ".google.protobuf.Timestamp\022\024\n\014resume_hrx" - + "ml\030\n \001(\t\022=\n\014person_names\030\013 \003(\0132\'.google." - + "cloud.talent.v4beta1.PersonName\0227\n\taddre" - + "sses\030\014 \003(\0132$.google.cloud.talent.v4beta1" - + ".Address\022;\n\017email_addresses\030\r \003(\0132\".goog" - + "le.cloud.talent.v4beta1.Email\0229\n\rphone_n" - + "umbers\030\016 \003(\0132\".google.cloud.talent.v4bet" - + "a1.Phone\022?\n\rpersonal_uris\030\017 \003(\0132(.google" - + ".cloud.talent.v4beta1.PersonalUri\022S\n\027add" - + "itional_contact_info\030\020 \003(\01322.google.clou" - + "d.talent.v4beta1.AdditionalContactInfo\022I" - + "\n\022employment_records\030\021 \003(\0132-.google.clou" - + "d.talent.v4beta1.EmploymentRecord\022G\n\021edu" - + "cation_records\030\022 \003(\0132,.google.cloud.tale" - + "nt.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.Publicatio" - + "n\0224\n\007patents\030\026 \003(\0132#.google.cloud.talent" - + ".v4beta1.Patent\022B\n\016certifications\030\027 \003(\0132" - + "*.google.cloud.talent.v4beta1.Certificat" - + "ion\022E\n\020job_applications\030\030 \003(\0132+.google.c" - + "loud.talent.v4beta1.JobApplication\022E\n\020re" - + "cruiting_notes\030\031 \003(\0132+.google.cloud.tale" - + "nt.v4beta1.RecruitingNote\022U\n\021custom_attr" - + "ibutes\030\032 \003(\0132:.google.cloud.talent.v4bet" - + "a1.Profile.CustomAttributesEntry\022\021\n\tproc" - + "essed\030\033 \001(\010\022\027\n\017keyword_snippet\030\034 \001(\t\032e\n\025" - + "CustomAttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005va" - + "lue\030\002 \001(\0132,.google.cloud.talent.v4beta1." - + "CustomAttribute:\0028\001\"\243\002\n\nPersonName\022\030\n\016fo" - + "rmatted_name\030\001 \001(\tH\000\022W\n\017structured_name\030" - + "\002 \001(\0132<.google.cloud.talent.v4beta1.Pers" - + "onName.PersonStructuredNameH\000\022\026\n\016preferr" - + "ed_name\030\003 \001(\t\032{\n\024PersonStructuredName\022\022\n" - + "\ngiven_name\030\001 \001(\t\022\026\n\016middle_initial\030\002 \001(" - + "\t\022\023\n\013family_name\030\003 \001(\t\022\020\n\010suffixes\030\004 \003(\t" - + "\022\020\n\010prefixes\030\005 \003(\tB\r\n\013person_name\"\334\001\n\007Ad" - + "dress\022<\n\005usage\030\001 \001(\0162-.google.cloud.tale" - + "nt.v4beta1.ContactInfoUsage\022\036\n\024unstructu" - + "red_address\030\002 \001(\tH\000\0228\n\022structured_addres" - + "s\030\003 \001(\0132\032.google.type.PostalAddressH\000\022.\n" - + "\nis_current\030\004 \001(\0132\032.google.protobuf.Bool" - + "ValueB\t\n\007address\"\\\n\005Email\022<\n\005usage\030\001 \001(\016" + + "alent/v4beta1/job.proto\032\036google/protobuf" + + "/duration.proto\032 google/protobuf/field_m" + + "ask.proto\032\037google/protobuf/timestamp.pro" + + "to\032\036google/protobuf/wrappers.proto\032\026goog" + + "le/type/date.proto\032 google/type/postal_a" + + "ddress.proto\"\333\n\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\003u" + + "ri\030\004 \001(\t\022\020\n\010group_id\030\005 \001(\t\022.\n\nis_hirable" + + "\030\006 \001(\0132\032.google.protobuf.BoolValue\022/\n\013cr" + + "eate_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "amp\022/\n\013update_time\030\010 \001(\0132\032.google.protob" + + "uf.Timestamp\022\024\n\014resume_hrxml\030\n \001(\t\022=\n\014pe" + + "rson_names\030\013 \003(\0132\'.google.cloud.talent.v" + + "4beta1.PersonName\0227\n\taddresses\030\014 \003(\0132$.g" + + "oogle.cloud.talent.v4beta1.Address\022;\n\017em" + + "ail_addresses\030\r \003(\0132\".google.cloud.talen" + + "t.v4beta1.Email\0229\n\rphone_numbers\030\016 \003(\0132\"" + + ".google.cloud.talent.v4beta1.Phone\022?\n\rpe" + + "rsonal_uris\030\017 \003(\0132(.google.cloud.talent." + + "v4beta1.PersonalUri\022S\n\027additional_contac" + + "t_info\030\020 \003(\01322.google.cloud.talent.v4bet" + + "a1.AdditionalContactInfo\022I\n\022employment_r" + + "ecords\030\021 \003(\0132-.google.cloud.talent.v4bet" + + "a1.EmploymentRecord\022G\n\021education_records" + + "\030\022 \003(\0132,.google.cloud.talent.v4beta1.Edu" + + "cationRecord\0222\n\006skills\030\023 \003(\0132\".google.cl" + + "oud.talent.v4beta1.Skill\0229\n\nactivities\030\024" + + " \003(\0132%.google.cloud.talent.v4beta1.Activ" + + "ity\022>\n\014publications\030\025 \003(\0132(.google.cloud" + + ".talent.v4beta1.Publication\0224\n\007patents\030\026" + + " \003(\0132#.google.cloud.talent.v4beta1.Paten" + + "t\022B\n\016certifications\030\027 \003(\0132*.google.cloud" + + ".talent.v4beta1.Certification\022\024\n\014applica" + + "tions\030/ \003(\t\022\023\n\013assignments\0300 \003(\t\022U\n\021cust" + + "om_attributes\030\032 \003(\0132:.google.cloud.talen" + + "t.v4beta1.Profile.CustomAttributesEntry\022" + + "\021\n\tprocessed\030\033 \001(\010\022\027\n\017keyword_snippet\030\034 " + + "\001(\t\032e\n\025CustomAttributesEntry\022\013\n\003key\030\001 \001(" + + "\t\022;\n\005value\030\002 \001(\0132,.google.cloud.talent.v" + + "4beta1.CustomAttribute:\0028\001\"\243\002\n\nPersonNam" + + "e\022\030\n\016formatted_name\030\001 \001(\tH\000\022W\n\017structure" + + "d_name\030\002 \001(\0132<.google.cloud.talent.v4bet" + + "a1.PersonName.PersonStructuredNameH\000\022\026\n\016" + + "preferred_name\030\003 \001(\t\032{\n\024PersonStructured" + + "Name\022\022\n\ngiven_name\030\001 \001(\t\022\026\n\016middle_initi" + + "al\030\002 \001(\t\022\023\n\013family_name\030\003 \001(\t\022\020\n\010suffixe" + + "s\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-.google.clo" + + "ud.talent.v4beta1.ContactInfoUsage\022\036\n\024un" + + "structured_address\030\002 \001(\tH\000\0228\n\022structured" + + "_address\030\003 \001(\0132\032.google.type.PostalAddre" + + "ssH\000\022+\n\007current\030\004 \001(\0132\032.google.protobuf." + + "BoolValueB\t\n\007address\"\\\n\005Email\022<\n\005usage\030\001" + + " \001(\0162-.google.cloud.talent.v4beta1.Conta" + + "ctInfoUsage\022\025\n\remail_address\030\002 \001(\t\"\317\002\n\005P" + + "hone\022<\n\005usage\030\001 \001(\0162-.google.cloud.talen" + + "t.v4beta1.ContactInfoUsage\022:\n\004type\030\002 \001(\016" + + "2,.google.cloud.talent.v4beta1.Phone.Pho" + + "neType\022\016\n\006number\030\003 \001(\t\022\026\n\016when_available" + + "\030\004 \001(\t\"\243\001\n\tPhoneType\022\032\n\026PHONE_TYPE_UNSPE" + + "CIFIED\020\000\022\014\n\010LANDLINE\020\001\022\n\n\006MOBILE\020\002\022\007\n\003FA" + + "X\020\003\022\t\n\005PAGER\020\004\022\016\n\nTTY_OR_TDD\020\005\022\r\n\tVOICEM" + + "AIL\020\006\022\013\n\007VIRTUAL\020\007\022\010\n\004VOIP\020\010\022\026\n\022MOBILE_O" + + "R_LANDLINE\020\t\"\032\n\013PersonalUri\022\013\n\003uri\030\001 \001(\t" + + "\"w\n\025AdditionalContactInfo\022<\n\005usage\030\001 \001(\016" + "2-.google.cloud.talent.v4beta1.ContactIn" - + "foUsage\022\025\n\remail_address\030\002 \001(\t\"\317\002\n\005Phone" - + "\022<\n\005usage\030\001 \001(\0162-.google.cloud.talent.v4" - + "beta1.ContactInfoUsage\022:\n\004type\030\002 \001(\0162,.g" - + "oogle.cloud.talent.v4beta1.Phone.PhoneTy" - + "pe\022\016\n\006number\030\003 \001(\t\022\026\n\016when_available\030\004 \001" - + "(\t\"\243\001\n\tPhoneType\022\032\n\026PHONE_TYPE_UNSPECIFI" - + "ED\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\tVOICEMAIL\020" - + "\006\022\013\n\007VIRTUAL\020\007\022\010\n\004VOIP\020\010\022\026\n\022MOBILE_OR_LA" - + "NDLINE\020\t\"\032\n\013PersonalUri\022\013\n\003uri\030\001 \001(\t\"w\n\025" - + "AdditionalContactInfo\022<\n\005usage\030\001 \001(\0162-.g" - + "oogle.cloud.talent.v4beta1.ContactInfoUs" - + "age\022\014\n\004name\030\002 \001(\t\022\022\n\ncontact_id\030\003 \001(\t\"\354\003" - + "\n\020EmploymentRecord\022%\n\nstart_date\030\001 \001(\0132\021" - + ".google.type.Date\022#\n\010end_date\030\002 \001(\0132\021.go" - + "ogle.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.Address\022\021\n\tj" - + "ob_title\030\006 \001(\t\022\027\n\017job_description\030\007 \001(\t\022" - + ":\n\026is_supervised_position\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\031\n\021job_title_snippet\030\013 \001(\t\022\037\n\027job_desc" - + "ription_snippet\030\014 \001(\t\022\035\n\025employer_name_s" - + "nippet\030\r \001(\t\"\302\003\n\017EducationRecord\022%\n\nstar" - + "t_date\030\001 \001(\0132\021.google.type.Date\022#\n\010end_d" - + "ate\030\002 \001(\0132\021.google.type.Date\0223\n\030expected" - + "_graduation_date\030\003 \001(\0132\021.google.type.Dat" - + "e\022\023\n\013school_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132" - + "$.google.cloud.talent.v4beta1.Address\022\034\n" - + "\022degree_description\030\006 \001(\tH\000\022@\n\021structure" - + "d_degree\030\007 \001(\0132#.google.cloud.talent.v4b" - + "eta1.DegreeH\000\022\023\n\013description\030\010 \001(\t\022.\n\nis" - + "_current\030\t \001(\0132\032.google.protobuf.BoolVal" - + "ue\022\033\n\023school_name_snippet\030\n \001(\t\022\026\n\016degre" - + "e_snippet\030\013 \001(\tB\010\n\006degree\"t\n\006Degree\022<\n\013d" - + "egree_type\030\001 \001(\0162\'.google.cloud.talent.v" - + "4beta1.DegreeType\022\023\n\013degree_name\030\002 \001(\t\022\027" - + "\n\017fields_of_study\030\003 \003(\t\"\324\002\n\005Skill\022\024\n\014dis" - + "play_name\030\001 \001(\t\022)\n\016last_used_date\030\002 \001(\0132" - + "\021.google.type.Date\022G\n\005level\030\003 \001(\01628.goog" - + "le.cloud.talent.v4beta1.Skill.SkillProfi" - + "ciencyLevel\022\017\n\007context\030\004 \001(\t\022\032\n\022skill_na" - + "me_snippet\030\005 \001(\t\"\223\001\n\025SkillProficiencyLev" - + "el\022\'\n#SKILL_PROFICIENCY_LEVEL_UNSPECIFIE" - + "D\020\000\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\006EX" - + "PERT\020\005\"\303\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\013c" - + "reate_date\030\004 \001(\0132\021.google.type.Date\022&\n\013u" - + "pdate_date\030\005 \001(\0132\021.google.type.Date\022\024\n\014t" - + "eam_members\030\006 \003(\t\0227\n\013skills_used\030\007 \003(\0132\"" - + ".google.cloud.talent.v4beta1.Skill\022\035\n\025ac" - + "tivity_name_snippet\030\010 \001(\t\022$\n\034activity_de" - + "scription_snippet\030\t \001(\t\022\033\n\023skills_used_s" - + "nippet\030\n \003(\t\"\313\001\n\013Publication\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\006volume\030\005 \001(\t\022\021\n\tpu" - + "blisher\030\006 \001(\t\022+\n\020publication_date\030\007 \001(\0132" - + "\021.google.type.Date\022\030\n\020publication_type\030\010" - + " \001(\t\022\014\n\004isbn\030\t \001(\t\"\251\002\n\006Patent\022\024\n\014display" - + "_name\030\001 \001(\t\022\021\n\tinventors\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_da" - + "te\030\005 \001(\0132\021.google.type.Date\022\025\n\rpatent_of" - + "fice\030\006 \001(\t\022\025\n\rpatent_number\030\007 \001(\t\022\032\n\022pat" - + "ent_description\030\010 \001(\t\0227\n\013skills_used\030\t \003" - + "(\0132\".google.cloud.talent.v4beta1.Skill\"\373" - + "\005\n\016JobApplication\022-\n\003job\030\001 \001(\0132 .google." - + "cloud.talent.v4beta1.Job\022\026\n\016application_" - + "id\030\002 \001(\t\022+\n\020application_date\030\003 \001(\0132\021.goo" - + "gle.type.Date\022\022\n\nlast_stage\030\004 \001(\t\022L\n\005sta" - + "te\030\005 \001(\0162=.google.cloud.talent.v4beta1.J" - + "obApplication.ApplicationStatus\022\037\n\027avera" - + "ge_interview_score\030\006 \001(\001\022 \n\030interview_sc" - + "ore_scale_id\030\007 \001(\t\022\034\n\024number_of_intervie" - + "ws\030\010 \001(\005\0228\n\024is_employee_referred\030\t \001(\0132\032" - + ".google.protobuf.BoolValue\022/\n\013update_tim" - + "e\030\n \001(\0132\032.google.protobuf.Timestamp\022\026\n\016o" - + "utcome_reason\030\013 \001(\t\022\034\n\024outcome_positiven" - + "ess\030\014 \001(\001\022,\n\010is_match\030\r \001(\0132\032.google.pro" - + "tobuf.BoolValue\022\031\n\021job_title_snippet\030\016 \001" - + "(\t\"\307\001\n\021ApplicationStatus\022\"\n\036APPLICATION_" - + "STATUS_UNSPECIFIED\020\000\022\022\n\016OFFER_EXTENDED\020\001" - + "\022\031\n\025REJECTED_BY_CANDIDATE\020\002\022\n\n\006ACTIVE\020\003\022" - + "\030\n\024REJECTED_BY_EMPLOYER\020\004\022\026\n\022HIRED_PENDI" - + "NG_DATE\020\005\022\021\n\rHIRED_STARTED\020\006\022\016\n\nPROSPECT" - + "ED\020\007\"\236\001\n\rCertification\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\tauthority\030\004 \001(\t\022\023\n\013description\030" - + "\005 \001(\t\"g\n\016RecruitingNote\022\014\n\004note\030\001 \001(\t\022\021\n" - + "\tcommenter\030\002 \001(\t\022&\n\013create_date\030\003 \001(\0132\021." - + "google.type.Date\022\014\n\004type\030\004 \001(\tB\202\001\n\037com.g" - + "oogle.cloud.talent.v4beta1B\024ProfileResou" - + "rceProtoP\001ZAgoogle.golang.org/genproto/g" - + "oogleapis/cloud/talent/v4beta1;talent\242\002\003" - + "CTSb\006proto3" + + "foUsage\022\014\n\004name\030\002 \001(\t\022\022\n\ncontact_id\030\003 \001(" + + "\t\"\343\003\n\020EmploymentRecord\022%\n\nstart_date\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.Address\022" + + "\021\n\tjob_title\030\006 \001(\t\022\027\n\017job_description\030\007 " + + "\001(\t\0221\n\ris_supervisor\030\010 \001(\0132\032.google.prot" + + "obuf.BoolValue\0224\n\020is_self_employed\030\t \001(\013" + + "2\032.google.protobuf.BoolValue\022.\n\nis_curre" + + "nt\030\n \001(\0132\032.google.protobuf.BoolValue\022\031\n\021" + + "job_title_snippet\030\013 \001(\t\022\037\n\027job_descripti" + + "on_snippet\030\014 \001(\t\022\035\n\025employer_name_snippe" + + "t\030\r \001(\t\"\302\003\n\017EducationRecord\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\0223\n\030expected_grad" + + "uation_date\030\003 \001(\0132\021.google.type.Date\022\023\n\013" + + "school_name\030\004 \001(\t\0225\n\007address\030\005 \001(\0132$.goo" + + "gle.cloud.talent.v4beta1.Address\022\034\n\022degr" + + "ee_description\030\006 \001(\tH\000\022@\n\021structured_deg" + + "ree\030\007 \001(\0132#.google.cloud.talent.v4beta1." + + "DegreeH\000\022\023\n\013description\030\010 \001(\t\022.\n\nis_curr" + + "ent\030\t \001(\0132\032.google.protobuf.BoolValue\022\033\n" + + "\023school_name_snippet\030\n \001(\t\022\026\n\016degree_sni" + + "ppet\030\013 \001(\tB\010\n\006degree\"t\n\006Degree\022<\n\013degree" + + "_type\030\001 \001(\0162\'.google.cloud.talent.v4beta" + + "1.DegreeType\022\023\n\013degree_name\030\002 \001(\t\022\027\n\017fie" + + "lds_of_study\030\003 \003(\t\"\303\002\n\010Activity\022\024\n\014displ" + + "ay_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\013\n\003ur" + + "i\030\003 \001(\t\022&\n\013create_date\030\004 \001(\0132\021.google.ty" + + "pe.Date\022&\n\013update_date\030\005 \001(\0132\021.google.ty" + + "pe.Date\022\024\n\014team_members\030\006 \003(\t\0227\n\013skills_" + + "used\030\007 \003(\0132\".google.cloud.talent.v4beta1" + + ".Skill\022\035\n\025activity_name_snippet\030\010 \001(\t\022$\n" + + "\034activity_description_snippet\030\t \001(\t\022\033\n\023s" + + "kills_used_snippet\030\n \003(\t\"\313\001\n\013Publication" + + "\022\017\n\007authors\030\001 \003(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022\017\n\007journal\030\004 \001(\t\022\016\n\006volume" + + "\030\005 \001(\t\022\021\n\tpublisher\030\006 \001(\t\022+\n\020publication" + + "_date\030\007 \001(\0132\021.google.type.Date\022\030\n\020public" + + "ation_type\030\010 \001(\t\022\014\n\004isbn\030\t \001(\t\"\251\002\n\006Paten" + + "t\022\024\n\014display_name\030\001 \001(\t\022\021\n\tinventors\030\002 \003" + + "(\t\022\025\n\rpatent_status\030\003 \001(\t\022-\n\022patent_stat" + + "us_date\030\004 \001(\0132\021.google.type.Date\022-\n\022pate" + + "nt_filing_date\030\005 \001(\0132\021.google.type.Date\022" + + "\025\n\rpatent_office\030\006 \001(\t\022\025\n\rpatent_number\030" + + "\007 \001(\t\022\032\n\022patent_description\030\010 \001(\t\0227\n\013ski" + + "lls_used\030\t \003(\0132\".google.cloud.talent.v4b" + + "eta1.SkillB\202\001\n\037com.google.cloud.talent.v" + + "4beta1B\024ProfileResourceProtoP\001ZAgoogle.g" + + "olang.org/genproto/googleapis/cloud/tale" + + "nt/v4beta1;talent\242\002\003CTSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -270,6 +218,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.api.AnnotationsProto.getDescriptor(), com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(), com.google.cloud.talent.v4beta1.JobResourceProto.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(), @@ -304,8 +254,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Publications", "Patents", "Certifications", - "JobApplications", - "RecruitingNotes", + "Applications", + "Assignments", "CustomAttributes", "Processed", "KeywordSnippet", @@ -340,7 +290,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_Address_descriptor, new java.lang.String[] { - "Usage", "UnstructuredAddress", "StructuredAddress", "IsCurrent", "Address", + "Usage", "UnstructuredAddress", "StructuredAddress", "Current", "Address", }); internal_static_google_cloud_talent_v4beta1_Email_descriptor = getDescriptor().getMessageTypes().get(3); @@ -387,7 +337,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Address", "JobTitle", "JobDescription", - "IsSupervisedPosition", + "IsSupervisor", "IsSelfEmployed", "IsCurrent", "JobTitleSnippet", @@ -421,16 +371,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "DegreeType", "DegreeName", "FieldsOfStudy", }); - internal_static_google_cloud_talent_v4beta1_Skill_descriptor = - getDescriptor().getMessageTypes().get(10); - 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_Activity_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_talent_v4beta1_Activity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_Activity_descriptor, @@ -447,7 +389,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "SkillsUsedSnippet", }); internal_static_google_cloud_talent_v4beta1_Publication_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_talent_v4beta1_Publication_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_Publication_descriptor, @@ -463,7 +405,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Isbn", }); internal_static_google_cloud_talent_v4beta1_Patent_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_talent_v4beta1_Patent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_Patent_descriptor, @@ -478,46 +420,11 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "PatentDescription", "SkillsUsed", }); - internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_talent_v4beta1_JobApplication_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_JobApplication_descriptor, - new java.lang.String[] { - "Job", - "ApplicationId", - "ApplicationDate", - "LastStage", - "State", - "AverageInterviewScore", - "InterviewScoreScaleId", - "NumberOfInterviews", - "IsEmployeeReferred", - "UpdateTime", - "OutcomeReason", - "OutcomePositiveness", - "IsMatch", - "JobTitleSnippet", - }); - internal_static_google_cloud_talent_v4beta1_Certification_descriptor = - getDescriptor().getMessageTypes().get(15); - 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_RecruitingNote_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor, - new java.lang.String[] { - "Note", "Commenter", "CreateDate", "Type", - }); com.google.api.AnnotationsProto.getDescriptor(); com.google.cloud.talent.v4beta1.CommonProto.getDescriptor(); com.google.cloud.talent.v4beta1.JobResourceProto.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(); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java index 81756400465c..6f04dd255741 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java @@ -65,72 +65,72 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/cloud/talent/v4beta1/histogram.proto" + "\032)google/cloud/talent/v4beta1/profile.pr" + "oto\032\033google/protobuf/empty.proto\032 google" - + "/protobuf/field_mask.proto\"|\n\023ListProfil" + + "/protobuf/field_mask.proto\"{\n\023ListProfil" + "esRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030" - + "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022.\n\nfield_mask\030\004" - + " \001(\0132\032.google.protobuf.FieldMask\"g\n\024List" - + "ProfilesResponse\0226\n\010profiles\030\001 \003(\0132$.goo" - + "gle.cloud.talent.v4beta1.Profile\022\027\n\017next" - + "_page_token\030\002 \001(\t\"]\n\024CreateProfileReques" - + "t\022\016\n\006parent\030\001 \001(\t\0225\n\007profile\030\002 \001(\0132$.goo" - + "gle.cloud.talent.v4beta1.Profile\"!\n\021GetP" - + "rofileRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdatePro" - + "fileRequest\0225\n\007profile\030\001 \001(\0132$.google.cl" - + "oud.talent.v4beta1.Profile\022/\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024D" - + "eleteProfileRequest\022\014\n\004name\030\001 \001(\t\"\374\002\n\025Se" - + "archProfilesRequest\022\016\n\006parent\030\001 \001(\t\022F\n\020r" - + "equest_metadata\030\002 \001(\0132,.google.cloud.tal" - + "ent.v4beta1.RequestMetadata\022@\n\rprofile_q" - + "uery\030\003 \001(\0132).google.cloud.talent.v4beta1" - + ".ProfileQuery\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_check\030\007 \001(\010\022\020\n\010order_by\030\010 \001(\t\022\033\n\023c" - + "ase_sensitive_sort\030\t \001(\010\022F\n\021histogram_qu" - + "eries\030\n \003(\0132+.google.cloud.talent.v4beta" - + "1.HistogramQuery\"\374\002\n\026SearchProfilesRespo" - + "nse\022\034\n\024estimated_total_size\030\001 \001(\003\022I\n\020spe" - + "ll_correction\030\002 \001(\0132/.google.cloud.talen" - + "t.v4beta1.SpellingCorrection\022?\n\010metadata" - + "\030\003 \001(\0132-.google.cloud.talent.v4beta1.Res" - + "ponseMetadata\022\027\n\017next_page_token\030\004 \001(\t\022R" - + "\n\027histogram_query_results\030\005 \003(\01321.google" - + ".cloud.talent.v4beta1.HistogramQueryResu" - + "lt\022K\n\023summarized_profiles\030\006 \003(\0132..google" - + ".cloud.talent.v4beta1.SummarizedProfile\"" - + "\202\001\n\021SummarizedProfile\0226\n\010profiles\030\001 \003(\0132" - + "$.google.cloud.talent.v4beta1.Profile\0225\n" - + "\007summary\030\002 \001(\0132$.google.cloud.talent.v4b" - + "eta1.Profile2\377\007\n\016ProfileService\022\254\001\n\014List" - + "Profiles\0220.google.cloud.talent.v4beta1.L" - + "istProfilesRequest\0321.google.cloud.talent" - + ".v4beta1.ListProfilesResponse\"7\202\323\344\223\0021\022//" - + "v4beta1/{parent=projects/*/tenants/*}/pr" - + "ofiles\022\244\001\n\rCreateProfile\0221.google.cloud." - + "talent.v4beta1.CreateProfileRequest\032$.go" - + "ogle.cloud.talent.v4beta1.Profile\":\202\323\344\223\002" - + "4\"//v4beta1/{parent=projects/*/tenants/*" - + "}/profiles:\001*\022\233\001\n\nGetProfile\022..google.cl" - + "oud.talent.v4beta1.GetProfileRequest\032$.g" - + "oogle.cloud.talent.v4beta1.Profile\"7\202\323\344\223" - + "\0021\022//v4beta1/{name=projects/*/tenants/*/" - + "profiles/*}\022\254\001\n\rUpdateProfile\0221.google.c" - + "loud.talent.v4beta1.UpdateProfileRequest" - + "\032$.google.cloud.talent.v4beta1.Profile\"B" - + "\202\323\344\223\002<27/v4beta1/{profile.name=projects/" - + "*/tenants/*/profiles/*}:\001*\022\223\001\n\rDeletePro" - + "file\0221.google.cloud.talent.v4beta1.Delet" - + "eProfileRequest\032\026.google.protobuf.Empty\"" - + "7\202\323\344\223\0021*//v4beta1/{name=projects/*/tenan" - + "ts/*/profiles/*}\022\263\001\n\016SearchProfiles\0222.go" - + "ogle.cloud.talent.v4beta1.SearchProfiles" - + "Request\0323.google.cloud.talent.v4beta1.Se" - + "archProfilesResponse\"8\202\323\344\223\0022\"-/v4beta1/{" - + "parent=projects/*/tenants/*}:search:\001*B\201" - + "\001\n\037com.google.cloud.talent.v4beta1B\023Prof" - + "ileServiceProtoP\001ZAgoogle.golang.org/gen" - + "proto/googleapis/cloud/talent/v4beta1;ta" - + "lent\242\002\003CTSb\006proto3" + + "\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022-\n\tread_mask\030\004 " + + "\001(\0132\032.google.protobuf.FieldMask\"g\n\024ListP" + + "rofilesResponse\0226\n\010profiles\030\001 \003(\0132$.goog" + + "le.cloud.talent.v4beta1.Profile\022\027\n\017next_" + + "page_token\030\002 \001(\t\"]\n\024CreateProfileRequest" + + "\022\016\n\006parent\030\001 \001(\t\0225\n\007profile\030\002 \001(\0132$.goog" + + "le.cloud.talent.v4beta1.Profile\"!\n\021GetPr" + + "ofileRequest\022\014\n\004name\030\001 \001(\t\"~\n\024UpdateProf" + + "ileRequest\0225\n\007profile\030\001 \001(\0132$.google.clo" + + "ud.talent.v4beta1.Profile\022/\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMask\"$\n\024De" + + "leteProfileRequest\022\014\n\004name\030\001 \001(\t\"\374\002\n\025Sea" + + "rchProfilesRequest\022\016\n\006parent\030\001 \001(\t\022F\n\020re" + + "quest_metadata\030\002 \001(\0132,.google.cloud.tale" + + "nt.v4beta1.RequestMetadata\022@\n\rprofile_qu" + + "ery\030\003 \001(\0132).google.cloud.talent.v4beta1." + + "ProfileQuery\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_s" + + "pell_check\030\007 \001(\010\022\020\n\010order_by\030\010 \001(\t\022\033\n\023ca" + + "se_sensitive_sort\030\t \001(\010\022F\n\021histogram_que" + + "ries\030\n \003(\0132+.google.cloud.talent.v4beta1" + + ".HistogramQuery\"\374\002\n\026SearchProfilesRespon" + + "se\022\034\n\024estimated_total_size\030\001 \001(\003\022I\n\020spel" + + "l_correction\030\002 \001(\0132/.google.cloud.talent" + + ".v4beta1.SpellingCorrection\022?\n\010metadata\030" + + "\003 \001(\0132-.google.cloud.talent.v4beta1.Resp" + + "onseMetadata\022\027\n\017next_page_token\030\004 \001(\t\022R\n" + + "\027histogram_query_results\030\005 \003(\01321.google." + + "cloud.talent.v4beta1.HistogramQueryResul" + + "t\022K\n\023summarized_profiles\030\006 \003(\0132..google." + + "cloud.talent.v4beta1.SummarizedProfile\"\202" + + "\001\n\021SummarizedProfile\0226\n\010profiles\030\001 \003(\0132$" + + ".google.cloud.talent.v4beta1.Profile\0225\n\007" + + "summary\030\002 \001(\0132$.google.cloud.talent.v4be" + + "ta1.Profile2\377\007\n\016ProfileService\022\254\001\n\014ListP" + + "rofiles\0220.google.cloud.talent.v4beta1.Li" + + "stProfilesRequest\0321.google.cloud.talent." + + "v4beta1.ListProfilesResponse\"7\202\323\344\223\0021\022//v" + + "4beta1/{parent=projects/*/tenants/*}/pro" + + "files\022\244\001\n\rCreateProfile\0221.google.cloud.t" + + "alent.v4beta1.CreateProfileRequest\032$.goo" + + "gle.cloud.talent.v4beta1.Profile\":\202\323\344\223\0024" + + "\"//v4beta1/{parent=projects/*/tenants/*}" + + "/profiles:\001*\022\233\001\n\nGetProfile\022..google.clo" + + "ud.talent.v4beta1.GetProfileRequest\032$.go" + + "ogle.cloud.talent.v4beta1.Profile\"7\202\323\344\223\002" + + "1\022//v4beta1/{name=projects/*/tenants/*/p" + + "rofiles/*}\022\254\001\n\rUpdateProfile\0221.google.cl" + + "oud.talent.v4beta1.UpdateProfileRequest\032" + + "$.google.cloud.talent.v4beta1.Profile\"B\202" + + "\323\344\223\002<27/v4beta1/{profile.name=projects/*" + + "/tenants/*/profiles/*}:\001*\022\223\001\n\rDeleteProf" + + "ile\0221.google.cloud.talent.v4beta1.Delete" + + "ProfileRequest\032\026.google.protobuf.Empty\"7" + + "\202\323\344\223\0021*//v4beta1/{name=projects/*/tenant" + + "s/*/profiles/*}\022\263\001\n\016SearchProfiles\0222.goo" + + "gle.cloud.talent.v4beta1.SearchProfilesR" + + "equest\0323.google.cloud.talent.v4beta1.Sea" + + "rchProfilesResponse\"8\202\323\344\223\0022\"-/v4beta1/{p" + + "arent=projects/*/tenants/*}:search:\001*B\201\001" + + "\n\037com.google.cloud.talent.v4beta1B\023Profi" + + "leServiceProtoP\001ZAgoogle.golang.org/genp" + + "roto/googleapis/cloud/talent/v4beta1;tal" + + "ent\242\002\003CTSb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -158,7 +158,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_talent_v4beta1_ListProfilesRequest_descriptor, new java.lang.String[] { - "Parent", "PageToken", "PageSize", "FieldMask", + "Parent", "PageToken", "PageSize", "ReadMask", }); internal_static_google_cloud_talent_v4beta1_ListProfilesResponse_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java index 92004bb624cf..18a998bc0bd2 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java @@ -15,7 +15,6 @@ 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; @@ -24,7 +23,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS @javax.annotation.Generated("by GAPIC protoc plugin") -public class ProjectName implements ResourceName { +public class ProjectName extends TenantOrProjectName { private static final PathTemplate PATH_TEMPLATE = PathTemplate.createWithoutUrlEncoding("projects/{project}"); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java new file mode 100644 index 000000000000..3c205ef586a5 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java @@ -0,0 +1,781 @@ +// 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() { + overall_ = 0D; + min_ = 0D; + max_ = 0D; + interval_ = 0D; + } + + @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(); + } + 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 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 (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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; + */ + 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; + */ + 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; + */ + 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; + */ + 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 (overall_ != 0D) { + output.writeDouble(1, overall_); + } + if (min_ != 0D) { + output.writeDouble(2, min_); + } + if (max_ != 0D) { + output.writeDouble(3, max_); + } + if (interval_ != 0D) { + output.writeDouble(4, interval_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (overall_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, overall_); + } + if (min_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, min_); + } + if (max_ != 0D) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, max_); + } + if (interval_ != 0D) { + 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; + + boolean result = true; + result = + result + && (java.lang.Double.doubleToLongBits(getOverall()) + == java.lang.Double.doubleToLongBits(other.getOverall())); + result = + result + && (java.lang.Double.doubleToLongBits(getMin()) + == java.lang.Double.doubleToLongBits(other.getMin())); + result = + result + && (java.lang.Double.doubleToLongBits(getMax()) + == java.lang.Double.doubleToLongBits(other.getMax())); + result = + result + && (java.lang.Double.doubleToLongBits(getInterval()) + == java.lang.Double.doubleToLongBits(other.getInterval())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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 (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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; + */ + public double getOverall() { + return overall_; + } + /** + * + * + *
+     * Overall score.
+     * 
+ * + * double overall = 1; + */ + public Builder setOverall(double value) { + + overall_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Overall score.
+     * 
+ * + * double overall = 1; + */ + public Builder clearOverall() { + + overall_ = 0D; + onChanged(); + return this; + } + + private double min_; + /** + * + * + *
+     * The minimum value for the score.
+     * 
+ * + * double min = 2; + */ + public double getMin() { + return min_; + } + /** + * + * + *
+     * The minimum value for the score.
+     * 
+ * + * double min = 2; + */ + public Builder setMin(double value) { + + min_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The minimum value for the score.
+     * 
+ * + * double min = 2; + */ + public Builder clearMin() { + + min_ = 0D; + onChanged(); + return this; + } + + private double max_; + /** + * + * + *
+     * The maximum value for the score.
+     * 
+ * + * double max = 3; + */ + public double getMax() { + return max_; + } + /** + * + * + *
+     * The maximum value for the score.
+     * 
+ * + * double max = 3; + */ + public Builder setMax(double value) { + + max_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum value for the score.
+     * 
+ * + * double max = 3; + */ + 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; + */ + 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; + */ + 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; + */ + public Builder clearInterval() { + + interval_ = 0D; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java new file mode 100644 index 000000000000..bde31450f91f --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java @@ -0,0 +1,55 @@ +// 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; + */ + double getOverall(); + + /** + * + * + *
+   * The minimum value for the score.
+   * 
+ * + * double min = 2; + */ + double getMin(); + + /** + * + * + *
+   * The maximum value for the score.
+   * 
+ * + * double max = 3; + */ + 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; + */ + double getInterval(); +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java deleted file mode 100644 index 45dacc09b82a..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNote.java +++ /dev/null @@ -1,1227 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -/** - * - * - *
- * RecruitingNote represents a note/comment regarding the recruiting for a
- * candidate. For example, "This candidate is a potential match for a frontend
- * engineer at SF".
- * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} - */ -public final class RecruitingNote extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RecruitingNote) - RecruitingNoteOrBuilder { - private static final long serialVersionUID = 0L; - // Use RecruitingNote.newBuilder() to construct. - private RecruitingNote(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RecruitingNote() { - note_ = ""; - commenter_ = ""; - type_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RecruitingNote( - 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(); - - note_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - commenter_ = s; - break; - } - case 26: - { - 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 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - default: - { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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_RecruitingNote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.RecruitingNote.class, - com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); - } - - public static final int NOTE_FIELD_NUMBER = 1; - private volatile java.lang.Object note_; - /** - * - * - *
-   * Optional.
-   * The content of note.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string note = 1; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - 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(); - note_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The content of note.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string note = 1; - */ - public com.google.protobuf.ByteString getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMMENTER_FIELD_NUMBER = 2; - private volatile java.lang.Object commenter_; - /** - * - * - *
-   * Optional.
-   * The person who wrote the notes.
-   * Number of characters allowed is 100.
-   * 
- * - * string commenter = 2; - */ - public java.lang.String getCommenter() { - java.lang.Object ref = commenter_; - 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(); - commenter_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The person who wrote the notes.
-   * Number of characters allowed is 100.
-   * 
- * - * string commenter = 2; - */ - public com.google.protobuf.ByteString getCommenterBytes() { - java.lang.Object ref = commenter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - commenter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_DATE_FIELD_NUMBER = 3; - private com.google.type.Date createDate_; - /** - * - * - *
-   * Optional.
-   * The create date of the note.
-   * 
- * - * .google.type.Date create_date = 3; - */ - public boolean hasCreateDate() { - return createDate_ != null; - } - /** - * - * - *
-   * Optional.
-   * The create date of the note.
-   * 
- * - * .google.type.Date create_date = 3; - */ - public com.google.type.Date getCreateDate() { - return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; - } - /** - * - * - *
-   * Optional.
-   * The create date of the note.
-   * 
- * - * .google.type.Date create_date = 3; - */ - public com.google.type.DateOrBuilder getCreateDateOrBuilder() { - return getCreateDate(); - } - - public static final int TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object type_; - /** - * - * - *
-   * Optional.
-   * The note type.
-   * Number of characters allowed is 100.
-   * 
- * - * string type = 4; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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(); - type_ = s; - return s; - } - } - /** - * - * - *
-   * Optional.
-   * The note type.
-   * Number of characters allowed is 100.
-   * 
- * - * string type = 4; - */ - public com.google.protobuf.ByteString getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - type_ = 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 (!getNoteBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, note_); - } - if (!getCommenterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commenter_); - } - if (createDate_ != null) { - output.writeMessage(3, getCreateDate()); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNoteBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, note_); - } - if (!getCommenterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commenter_); - } - if (createDate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateDate()); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); - } - 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.RecruitingNote)) { - return super.equals(obj); - } - com.google.cloud.talent.v4beta1.RecruitingNote other = - (com.google.cloud.talent.v4beta1.RecruitingNote) obj; - - boolean result = true; - result = result && getNote().equals(other.getNote()); - result = result && getCommenter().equals(other.getCommenter()); - result = result && (hasCreateDate() == other.hasCreateDate()); - if (hasCreateDate()) { - result = result && getCreateDate().equals(other.getCreateDate()); - } - result = result && getType().equals(other.getType()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NOTE_FIELD_NUMBER; - hash = (53 * hash) + getNote().hashCode(); - hash = (37 * hash) + COMMENTER_FIELD_NUMBER; - hash = (53 * hash) + getCommenter().hashCode(); - if (hasCreateDate()) { - hash = (37 * hash) + CREATE_DATE_FIELD_NUMBER; - hash = (53 * hash) + getCreateDate().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.talent.v4beta1.RecruitingNote parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.RecruitingNote 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.RecruitingNote parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.RecruitingNote 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.RecruitingNote parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.talent.v4beta1.RecruitingNote 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.RecruitingNote parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.RecruitingNote 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.RecruitingNote parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.talent.v4beta1.RecruitingNote 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.RecruitingNote 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.RecruitingNote 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.RecruitingNote 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; - } - /** - * - * - *
-   * RecruitingNote represents a note/comment regarding the recruiting for a
-   * candidate. For example, "This candidate is a potential match for a frontend
-   * engineer at SF".
-   * 
- * - * Protobuf type {@code google.cloud.talent.v4beta1.RecruitingNote} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RecruitingNote) - com.google.cloud.talent.v4beta1.RecruitingNoteOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_RecruitingNote_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto - .internal_static_google_cloud_talent_v4beta1_RecruitingNote_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.talent.v4beta1.RecruitingNote.class, - com.google.cloud.talent.v4beta1.RecruitingNote.Builder.class); - } - - // Construct using com.google.cloud.talent.v4beta1.RecruitingNote.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(); - note_ = ""; - - commenter_ = ""; - - if (createDateBuilder_ == null) { - createDate_ = null; - } else { - createDate_ = null; - createDateBuilder_ = null; - } - type_ = ""; - - 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_RecruitingNote_descriptor; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstanceForType() { - return com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.RecruitingNote build() { - com.google.cloud.talent.v4beta1.RecruitingNote result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.talent.v4beta1.RecruitingNote buildPartial() { - com.google.cloud.talent.v4beta1.RecruitingNote result = - new com.google.cloud.talent.v4beta1.RecruitingNote(this); - result.note_ = note_; - result.commenter_ = commenter_; - if (createDateBuilder_ == null) { - result.createDate_ = createDate_; - } else { - result.createDate_ = createDateBuilder_.build(); - } - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.talent.v4beta1.RecruitingNote) { - return mergeFrom((com.google.cloud.talent.v4beta1.RecruitingNote) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.talent.v4beta1.RecruitingNote other) { - if (other == com.google.cloud.talent.v4beta1.RecruitingNote.getDefaultInstance()) return this; - if (!other.getNote().isEmpty()) { - note_ = other.note_; - onChanged(); - } - if (!other.getCommenter().isEmpty()) { - commenter_ = other.commenter_; - onChanged(); - } - if (other.hasCreateDate()) { - mergeCreateDate(other.getCreateDate()); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - 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.RecruitingNote parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.talent.v4beta1.RecruitingNote) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object note_ = ""; - /** - * - * - *
-     * Optional.
-     * The content of note.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string note = 1; - */ - public java.lang.String getNote() { - java.lang.Object ref = note_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - note_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The content of note.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string note = 1; - */ - public com.google.protobuf.ByteString getNoteBytes() { - java.lang.Object ref = note_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - note_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The content of note.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string note = 1; - */ - public Builder setNote(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - note_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The content of note.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string note = 1; - */ - public Builder clearNote() { - - note_ = getDefaultInstance().getNote(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The content of note.
-     * Number of characters allowed is 4,000.
-     * 
- * - * string note = 1; - */ - public Builder setNoteBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - note_ = value; - onChanged(); - return this; - } - - private java.lang.Object commenter_ = ""; - /** - * - * - *
-     * Optional.
-     * The person who wrote the notes.
-     * Number of characters allowed is 100.
-     * 
- * - * string commenter = 2; - */ - public java.lang.String getCommenter() { - java.lang.Object ref = commenter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - commenter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The person who wrote the notes.
-     * Number of characters allowed is 100.
-     * 
- * - * string commenter = 2; - */ - public com.google.protobuf.ByteString getCommenterBytes() { - java.lang.Object ref = commenter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - commenter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The person who wrote the notes.
-     * Number of characters allowed is 100.
-     * 
- * - * string commenter = 2; - */ - public Builder setCommenter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - commenter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The person who wrote the notes.
-     * Number of characters allowed is 100.
-     * 
- * - * string commenter = 2; - */ - public Builder clearCommenter() { - - commenter_ = getDefaultInstance().getCommenter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The person who wrote the notes.
-     * Number of characters allowed is 100.
-     * 
- * - * string commenter = 2; - */ - public Builder setCommenterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - commenter_ = value; - onChanged(); - return this; - } - - private com.google.type.Date createDate_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - createDateBuilder_; - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - public boolean hasCreateDate() { - return createDateBuilder_ != null || createDate_ != null; - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - public com.google.type.Date getCreateDate() { - if (createDateBuilder_ == null) { - return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; - } else { - return createDateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - 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; - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - public Builder setCreateDate(com.google.type.Date.Builder builderForValue) { - if (createDateBuilder_ == null) { - createDate_ = builderForValue.build(); - onChanged(); - } else { - createDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - 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; - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - public Builder clearCreateDate() { - if (createDateBuilder_ == null) { - createDate_ = null; - onChanged(); - } else { - createDate_ = null; - createDateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - public com.google.type.Date.Builder getCreateDateBuilder() { - - onChanged(); - return getCreateDateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - public com.google.type.DateOrBuilder getCreateDateOrBuilder() { - if (createDateBuilder_ != null) { - return createDateBuilder_.getMessageOrBuilder(); - } else { - return createDate_ == null ? com.google.type.Date.getDefaultInstance() : createDate_; - } - } - /** - * - * - *
-     * Optional.
-     * The create date of the note.
-     * 
- * - * .google.type.Date create_date = 3; - */ - 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 java.lang.Object type_ = ""; - /** - * - * - *
-     * Optional.
-     * The note type.
-     * Number of characters allowed is 100.
-     * 
- * - * string type = 4; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The note type.
-     * Number of characters allowed is 100.
-     * 
- * - * string type = 4; - */ - public com.google.protobuf.ByteString getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optional.
-     * The note type.
-     * Number of characters allowed is 100.
-     * 
- * - * string type = 4; - */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The note type.
-     * Number of characters allowed is 100.
-     * 
- * - * string type = 4; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional.
-     * The note type.
-     * Number of characters allowed is 100.
-     * 
- * - * string type = 4; - */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(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.RecruitingNote) - } - - // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.RecruitingNote) - private static final com.google.cloud.talent.v4beta1.RecruitingNote DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.RecruitingNote(); - } - - public static com.google.cloud.talent.v4beta1.RecruitingNote getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecruitingNote parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecruitingNote(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.RecruitingNote getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java deleted file mode 100644 index 02ea20bb9824..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RecruitingNoteOrBuilder.java +++ /dev/null @@ -1,119 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto - -package com.google.cloud.talent.v4beta1; - -public interface RecruitingNoteOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.RecruitingNote) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional.
-   * The content of note.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string note = 1; - */ - java.lang.String getNote(); - /** - * - * - *
-   * Optional.
-   * The content of note.
-   * Number of characters allowed is 4,000.
-   * 
- * - * string note = 1; - */ - com.google.protobuf.ByteString getNoteBytes(); - - /** - * - * - *
-   * Optional.
-   * The person who wrote the notes.
-   * Number of characters allowed is 100.
-   * 
- * - * string commenter = 2; - */ - java.lang.String getCommenter(); - /** - * - * - *
-   * Optional.
-   * The person who wrote the notes.
-   * Number of characters allowed is 100.
-   * 
- * - * string commenter = 2; - */ - com.google.protobuf.ByteString getCommenterBytes(); - - /** - * - * - *
-   * Optional.
-   * The create date of the note.
-   * 
- * - * .google.type.Date create_date = 3; - */ - boolean hasCreateDate(); - /** - * - * - *
-   * Optional.
-   * The create date of the note.
-   * 
- * - * .google.type.Date create_date = 3; - */ - com.google.type.Date getCreateDate(); - /** - * - * - *
-   * Optional.
-   * The create date of the note.
-   * 
- * - * .google.type.Date create_date = 3; - */ - com.google.type.DateOrBuilder getCreateDateOrBuilder(); - - /** - * - * - *
-   * Optional.
-   * The note type.
-   * Number of characters allowed is 100.
-   * 
- * - * string type = 4; - */ - java.lang.String getType(); - /** - * - * - *
-   * Optional.
-   * The note type.
-   * Number of characters allowed is 100.
-   * 
- * - * string type = 4; - */ - com.google.protobuf.ByteString getTypeBytes(); -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java deleted file mode 100644 index 754986a7458e..000000000000 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceProto.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/resume_service.proto - -package com.google.cloud.talent.v4beta1; - -public final class ResumeServiceProto { - private ResumeServiceProto() {} - - 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_ParseResumeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/talent/v4beta1/resume_ser" - + "vice.proto\022\033google.cloud.talent.v4beta1\032" - + "\034google/api/annotations.proto\032)google/cl" - + "oud/talent/v4beta1/profile.proto\"\242\001\n\022Par" - + "seResumeRequest\022\016\n\006parent\030\001 \001(\t\022\016\n\006resum" - + "e\030\002 \001(\014\022\023\n\013region_code\030\003 \001(\t\022\025\n\rlanguage" - + "_code\030\004 \001(\t\022@\n\007options\030\005 \001(\0132/.google.cl" - + "oud.talent.v4beta1.ParseResumeOptions\"M\n" - + "\022ParseResumeOptions\022\022\n\nenable_ocr\030\001 \001(\010\022" - + "#\n\033enable_full_skill_detection\030\002 \001(\010\"^\n\023" - + "ParseResumeResponse\0225\n\007profile\030\001 \001(\0132$.g" - + "oogle.cloud.talent.v4beta1.Profile\022\020\n\010ra" - + "w_text\030\002 \001(\t2\271\001\n\rResumeService\022\247\001\n\013Parse" - + "Resume\022/.google.cloud.talent.v4beta1.Par" - + "seResumeRequest\0320.google.cloud.talent.v4" - + "beta1.ParseResumeResponse\"5\202\323\344\223\002/\"*/v4be" - + "ta1/{parent=projects/*}/resumes:parse:\001*" - + "B\200\001\n\037com.google.cloud.talent.v4beta1B\022Re" - + "sumeServiceProtoP\001ZAgoogle.golang.org/ge" - + "nproto/googleapis/cloud/talent/v4beta1;t" - + "alent\242\002\003CTSb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(), - }, - assigner); - internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ParseResumeRequest_descriptor, - new java.lang.String[] { - "Parent", "Resume", "RegionCode", "LanguageCode", "Options", - }); - internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ParseResumeOptions_descriptor, - new java.lang.String[] { - "EnableOcr", "EnableFullSkillDetection", - }); - internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_talent_v4beta1_ParseResumeResponse_descriptor, - new java.lang.String[] { - "Profile", "RawText", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.cloud.talent.v4beta1.ProfileResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java index ebca35da3298..5c71acbb3c31 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java @@ -1129,8 +1129,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (importanceLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel - .IMPORTANCE_LEVEL_UNSPECIFIED - .getNumber()) { + .IMPORTANCE_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(1, importanceLevel_); } if (!getRankingExpressionBytes().isEmpty()) { @@ -1147,8 +1146,7 @@ public int getSerializedSize() { size = 0; if (importanceLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel - .IMPORTANCE_LEVEL_UNSPECIFIED - .getNumber()) { + .IMPORTANCE_LEVEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importanceLevel_); } if (!getRankingExpressionBytes().isEmpty()) { @@ -1803,9 +1801,11 @@ public com.google.protobuf.Parser getParserForType() { * *
    * Required.
-   * The resource name of the project to search within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -1826,9 +1826,11 @@ public java.lang.String getParent() { * *
    * Required.
-   * The resource name of the project to search within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -2980,8 +2982,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (diversificationLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel - .DIVERSIFICATION_LEVEL_UNSPECIFIED - .getNumber()) { + .DIVERSIFICATION_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(13, diversificationLevel_); } if (customRankingInfo_ != null) { @@ -3039,8 +3040,7 @@ public int getSerializedSize() { } if (diversificationLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel - .DIVERSIFICATION_LEVEL_UNSPECIFIED - .getNumber()) { + .DIVERSIFICATION_LEVEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, diversificationLevel_); } if (customRankingInfo_ != null) { @@ -3558,9 +3558,11 @@ public Builder mergeFrom( * *
      * Required.
-     * The resource name of the project to search within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -3581,9 +3583,11 @@ public java.lang.String getParent() { * *
      * Required.
-     * The resource name of the project to search within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -3604,9 +3608,11 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required.
-     * The resource name of the project to search within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -3625,9 +3631,11 @@ public Builder setParent(java.lang.String value) { * *
      * Required.
-     * The resource name of the project to search within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; @@ -3643,9 +3651,11 @@ public Builder clearParent() { * *
      * Required.
-     * The resource name of the project to search within.
-     * The format is "projects/{project_id}", for example,
-     * "projects/api-test-project".
+     * The resource name of the tenant to search within.
+     * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+     * "projects/api-test-project/tenant/foo".
+     * Tenant id is optional and the default tenant is used if unspecified, for
+     * example, "projects/api-test-project".
      * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java index b87b6f341593..4fd161ee83f7 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java @@ -13,9 +13,11 @@ public interface SearchJobsRequestOrBuilder * *
    * Required.
-   * The resource name of the project to search within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; @@ -26,9 +28,11 @@ public interface SearchJobsRequestOrBuilder * *
    * Required.
-   * The resource name of the project to search within.
-   * The format is "projects/{project_id}", for example,
-   * "projects/api-test-project".
+   * The resource name of the tenant to search within.
+   * The format is "projects/{project_id}/tenants/{tenant_id}", for example,
+   * "projects/api-test-project/tenant/foo".
+   * Tenant id is optional and the default tenant is used if unspecified, for
+   * example, "projects/api-test-project".
    * 
* * string parent = 1; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java index f61d28144193..0c7a6360a77e 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java @@ -584,7 +584,7 @@ public boolean getCaseSensitiveSort() { * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -592,10 +592,10 @@ public boolean getCaseSensitiveSort() { * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -676,7 +676,7 @@ public java.util.List getHistogr * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -684,10 +684,10 @@ public java.util.List getHistogr * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -769,7 +769,7 @@ public java.util.List getHistogr * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -777,10 +777,10 @@ public java.util.List getHistogr * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -861,7 +861,7 @@ public int getHistogramQueriesCount() { * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -869,10 +869,10 @@ public int getHistogramQueriesCount() { * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -953,7 +953,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -961,10 +961,10 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -2647,7 +2647,7 @@ private void ensureHistogramQueriesIsMutable() { * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -2655,10 +2655,10 @@ private void ensureHistogramQueriesIsMutable() { * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -2744,7 +2744,7 @@ private void ensureHistogramQueriesIsMutable() { * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -2752,10 +2752,10 @@ private void ensureHistogramQueriesIsMutable() { * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -2840,7 +2840,7 @@ public int getHistogramQueriesCount() { * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -2848,10 +2848,10 @@ public int getHistogramQueriesCount() { * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -2936,7 +2936,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -2944,10 +2944,10 @@ public com.google.cloud.talent.v4beta1.HistogramQuery getHistogramQueries(int in * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3039,7 +3039,7 @@ public Builder setHistogramQueries( * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3047,10 +3047,10 @@ public Builder setHistogramQueries( * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3139,7 +3139,7 @@ public Builder setHistogramQueries( * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3147,10 +3147,10 @@ public Builder setHistogramQueries( * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3241,7 +3241,7 @@ public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuer * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3249,10 +3249,10 @@ public Builder addHistogramQueries(com.google.cloud.talent.v4beta1.HistogramQuer * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3344,7 +3344,7 @@ public Builder addHistogramQueries( * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3352,10 +3352,10 @@ public Builder addHistogramQueries( * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3444,7 +3444,7 @@ public Builder addHistogramQueries( * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3452,10 +3452,10 @@ public Builder addHistogramQueries( * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3544,7 +3544,7 @@ public Builder addHistogramQueries( * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3552,10 +3552,10 @@ public Builder addHistogramQueries( * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3644,7 +3644,7 @@ public Builder addAllHistogramQueries( * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3652,10 +3652,10 @@ public Builder addAllHistogramQueries( * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3743,7 +3743,7 @@ public Builder clearHistogramQueries() { * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3751,10 +3751,10 @@ public Builder clearHistogramQueries() { * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3842,7 +3842,7 @@ public Builder removeHistogramQueries(int index) { * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3850,10 +3850,10 @@ public Builder removeHistogramQueries(int index) { * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -3935,7 +3935,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQuerie * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -3943,10 +3943,10 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder getHistogramQuerie * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -4032,7 +4032,7 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -4040,10 +4040,10 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -4129,7 +4129,7 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -4137,10 +4137,10 @@ public com.google.cloud.talent.v4beta1.HistogramQueryOrBuilder getHistogramQueri * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -4222,7 +4222,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -4230,10 +4230,10 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -4316,7 +4316,7 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -4324,10 +4324,10 @@ public com.google.cloud.talent.v4beta1.HistogramQuery.Builder addHistogramQuerie * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java index 4a6216e74b90..8f9d3f291f32 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java @@ -308,7 +308,7 @@ public interface SearchProfilesRequestOrBuilder * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -316,10 +316,10 @@ public interface SearchProfilesRequestOrBuilder * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -398,7 +398,7 @@ public interface SearchProfilesRequestOrBuilder * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -406,10 +406,10 @@ public interface SearchProfilesRequestOrBuilder * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -488,7 +488,7 @@ public interface SearchProfilesRequestOrBuilder * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -496,10 +496,10 @@ public interface SearchProfilesRequestOrBuilder * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -578,7 +578,7 @@ public interface SearchProfilesRequestOrBuilder * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -586,10 +586,10 @@ public interface SearchProfilesRequestOrBuilder * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. @@ -669,7 +669,7 @@ public interface SearchProfilesRequestOrBuilder * * institution: The school name. For example, "MIT", * "University of California, Berkeley" * * degree: Highest education degree in ISCED code. Each value in degree - * covers specific level of education, without any expansion to upper nor + * 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). @@ -677,10 +677,10 @@ public interface SearchProfilesRequestOrBuilder * See * [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] * for more details. - * * application_outcome_reason: The application outcome reason specifies the - * outcome reasons of job application. + * * application_outcome_notes: The application outcome reason specifies the + * reasons behind the outcome of the job application. * See - * [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + * [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] * for more details. * * application_last_stage: The application last stage specifies the last * stage of job application. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java index bd92391b43db..d4c9c53d4e0a 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto +// source: google/cloud/talent/v4beta1/common.proto package com.google.cloud.talent.v4beta1; @@ -115,242 +115,20 @@ private Skill( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto + 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.ProfileResourceProto + 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); } - /** - * - * - *
-   * Enum that represents the skill proficiency level.
-   * 
- * - * Protobuf enum {@code google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel} - */ - public enum SkillProficiencyLevel implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - */ - SKILL_PROFICIENCY_LEVEL_UNSPECIFIED(0), - /** - * - * - *
-     * 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; - /** - * - * - *
-     * 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; - } - - /** @deprecated Use {@link #forNumber(int)} instead. */ - @java.lang.Deprecated - public static SkillProficiencyLevel valueOf(int value) { - return forNumber(value); - } - - public static SkillProficiencyLevel forNumber(int value) { - switch (value) { - case 0: - return SKILL_PROFICIENCY_LEVEL_UNSPECIFIED; - 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() { - 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.Skill.getDescriptor().getEnumTypes().get(0); - } - - 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.Skill.SkillProficiencyLevel) - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object displayName_; /** @@ -453,7 +231,7 @@ public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ public int getLevelValue() { return level_; @@ -467,14 +245,14 @@ public int getLevelValue() { * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ - public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + public com.google.cloud.talent.v4beta1.SkillProficiencyLevel getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = - com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + com.google.cloud.talent.v4beta1.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.SkillProficiencyLevel.valueOf(level_); return result == null - ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + ? com.google.cloud.talent.v4beta1.SkillProficiencyLevel.UNRECOGNIZED : result; } @@ -597,8 +375,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, getLastUsedDate()); } if (level_ - != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel - .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + != com.google.cloud.talent.v4beta1.SkillProficiencyLevel.SKILL_PROFICIENCY_LEVEL_UNSPECIFIED .getNumber()) { output.writeEnum(3, level_); } @@ -624,8 +401,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLastUsedDate()); } if (level_ - != com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel - .SKILL_PROFICIENCY_LEVEL_UNSPECIFIED + != com.google.cloud.talent.v4beta1.SkillProficiencyLevel.SKILL_PROFICIENCY_LEVEL_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, level_); } @@ -795,14 +571,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@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.ProfileResourceProto + 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.ProfileResourceProto + return com.google.cloud.talent.v4beta1.CommonProto .internal_static_google_cloud_talent_v4beta1_Skill_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.talent.v4beta1.Skill.class, @@ -845,7 +621,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.talent.v4beta1.ProfileResourceProto + return com.google.cloud.talent.v4beta1.CommonProto .internal_static_google_cloud_talent_v4beta1_Skill_descriptor; } @@ -1269,7 +1045,7 @@ public com.google.type.DateOrBuilder getLastUsedDateOrBuilder() { * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ public int getLevelValue() { return level_; @@ -1283,7 +1059,7 @@ public int getLevelValue() { * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ public Builder setLevelValue(int value) { level_ = value; @@ -1299,14 +1075,14 @@ public Builder setLevelValue(int value) { * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ - public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { + public com.google.cloud.talent.v4beta1.SkillProficiencyLevel getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel result = - com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.valueOf(level_); + com.google.cloud.talent.v4beta1.SkillProficiencyLevel result = + com.google.cloud.talent.v4beta1.SkillProficiencyLevel.valueOf(level_); return result == null - ? com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel.UNRECOGNIZED + ? com.google.cloud.talent.v4beta1.SkillProficiencyLevel.UNRECOGNIZED : result; } /** @@ -1318,9 +1094,9 @@ public com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel() { * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ - public Builder setLevel(com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel value) { + public Builder setLevel(com.google.cloud.talent.v4beta1.SkillProficiencyLevel value) { if (value == null) { throw new NullPointerException(); } @@ -1338,7 +1114,7 @@ public Builder setLevel(com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLe * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ public Builder clearLevel() { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java index c3be9c393e3c..ac9847dc7c97 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/talent/v4beta1/profile.proto +// source: google/cloud/talent/v4beta1/common.proto package com.google.cloud.talent.v4beta1; @@ -78,7 +78,7 @@ public interface SkillOrBuilder * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ int getLevelValue(); /** @@ -90,9 +90,9 @@ public interface SkillOrBuilder * this skill. * * - * .google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel level = 3; + * .google.cloud.talent.v4beta1.SkillProficiencyLevel level = 3; */ - com.google.cloud.talent.v4beta1.Skill.SkillProficiencyLevel getLevel(); + com.google.cloud.talent.v4beta1.SkillProficiencyLevel getLevel(); /** * diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java new file mode 100644 index 000000000000..00b3e71a1371 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java @@ -0,0 +1,226 @@ +// 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), + /** + * + * + *
+   * 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; + /** + * + * + *
+   * 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; + } + + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static SkillProficiencyLevel valueOf(int value) { + return forNumber(value); + } + + public static SkillProficiencyLevel forNumber(int value) { + switch (value) { + case 0: + return SKILL_PROFICIENCY_LEVEL_UNSPECIFIED; + 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() { + 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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java index 30e378a8e100..a92117b302e7 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java @@ -15,7 +15,6 @@ 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; @@ -24,7 +23,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS @javax.annotation.Generated("by GAPIC protoc plugin") -public class TenantName implements ResourceName { +public class TenantName extends TenantOrProjectName { private static final PathTemplate PATH_TEMPLATE = PathTemplate.createWithoutUrlEncoding("projects/{project}/tenants/{tenant}"); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectName.java new file mode 100644 index 000000000000..0230cf7f7aca --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class TenantOrProjectName implements ResourceName { + protected TenantOrProjectName() {} +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectNames.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectNames.java new file mode 100644 index 000000000000..b3c551a8b2f4 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrProjectNames.java @@ -0,0 +1,31 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class TenantOrProjectNames { + private TenantOrProjectNames() {} + + public static TenantOrProjectName parse(String resourceNameString) { + if (TenantName.isParsableFrom(resourceNameString)) { + return TenantName.parse(resourceNameString); + } + if (ProjectName.isParsableFrom(resourceNameString)) { + return ProjectName.parse(resourceNameString); + } + return UntypedTenantOrProjectName.parse(resourceNameString); + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java index b6eccef24ff6..d4008b00fba7 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java @@ -118,7 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Begin of the period.
+   * Begin of the period (inclusive).
    * 
* * .google.protobuf.Timestamp start_time = 1; @@ -130,7 +130,7 @@ public boolean hasStartTime() { * * *
-   * Begin of the period.
+   * Begin of the period (inclusive).
    * 
* * .google.protobuf.Timestamp start_time = 1; @@ -142,7 +142,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-   * Begin of the period.
+   * Begin of the period (inclusive).
    * 
* * .google.protobuf.Timestamp start_time = 1; @@ -157,7 +157,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-   * End of the period.
+   * End of the period (exclusive).
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -169,7 +169,7 @@ public boolean hasEndTime() { * * *
-   * End of the period.
+   * End of the period (exclusive).
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -181,7 +181,7 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-   * End of the period.
+   * End of the period (exclusive).
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -557,7 +557,7 @@ public Builder mergeFrom( * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -569,7 +569,7 @@ public boolean hasStartTime() { * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -585,7 +585,7 @@ public com.google.protobuf.Timestamp getStartTime() { * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -607,7 +607,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -626,7 +626,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -650,7 +650,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -670,7 +670,7 @@ public Builder clearStartTime() { * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -684,7 +684,7 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -700,7 +700,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * Begin of the period.
+     * Begin of the period (inclusive).
      * 
* * .google.protobuf.Timestamp start_time = 1; @@ -732,7 +732,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -744,7 +744,7 @@ public boolean hasEndTime() { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -760,7 +760,7 @@ public com.google.protobuf.Timestamp getEndTime() { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -782,7 +782,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -801,7 +801,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -825,7 +825,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -845,7 +845,7 @@ public Builder clearEndTime() { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -859,7 +859,7 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; @@ -875,7 +875,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * * *
-     * End of the period.
+     * End of the period (exclusive).
      * 
* * .google.protobuf.Timestamp end_time = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java index cbce38979c1d..e2ba1f0f559a 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java @@ -12,7 +12,7 @@ public interface TimestampRangeOrBuilder * * *
-   * Begin of the period.
+   * Begin of the period (inclusive).
    * 
* * .google.protobuf.Timestamp start_time = 1; @@ -22,7 +22,7 @@ public interface TimestampRangeOrBuilder * * *
-   * Begin of the period.
+   * Begin of the period (inclusive).
    * 
* * .google.protobuf.Timestamp start_time = 1; @@ -32,7 +32,7 @@ public interface TimestampRangeOrBuilder * * *
-   * Begin of the period.
+   * Begin of the period (inclusive).
    * 
* * .google.protobuf.Timestamp start_time = 1; @@ -43,7 +43,7 @@ public interface TimestampRangeOrBuilder * * *
-   * End of the period.
+   * End of the period (exclusive).
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -53,7 +53,7 @@ public interface TimestampRangeOrBuilder * * *
-   * End of the period.
+   * End of the period (exclusive).
    * 
* * .google.protobuf.Timestamp end_time = 2; @@ -63,7 +63,7 @@ public interface TimestampRangeOrBuilder * * *
-   * End of the period.
+   * End of the period (exclusive).
    * 
* * .google.protobuf.Timestamp end_time = 2; diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedCompanyName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedCompanyName.java new file mode 100644 index 000000000000..a1179d6b831b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedCompanyName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedCompanyName extends CompanyName { + + private final String rawValue; + private Map valueMap; + + private UntypedCompanyName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedCompanyName from(ResourceName resourceName) { + return new UntypedCompanyName(resourceName.toString()); + } + + public static UntypedCompanyName parse(String formattedString) { + return new UntypedCompanyName(formattedString); + } + + 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 (UntypedCompanyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedCompanyName) { + UntypedCompanyName that = (UntypedCompanyName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedJobName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedJobName.java new file mode 100644 index 000000000000..b08ba565f323 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedJobName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedJobName extends JobName { + + private final String rawValue; + private Map valueMap; + + private UntypedJobName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedJobName from(ResourceName resourceName) { + return new UntypedJobName(resourceName.toString()); + } + + public static UntypedJobName parse(String formattedString) { + return new UntypedJobName(formattedString); + } + + 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 (UntypedJobName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedJobName) { + UntypedJobName that = (UntypedJobName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedTenantOrProjectName.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedTenantOrProjectName.java new file mode 100644 index 000000000000..6fb07836fc59 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UntypedTenantOrProjectName.java @@ -0,0 +1,99 @@ +/* + * Copyright 2018 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. + */ + +package com.google.cloud.talent.v4beta1; + +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedTenantOrProjectName extends TenantOrProjectName { + + private final String rawValue; + private Map valueMap; + + private UntypedTenantOrProjectName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedTenantOrProjectName from(ResourceName resourceName) { + return new UntypedTenantOrProjectName(resourceName.toString()); + } + + public static UntypedTenantOrProjectName parse(String formattedString) { + return new UntypedTenantOrProjectName(formattedString); + } + + 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 (UntypedTenantOrProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** Return a map with a single value rawValue keyed on an empty String "". */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** Return the initial rawValue if @param fieldName is an empty String, else return null. */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedTenantOrProjectName) { + UntypedTenantOrProjectName that = (UntypedTenantOrProjectName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java new file mode 100644 index 000000000000..3e395e09881c --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java @@ -0,0 +1,1086 @@ +// 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 + 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(); + } + 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: + { + 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 (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.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; + */ + 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; + */ + 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; + */ + 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_; + /** + * + * + *
+   * Optional but 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 boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional but 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 getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional but 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() { + 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; + + boolean result = true; + result = result && (hasApplication() == other.hasApplication()); + if (hasApplication()) { + result = result && getApplication().equals(other.getApplication()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask().equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @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 (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) 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_ = null; + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional but 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 boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional but 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 getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional but 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; + } + /** + * + * + *
+     * Optional but 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; + } + /** + * + * + *
+     * Optional but 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; + } + /** + * + * + *
+     * Optional but 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; + } + /** + * + * + *
+     * Optional but 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(); + } + /** + * + * + *
+     * Optional but 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_; + } + } + /** + * + * + *
+     * Optional but 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.setUnknownFieldsProto3(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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java new file mode 100644 index 000000000000..aef7908fbc87 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java @@ -0,0 +1,102 @@ +// 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; + */ + boolean hasApplication(); + /** + * + * + *
+   * Required.
+   * The application resource to replace the current resource in the system.
+   * 
+ * + * .google.cloud.talent.v4beta1.Application application = 1; + */ + 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; + */ + com.google.cloud.talent.v4beta1.ApplicationOrBuilder getApplicationOrBuilder(); + + /** + * + * + *
+   * Optional but 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; + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional but 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.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional but 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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java index 7275224ce203..2391d8e99f63 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java @@ -187,7 +187,6 @@ public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -225,7 +224,6 @@ public boolean hasUpdateMask() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -263,7 +261,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -857,7 +854,6 @@ public com.google.cloud.talent.v4beta1.ProfileOrBuilder getProfileOrBuilder() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -895,7 +891,6 @@ public boolean hasUpdateMask() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -939,7 +934,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -987,7 +981,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -1032,7 +1025,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -1082,7 +1074,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -1128,7 +1119,6 @@ public Builder clearUpdateMask() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -1168,7 +1158,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -1212,7 +1201,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java index 90c17d7b42f1..6397794642d1 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java @@ -70,7 +70,6 @@ public interface UpdateProfileRequestOrBuilder * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -106,7 +105,6 @@ public interface UpdateProfileRequestOrBuilder * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * @@ -142,7 +140,6 @@ public interface UpdateProfileRequestOrBuilder * * publications * * patents * * certifications - * * jobApplications * * recruitingNotes * * customAttributes * diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto new file mode 100644 index 000000000000..6c594df93687 --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application.proto @@ -0,0 +1,198 @@ +// Copyright 2019 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/cloud/talent/v4beta1/common.proto"; +import "google/cloud/talent/v4beta1/job.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 { + // 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/api-test-project/tenants/foo/profiles/bar/applications/baz". + string name = 1; + + // Required. + // + // Client side application identifier, used to uniquely identify the + // recruiter. + // + // The maximum number of allowed characters is 255. + string external_id = 31; + + // Required. + // + // Resource name of the candidate of this application. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", + // for example, "projects/api-test-project/tenants/foo/profiles/bar". + string profile = 2; + + // One of either a job or a company is required. + // + // Resource name of the job which the candidate applied for. + // + // The format is + // "projects/{project_id}/jobs/{job_id}", + // for example, "projects/api-test-project/jobs/bar". + string job = 4; + + // One of either a job or a company is required. + // + // Resource name of the company which the candidate applied for. + // + // The format is + // "projects/{project_id}/companies/{company_id}", + // for example, "projects/api-test-project/companies/foo". + string company = 5; + + // Optional. + // + // 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; + + // Optional. + // + // The application state. + ApplicationState state = 13; + + // Optional. + // + // All interviews (screen, onsite, etc) conducted as part of this application + // (includes details such as user conducting the interview, timestamp, + // feedback, etc). + repeated Interview interviews = 16; + + // Optional. + // + // 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; + + // Optional. + // + // The last update timestamp. + google.protobuf.Timestamp update_time = 20; + + // Optional. + // + // 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; + + // Optional. + // + // 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; + + // 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; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto new file mode 100644 index 000000000000..3bd91bf2ac2b --- /dev/null +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/application_service.proto @@ -0,0 +1,176 @@ +// Copyright 2019 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/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 { + // Creates a new application entity. + rpc CreateApplication(CreateApplicationRequest) returns (Application) { + option (google.api.http) = { + post: "/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications" + body: "*" + }; + } + + // Retrieves specified application. + rpc GetApplication(GetApplicationRequest) returns (Application) { + option (google.api.http) = { + get: "/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}" + }; + } + + // Updates specified application. + rpc UpdateApplication(UpdateApplicationRequest) returns (Application) { + option (google.api.http) = { + patch: "/v4beta1/{application.name=projects/*/tenants/*/profiles/*/applications/*}" + body: "*" + }; + } + + // Deletes specified application. + rpc DeleteApplication(DeleteApplicationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v4beta1/{name=projects/*/tenants/*/profiles/*/applications/*}" + }; + } + + // Lists all applications associated with the profile. + rpc ListApplications(ListApplicationsRequest) + returns (ListApplicationsResponse) { + option (google.api.http) = { + get: "/v4beta1/{parent=projects/*/tenants/*/profiles/*}/applications" + }; + } +} + +// 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/test-project/tenants/test-tenant/profiles/test-profile". + string parent = 1; + + // Required. + // + // The application to be created. + Application application = 2; +} + +// 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application". + string name = 1; +} + +// Request for updating a specified application. +message UpdateApplicationRequest { + // Required. + // + // The application resource to replace the current resource in the system. + Application application = 1; + + // Optional but 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application". + string name = 1; +} + +// 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/test-project/tenants/test-tenant/profiles/test-profile". + string parent = 1; + + // Optional. + // + // The starting indicator from which to return results. + string page_token = 2; + + // Optional. + // + // 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; +} + +// Output only. +// +// 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/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto index acba0e76d1fa..80a44513e14d 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/common.proto @@ -20,9 +20,12 @@ package google.cloud.talent.v4beta1; import "google/api/annotations.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; +import "google/type/date.proto"; +import "google/type/dayofweek.proto"; import "google/type/latlng.proto"; import "google/type/money.proto"; import "google/type/postal_address.proto"; +import "google/type/timeofday.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -32,13 +35,80 @@ option objc_class_prefix = "CTS"; // Message representing a period of time between two timestamps. message TimestampRange { - // Begin of the period. + // Begin of the period (inclusive). google.protobuf.Timestamp start_time = 1; - // End of the period. + // End of the period (exclusive). google.protobuf.Timestamp end_time = 2; } +// Output only. +// +// 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 + // [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of + // [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of + // [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 [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. @@ -438,77 +508,6 @@ enum CommuteMethod { // Commute time is calculated based on biking time. CYCLING = 4; - - // Commute time is calculated based on public transit that is wheelchair - // accessible. - TRANSIT_ACCESSIBLE = 5; -} - -// Output only. -// -// 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 - // [PostalAddress][]. For example, "Downtown, Atlanta, GA, USA" has a type of - // [LocationType#NEIGHBORHOOD][], and "Kansas City, KS, USA" has a type of - // [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 [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; } // Input only. @@ -902,3 +901,152 @@ message CompensationInfo { // for explanation on compensation annualization. CompensationRange annualized_total_compensation_range = 3; } + +// Resource that represents a license or certification. +message Certification { + // Optional. + // + // Name of license or certification. + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // Acquisition date or effective date of license or certification. + google.type.Date acquire_date = 2; + + // Optional. + // + // Expiration date of license of certification. + google.type.Date expire_date = 3; + + // Optional. + // + // Authority of license, such as government. + // + // Number of characters allowed is 100. + string authority = 4; + + // Optional. + // + // 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 { + // Optional. + // + // Skill display name. + // + // For example, "Java", "Python". + // + // Number of characters allowed is 100. + string display_name = 1; + + // Optional. + // + // The last time this skill was used. + google.type.Date last_used_date = 2; + + // Optional. + // + // Skill proficiency level which indicates how proficient the candidate is at + // this skill. + SkillProficiencyLevel level = 3; + + // Optional. + // + // 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; +} + +// Details of an interview. +message Interview { + // Optional. + // + // The rating on this interview. + Rating rating = 6; + + // Required. + // + // The overall decision resulting from this interview (positive, negative, + // nuetral). + Outcome outcome = 7; +} + +// 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; +} + +// Enum that represents the skill proficiency level. +enum SkillProficiencyLevel { + // Default value. + SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; + + // 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; +} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto index e6773b08f216..9228a9246269 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company.proto @@ -42,8 +42,12 @@ message Company { // The resource name for a company. This is generated by the service when a // company is created. // - // The format is "projects/{project_id}/companies/{company_id}", for example, - // "projects/api-test-project/companies/foo". + // The format is + // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + // example, "projects/api-test-project/tenants/foo/companies/bar". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/companies/bar". string name = 1; // Required. @@ -113,11 +117,11 @@ message Company { // // A list of keys of filterable // [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes], - // whose corresponding `string_values` are used in keyword search. Jobs with + // whose corresponding `string_values` are used in keyword searches. Jobs with // `string_values` under these specified field keys are returned if any - // of the values matches the search keyword. Custom field values with - // parenthesis, brackets and special symbols won't be properly searchable, - // and those keyword queries need to be surrounded by quotes. + // of the values match the search keyword. Custom field values with + // parenthesis, brackets and special symbols are not searchable as-is, + // and those keyword queries must be surrounded by quotes. repeated string keyword_searchable_job_custom_attributes = 11; // Output only. Derived details about the company. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto index 74a01847b14c..010d253997b0 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/company_service.proto @@ -34,23 +34,32 @@ service CompanyService { // Creates a new company entity. rpc CreateCompany(CreateCompanyRequest) returns (Company) { option (google.api.http) = { - post: "/v4beta1/{parent=projects/*}/companies" + post: "/v4beta1/{parent=projects/*/tenants/*}/companies" body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/companies" + body: "*" + } }; } // Retrieves specified company. rpc GetCompany(GetCompanyRequest) returns (Company) { option (google.api.http) = { - get: "/v4beta1/{name=projects/*/companies/*}" + get: "/v4beta1/{name=projects/*/tenants/*/companies/*}" + additional_bindings { get: "/v4beta1/{name=projects/*/companies/*}" } }; } // Updates specified company. rpc UpdateCompany(UpdateCompanyRequest) returns (Company) { option (google.api.http) = { - patch: "/v4beta1/{company.name=projects/*/companies/*}" + patch: "/v4beta1/{company.name=projects/*/tenants/*/companies/*}" body: "*" + additional_bindings { + patch: "/v4beta1/{company.name=projects/*/companies/*}" + body: "*" + } }; } @@ -58,14 +67,16 @@ service CompanyService { // Prerequisite: The company has no jobs associated with it. rpc DeleteCompany(DeleteCompanyRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v4beta1/{name=projects/*/companies/*}" + delete: "/v4beta1/{name=projects/*/tenants/*/companies/*}" + additional_bindings { delete: "/v4beta1/{name=projects/*/companies/*}" } }; } // Lists all companies associated with the project. rpc ListCompanies(ListCompaniesRequest) returns (ListCompaniesResponse) { option (google.api.http) = { - get: "/v4beta1/{parent=projects/*}/companies" + get: "/v4beta1/{parent=projects/*/tenants/*}/companies" + additional_bindings { get: "/v4beta1/{parent=projects/*}/companies" } }; } } @@ -74,10 +85,13 @@ service CompanyService { message CreateCompanyRequest { // Required. // - // Resource name of the project under which the company is created. + // Resource name of the tenant under which the company is created. // - // The format is "projects/{project_id}", for example, - // "projects/api-test-project". + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". + // + // Tenant id is optional and a default tenant is created if unspecified, for + // example, "projects/api-test-project". string parent = 1; // Required. @@ -92,8 +106,12 @@ message GetCompanyRequest { // // The resource name of the company to be retrieved. // - // The format is "projects/{project_id}/companies/{company_id}", for example, - // "projects/api-test-project/companies/foo". + // The format is + // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + // example, "projects/api-test-project/tenants/foo/companies/bar". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/companies/bar". string name = 1; } @@ -125,8 +143,12 @@ message DeleteCompanyRequest { // // The resource name of the company to be deleted. // - // The format is "projects/{project_id}/companies/{company_id}", for example, - // "projects/api-test-project/companies/foo". + // The format is + // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + // example, "projects/api-test-project/tenants/foo/companies/bar". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/companies/bar". string name = 1; } @@ -134,10 +156,13 @@ message DeleteCompanyRequest { message ListCompaniesRequest { // Required. // - // Resource name of the project under which the company is created. + // Resource name of the tenant under which the company is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". // - // The format is "projects/{project_id}", for example, - // "projects/api-test-project". + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project". string parent = 1; // Optional. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto index d151f8f4bcf9..d2b4ef5aa6a4 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/completion_service.proto @@ -32,7 +32,8 @@ service Completion { // Intended for use by a job search auto-complete search box. rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { option (google.api.http) = { - get: "/v4beta1/{name=projects/*}:complete" + get: "/v4beta1/{parent=projects/*/tenants/*}:complete" + additional_bindings { get: "/v4beta1/{parent=projects/*}:complete" } }; } } @@ -71,11 +72,14 @@ message CompleteQueryRequest { // Required. // - // Resource name of project the completion is performed within. + // Resource name of tenant the completion is performed within. // - // The format is "projects/{project_id}", for example, - // "projects/api-test-project". - string name = 1; + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project". + string parent = 1; // Required. // @@ -125,9 +129,13 @@ message CompleteQueryRequest { // // If provided, restricts completion to specified company. // - // The format is "projects/{project_id}/companies/{company_id}", for example, - // "projects/api-test-project/companies/foo". - string company_name = 5; + // The format is + // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + // example, "projects/api-test-project/tenants/foo/companies/bar". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/companies/bar". + string company = 5; // Optional. // diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto index 3287d378b33a..ba65b1e4f1c0 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event.proto @@ -63,13 +63,9 @@ message ClientEvent { // Optional. // - // Extra information about this event. Used for storing information with no - // matching field in [event][google.cloud.talent.v4beta1.event] payload, for - // example, user application specific context or details. - // - // At most 20 keys are supported. The maximum total size of all keys and - // values is 2 KB. - map extra_info = 7; + // Notes about the event provided by recruiters or other users, for example, + // feedback on why a profile was bookmarked. + string event_notes = 9; } // An event issued when a job seeker interacts with the application that @@ -213,31 +209,6 @@ message ProfileEvent { // The profile is bookmarked. BOOKMARK = 3; - - // Comment added to the profile. - COMMENT_ADDED = 4; - - // Email sent regarding the profile. - EMAIL_SENT = 5; - - // The resume of the profile is viewed. - RESUME_VIEWED = 6; - - // The profile is added to a job. - ADD_TO_JOB = 7; - - // The recruiter explicitly highlights that a given profile is interesting - // enough for later review or is a good result for the search. - POSITIVE_REACTION_TO_PROFILE = 8; - - // The recruiter explicitly highlights that a given profile is not - // interesting enough for later review or is not a good result for the - // search. - NEGATIVE_REACTION_TO_PROFILE = 9; - - // The candidate is interesting enough to set up an initial screen with the - // recruiter. This step may be skipped based on the interview process. - SCREEN = 10; } // Required. @@ -258,5 +229,5 @@ message ProfileEvent { // // The job ID should be consistent with the // [JobApplication.job.requisition_id][] in the profile. - string job_id = 3; + repeated string jobs = 6; } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto index fe1606c3a96d..d456336d9ac2 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/event_service.proto @@ -37,15 +37,27 @@ service EventService { // about self service tools. rpc CreateClientEvent(CreateClientEventRequest) returns (ClientEvent) { option (google.api.http) = { - post: "/v4beta1/{parent=projects/*}/clientEvents" + post: "/v4beta1/{parent=projects/*/tenants/*}/clientEvents" body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/clientEvents" + body: "*" + } }; } } // The report event request. message CreateClientEventRequest { - // Parent project name. + // Required. + // + // Resource name of the tenant under which the event is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". + // + // Tenant id is optional and a default tenant is created if unspecified, for + // example, "projects/api-test-project". string parent = 1; // Required. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto index 9d87c51addff..67ec954408f6 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/filters.proto @@ -18,6 +18,7 @@ syntax = "proto3"; package google.cloud.talent.v4beta1; import "google/api/annotations.proto"; +import "google/cloud/talent/v4beta1/application.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/cloud/talent/v4beta1/job.proto"; import "google/cloud/talent/v4beta1/profile.proto"; @@ -56,11 +57,15 @@ message JobQuery { // If multiple values are specified, jobs are searched against the // companies specified. // - // The format is "projects/{project_id}/companies/{company_id}", for example, - // "projects/api-test-project/companies/foo". + // The format is + // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + // example, "projects/api-test-project/tenants/foo/companies/bar". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/companies/bar". // // At most 20 company filters are allowed. - repeated string company_names = 2; + repeated string companies = 2; // Optional. // @@ -328,10 +333,9 @@ message ProfileQuery { // Optional. // - // The application outcome reason filters specify the reasons for outcome of + // The application outcome notes filters specify the notes for the outcome of // the job application. - repeated ApplicationOutcomeReasonFilter application_outcome_reason_filters = - 11; + repeated ApplicationOutcomeNotesFilter application_outcome_notes_filters = 11; // Optional. // @@ -357,9 +361,13 @@ message ProfileQuery { // // The syntax for this expression is a subset of Google SQL syntax. // - // 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. + // 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 @@ -720,7 +728,7 @@ message WorkExperienceFilter { // Application Date Range Filter. // // The API matches profiles with -// [JobApplication.application_date][google.cloud.talent.v4beta1.JobApplication.application_date] +// [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] @@ -742,19 +750,19 @@ message ApplicationDateFilter { // Input only. // -// Outcome Reason Filter. -message ApplicationOutcomeReasonFilter { +// Outcome Notes Filter. +message ApplicationOutcomeNotesFilter { // Required. // // User entered or selected outcome reason. The API does an exact match on the - // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] // in profiles. - string outcome_reason = 1; + string outcome_notes = 1; // Optional. // // If true, The API excludes all candidates with any - // [JobApplication.outcome_reason][google.cloud.talent.v4beta1.JobApplication.outcome_reason] + // [Application.outcome_notes][google.cloud.talent.v4beta1.Application.outcome_notes] // matching the outcome reason specified in the filter. bool negated = 2; } @@ -767,14 +775,13 @@ message ApplicationLastStageFilter { // // User entered or selected last stage the candidate reached in the // application. The API does an exact match on the - // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - // in profiles. + // [Application.last_stage][] in profiles. string last_stage = 1; // Optional. // If true, The API excludes all candidates with any - // [JobApplication.last_stage][google.cloud.talent.v4beta1.JobApplication.last_stage] - // matching the last stage specified in the filter. + // [Application.last_stage][] matching the last stage specified in the + // filter. bool negated = 2; } @@ -786,49 +793,48 @@ message ApplicationJobFilter { // // The job resource name in the application. The API does an exact match on // the [Job.name][google.cloud.talent.v4beta1.Job.name] of - // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - // profiles. - string job_name = 1; + // [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. + string job = 1; // Optional. // // The job requisition id in the application. The API does an exact match on // the [Job.requisistion_id][] of - // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - // profiles. + // [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. string job_requisition_id = 2; // Optional. // // The job title in the application. The API does an exact match on the // [Job.title][google.cloud.talent.v4beta1.Job.title] of - // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] in - // profiles. + // [Application.job][google.cloud.talent.v4beta1.Application.job] in profiles. string job_title = 3; // Optional. // // If true, the API excludes all profiles with any - // [JobApplication.job][google.cloud.talent.v4beta1.JobApplication.job] - // matching the filters. + // [Application.job][google.cloud.talent.v4beta1.Application.job] matching the + // filters. bool negated = 4; } // Input only. // -// Filter on status of Application. +// Filter on state of Application. message ApplicationStatusFilter { // Required. // - // User entered or selected application status. The API does an exact match - // between the application status specified in this filter and the - // [JobApplication.status][] in profiles. - JobApplication.ApplicationStatus application_status = 1; + // User entered or selected application state. The API does an exact match + // between the application state specified in this filter and the + // [Application.state][google.cloud.talent.v4beta1.Application.state] in + // profiles. + Application.ApplicationState application_state = 1; // Optional. // - // If true, The API excludes all candidates with any [JobApplication.status][] - // matching the status specified in the filter. + // If true, The API excludes all candidates with any + // [Application.state][google.cloud.talent.v4beta1.Application.state] matching + // the state specified in the filter. bool negated = 2; } diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto index 1cf276d2484f..67f5c5d61e77 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job.proto @@ -20,6 +20,7 @@ package google.cloud.talent.v4beta1; import "google/api/annotations.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent"; option java_multiple_files = true; @@ -126,8 +127,12 @@ message Job { // The resource name for the job. This is generated by the service when a // job is created. // - // The format is "projects/{project_id}/jobs/{job_id}", - // for example, "projects/api-test-project/jobs/1234". + // The format is + // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + // example, "projects/api-test-project/tenants/foo/jobs/1234". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/jobs/1234". // // Use of this field in job queries and API calls is preferred over the use of // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this @@ -136,9 +141,15 @@ message Job { // Required. // - // The resource name of the company listing the job, such as - // "projects/api-test-project/companies/foo". - string company_name = 2; + // The resource name of the company listing the job. + // + // The format is + // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + // example, "projects/api-test-project/tenants/foo/companies/bar". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/companies/bar". + string company = 2; // Required. // @@ -211,7 +222,8 @@ message Job { // Optional. // - // Job compensation information. + // Job compensation information (a.k.a. "pay rate") i.e., the compensation + // that will paid to the employee. CompensationInfo compensation_info = 9; // Optional. @@ -368,8 +380,7 @@ message Job { // updated with the [UpdateJob][] API. An expired job can be updated and // opened again by using a future expiration timestamp. Updating an expired // job fails if there is another existing open job with same - // [company][google.cloud.talent.v4beta1.Job.name][], - // [language_code][google.cloud.talent.v4beta1.Job.language_code] and + // [company][google.cloud.talent.v4beta1.Job.name][], [language_code][] and // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]. // // The expired jobs are retained in our system for 90 days. However, the diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto index 6a8b691f267d..dd49339a2c3f 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/job_service.proto @@ -42,8 +42,12 @@ service JobService { // up to 5 minutes. rpc CreateJob(CreateJobRequest) returns (Job) { option (google.api.http) = { - post: "/v4beta1/{parent=projects/*}/jobs" + post: "/v4beta1/{parent=projects/*/tenants/*}/jobs" body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/jobs" + body: "*" + } }; } @@ -51,7 +55,8 @@ service JobService { // within the last 90 days. rpc GetJob(GetJobRequest) returns (Job) { option (google.api.http) = { - get: "/v4beta1/{name=projects/*/jobs/*}" + get: "/v4beta1/{name=projects/*/tenants/*/jobs/*}" + additional_bindings { get: "/v4beta1/{name=projects/*/jobs/*}" } }; } @@ -61,8 +66,12 @@ service JobService { // seconds, but it may take up to 5 minutes. rpc UpdateJob(UpdateJobRequest) returns (Job) { option (google.api.http) = { - patch: "/v4beta1/{job.name=projects/*/jobs/*}" + patch: "/v4beta1/{job.name=projects/*/tenants/*/jobs/*}" body: "*" + additional_bindings { + patch: "/v4beta1/{job.name=projects/*/jobs/*}" + body: "*" + } }; } @@ -72,22 +81,27 @@ service JobService { // up to 5 minutes. rpc DeleteJob(DeleteJobRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v4beta1/{name=projects/*/jobs/*}" + delete: "/v4beta1/{name=projects/*/tenants/*/jobs/*}" + additional_bindings { delete: "/v4beta1/{name=projects/*/jobs/*}" } }; } // Lists jobs by filter. rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { option (google.api.http) = { - get: "/v4beta1/{parent=projects/*}/jobs" + get: "/v4beta1/{parent=projects/*/tenants/*}/jobs" + additional_bindings { get: "/v4beta1/{parent=projects/*}/jobs" } }; } // Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter. rpc BatchDeleteJobs(BatchDeleteJobsRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - post: "/v4beta1/{parent=projects/*}/jobs:batchDelete" + post: "/v4beta1/{parent=projects/*/tenants/*}/jobs:batchDelete" body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/jobs:batchDelete" + } }; } @@ -100,8 +114,12 @@ service JobService { // search against. rpc SearchJobs(SearchJobsRequest) returns (SearchJobsResponse) { option (google.api.http) = { - post: "/v4beta1/{parent=projects/*}/jobs:search" + post: "/v4beta1/{parent=projects/*/tenants/*}/jobs:search" body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/jobs:search" + body: "*" + } }; } @@ -119,8 +137,12 @@ service JobService { // against. rpc SearchJobsForAlert(SearchJobsRequest) returns (SearchJobsResponse) { option (google.api.http) = { - post: "/v4beta1/{parent=projects/*}/jobs:searchForAlert" + post: "/v4beta1/{parent=projects/*/tenants/*}/jobs:searchForAlert" body: "*" + additional_bindings { + post: "/v4beta1/{parent=projects/*}/jobs:searchForAlert" + body: "*" + } }; } } @@ -131,10 +153,13 @@ service JobService { message CreateJobRequest { // Required. // - // The resource name of the project under which the job is created. + // The resource name of the tenant under which the job is created. // - // The format is "projects/{project_id}", for example, - // "projects/api-test-project". + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". + // + // Tenant id is optional and a default tenant is created if unspecified, for + // example, "projects/api-test-project". string parent = 1; // Required. @@ -151,8 +176,12 @@ message GetJobRequest { // // The resource name of the job to retrieve. // - // The format is "projects/{project_id}/jobs/{job_id}", - // for example, "projects/api-test-project/jobs/1234". + // The format is + // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + // example, "projects/api-test-project/tenants/foo/jobs/1234". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/jobs/1234". string name = 1; } @@ -186,8 +215,12 @@ message DeleteJobRequest { // // The resource name of the job to be deleted. // - // The format is "projects/{project_id}/jobs/{job_id}", - // for example, "projects/api-test-project/jobs/1234". + // The format is + // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for + // example, "projects/api-test-project/tenants/foo/jobs/1234". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project/jobs/1234". string name = 1; } @@ -197,10 +230,13 @@ message DeleteJobRequest { message BatchDeleteJobsRequest { // Required. // - // The resource name of the project under which the job is created. + // The resource name of the tenant under which the job is created. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". // - // The format is "projects/{project_id}", for example, - // "projects/api-test-project". + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project". string parent = 1; // Required. @@ -225,10 +261,13 @@ message BatchDeleteJobsRequest { message ListJobsRequest { // Required. // - // The resource name of the project under which the job is created. + // The resource name of the tenant under which the job is created. // - // The format is "projects/{project_id}", for example, - // "projects/api-test-project". + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". + // + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project". string parent = 1; // Required. @@ -246,11 +285,11 @@ message ListJobsRequest { // // Sample Query: // - // * companyName = "projects/api-test-project/companies/123" - // * companyName = "projects/api-test-project/companies/123" AND requisitionId - // = "req-1" - // * companyName = "projects/api-test-project/companies/123" AND status = - // "EXPIRED" + // * companyName = "projects/api-test-project/tenants/foo/companies/bar" + // * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + // requisitionId = "req-1" + // * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + // status = "EXPIRED" string filter = 2; // Optional. @@ -298,8 +337,7 @@ enum JobView { // 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.job_title][], - // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.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; @@ -307,8 +345,7 @@ enum JobView { // 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.job_title][], - // [Job.company_name][google.cloud.talent.v4beta1.Job.company_name], + // [Job.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], @@ -455,10 +492,13 @@ message SearchJobsRequest { // Required. // - // The resource name of the project to search within. + // The resource name of the tenant to search within. + // + // The format is "projects/{project_id}/tenants/{tenant_id}", for example, + // "projects/api-test-project/tenant/foo". // - // The format is "projects/{project_id}", for example, - // "projects/api-test-project". + // Tenant id is optional and the default tenant is used if unspecified, for + // example, "projects/api-test-project". string parent = 1; // Optional. diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto index a3c19f58a0ca..54e4b98ee8bc 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile.proto @@ -20,6 +20,8 @@ package google.cloud.talent.v4beta1; import "google/api/annotations.proto"; import "google/cloud/talent/v4beta1/common.proto"; import "google/cloud/talent/v4beta1/job.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"; @@ -35,8 +37,8 @@ option objc_class_prefix = "CTS"; // A resource that represents the profile for a job candidate (also referred to // as a "single-source profile"). A profile belongs to a -// [Tenant][google.cloud.talent.v4beta1.Tenant], which is an isolated instance -// of the customer that owns the profile. +// [Company][google.cloud.talent.v4beta1.Company], which is the +// company/organization that owns the profile. message Profile { // Required during profile update. // @@ -231,18 +233,11 @@ message Profile { // The certifications acquired by the candidate. repeated Certification certifications = 23; - // Optional. - // - // The job applications of the candidate. - repeated JobApplication job_applications = 24; + // Output only. The resource names of the candidate's applications. + repeated string applications = 47; - // Optional. - // - // The recruiting notes added for the candidate. - // - // For example, the recruiter can add some unstructured comments for this - // candidate like "this candidate also has experiences in volunteer work". - repeated RecruitingNote recruiting_notes = 25; + // Output only. The resource names of the candidate's assignments. + repeated string assignments = 48; // Optional. // @@ -252,19 +247,19 @@ message Profile { // details. // // At most 100 filterable and at most 100 unfilterable keys are supported. If - // limit is exceeded, an error is thrown. + // 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. + // 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. - // - // Currently filterable numeric custom attributes are not supported, and - // they automatically set to unfilterable. map custom_attributes = 26; // Output only. Indicates if the profile is fully processed and searchable. @@ -379,7 +374,7 @@ message Address { // Optional. // // Indicates if it's the person's current address. - google.protobuf.BoolValue is_current = 4; + google.protobuf.BoolValue current = 4; } // Resource that represents a person's email address. @@ -569,8 +564,8 @@ message EmploymentRecord { // Optional. // - // If it's a supervised position. - google.protobuf.BoolValue is_supervised_position = 8; + // If it is a supervisor position. + google.protobuf.BoolValue is_supervisor = 8; // Optional. // @@ -706,68 +701,6 @@ message Degree { repeated string fields_of_study = 3; } -// Resource that represents a skill of a candidate. -message Skill { - // Enum that represents the skill proficiency level. - enum SkillProficiencyLevel { - // Default value. - SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0; - - // 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; - } - - // Optional. - // - // Skill display name. - // - // For example, "Java", "Python". - // - // Number of characters allowed is 100. - string display_name = 1; - - // Optional. - // - // The last time this skill was used. - google.type.Date last_used_date = 2; - - // Optional. - // - // Skill proficiency level which indicates how proficient the candidate is at - // this skill. - SkillProficiencyLevel level = 3; - - // Optional. - // - // 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; -} - // Resource that represents an individual or collaborative activity participated // in by a candidate, for example, an open-source project, a class assignment, // etc. @@ -960,190 +893,3 @@ message Patent { // The skills used in this patent. repeated Skill skills_used = 9; } - -// Resource that represents a job application record of a candidate. -message JobApplication { - // Enum that represents the application status. - enum ApplicationStatus { - // Default value. - APPLICATION_STATUS_UNSPECIFIED = 0; - - // The offer is extended. - OFFER_EXTENDED = 1; - - // The offer is rejected by candidate. - REJECTED_BY_CANDIDATE = 2; - - // The application is active. - ACTIVE = 3; - - // The candidate is rejected by employer. - REJECTED_BY_EMPLOYER = 4; - - // The candidate is hired and hasn't started the new job. - HIRED_PENDING_DATE = 5; - - // The candidate is hired started. - HIRED_STARTED = 6; - - // The candidate is a prospect candidate. - PROSPECTED = 7; - } - - // Optional. - // - // The information of job which the candidate applied for. - // - // If [Job.name][google.cloud.talent.v4beta1.Job.name] is provided, the - // corresponding [Job][google.cloud.talent.v4beta1.Job] must be created. - // - // Otherwise, only - // [Job.requisition_id][google.cloud.talent.v4beta1.Job.requisition_id], - // [Job.title][google.cloud.talent.v4beta1.Job.title], - // [Job.description][google.cloud.talent.v4beta1.Job.description] and - // [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] provided here - // are persisted in the application. No [Job][google.cloud.talent.v4beta1.Job] - // entity is created in this case. - Job job = 1; - - // Optional. - // - // The job application id. - // - // Number of characters allowed is 100. - string application_id = 2; - - // Optional. - // - // The application date. - google.type.Date application_date = 3; - - // Optional. - // - // The last stage the candidate reached in the application progress. - // For example, "new", "phone screen", "interview". - string last_stage = 4; - - // Optional. - // - // The application state. - ApplicationStatus state = 5; - - // Optional. - // - // The average interview score. - double average_interview_score = 6; - - // Optional. - // - // The scale id of the interview score. - // - // Number of characters allowed is 100. - string interview_score_scale_id = 7; - - // Optional. - // - // The number of interviews. - int32 number_of_interviews = 8; - - // Optional. - // - // If the candidate is referred by a employee. - google.protobuf.BoolValue is_employee_referred = 9; - - // Optional. - // - // The last update timestamp. - google.protobuf.Timestamp update_time = 10; - - // Optional. - // - // The outcome reason for the job application. - // - // Number of characters allowed is 100. - string outcome_reason = 11; - - // Optional. - // - // Outcome positiveness shows how positive the outcome is. - // - // Currently only -1, 0 and 1 are accepted, where -1 means not positive, 0 - // means neutral and 1 means positive. An error is thrown if other value is - // set. - double outcome_positiveness = 12; - - // 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 = 13; - - // 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 = 14; -} - -// Resource that represents a license or certification. -message Certification { - // Optional. - // - // Name of license or certification. - // - // Number of characters allowed is 100. - string display_name = 1; - - // Optional. - // - // Acquirement date or effective date of license or certification. - google.type.Date acquire_date = 2; - - // Optional. - // - // Expiration date of license of certification. - google.type.Date expire_date = 3; - - // Optional. - // - // Authority of license, such as government. - // - // Number of characters allowed is 100. - string authority = 4; - - // Optional. - // - // Description of license or certification. - // - // Number of characters allowed is 100,000. - string description = 5; -} - -// RecruitingNote represents a note/comment regarding the recruiting for a -// candidate. For example, "This candidate is a potential match for a frontend -// engineer at SF". -message RecruitingNote { - // Optional. - // - // The content of note. - // - // Number of characters allowed is 4,000. - string note = 1; - - // Optional. - // - // The person who wrote the notes. - // - // Number of characters allowed is 100. - string commenter = 2; - - // Optional. - // - // The create date of the note. - google.type.Date create_date = 3; - - // Optional. - // - // The note type. - // - // Number of characters allowed is 100. - string type = 4; -} diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto index aa6f5c5440b5..f892d2b37a07 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/proto/google/cloud/talent/v4beta1/profile_service.proto @@ -65,6 +65,8 @@ service ProfileService { } // 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/*}" @@ -121,7 +123,7 @@ message ListProfilesRequest { // Valid values are: // // * name - google.protobuf.FieldMask field_mask = 4; + google.protobuf.FieldMask read_mask = 4; } // The List profiles response object. @@ -197,7 +199,6 @@ message UpdateProfileRequest { // * publications // * patents // * certifications - // * jobApplications // * recruitingNotes // * customAttributes google.protobuf.FieldMask update_mask = 2; @@ -361,7 +362,7 @@ message SearchProfilesRequest { // * institution: The school name. For example, "MIT", // "University of California, Berkeley" // * degree: Highest education degree in ISCED code. Each value in degree - // covers specific level of education, without any expansion to upper nor + // 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). @@ -369,10 +370,10 @@ message SearchProfilesRequest { // See // [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] // for more details. - // * application_outcome_reason: The application outcome reason specifies the - // outcome reasons of job application. + // * application_outcome_notes: The application outcome reason specifies the + // reasons behind the outcome of the job application. // See - // [ApplicationOutcomeReasonFilter][google.cloud.talent.v4beta1.ApplicationOutcomeReasonFilter] + // [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] // for more details. // * application_last_stage: The application last stage specifies the last // stage of job application. diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java new file mode 100644 index 000000000000..3395ee8e936e --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java @@ -0,0 +1,790 @@ +/* + * Copyright 2019 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.ApiFunction; +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 SERVICE +/** + * 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: + * + *

+ * 
+ * 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: + * + *

+ * 
+ * ApplicationServiceSettings applicationServiceSettings =
+ *     ApplicationServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ApplicationServiceClient applicationServiceClient =
+ *     ApplicationServiceClient.create(applicationServiceSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * ApplicationServiceSettings applicationServiceSettings =
+ *     ApplicationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ApplicationServiceClient applicationServiceClient =
+ *     ApplicationServiceClient.create(applicationServiceSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +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 to use ApplicationServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ApplicationServiceClient(ApplicationServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ApplicationServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ApplicationServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a new application entity. + * + *

Sample code: + * + *


+   * 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/test-project/tenants/test-tenant/profiles/test-profile". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   Application application = Application.newBuilder().build();
+   *   Application response = applicationServiceClient.createApplication(parent.toString(), 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/test-project/tenants/test-tenant/profiles/test-profile". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   Application application = Application.newBuilder().build();
+   *   CreateApplicationRequest request = CreateApplicationRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setApplication(application)
+   *     .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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   Application application = Application.newBuilder().build();
+   *   CreateApplicationRequest request = CreateApplicationRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .setApplication(application)
+   *     .build();
+   *   ApiFuture<Application> 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: + * + *


+   * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ApplicationName name = ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
+   *   Application response = applicationServiceClient.getApplication(name.toString());
+   * }
+   * 
+ * + * @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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ApplicationName name = ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
+   *   GetApplicationRequest request = GetApplicationRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ApplicationName name = ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
+   *   GetApplicationRequest request = GetApplicationRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Application> 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: + * + *


+   * 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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   Application application = Application.newBuilder().build();
+   *   UpdateApplicationRequest request = UpdateApplicationRequest.newBuilder()
+   *     .setApplication(application)
+   *     .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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   Application application = Application.newBuilder().build();
+   *   UpdateApplicationRequest request = UpdateApplicationRequest.newBuilder()
+   *     .setApplication(application)
+   *     .build();
+   *   ApiFuture<Application> 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: + * + *


+   * 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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ApplicationName name = ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
+   *   applicationServiceClient.deleteApplication(name.toString());
+   * }
+   * 
+ * + * @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/test-project/tenants/test-tenant/profiles/test-profile/applications/test-application". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ApplicationName name = ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
+   *   DeleteApplicationRequest request = DeleteApplicationRequest.newBuilder()
+   *     .setName(name.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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ApplicationName name = ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]");
+   *   DeleteApplicationRequest request = DeleteApplicationRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Void> 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: + * + *


+   * 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/test-project/tenants/test-tenant/profiles/test-profile". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   for (Application element : applicationServiceClient.listApplications(parent.toString()).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/test-project/tenants/test-tenant/profiles/test-profile". + * @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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   ListApplicationsRequest request = ListApplicationsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   ListApplicationsRequest request = ListApplicationsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   ApiFuture<ListApplicationsPagedResponse> 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: + * + *


+   * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+   *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+   *   ListApplicationsRequest request = ListApplicationsRequest.newBuilder()
+   *     .setParent(parent.toString())
+   *     .build();
+   *   while (true) {
+   *     ListApplicationsResponse response = applicationServiceClient.listApplicationsCallable().call(request);
+   *     for (Application element : response.getApplicationsList()) {
+   *       // 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, + new ApiFunction() { + @Override + public ListApplicationsPagedResponse apply(ListApplicationsPage input) { + return 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-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java new file mode 100644 index 000000000000..e3a2b7b1f5cd --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java @@ -0,0 +1,224 @@ +/* + * Copyright 2019 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: + * + *

+ * 
+ * ApplicationServiceSettings.Builder applicationServiceSettingsBuilder =
+ *     ApplicationServiceSettings.newBuilder();
+ * applicationServiceSettingsBuilder.createApplicationSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ApplicationServiceSettings applicationServiceSettings = applicationServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +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)); + } + + private static Builder createDefault() { + return new Builder(ApplicationServiceStubSettings.newBuilder()); + } + + protected Builder(ApplicationServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ApplicationServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public ApplicationServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ApplicationServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * 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) throws Exception { + 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-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java index 1ab9b9204e93..d5043660750c 100644 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -44,7 +44,7 @@ *

  * 
  * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   Company company = Company.newBuilder().build();
  *   Company response = companyServiceClient.createCompany(parent, company);
  * }
@@ -163,20 +163,23 @@ public CompanyServiceStub getStub() {
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Company company = Company.newBuilder().build();
    *   Company response = companyServiceClient.createCompany(parent, company);
    * }
    * 
* * @param parent Required. - *

Resource name of the project under which the company is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

Resource name of the tenant under which the company is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and a default tenant is created if unspecified, for example, + * "projects/api-test-project". * @param company Required. *

The company to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Company createCompany(ProjectName parent, Company company) { + public final Company createCompany(TenantOrProjectName parent, Company company) { CreateCompanyRequest request = CreateCompanyRequest.newBuilder() @@ -194,15 +197,18 @@ public final Company createCompany(ProjectName parent, Company company) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Company company = Company.newBuilder().build();
    *   Company response = companyServiceClient.createCompany(parent.toString(), company);
    * }
    * 
* * @param parent Required. - *

Resource name of the project under which the company is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

Resource name of the tenant under which the company is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and a default tenant is created if unspecified, for example, + * "projects/api-test-project". * @param company Required. *

The company to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -222,7 +228,7 @@ public final Company createCompany(String parent, Company company) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Company company = Company.newBuilder().build();
    *   CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -247,7 +253,7 @@ public final Company createCompany(CreateCompanyRequest request) {
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Company company = Company.newBuilder().build();
    *   CreateCompanyRequest request = CreateCompanyRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -271,15 +277,17 @@ public final UnaryCallable createCompanyCallable(
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   Company response = companyServiceClient.getCompany(name);
    * }
    * 
* * @param name Required. *

The resource name of the company to be retrieved. - *

The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + *

The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project/companies/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Company getCompany(CompanyName name) { @@ -297,15 +305,17 @@ public final Company getCompany(CompanyName name) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   Company response = companyServiceClient.getCompany(name.toString());
    * }
    * 
* * @param name Required. *

The resource name of the company to be retrieved. - *

The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + *

The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project/companies/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Company getCompany(String name) { @@ -322,7 +332,7 @@ public final Company getCompany(String name) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   GetCompanyRequest request = GetCompanyRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -345,7 +355,7 @@ public final Company getCompany(GetCompanyRequest request) {
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   GetCompanyRequest request = GetCompanyRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -435,15 +445,17 @@ public final UnaryCallable updateCompanyCallable(
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   companyServiceClient.deleteCompany(name);
    * }
    * 
* * @param name Required. *

The resource name of the company to be deleted. - *

The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + *

The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project/companies/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCompany(CompanyName name) { @@ -461,15 +473,17 @@ public final void deleteCompany(CompanyName name) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   companyServiceClient.deleteCompany(name.toString());
    * }
    * 
* * @param name Required. *

The resource name of the company to be deleted. - *

The format is "projects/{project_id}/companies/{company_id}", for example, - * "projects/api-test-project/companies/foo". + *

The format is "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project/companies/bar". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCompany(String name) { @@ -486,7 +500,7 @@ public final void deleteCompany(String name) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -509,7 +523,7 @@ public final void deleteCompany(DeleteCompanyRequest request) {
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]");
+   *   CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]");
    *   DeleteCompanyRequest request = DeleteCompanyRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -531,7 +545,7 @@ public final UnaryCallable deleteCompanyCallable()
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -539,11 +553,14 @@ public final UnaryCallable deleteCompanyCallable()
    * 
* * @param parent Required. - *

Resource name of the project under which the company is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

Resource name of the tenant under which the company is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCompaniesPagedResponse listCompanies(ProjectName parent) { + public final ListCompaniesPagedResponse listCompanies(TenantOrProjectName parent) { ListCompaniesRequest request = ListCompaniesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -559,7 +576,7 @@ public final ListCompaniesPagedResponse listCompanies(ProjectName parent) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   for (Company element : companyServiceClient.listCompanies(parent.toString()).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -567,8 +584,11 @@ public final ListCompaniesPagedResponse listCompanies(ProjectName parent) {
    * 
* * @param parent Required. - *

Resource name of the project under which the company is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

Resource name of the tenant under which the company is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCompaniesPagedResponse listCompanies(String parent) { @@ -584,7 +604,7 @@ public final ListCompaniesPagedResponse listCompanies(String parent) { * *


    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
@@ -609,7 +629,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
@@ -634,7 +654,7 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque
    *
    * 

    * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   ListCompaniesRequest request = ListCompaniesRequest.newBuilder()
    *     .setParent(parent.toString())
    *     .build();
diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java
index 4b77e3f1cb57..0fa98798b787 100644
--- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java
+++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java
@@ -34,11 +34,11 @@
  * 
  * 
  * try (CompletionClient completionClient = CompletionClient.create()) {
- *   ProjectName name = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   String query = "";
  *   int pageSize = 0;
  *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
- *     .setName(name.toString())
+ *     .setParent(parent.toString())
  *     .setQuery(query)
  *     .setPageSize(pageSize)
  *     .build();
@@ -158,11 +158,11 @@ public CompletionStub getStub() {
    *
    * 

    * try (CompletionClient completionClient = CompletionClient.create()) {
-   *   ProjectName name = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String query = "";
    *   int pageSize = 0;
    *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
-   *     .setName(name.toString())
+   *     .setParent(parent.toString())
    *     .setQuery(query)
    *     .setPageSize(pageSize)
    *     .build();
@@ -186,11 +186,11 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) {
    *
    * 

    * try (CompletionClient completionClient = CompletionClient.create()) {
-   *   ProjectName name = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String query = "";
    *   int pageSize = 0;
    *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
-   *     .setName(name.toString())
+   *     .setParent(parent.toString())
    *     .setQuery(query)
    *     .setPageSize(pageSize)
    *     .build();
diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java
index d4f49b7208ec..70720cbe5b62 100644
--- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java
+++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java
@@ -34,7 +34,7 @@
  * 
  * 
  * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
  *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
  * }
@@ -155,19 +155,24 @@ public EventServiceStub getStub() {
    *
    * 

    * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
    *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
    * }
    * 
* - * @param parent Parent project name. + * @param parent Required. + *

Resource name of the tenant under which the event is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and a default tenant is created if unspecified, for example, + * "projects/api-test-project". * @param clientEvent Required. *

Events issued when end user interacts with customer's application that uses Cloud Talent * Solution. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clientEvent) { + public final ClientEvent createClientEvent(TenantOrProjectName parent, ClientEvent clientEvent) { CreateClientEventRequest request = CreateClientEventRequest.newBuilder() @@ -188,13 +193,18 @@ public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clien * *


    * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
    *   ClientEvent response = eventServiceClient.createClientEvent(parent.toString(), clientEvent);
    * }
    * 
* - * @param parent Parent project name. + * @param parent Required. + *

Resource name of the tenant under which the event is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and a default tenant is created if unspecified, for example, + * "projects/api-test-project". * @param clientEvent Required. *

Events issued when end user interacts with customer's application that uses Cloud Talent * Solution. @@ -218,7 +228,7 @@ public final ClientEvent createClientEvent(String parent, ClientEvent clientEven * *


    * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
    *   CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -246,7 +256,7 @@ public final ClientEvent createClientEvent(CreateClientEventRequest request) {
    *
    * 

    * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
    *   CreateClientEventRequest request = CreateClientEventRequest.newBuilder()
    *     .setParent(parent.toString())
diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java
index a68ef80c827d..ffc0bdb8ec44 100644
--- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java
+++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java
@@ -45,7 +45,7 @@
  * 
  * 
  * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   Job job = Job.newBuilder().build();
  *   Job response = jobServiceClient.createJob(parent, job);
  * }
@@ -164,20 +164,23 @@ public JobServiceStub getStub() {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Job job = Job.newBuilder().build();
    *   Job response = jobServiceClient.createJob(parent, job);
    * }
    * 
* * @param parent Required. - *

The resource name of the project under which the job is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and a default tenant is created if unspecified, for example, + * "projects/api-test-project". * @param job Required. *

The Job to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Job createJob(ProjectName parent, Job job) { + public final Job createJob(TenantOrProjectName parent, Job job) { CreateJobRequest request = CreateJobRequest.newBuilder() @@ -197,15 +200,18 @@ public final Job createJob(ProjectName parent, Job job) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Job job = Job.newBuilder().build();
    *   Job response = jobServiceClient.createJob(parent.toString(), job);
    * }
    * 
* * @param parent Required. - *

The resource name of the project under which the job is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and a default tenant is created if unspecified, for example, + * "projects/api-test-project". * @param job Required. *

The Job to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -226,7 +232,7 @@ public final Job createJob(String parent, Job job) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Job job = Job.newBuilder().build();
    *   CreateJobRequest request = CreateJobRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -253,7 +259,7 @@ public final Job createJob(CreateJobRequest request) {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   Job job = Job.newBuilder().build();
    *   CreateJobRequest request = CreateJobRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -277,14 +283,16 @@ public final UnaryCallable createJobCallable() {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   Job response = jobServiceClient.getJob(name);
    * }
    * 
* * @param name Required. *

The resource name of the job to retrieve. - *

The format is "projects/{project_id}/jobs/{job_id}", for example, + *

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, + * "projects/api-test-project/tenants/foo/jobs/1234". + *

Tenant id is optional and the default tenant is used if unspecified, for example, * "projects/api-test-project/jobs/1234". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -303,14 +311,16 @@ public final Job getJob(JobName name) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   Job response = jobServiceClient.getJob(name.toString());
    * }
    * 
* * @param name Required. *

The resource name of the job to retrieve. - *

The format is "projects/{project_id}/jobs/{job_id}", for example, + *

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, + * "projects/api-test-project/tenants/foo/jobs/1234". + *

Tenant id is optional and the default tenant is used if unspecified, for example, * "projects/api-test-project/jobs/1234". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -328,7 +338,7 @@ public final Job getJob(String name) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   GetJobRequest request = GetJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -351,7 +361,7 @@ public final Job getJob(GetJobRequest request) {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   GetJobRequest request = GetJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -452,14 +462,16 @@ public final UnaryCallable updateJobCallable() {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   jobServiceClient.deleteJob(name);
    * }
    * 
* * @param name Required. *

The resource name of the job to be deleted. - *

The format is "projects/{project_id}/jobs/{job_id}", for example, + *

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, + * "projects/api-test-project/tenants/foo/jobs/1234". + *

Tenant id is optional and the default tenant is used if unspecified, for example, * "projects/api-test-project/jobs/1234". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -480,14 +492,16 @@ public final void deleteJob(JobName name) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   jobServiceClient.deleteJob(name.toString());
    * }
    * 
* * @param name Required. *

The resource name of the job to be deleted. - *

The format is "projects/{project_id}/jobs/{job_id}", for example, + *

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, + * "projects/api-test-project/tenants/foo/jobs/1234". + *

Tenant id is optional and the default tenant is used if unspecified, for example, * "projects/api-test-project/jobs/1234". * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -507,7 +521,7 @@ public final void deleteJob(String name) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -532,7 +546,7 @@ public final void deleteJob(DeleteJobRequest request) {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   JobName name = JobName.of("[PROJECT]", "[JOBS]");
+   *   JobName name = JobOldName.of("[PROJECT]", "[JOBS]");
    *   DeleteJobRequest request = DeleteJobRequest.newBuilder()
    *     .setName(name.toString())
    *     .build();
@@ -554,7 +568,7 @@ public final UnaryCallable deleteJobCallable() {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) {
    *     // doThingsWith(element);
@@ -563,8 +577,11 @@ public final UnaryCallable deleteJobCallable() {
    * 
* * @param parent Required. - *

The resource name of the project under which the job is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project". * @param filter Required. *

The filter string specifies the jobs to be enumerated. *

Supported operator: =, AND @@ -572,12 +589,13 @@ public final UnaryCallable deleteJobCallable() { *

* `companyName` (Required) * `requisitionId` (Optional) * `status` * (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. *

Sample Query: - *

* companyName = "projects/api-test-project/companies/123" * companyName = - * "projects/api-test-project/companies/123" AND requisitionId = "req-1" * companyName = - * "projects/api-test-project/companies/123" AND status = "EXPIRED" + *

* companyName = "projects/api-test-project/tenants/foo/companies/bar" * + * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND requisitionId = + * "req-1" * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { + public final ListJobsPagedResponse listJobs(TenantOrProjectName parent, String filter) { ListJobsRequest request = ListJobsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) @@ -594,7 +612,7 @@ public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   for (Job element : jobServiceClient.listJobs(parent.toString(), filter).iterateAll()) {
    *     // doThingsWith(element);
@@ -603,8 +621,11 @@ public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) {
    * 
* * @param parent Required. - *

The resource name of the project under which the job is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project". * @param filter Required. *

The filter string specifies the jobs to be enumerated. *

Supported operator: =, AND @@ -612,9 +633,10 @@ public final ListJobsPagedResponse listJobs(ProjectName parent, String filter) { *

* `companyName` (Required) * `requisitionId` (Optional) * `status` * (Optional) Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value is specified. *

Sample Query: - *

* companyName = "projects/api-test-project/companies/123" * companyName = - * "projects/api-test-project/companies/123" AND requisitionId = "req-1" * companyName = - * "projects/api-test-project/companies/123" AND status = "EXPIRED" + *

* companyName = "projects/api-test-project/tenants/foo/companies/bar" * + * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND requisitionId = + * "req-1" * companyName = "projects/api-test-project/tenants/foo/companies/bar" AND + * status = "EXPIRED" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListJobsPagedResponse listJobs(String parent, String filter) { @@ -631,7 +653,7 @@ public final ListJobsPagedResponse listJobs(String parent, String filter) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   ListJobsRequest request = ListJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -658,7 +680,7 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   ListJobsRequest request = ListJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -684,7 +706,7 @@ public final UnaryCallable listJobsPaged
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   ListJobsRequest request = ListJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -717,15 +739,18 @@ public final UnaryCallable listJobsCallable()
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   jobServiceClient.batchDeleteJobs(parent, filter);
    * }
    * 
* * @param parent Required. - *

The resource name of the project under which the job is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project". * @param filter Required. *

The filter string specifies the jobs to be deleted. *

Supported operator: =, AND @@ -735,7 +760,7 @@ public final UnaryCallable listJobsCallable() * = "req-1" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void batchDeleteJobs(ProjectName parent, String filter) { + public final void batchDeleteJobs(TenantOrProjectName parent, String filter) { BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder() @@ -753,15 +778,18 @@ public final void batchDeleteJobs(ProjectName parent, String filter) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   jobServiceClient.batchDeleteJobs(parent.toString(), filter);
    * }
    * 
* * @param parent Required. - *

The resource name of the project under which the job is created. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". + *

The resource name of the tenant under which the job is created. + *

The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/api-test-project/tenant/foo". + *

Tenant id is optional and the default tenant is used if unspecified, for example, + * "projects/api-test-project". * @param filter Required. *

The filter string specifies the jobs to be deleted. *

Supported operator: =, AND @@ -786,7 +814,7 @@ public final void batchDeleteJobs(String parent, String filter) { * *


    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -811,7 +839,7 @@ public final void batchDeleteJobs(BatchDeleteJobsRequest request) {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   String filter = "";
    *   BatchDeleteJobsRequest request = BatchDeleteJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -840,7 +868,7 @@ public final UnaryCallable batchDeleteJobsCallabl
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
    *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -872,7 +900,7 @@ public final SearchJobsPagedResponse searchJobs(SearchJobsRequest request) {
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
    *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -903,7 +931,7 @@ public final UnaryCallable searchJob
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
    *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -944,7 +972,7 @@ public final UnaryCallable searchJobsCall
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
    *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -979,7 +1007,7 @@ public final SearchJobsForAlertPagedResponse searchJobsForAlert(SearchJobsReques
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
    *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
    *     .setParent(parent.toString())
@@ -1014,7 +1042,7 @@ public final SearchJobsForAlertPagedResponse searchJobsForAlert(SearchJobsReques
    *
    * 

    * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
    *   RequestMetadata requestMetadata = RequestMetadata.newBuilder().build();
    *   SearchJobsRequest request = SearchJobsRequest.newBuilder()
    *     .setParent(parent.toString())
diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java
index 5686cf18dd78..c088c41b175d 100644
--- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java
+++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java
@@ -568,7 +568,8 @@ public final UnaryCallable updateProfileCallable(
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD
   /**
-   * Deletes the specified profile.
+   * Deletes the specified profile. Prerequisite: The profile has no associated applications or
+   * assignments associated.
    *
    * 

Sample code: * @@ -594,7 +595,8 @@ public final void deleteProfile(ProfileName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified profile. + * Deletes the specified profile. Prerequisite: The profile has no associated applications or + * assignments associated. * *

Sample code: * @@ -619,7 +621,8 @@ public final void deleteProfile(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified profile. + * Deletes the specified profile. Prerequisite: The profile has no associated applications or + * assignments associated. * *

Sample code: * @@ -642,7 +645,8 @@ public final void deleteProfile(DeleteProfileRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Deletes the specified profile. + * Deletes the specified profile. Prerequisite: The profile has no associated applications or + * assignments associated. * *

Sample code: * diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java deleted file mode 100644 index 487c99b20299..000000000000 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceClient.java +++ /dev/null @@ -1,348 +0,0 @@ -/* - * Copyright 2019 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.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.stub.ResumeServiceStub; -import com.google.cloud.talent.v4beta1.stub.ResumeServiceStubSettings; -import com.google.protobuf.ByteString; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND SERVICE -/** - * Service Description: A service that handles resume parsing. - * - *

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: - * - *

- * 
- * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
- *   ByteString resume = ByteString.copyFromUtf8("");
- *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
- * }
- * 
- * 
- * - *

Note: close() needs to be called on the resumeServiceClient 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 ResumeServiceSettings to - * create(). For example: - * - *

To customize credentials: - * - *

- * 
- * ResumeServiceSettings resumeServiceSettings =
- *     ResumeServiceSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ResumeServiceClient resumeServiceClient =
- *     ResumeServiceClient.create(resumeServiceSettings);
- * 
- * 
- * - * To customize the endpoint: - * - *
- * 
- * ResumeServiceSettings resumeServiceSettings =
- *     ResumeServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
- * ResumeServiceClient resumeServiceClient =
- *     ResumeServiceClient.create(resumeServiceSettings);
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class ResumeServiceClient implements BackgroundResource { - private final ResumeServiceSettings settings; - private final ResumeServiceStub stub; - - /** Constructs an instance of ResumeServiceClient with default settings. */ - public static final ResumeServiceClient create() throws IOException { - return create(ResumeServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of ResumeServiceClient, 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 ResumeServiceClient create(ResumeServiceSettings settings) - throws IOException { - return new ResumeServiceClient(settings); - } - - /** - * Constructs an instance of ResumeServiceClient, using the given stub for making calls. This is - * for advanced usage - prefer to use ResumeServiceSettings}. - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final ResumeServiceClient create(ResumeServiceStub stub) { - return new ResumeServiceClient(stub); - } - - /** - * Constructs an instance of ResumeServiceClient, 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 ResumeServiceClient(ResumeServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((ResumeServiceStubSettings) settings.getStubSettings()).createStub(); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected ResumeServiceClient(ResumeServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final ResumeServiceSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public ResumeServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill - * out the following profile fields if present within the resume: - * - *

* personNames * addresses * emailAddress * phoneNumbers * personalUris - * * employmentRecords * educationRecords * skills - * - *

Note that some attributes in these fields may not be populated if they're not present within - * the resume or unrecognizable by the resume parser. - * - *

This API does not save the resume or profile. To create a profile from this resume, clients - * need to call the CreateProfile method again with the profile returned. - * - *

The following list of formats are supported: - * - *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when - * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) - * - *

Sample code: - * - *


-   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ByteString resume = ByteString.copyFromUtf8("");
-   *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
-   * }
-   * 
- * - * @param parent Required. - *

The resource name of the project. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param resume Required. - *

The bytes of the resume file in common format, for example, PDF, TXT. UTF-8 encoding is - * required if the resume is text-based, otherwise an error is thrown. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ParseResumeResponse parseResume(ProjectName parent, ByteString resume) { - - ParseResumeRequest request = - ParseResumeRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setResume(resume) - .build(); - return parseResume(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill - * out the following profile fields if present within the resume: - * - *

* personNames * addresses * emailAddress * phoneNumbers * personalUris - * * employmentRecords * educationRecords * skills - * - *

Note that some attributes in these fields may not be populated if they're not present within - * the resume or unrecognizable by the resume parser. - * - *

This API does not save the resume or profile. To create a profile from this resume, clients - * need to call the CreateProfile method again with the profile returned. - * - *

The following list of formats are supported: - * - *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when - * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) - * - *

Sample code: - * - *


-   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ByteString resume = ByteString.copyFromUtf8("");
-   *   ParseResumeResponse response = resumeServiceClient.parseResume(parent.toString(), resume);
-   * }
-   * 
- * - * @param parent Required. - *

The resource name of the project. - *

The format is "projects/{project_id}", for example, "projects/api-test-project". - * @param resume Required. - *

The bytes of the resume file in common format, for example, PDF, TXT. UTF-8 encoding is - * required if the resume is text-based, otherwise an error is thrown. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ParseResumeResponse parseResume(String parent, ByteString resume) { - - ParseResumeRequest request = - ParseResumeRequest.newBuilder().setParent(parent).setResume(resume).build(); - return parseResume(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill - * out the following profile fields if present within the resume: - * - *

* personNames * addresses * emailAddress * phoneNumbers * personalUris - * * employmentRecords * educationRecords * skills - * - *

Note that some attributes in these fields may not be populated if they're not present within - * the resume or unrecognizable by the resume parser. - * - *

This API does not save the resume or profile. To create a profile from this resume, clients - * need to call the CreateProfile method again with the profile returned. - * - *

The following list of formats are supported: - * - *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when - * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) - * - *

Sample code: - * - *


-   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ByteString resume = ByteString.copyFromUtf8("");
-   *   ParseResumeRequest request = ParseResumeRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setResume(resume)
-   *     .build();
-   *   ParseResumeResponse response = resumeServiceClient.parseResume(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 ParseResumeResponse parseResume(ParseResumeRequest request) { - return parseResumeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Parses a resume into a [Profile][google.cloud.talent.v4beta1.Profile]. The API attempts to fill - * out the following profile fields if present within the resume: - * - *

* personNames * addresses * emailAddress * phoneNumbers * personalUris - * * employmentRecords * educationRecords * skills - * - *

Note that some attributes in these fields may not be populated if they're not present within - * the resume or unrecognizable by the resume parser. - * - *

This API does not save the resume or profile. To create a profile from this resume, clients - * need to call the CreateProfile method again with the profile returned. - * - *

The following list of formats are supported: - * - *

* PDF * TXT * DOC * RTF * DOCX * PNG (only when - * [ParseResumeRequest.enable_ocr][] is set to `true`, otherwise an error is thrown) - * - *

Sample code: - * - *


-   * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   ByteString resume = ByteString.copyFromUtf8("");
-   *   ParseResumeRequest request = ParseResumeRequest.newBuilder()
-   *     .setParent(parent.toString())
-   *     .setResume(resume)
-   *     .build();
-   *   ApiFuture<ParseResumeResponse> future = resumeServiceClient.parseResumeCallable().futureCall(request);
-   *   // Do something
-   *   ParseResumeResponse response = future.get();
-   * }
-   * 
- */ - public final UnaryCallable parseResumeCallable() { - return stub.parseResumeCallable(); - } - - @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); - } -} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java deleted file mode 100644 index bf411c4f0f48..000000000000 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ResumeServiceSettings.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright 2019 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.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.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.talent.v4beta1.stub.ResumeServiceStubSettings; -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 ResumeServiceClient}. - * - *

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 parseResume to 30 seconds: - * - *

- * 
- * ResumeServiceSettings.Builder resumeServiceSettingsBuilder =
- *     ResumeServiceSettings.newBuilder();
- * resumeServiceSettingsBuilder.parseResumeSettings().getRetrySettings().toBuilder()
- *     .setTotalTimeout(Duration.ofSeconds(30));
- * ResumeServiceSettings resumeServiceSettings = resumeServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class ResumeServiceSettings extends ClientSettings { - /** Returns the object with the settings used for calls to parseResume. */ - public UnaryCallSettings parseResumeSettings() { - return ((ResumeServiceStubSettings) getStubSettings()).parseResumeSettings(); - } - - public static final ResumeServiceSettings create(ResumeServiceStubSettings stub) - throws IOException { - return new ResumeServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ResumeServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ResumeServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ResumeServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ResumeServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ResumeServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ResumeServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ResumeServiceStubSettings.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 ResumeServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ResumeServiceSettings. */ - public static class Builder extends ClientSettings.Builder { - protected Builder() throws IOException { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(ResumeServiceStubSettings.newBuilder(clientContext)); - } - - private static Builder createDefault() { - return new Builder(ResumeServiceStubSettings.newBuilder()); - } - - protected Builder(ResumeServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ResumeServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - public ResumeServiceStubSettings.Builder getStubSettingsBuilder() { - return ((ResumeServiceStubSettings.Builder) getStubSettings()); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * 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) throws Exception { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to parseResume. */ - public UnaryCallSettings.Builder - parseResumeSettings() { - return getStubSettingsBuilder().parseResumeSettings(); - } - - @Override - public ResumeServiceSettings build() throws IOException { - return new ResumeServiceSettings(this); - } - } -} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java index 746d4bd63803..157253b84863 100644 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/package-info.java @@ -19,7 +19,24 @@ * *

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

==================== CompanyServiceClient ==================== + *

======================== ApplicationServiceClient ======================== + * + *

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

Sample for ApplicationServiceClient: + * + *

+ * 
+ * try (ApplicationServiceClient applicationServiceClient = ApplicationServiceClient.create()) {
+ *   ProfileName parent = ProfileName.of("[PROJECT]", "[TENANT]", "[PROFILE]");
+ *   Application application = Application.newBuilder().build();
+ *   Application response = applicationServiceClient.createApplication(parent, application);
+ * }
+ * 
+ * 
+ * + * ==================== CompanyServiceClient ==================== * *

Service Description: A service that handles company management, including CRUD and * enumeration. @@ -29,7 +46,7 @@ *

  * 
  * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   Company company = Company.newBuilder().build();
  *   Company response = companyServiceClient.createCompany(parent, company);
  * }
@@ -45,11 +62,11 @@
  * 
  * 
  * try (CompletionClient completionClient = CompletionClient.create()) {
- *   ProjectName name = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   String query = "";
  *   int pageSize = 0;
  *   CompleteQueryRequest request = CompleteQueryRequest.newBuilder()
- *     .setName(name.toString())
+ *     .setParent(parent.toString())
  *     .setQuery(query)
  *     .setPageSize(pageSize)
  *     .build();
@@ -67,7 +84,7 @@
  * 
  * 
  * try (EventServiceClient eventServiceClient = EventServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   ClientEvent clientEvent = ClientEvent.newBuilder().build();
  *   ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent);
  * }
@@ -84,7 +101,7 @@
  * 
  * 
  * try (JobServiceClient jobServiceClient = JobServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
+ *   TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]");
  *   Job job = Job.newBuilder().build();
  *   Job response = jobServiceClient.createJob(parent, job);
  * }
@@ -108,22 +125,6 @@
  * 
  * 
* - * =================== ResumeServiceClient =================== - * - *

Service Description: A service that handles resume parsing. - * - *

Sample for ResumeServiceClient: - * - *

- * 
- * try (ResumeServiceClient resumeServiceClient = ResumeServiceClient.create()) {
- *   ProjectName parent = ProjectName.of("[PROJECT]");
- *   ByteString resume = ByteString.copyFromUtf8("");
- *   ParseResumeResponse response = resumeServiceClient.parseResume(parent, resume);
- * }
- * 
- * 
- * * =================== TenantServiceClient =================== * *

Service Description: A service that handles tenant management, including CRUD and enumeration. diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java new file mode 100644 index 000000000000..cf730517e4f9 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStub.java @@ -0,0 +1,71 @@ +/* + * Copyright 2019 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 Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +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-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java new file mode 100644 index 000000000000..aeb34da3a2f8 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java @@ -0,0 +1,450 @@ +/* + * Copyright 2019 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: + * + *

+ * 
+ * ApplicationServiceStubSettings.Builder applicationServiceSettingsBuilder =
+ *     ApplicationServiceStubSettings.newBuilder();
+ * applicationServiceSettingsBuilder.createApplicationSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * ApplicationServiceStubSettings applicationServiceSettings = applicationServiceSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +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; + + /** 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public ApplicationServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcApplicationServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + 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 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); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.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() { + 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(); + } + + 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 + ? payload.getApplicationsList() + : ImmutableList.of(); + } + }; + + 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); + } + }; + + /** 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( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", 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(20000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(20000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", 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); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteApplicationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listApplicationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + 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); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * 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) throws Exception { + 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-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceCallableFactory.java similarity index 98% rename from google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java rename to google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceCallableFactory.java index 08a5762fb816..d6610e4bf7fc 100644 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceCallableFactory.java +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceCallableFactory.java @@ -42,7 +42,7 @@ */ @Generated("by gapic-generator") @BetaApi("The surface for use by generated code is not stable yet and may change in the future.") -public class GrpcResumeServiceCallableFactory implements GrpcStubCallableFactory { +public class GrpcApplicationServiceCallableFactory implements GrpcStubCallableFactory { @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java new file mode 100644 index 000000000000..3425d570ac75 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java @@ -0,0 +1,255 @@ +/* + * Copyright 2019 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.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 Cloud Talent Solution API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +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 BackgroundResource backgroundResources; + + 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 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; + + GrpcCallSettings createApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createApplicationMethodDescriptor) + .build(); + GrpcCallSettings getApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getApplicationMethodDescriptor) + .build(); + GrpcCallSettings updateApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateApplicationMethodDescriptor) + .build(); + GrpcCallSettings deleteApplicationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteApplicationMethodDescriptor) + .build(); + GrpcCallSettings + listApplicationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listApplicationsMethodDescriptor) + .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); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createApplicationCallable() { + return createApplicationCallable; + } + + public UnaryCallable getApplicationCallable() { + return getApplicationCallable; + } + + public UnaryCallable updateApplicationCallable() { + return updateApplicationCallable; + } + + public UnaryCallable deleteApplicationCallable() { + return deleteApplicationCallable; + } + + public UnaryCallable + listApplicationsPagedCallable() { + return listApplicationsPagedCallable; + } + + public UnaryCallable + listApplicationsCallable() { + return listApplicationsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @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-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java deleted file mode 100644 index ea78e65349f1..000000000000 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcResumeServiceStub.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2019 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.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.ParseResumeRequest; -import com.google.cloud.talent.v4beta1.ParseResumeResponse; -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 Cloud Talent Solution API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public class GrpcResumeServiceStub extends ResumeServiceStub { - - private static final MethodDescriptor - parseResumeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.talent.v4beta1.ResumeService/ParseResume") - .setRequestMarshaller(ProtoUtils.marshaller(ParseResumeRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ParseResumeResponse.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; - - private final UnaryCallable parseResumeCallable; - - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcResumeServiceStub create(ResumeServiceStubSettings settings) - throws IOException { - return new GrpcResumeServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcResumeServiceStub create(ClientContext clientContext) throws IOException { - return new GrpcResumeServiceStub(ResumeServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcResumeServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcResumeServiceStub( - ResumeServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcResumeServiceStub, 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 GrpcResumeServiceStub(ResumeServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcResumeServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcResumeServiceStub, 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 GrpcResumeServiceStub( - ResumeServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - GrpcCallSettings parseResumeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(parseResumeMethodDescriptor) - .build(); - - this.parseResumeCallable = - callableFactory.createUnaryCallable( - parseResumeTransportSettings, settings.parseResumeSettings(), clientContext); - - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public UnaryCallable parseResumeCallable() { - return parseResumeCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @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-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java deleted file mode 100644 index 260df6b18e77..000000000000 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStub.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2019 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.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.talent.v4beta1.ParseResumeRequest; -import com.google.cloud.talent.v4beta1.ParseResumeResponse; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -/** - * Base stub class for Cloud Talent Solution API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") -public abstract class ResumeServiceStub implements BackgroundResource { - - public UnaryCallable parseResumeCallable() { - throw new UnsupportedOperationException("Not implemented: parseResumeCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java b/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java deleted file mode 100644 index fd37031959cf..000000000000 --- a/google-cloud-clients/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ResumeServiceStubSettings.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright 2019 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.ApiFunction; -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.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -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.cloud.talent.v4beta1.ParseResumeRequest; -import com.google.cloud.talent.v4beta1.ParseResumeResponse; -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 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 ResumeServiceStub}. - * - *

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 parseResume to 30 seconds: - * - *

- * 
- * ResumeServiceStubSettings.Builder resumeServiceSettingsBuilder =
- *     ResumeServiceStubSettings.newBuilder();
- * resumeServiceSettingsBuilder.parseResumeSettings().getRetrySettings().toBuilder()
- *     .setTotalTimeout(Duration.ofSeconds(30));
- * ResumeServiceStubSettings resumeServiceSettings = resumeServiceSettingsBuilder.build();
- * 
- * 
- */ -@Generated("by gapic-generator") -@BetaApi -public class ResumeServiceStubSettings 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 parseResumeSettings; - - /** Returns the object with the settings used for calls to parseResume. */ - public UnaryCallSettings parseResumeSettings() { - return parseResumeSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public ResumeServiceStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcResumeServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + 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 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); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.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() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(ResumeServiceStubSettings.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 ResumeServiceStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - parseResumeSettings = settingsBuilder.parseResumeSettings().build(); - } - - /** Builder for ResumeServiceStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - - private final UnaryCallSettings.Builder - parseResumeSettings; - - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", 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(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("default", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this((ClientContext) null); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - parseResumeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of(parseResumeSettings); - - initDefaults(this); - } - - private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - - builder - .parseResumeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); - - return builder; - } - - protected Builder(ResumeServiceStubSettings settings) { - super(settings); - - parseResumeSettings = settings.parseResumeSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of(parseResumeSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' - /** - * 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) throws Exception { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to parseResume. */ - public UnaryCallSettings.Builder - parseResumeSettings() { - return parseResumeSettings; - } - - @Override - public ResumeServiceStubSettings build() throws IOException { - return new ResumeServiceStubSettings(this); - } - } -} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java new file mode 100644 index 000000000000..2eba9e147643 --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ApplicationServiceClientTest.java @@ -0,0 +1,356 @@ +/* + * Copyright 2019 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.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class ApplicationServiceClientTest { + private static MockApplicationService mockApplicationService; + private static MockCompanyService mockCompanyService; + private static MockCompletion mockCompletion; + private static MockEventService mockEventService; + private static MockJobService mockJobService; + private static MockProfileService mockProfileService; + private static MockTenantService mockTenantService; + private static MockServiceHelper serviceHelper; + private ApplicationServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockApplicationService = new MockApplicationService(); + mockCompanyService = new MockCompanyService(); + mockCompletion = new MockCompletion(); + mockEventService = new MockEventService(); + mockJobService = new MockJobService(); + mockProfileService = new MockProfileService(); + mockTenantService = new MockTenantService(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList( + mockApplicationService, + mockCompanyService, + mockCompletion, + mockEventService, + mockJobService, + mockProfileService, + mockTenantService)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + ApplicationServiceSettings settings = + ApplicationServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ApplicationServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createApplicationTest() { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"); + String externalId = "externalId-1153075697"; + String profile = "profile-309425751"; + String job = "job105405"; + String company = "company950484093"; + String outcomeNotes = "outcomeNotes-355961964"; + String jobTitleSnippet = "jobTitleSnippet-1100512972"; + Application expectedResponse = + Application.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setProfile(profile) + .setJob(job) + .setCompany(company) + .setOutcomeNotes(outcomeNotes) + .setJobTitleSnippet(jobTitleSnippet) + .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, ProfileName.parse(actualRequest.getParent())); + Assert.assertEquals(application, actualRequest.getApplication()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void getApplicationTest() { + ApplicationName name2 = + ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"); + String externalId = "externalId-1153075697"; + String profile = "profile-309425751"; + String job = "job105405"; + String company = "company950484093"; + String outcomeNotes = "outcomeNotes-355961964"; + String jobTitleSnippet = "jobTitleSnippet-1100512972"; + Application expectedResponse = + Application.newBuilder() + .setName(name2.toString()) + .setExternalId(externalId) + .setProfile(profile) + .setJob(job) + .setCompany(company) + .setOutcomeNotes(outcomeNotes) + .setJobTitleSnippet(jobTitleSnippet) + .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, ApplicationName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void updateApplicationTest() { + ApplicationName name = + ApplicationName.of("[PROJECT]", "[TENANT]", "[PROFILE]", "[APPLICATION]"); + String externalId = "externalId-1153075697"; + String profile = "profile-309425751"; + String job = "job105405"; + String company = "company950484093"; + String outcomeNotes = "outcomeNotes-355961964"; + String jobTitleSnippet = "jobTitleSnippet-1100512972"; + Application expectedResponse = + Application.newBuilder() + .setName(name.toString()) + .setExternalId(externalId) + .setProfile(profile) + .setJob(job) + .setCompany(company) + .setOutcomeNotes(outcomeNotes) + .setJobTitleSnippet(jobTitleSnippet) + .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 + @SuppressWarnings("all") + public void updateApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void deleteApplicationTest() { + 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, ApplicationName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteApplicationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + @SuppressWarnings("all") + public void listApplicationsTest() { + String nextPageToken = ""; + Application applicationsElement = Application.newBuilder().build(); + List applications = Arrays.asList(applicationsElement); + ListApplicationsResponse expectedResponse = + ListApplicationsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllApplications(applications) + .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, ProfileName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listApplicationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(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 + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java index 0506cc723ac5..624170315d59 100644 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompanyServiceClientTest.java @@ -41,12 +41,12 @@ @javax.annotation.Generated("by GAPIC") public class CompanyServiceClientTest { + private static MockApplicationService mockApplicationService; private static MockCompanyService mockCompanyService; private static MockCompletion mockCompletion; private static MockEventService mockEventService; private static MockJobService mockJobService; private static MockProfileService mockProfileService; - private static MockResumeService mockResumeService; private static MockTenantService mockTenantService; private static MockServiceHelper serviceHelper; private CompanyServiceClient client; @@ -54,23 +54,23 @@ public class CompanyServiceClientTest { @BeforeClass public static void startStaticServer() { + mockApplicationService = new MockApplicationService(); mockCompanyService = new MockCompanyService(); mockCompletion = new MockCompletion(); mockEventService = new MockEventService(); mockJobService = new MockJobService(); mockProfileService = new MockProfileService(); - mockResumeService = new MockResumeService(); mockTenantService = new MockTenantService(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( + mockApplicationService, mockCompanyService, mockCompletion, mockEventService, mockJobService, mockProfileService, - mockResumeService, mockTenantService)); serviceHelper.start(); } @@ -100,7 +100,7 @@ public void tearDown() throws Exception { @Test @SuppressWarnings("all") public void createCompanyTest() { - CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]"); String displayName = "displayName1615086568"; String externalId = "externalId-1153075697"; String headquartersAddress = "headquartersAddress-1879520036"; @@ -125,7 +125,7 @@ public void createCompanyTest() { .build(); mockCompanyService.addResponse(expectedResponse); - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); Company company = Company.newBuilder().build(); Company actualResponse = client.createCompany(parent, company); @@ -135,7 +135,7 @@ public void createCompanyTest() { Assert.assertEquals(1, actualRequests.size()); CreateCompanyRequest actualRequest = (CreateCompanyRequest) actualRequests.get(0); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent, TenantOrProjectNames.parse(actualRequest.getParent())); Assert.assertEquals(company, actualRequest.getCompany()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -150,7 +150,7 @@ public void createCompanyExceptionTest() throws Exception { mockCompanyService.addException(exception); try { - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); Company company = Company.newBuilder().build(); client.createCompany(parent, company); @@ -163,7 +163,7 @@ public void createCompanyExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getCompanyTest() { - CompanyName name2 = CompanyName.of("[PROJECT]", "[COMPANY]"); + CompanyName name2 = CompanyOldName.of("[PROJECT]", "[COMPANY]"); String displayName = "displayName1615086568"; String externalId = "externalId-1153075697"; String headquartersAddress = "headquartersAddress-1879520036"; @@ -188,7 +188,7 @@ public void getCompanyTest() { .build(); mockCompanyService.addResponse(expectedResponse); - CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]"); Company actualResponse = client.getCompany(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -197,7 +197,7 @@ public void getCompanyTest() { Assert.assertEquals(1, actualRequests.size()); GetCompanyRequest actualRequest = (GetCompanyRequest) actualRequests.get(0); - Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertEquals(name, CompanyNames.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -211,7 +211,7 @@ public void getCompanyExceptionTest() throws Exception { mockCompanyService.addException(exception); try { - CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]"); client.getCompany(name); Assert.fail("No exception raised"); @@ -223,7 +223,7 @@ public void getCompanyExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void updateCompanyTest() { - CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]"); String displayName = "displayName1615086568"; String externalId = "externalId-1153075697"; String headquartersAddress = "headquartersAddress-1879520036"; @@ -286,7 +286,7 @@ public void deleteCompanyTest() { Empty expectedResponse = Empty.newBuilder().build(); mockCompanyService.addResponse(expectedResponse); - CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]"); client.deleteCompany(name); @@ -294,7 +294,7 @@ public void deleteCompanyTest() { Assert.assertEquals(1, actualRequests.size()); DeleteCompanyRequest actualRequest = (DeleteCompanyRequest) actualRequests.get(0); - Assert.assertEquals(name, CompanyName.parse(actualRequest.getName())); + Assert.assertEquals(name, CompanyNames.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -308,7 +308,7 @@ public void deleteCompanyExceptionTest() throws Exception { mockCompanyService.addException(exception); try { - CompanyName name = CompanyName.of("[PROJECT]", "[COMPANY]"); + CompanyName name = CompanyOldName.of("[PROJECT]", "[COMPANY]"); client.deleteCompany(name); Assert.fail("No exception raised"); @@ -330,7 +330,7 @@ public void listCompaniesTest() { .build(); mockCompanyService.addResponse(expectedResponse); - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); ListCompaniesPagedResponse pagedListResponse = client.listCompanies(parent); @@ -342,7 +342,7 @@ public void listCompaniesTest() { Assert.assertEquals(1, actualRequests.size()); ListCompaniesRequest actualRequest = (ListCompaniesRequest) actualRequests.get(0); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent, TenantOrProjectNames.parse(actualRequest.getParent())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -356,7 +356,7 @@ public void listCompaniesExceptionTest() throws Exception { mockCompanyService.addException(exception); try { - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); client.listCompanies(parent); Assert.fail("No exception raised"); diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java index 41881e8e74f6..a7146106eaf1 100644 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/CompletionClientTest.java @@ -28,12 +28,12 @@ @javax.annotation.Generated("by GAPIC") public class CompletionClientTest { + private static MockApplicationService mockApplicationService; private static MockCompanyService mockCompanyService; private static MockCompletion mockCompletion; private static MockEventService mockEventService; private static MockJobService mockJobService; private static MockProfileService mockProfileService; - private static MockResumeService mockResumeService; private static MockTenantService mockTenantService; private static MockServiceHelper serviceHelper; private CompletionClient client; @@ -41,23 +41,23 @@ public class CompletionClientTest { @BeforeClass public static void startStaticServer() { + mockApplicationService = new MockApplicationService(); mockCompanyService = new MockCompanyService(); mockCompletion = new MockCompletion(); mockEventService = new MockEventService(); mockJobService = new MockJobService(); mockProfileService = new MockProfileService(); - mockResumeService = new MockResumeService(); mockTenantService = new MockTenantService(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( + mockApplicationService, mockCompanyService, mockCompletion, mockEventService, mockJobService, mockProfileService, - mockResumeService, mockTenantService)); serviceHelper.start(); } diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java index 10e7f20c526a..2f52d39f1f2d 100644 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/EventServiceClientTest.java @@ -37,12 +37,12 @@ @javax.annotation.Generated("by GAPIC") public class EventServiceClientTest { + private static MockApplicationService mockApplicationService; private static MockCompanyService mockCompanyService; private static MockCompletion mockCompletion; private static MockEventService mockEventService; private static MockJobService mockJobService; private static MockProfileService mockProfileService; - private static MockResumeService mockResumeService; private static MockTenantService mockTenantService; private static MockServiceHelper serviceHelper; private EventServiceClient client; @@ -50,23 +50,23 @@ public class EventServiceClientTest { @BeforeClass public static void startStaticServer() { + mockApplicationService = new MockApplicationService(); mockCompanyService = new MockCompanyService(); mockCompletion = new MockCompletion(); mockEventService = new MockEventService(); mockJobService = new MockJobService(); mockProfileService = new MockProfileService(); - mockResumeService = new MockResumeService(); mockTenantService = new MockTenantService(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( + mockApplicationService, mockCompanyService, mockCompletion, mockEventService, mockJobService, mockProfileService, - mockResumeService, mockTenantService)); serviceHelper.start(); } @@ -98,11 +98,16 @@ public void tearDown() throws Exception { public void createClientEventTest() { String requestId = "requestId37109963"; String eventId = "eventId278118624"; + String eventNotes = "eventNotes445073628"; ClientEvent expectedResponse = - ClientEvent.newBuilder().setRequestId(requestId).setEventId(eventId).build(); + ClientEvent.newBuilder() + .setRequestId(requestId) + .setEventId(eventId) + .setEventNotes(eventNotes) + .build(); mockEventService.addResponse(expectedResponse); - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); ClientEvent clientEvent = ClientEvent.newBuilder().build(); ClientEvent actualResponse = client.createClientEvent(parent, clientEvent); @@ -112,7 +117,7 @@ public void createClientEventTest() { Assert.assertEquals(1, actualRequests.size()); CreateClientEventRequest actualRequest = (CreateClientEventRequest) actualRequests.get(0); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent, TenantOrProjectNames.parse(actualRequest.getParent())); Assert.assertEquals(clientEvent, actualRequest.getClientEvent()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -127,7 +132,7 @@ public void createClientEventExceptionTest() throws Exception { mockEventService.addException(exception); try { - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); ClientEvent clientEvent = ClientEvent.newBuilder().build(); client.createClientEvent(parent, clientEvent); diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java index 485ad0618398..645ff4742c80 100644 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/JobServiceClientTest.java @@ -41,12 +41,12 @@ @javax.annotation.Generated("by GAPIC") public class JobServiceClientTest { + private static MockApplicationService mockApplicationService; private static MockCompanyService mockCompanyService; private static MockCompletion mockCompletion; private static MockEventService mockEventService; private static MockJobService mockJobService; private static MockProfileService mockProfileService; - private static MockResumeService mockResumeService; private static MockTenantService mockTenantService; private static MockServiceHelper serviceHelper; private JobServiceClient client; @@ -54,23 +54,23 @@ public class JobServiceClientTest { @BeforeClass public static void startStaticServer() { + mockApplicationService = new MockApplicationService(); mockCompanyService = new MockCompanyService(); mockCompletion = new MockCompletion(); mockEventService = new MockEventService(); mockJobService = new MockJobService(); mockProfileService = new MockProfileService(); - mockResumeService = new MockResumeService(); mockTenantService = new MockTenantService(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( + mockApplicationService, mockCompanyService, mockCompletion, mockEventService, mockJobService, mockProfileService, - mockResumeService, mockTenantService)); serviceHelper.start(); } @@ -100,8 +100,8 @@ public void tearDown() throws Exception { @Test @SuppressWarnings("all") public void createJobTest() { - JobName name = JobName.of("[PROJECT]", "[JOBS]"); - String companyName = "companyName1429880077"; + JobName name = JobOldName.of("[PROJECT]", "[JOBS]"); + String company = "company950484093"; String requisitionId = "requisitionId980224926"; String title = "title110371416"; String description = "description-1724546052"; @@ -115,7 +115,7 @@ public void createJobTest() { Job expectedResponse = Job.newBuilder() .setName(name.toString()) - .setCompanyName(companyName) + .setCompany(company) .setRequisitionId(requisitionId) .setTitle(title) .setDescription(description) @@ -129,7 +129,7 @@ public void createJobTest() { .build(); mockJobService.addResponse(expectedResponse); - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); Job job = Job.newBuilder().build(); Job actualResponse = client.createJob(parent, job); @@ -139,7 +139,7 @@ public void createJobTest() { Assert.assertEquals(1, actualRequests.size()); CreateJobRequest actualRequest = (CreateJobRequest) actualRequests.get(0); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent, TenantOrProjectNames.parse(actualRequest.getParent())); Assert.assertEquals(job, actualRequest.getJob()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -154,7 +154,7 @@ public void createJobExceptionTest() throws Exception { mockJobService.addException(exception); try { - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); Job job = Job.newBuilder().build(); client.createJob(parent, job); @@ -167,8 +167,8 @@ public void createJobExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void getJobTest() { - JobName name2 = JobName.of("[PROJECT]", "[JOBS]"); - String companyName = "companyName1429880077"; + JobName name2 = JobOldName.of("[PROJECT]", "[JOBS]"); + String company = "company950484093"; String requisitionId = "requisitionId980224926"; String title = "title110371416"; String description = "description-1724546052"; @@ -182,7 +182,7 @@ public void getJobTest() { Job expectedResponse = Job.newBuilder() .setName(name2.toString()) - .setCompanyName(companyName) + .setCompany(company) .setRequisitionId(requisitionId) .setTitle(title) .setDescription(description) @@ -196,7 +196,7 @@ public void getJobTest() { .build(); mockJobService.addResponse(expectedResponse); - JobName name = JobName.of("[PROJECT]", "[JOBS]"); + JobName name = JobOldName.of("[PROJECT]", "[JOBS]"); Job actualResponse = client.getJob(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -205,7 +205,7 @@ public void getJobTest() { Assert.assertEquals(1, actualRequests.size()); GetJobRequest actualRequest = (GetJobRequest) actualRequests.get(0); - Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertEquals(name, JobNames.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -219,7 +219,7 @@ public void getJobExceptionTest() throws Exception { mockJobService.addException(exception); try { - JobName name = JobName.of("[PROJECT]", "[JOBS]"); + JobName name = JobOldName.of("[PROJECT]", "[JOBS]"); client.getJob(name); Assert.fail("No exception raised"); @@ -231,8 +231,8 @@ public void getJobExceptionTest() throws Exception { @Test @SuppressWarnings("all") public void updateJobTest() { - JobName name = JobName.of("[PROJECT]", "[JOBS]"); - String companyName = "companyName1429880077"; + JobName name = JobOldName.of("[PROJECT]", "[JOBS]"); + String company = "company950484093"; String requisitionId = "requisitionId980224926"; String title = "title110371416"; String description = "description-1724546052"; @@ -246,7 +246,7 @@ public void updateJobTest() { Job expectedResponse = Job.newBuilder() .setName(name.toString()) - .setCompanyName(companyName) + .setCompany(company) .setRequisitionId(requisitionId) .setTitle(title) .setDescription(description) @@ -298,7 +298,7 @@ public void deleteJobTest() { Empty expectedResponse = Empty.newBuilder().build(); mockJobService.addResponse(expectedResponse); - JobName name = JobName.of("[PROJECT]", "[JOBS]"); + JobName name = JobOldName.of("[PROJECT]", "[JOBS]"); client.deleteJob(name); @@ -306,7 +306,7 @@ public void deleteJobTest() { Assert.assertEquals(1, actualRequests.size()); DeleteJobRequest actualRequest = (DeleteJobRequest) actualRequests.get(0); - Assert.assertEquals(name, JobName.parse(actualRequest.getName())); + Assert.assertEquals(name, JobNames.parse(actualRequest.getName())); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -320,7 +320,7 @@ public void deleteJobExceptionTest() throws Exception { mockJobService.addException(exception); try { - JobName name = JobName.of("[PROJECT]", "[JOBS]"); + JobName name = JobOldName.of("[PROJECT]", "[JOBS]"); client.deleteJob(name); Assert.fail("No exception raised"); @@ -339,7 +339,7 @@ public void listJobsTest() { ListJobsResponse.newBuilder().setNextPageToken(nextPageToken).addAllJobs(jobs).build(); mockJobService.addResponse(expectedResponse); - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); String filter = "filter-1274492040"; ListJobsPagedResponse pagedListResponse = client.listJobs(parent, filter); @@ -352,7 +352,7 @@ public void listJobsTest() { Assert.assertEquals(1, actualRequests.size()); ListJobsRequest actualRequest = (ListJobsRequest) actualRequests.get(0); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent, TenantOrProjectNames.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -367,7 +367,7 @@ public void listJobsExceptionTest() throws Exception { mockJobService.addException(exception); try { - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); String filter = "filter-1274492040"; client.listJobs(parent, filter); @@ -383,7 +383,7 @@ public void batchDeleteJobsTest() { Empty expectedResponse = Empty.newBuilder().build(); mockJobService.addResponse(expectedResponse); - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); String filter = "filter-1274492040"; client.batchDeleteJobs(parent, filter); @@ -392,7 +392,7 @@ public void batchDeleteJobsTest() { Assert.assertEquals(1, actualRequests.size()); BatchDeleteJobsRequest actualRequest = (BatchDeleteJobsRequest) actualRequests.get(0); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent, TenantOrProjectNames.parse(actualRequest.getParent())); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -407,7 +407,7 @@ public void batchDeleteJobsExceptionTest() throws Exception { mockJobService.addException(exception); try { - ProjectName parent = ProjectName.of("[PROJECT]"); + TenantOrProjectName parent = TenantName.of("[PROJECT]", "[TENANT]"); String filter = "filter-1274492040"; client.batchDeleteJobs(parent, filter); diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationService.java similarity index 87% rename from google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java rename to google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationService.java index 98b0befccbe7..764132fa5a2b 100644 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeService.java +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationService.java @@ -23,11 +23,11 @@ @javax.annotation.Generated("by GAPIC") @BetaApi -public class MockResumeService implements MockGrpcService { - private final MockResumeServiceImpl serviceImpl; +public class MockApplicationService implements MockGrpcService { + private final MockApplicationServiceImpl serviceImpl; - public MockResumeService() { - serviceImpl = new MockResumeServiceImpl(); + public MockApplicationService() { + serviceImpl = new MockApplicationServiceImpl(); } @Override diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java new file mode 100644 index 000000000000..fa3b3bf6c37f --- /dev/null +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockApplicationServiceImpl.java @@ -0,0 +1,134 @@ +/* + * Copyright 2019 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.Empty; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockApplicationServiceImpl extends ApplicationServiceImplBase { + private ArrayList requests; + private Queue responses; + + public MockApplicationServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 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.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void getApplication( + GetApplicationRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void updateApplication( + UpdateApplicationRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void deleteApplication( + DeleteApplicationRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } + + @Override + public void listApplications( + ListApplicationsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + 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("Unrecognized response type")); + } + } +} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java deleted file mode 100644 index a4e5c340b825..000000000000 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/MockResumeServiceImpl.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2019 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.ResumeServiceGrpc.ResumeServiceImplBase; -import com.google.protobuf.GeneratedMessageV3; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; - -@javax.annotation.Generated("by GAPIC") -@BetaApi -public class MockResumeServiceImpl extends ResumeServiceImplBase { - private ArrayList requests; - private Queue responses; - - public MockResumeServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(GeneratedMessageV3 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 parseResume( - ParseResumeRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ParseResumeResponse) { - requests.add(request); - responseObserver.onNext((ParseResumeResponse) response); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java index a57b9f9d8e43..8bf0ecc8430f 100644 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ProfileServiceClientTest.java @@ -41,12 +41,12 @@ @javax.annotation.Generated("by GAPIC") public class ProfileServiceClientTest { + private static MockApplicationService mockApplicationService; private static MockCompanyService mockCompanyService; private static MockCompletion mockCompletion; private static MockEventService mockEventService; private static MockJobService mockJobService; private static MockProfileService mockProfileService; - private static MockResumeService mockResumeService; private static MockTenantService mockTenantService; private static MockServiceHelper serviceHelper; private ProfileServiceClient client; @@ -54,23 +54,23 @@ public class ProfileServiceClientTest { @BeforeClass public static void startStaticServer() { + mockApplicationService = new MockApplicationService(); mockCompanyService = new MockCompanyService(); mockCompletion = new MockCompletion(); mockEventService = new MockEventService(); mockJobService = new MockJobService(); mockProfileService = new MockProfileService(); - mockResumeService = new MockResumeService(); mockTenantService = new MockTenantService(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( + mockApplicationService, mockCompanyService, mockCompletion, mockEventService, mockJobService, mockProfileService, - mockResumeService, mockTenantService)); serviceHelper.start(); } diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java deleted file mode 100644 index 4cfe84007cf1..000000000000 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/ResumeServiceClientTest.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2019 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.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.protobuf.ByteString; -import com.google.protobuf.GeneratedMessageV3; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@javax.annotation.Generated("by GAPIC") -public class ResumeServiceClientTest { - private static MockCompanyService mockCompanyService; - private static MockCompletion mockCompletion; - private static MockEventService mockEventService; - private static MockJobService mockJobService; - private static MockProfileService mockProfileService; - private static MockResumeService mockResumeService; - private static MockTenantService mockTenantService; - private static MockServiceHelper serviceHelper; - private ResumeServiceClient client; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockCompanyService = new MockCompanyService(); - mockCompletion = new MockCompletion(); - mockEventService = new MockEventService(); - mockJobService = new MockJobService(); - mockProfileService = new MockProfileService(); - mockResumeService = new MockResumeService(); - mockTenantService = new MockTenantService(); - serviceHelper = - new MockServiceHelper( - "in-process-1", - Arrays.asList( - mockCompanyService, - mockCompletion, - mockEventService, - mockJobService, - mockProfileService, - mockResumeService, - mockTenantService)); - serviceHelper.start(); - } - - @AfterClass - public static void stopServer() { - serviceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); - ResumeServiceSettings settings = - ResumeServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ResumeServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - @SuppressWarnings("all") - public void parseResumeTest() { - String rawText = "rawText503586532"; - ParseResumeResponse expectedResponse = - ParseResumeResponse.newBuilder().setRawText(rawText).build(); - mockResumeService.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - ByteString resume = ByteString.copyFromUtf8("45"); - - ParseResumeResponse actualResponse = client.parseResume(parent, resume); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockResumeService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ParseResumeRequest actualRequest = (ParseResumeRequest) actualRequests.get(0); - - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); - Assert.assertEquals(resume, actualRequest.getResume()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - @SuppressWarnings("all") - public void parseResumeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockResumeService.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - ByteString resume = ByteString.copyFromUtf8("45"); - - client.parseResume(parent, resume); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception - } - } -} diff --git a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java index e364a4be2411..ce0656e13b8c 100644 --- a/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java +++ b/google-cloud-clients/google-cloud-talent/src/test/java/com/google/cloud/talent/v4beta1/TenantServiceClientTest.java @@ -41,12 +41,12 @@ @javax.annotation.Generated("by GAPIC") public class TenantServiceClientTest { + private static MockApplicationService mockApplicationService; private static MockCompanyService mockCompanyService; private static MockCompletion mockCompletion; private static MockEventService mockEventService; private static MockJobService mockJobService; private static MockProfileService mockProfileService; - private static MockResumeService mockResumeService; private static MockTenantService mockTenantService; private static MockServiceHelper serviceHelper; private TenantServiceClient client; @@ -54,23 +54,23 @@ public class TenantServiceClientTest { @BeforeClass public static void startStaticServer() { + mockApplicationService = new MockApplicationService(); mockCompanyService = new MockCompanyService(); mockCompletion = new MockCompletion(); mockEventService = new MockEventService(); mockJobService = new MockJobService(); mockProfileService = new MockProfileService(); - mockResumeService = new MockResumeService(); mockTenantService = new MockTenantService(); serviceHelper = new MockServiceHelper( "in-process-1", Arrays.asList( + mockApplicationService, mockCompanyService, mockCompletion, mockEventService, mockJobService, mockProfileService, - mockResumeService, mockTenantService)); serviceHelper.start(); } From 11d422fa9b71a5bd6f5c3bf674f28abec53f480d Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Wed, 27 Mar 2019 14:14:11 -0400 Subject: [PATCH 2/2] Fixing formatting. --- .../com/google/cloud/talent/v4beta1/Application.java | 12 ++++++++---- .../talent/v4beta1/ApplicationStatusFilter.java | 6 ++++-- .../cloud/talent/v4beta1/CompensationInfo.java | 12 ++++++++---- .../cloud/talent/v4beta1/CompleteQueryRequest.java | 12 ++++++++---- .../cloud/talent/v4beta1/CompleteQueryResponse.java | 6 ++++-- .../google/cloud/talent/v4beta1/EmployerFilter.java | 6 ++++-- .../google/cloud/talent/v4beta1/LocationFilter.java | 6 ++++-- .../google/cloud/talent/v4beta1/ProfileEvent.java | 6 ++++-- .../cloud/talent/v4beta1/SearchJobsRequest.java | 12 ++++++++---- 9 files changed, 52 insertions(+), 26 deletions(-) diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java index e26b4662f4b0..c6091c383335 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java @@ -1520,12 +1520,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (stage_ != com.google.cloud.talent.v4beta1.Application.ApplicationStage - .APPLICATION_STAGE_UNSPECIFIED.getNumber()) { + .APPLICATION_STAGE_UNSPECIFIED + .getNumber()) { output.writeEnum(11, stage_); } if (state_ != com.google.cloud.talent.v4beta1.Application.ApplicationState - .APPLICATION_STATE_UNSPECIFIED.getNumber()) { + .APPLICATION_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(13, state_); } for (int i = 0; i < interviews_.size(); i++) { @@ -1581,12 +1583,14 @@ public int getSerializedSize() { } if (stage_ != com.google.cloud.talent.v4beta1.Application.ApplicationStage - .APPLICATION_STAGE_UNSPECIFIED.getNumber()) { + .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()) { + .APPLICATION_STATE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, state_); } for (int i = 0; i < interviews_.size(); i++) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java index f1f2fcfedb26..23bf80ea43bd 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationStatusFilter.java @@ -172,7 +172,8 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (applicationState_ != com.google.cloud.talent.v4beta1.Application.ApplicationState - .APPLICATION_STATE_UNSPECIFIED.getNumber()) { + .APPLICATION_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, applicationState_); } if (negated_ != false) { @@ -189,7 +190,8 @@ public int getSerializedSize() { size = 0; if (applicationState_ != com.google.cloud.talent.v4beta1.Application.ApplicationState - .APPLICATION_STATE_UNSPECIFIED.getNumber()) { + .APPLICATION_STATE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, applicationState_); } if (negated_ != false) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java index e34da32b4d57..2882f322f519 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java @@ -1438,12 +1438,14 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType - .COMPENSATION_TYPE_UNSPECIFIED.getNumber()) { + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (unit_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit - .COMPENSATION_UNIT_UNSPECIFIED.getNumber()) { + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { output.writeEnum(2, unit_); } if (compensationAmountCase_ == 3) { @@ -1472,12 +1474,14 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType - .COMPENSATION_TYPE_UNSPECIFIED.getNumber()) { + .COMPENSATION_TYPE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (unit_ != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit - .COMPENSATION_UNIT_UNSPECIFIED.getNumber()) { + .COMPENSATION_UNIT_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unit_); } if (compensationAmountCase_ == 3) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java index 140a3a7257db..1fccc1643e87 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java @@ -879,12 +879,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (scope_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope - .COMPLETION_SCOPE_UNSPECIFIED.getNumber()) { + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, scope_); } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(7, type_); } unknownFields.writeTo(output); @@ -918,12 +920,14 @@ public int getSerializedSize() { } if (scope_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope - .COMPLETION_SCOPE_UNSPECIFIED.getNumber()) { + .COMPLETION_SCOPE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); } size += unknownFields.getSerializedSize(); diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java index ef701c12e252..10807621f658 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java @@ -429,7 +429,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (!getImageUriBytes().isEmpty()) { @@ -449,7 +450,8 @@ public int getSerializedSize() { } if (type_ != com.google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType - .COMPLETION_TYPE_UNSPECIFIED.getNumber()) { + .COMPLETION_TYPE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (!getImageUriBytes().isEmpty()) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java index fbc5511bbe35..1bcb27c02484 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java @@ -407,7 +407,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (mode_ != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode - .EMPLOYER_FILTER_MODE_UNSPECIFIED.getNumber()) { + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, mode_); } if (negated_ != false) { @@ -427,7 +428,8 @@ public int getSerializedSize() { } if (mode_ != com.google.cloud.talent.v4beta1.EmployerFilter.EmployerFilterMode - .EMPLOYER_FILTER_MODE_UNSPECIFIED.getNumber()) { + .EMPLOYER_FILTER_MODE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); } if (negated_ != false) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java index 0b8d3ba9beed..40f7bbb05452 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java @@ -569,7 +569,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (telecommutePreference_ != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference - .TELECOMMUTE_PREFERENCE_UNSPECIFIED.getNumber()) { + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, telecommutePreference_); } if (negated_ != false) { @@ -598,7 +599,8 @@ public int getSerializedSize() { } if (telecommutePreference_ != com.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference - .TELECOMMUTE_PREFERENCE_UNSPECIFIED.getNumber()) { + .TELECOMMUTE_PREFERENCE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, telecommutePreference_); } if (negated_ != false) { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java index 126589c78e64..78fb3f0daea1 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java @@ -466,7 +466,8 @@ public final boolean isInitialized() { 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()) { + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } for (int i = 0; i < profiles_.size(); i++) { @@ -486,7 +487,8 @@ public int getSerializedSize() { size = 0; if (type_ != com.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType - .PROFILE_EVENT_TYPE_UNSPECIFIED.getNumber()) { + .PROFILE_EVENT_TYPE_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } { diff --git a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java index 5c71acbb3c31..602761ed3df7 100644 --- a/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java +++ b/google-api-grpc/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java @@ -1129,7 +1129,8 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (importanceLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel - .IMPORTANCE_LEVEL_UNSPECIFIED.getNumber()) { + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(1, importanceLevel_); } if (!getRankingExpressionBytes().isEmpty()) { @@ -1146,7 +1147,8 @@ public int getSerializedSize() { size = 0; if (importanceLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ImportanceLevel - .IMPORTANCE_LEVEL_UNSPECIFIED.getNumber()) { + .IMPORTANCE_LEVEL_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importanceLevel_); } if (!getRankingExpressionBytes().isEmpty()) { @@ -2982,7 +2984,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (diversificationLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel - .DIVERSIFICATION_LEVEL_UNSPECIFIED.getNumber()) { + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(13, diversificationLevel_); } if (customRankingInfo_ != null) { @@ -3040,7 +3043,8 @@ public int getSerializedSize() { } if (diversificationLevel_ != com.google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel - .DIVERSIFICATION_LEVEL_UNSPECIFIED.getNumber()) { + .DIVERSIFICATION_LEVEL_UNSPECIFIED + .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, diversificationLevel_); } if (customRankingInfo_ != null) {