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 * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); 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 * .setTenant(TenantName.of("[PROJECT]", "[TENANT]").toString()) 58 * .setQuery("query107944136") 59 * .addAllLanguageCodes(new ArrayList<String>()) 60 * .setPageSize(883849137) 61 * .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) 62 * .build(); 63 * CompleteQueryResponse response = completionClient.completeQuery(request); 64 * } 65 * }</pre> 66 * 67 * <p>======================= EventServiceClient ======================= 68 * 69 * <p>Service Description: A service handles client event report. 70 * 71 * <p>Sample for EventServiceClient: 72 * 73 * <pre>{@code 74 * // This snippet has been automatically generated and should be regarded as a code template only. 75 * // It will require modifications to work: 76 * // - It may require correct/in-range values for request initialization. 77 * // - It may require specifying regional endpoints when creating the service client as shown in 78 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 79 * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { 80 * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); 81 * ClientEvent clientEvent = ClientEvent.newBuilder().build(); 82 * ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent); 83 * } 84 * }</pre> 85 * 86 * <p>======================= JobServiceClient ======================= 87 * 88 * <p>Service Description: A service handles job management, including job CRUD, enumeration and 89 * search. 90 * 91 * <p>Sample for JobServiceClient: 92 * 93 * <pre>{@code 94 * // This snippet has been automatically generated and should be regarded as a code template only. 95 * // It will require modifications to work: 96 * // - It may require correct/in-range values for request initialization. 97 * // - It may require specifying regional endpoints when creating the service client as shown in 98 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 99 * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { 100 * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); 101 * Job job = Job.newBuilder().build(); 102 * Job response = jobServiceClient.createJob(parent, job); 103 * } 104 * }</pre> 105 * 106 * <p>======================= TenantServiceClient ======================= 107 * 108 * <p>Service Description: A service that handles tenant management, including CRUD and enumeration. 109 * 110 * <p>Sample for TenantServiceClient: 111 * 112 * <pre>{@code 113 * // This snippet has been automatically generated and should be regarded as a code template only. 114 * // It will require modifications to work: 115 * // - It may require correct/in-range values for request initialization. 116 * // - It may require specifying regional endpoints when creating the service client as shown in 117 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 118 * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { 119 * ProjectName parent = ProjectName.of("[PROJECT]"); 120 * Tenant tenant = Tenant.newBuilder().build(); 121 * Tenant response = tenantServiceClient.createTenant(parent, tenant); 122 * } 123 * }</pre> 124 */ 125 @Generated("by gapic-generator-java") 126 package com.google.cloud.talent.v4; 127 128 import javax.annotation.Generated; 129