1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * A client to Cloud Talent Solution API 19 * 20 * <p>The interfaces provided are listed below, along with usage samples. 21 * 22 * <p>======================= CompanyServiceClient ======================= 23 * 24 * <p>Service Description: A service that handles company management, including CRUD and 25 * enumeration. 26 * 27 * <p>Sample for CompanyServiceClient: 28 * 29 * <pre>{@code 30 * // This snippet has been automatically generated and should be regarded as a code template only. 31 * // It will require modifications to work: 32 * // - It may require correct/in-range values for request initialization. 33 * // - It may require specifying regional endpoints when creating the service client as shown in 34 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 35 * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { 36 * ProjectName parent = ProjectName.of("[PROJECT]"); 37 * Company company = Company.newBuilder().build(); 38 * Company response = companyServiceClient.createCompany(parent, company); 39 * } 40 * }</pre> 41 * 42 * <p>======================= CompletionClient ======================= 43 * 44 * <p>Service Description: A service handles auto completion. 45 * 46 * <p>Sample for CompletionClient: 47 * 48 * <pre>{@code 49 * // This snippet has been automatically generated and should be regarded as a code template only. 50 * // It will require modifications to work: 51 * // - It may require correct/in-range values for request initialization. 52 * // - It may require specifying regional endpoints when creating the service client as shown in 53 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 54 * try (CompletionClient completionClient = CompletionClient.create()) { 55 * CompleteQueryRequest request = 56 * CompleteQueryRequest.newBuilder() 57 * .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) 58 * .setQuery("query107944136") 59 * .addAllLanguageCodes(new ArrayList<String>()) 60 * .setPageSize(883849137) 61 * .setCompany( 62 * CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") 63 * .toString()) 64 * .build(); 65 * CompleteQueryResponse response = completionClient.completeQuery(request); 66 * } 67 * }</pre> 68 * 69 * <p>======================= EventServiceClient ======================= 70 * 71 * <p>Service Description: A service handles client event report. 72 * 73 * <p>Sample for EventServiceClient: 74 * 75 * <pre>{@code 76 * // This snippet has been automatically generated and should be regarded as a code template only. 77 * // It will require modifications to work: 78 * // - It may require correct/in-range values for request initialization. 79 * // - It may require specifying regional endpoints when creating the service client as shown in 80 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 81 * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { 82 * ProjectName parent = ProjectName.of("[PROJECT]"); 83 * ClientEvent clientEvent = ClientEvent.newBuilder().build(); 84 * ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent); 85 * } 86 * }</pre> 87 * 88 * <p>======================= JobServiceClient ======================= 89 * 90 * <p>Service Description: A service handles job management, including job CRUD, enumeration and 91 * search. 92 * 93 * <p>Sample for JobServiceClient: 94 * 95 * <pre>{@code 96 * // This snippet has been automatically generated and should be regarded as a code template only. 97 * // It will require modifications to work: 98 * // - It may require correct/in-range values for request initialization. 99 * // - It may require specifying regional endpoints when creating the service client as shown in 100 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 101 * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { 102 * ProjectName parent = ProjectName.of("[PROJECT]"); 103 * Job job = Job.newBuilder().build(); 104 * Job response = jobServiceClient.createJob(parent, job); 105 * } 106 * }</pre> 107 * 108 * <p>======================= TenantServiceClient ======================= 109 * 110 * <p>Service Description: A service that handles tenant management, including CRUD and enumeration. 111 * 112 * <p>Sample for TenantServiceClient: 113 * 114 * <pre>{@code 115 * // This snippet has been automatically generated and should be regarded as a code template only. 116 * // It will require modifications to work: 117 * // - It may require correct/in-range values for request initialization. 118 * // - It may require specifying regional endpoints when creating the service client as shown in 119 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 120 * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { 121 * ProjectName parent = ProjectName.of("[PROJECT]"); 122 * Tenant tenant = Tenant.newBuilder().build(); 123 * Tenant response = tenantServiceClient.createTenant(parent, tenant); 124 * } 125 * }</pre> 126 */ 127 @Generated("by gapic-generator-java") 128 package com.google.cloud.talent.v4beta1; 129 130 import javax.annotation.Generated; 131