11/*
2- * Copyright 2019 Google LLC
2+ * Copyright 2023 Google LLC
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * https://www.apache.org/licenses/LICENSE-2.0
8+ * https://www.apache.org/licenses/LICENSE-2.0
99 *
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package com .google .cloud .talent .v4beta1 .it ;
16+ package com .google .cloud .talent .v4 .it ;
1717
1818import static org .junit .Assert .assertEquals ;
1919
2020import com .google .cloud .ServiceOptions ;
21- import com .google .cloud .talent .v4beta1 .ClientEvent ;
22- import com .google .cloud .talent .v4beta1 .Company ;
23- import com .google .cloud .talent .v4beta1 .CompanyName ;
24- import com .google .cloud .talent .v4beta1 .CompanyServiceClient ;
25- import com .google .cloud .talent .v4beta1 .CompleteQueryRequest ;
26- import com .google .cloud .talent .v4beta1 .CompleteQueryResponse ;
27- import com .google .cloud .talent .v4beta1 .CompletionClient ;
28- import com .google .cloud .talent .v4beta1 .CreateClientEventRequest ;
29- import com .google .cloud .talent .v4beta1 .CreateCompanyRequest ;
30- import com .google .cloud .talent .v4beta1 .CreateJobRequest ;
31- import com .google .cloud .talent .v4beta1 .CreateTenantRequest ;
32- import com .google .cloud .talent .v4beta1 .DeleteCompanyRequest ;
33- import com .google .cloud .talent .v4beta1 .DeleteJobRequest ;
34- import com .google .cloud .talent .v4beta1 .DeleteTenantRequest ;
35- import com .google .cloud .talent .v4beta1 .EventServiceClient ;
36- import com .google .cloud .talent .v4beta1 .GetCompanyRequest ;
37- import com .google .cloud .talent .v4beta1 .GetJobRequest ;
38- import com .google .cloud .talent .v4beta1 .GetTenantRequest ;
39- import com .google .cloud .talent .v4beta1 .Job ;
40- import com .google .cloud .talent .v4beta1 .JobEvent ;
41- import com .google .cloud .talent .v4beta1 .JobName ;
42- import com .google .cloud .talent .v4beta1 .JobServiceClient ;
43- import com .google .cloud .talent .v4beta1 .ListCompaniesRequest ;
44- import com .google .cloud .talent .v4beta1 .ListJobsRequest ;
45- import com .google .cloud .talent .v4beta1 .ListTenantsRequest ;
46- import com .google .cloud .talent .v4beta1 .ProjectName ;
47- import com .google .cloud .talent .v4beta1 .Tenant ;
48- import com .google .cloud .talent .v4beta1 .TenantName ;
49- import com .google .cloud .talent .v4beta1 .TenantServiceClient ;
50- import com .google .cloud .talent .v4beta1 .UpdateCompanyRequest ;
51- import com .google .cloud .talent .v4beta1 .UpdateJobRequest ;
21+ import com .google .cloud .talent .v4 .ClientEvent ;
22+ import com .google .cloud .talent .v4 .Company ;
23+ import com .google .cloud .talent .v4 .CompanyName ;
24+ import com .google .cloud .talent .v4 .CompanyServiceClient ;
25+ import com .google .cloud .talent .v4 .CompleteQueryRequest ;
26+ import com .google .cloud .talent .v4 .CompleteQueryResponse ;
27+ import com .google .cloud .talent .v4 .CompletionClient ;
28+ import com .google .cloud .talent .v4 .CreateClientEventRequest ;
29+ import com .google .cloud .talent .v4 .CreateCompanyRequest ;
30+ import com .google .cloud .talent .v4 .CreateJobRequest ;
31+ import com .google .cloud .talent .v4 .CreateTenantRequest ;
32+ import com .google .cloud .talent .v4 .DeleteCompanyRequest ;
33+ import com .google .cloud .talent .v4 .DeleteJobRequest ;
34+ import com .google .cloud .talent .v4 .DeleteTenantRequest ;
35+ import com .google .cloud .talent .v4 .EventServiceClient ;
36+ import com .google .cloud .talent .v4 .GetCompanyRequest ;
37+ import com .google .cloud .talent .v4 .GetJobRequest ;
38+ import com .google .cloud .talent .v4 .GetTenantRequest ;
39+ import com .google .cloud .talent .v4 .Job ;
40+ import com .google .cloud .talent .v4 .JobEvent ;
41+ import com .google .cloud .talent .v4 .JobName ;
42+ import com .google .cloud .talent .v4 .JobServiceClient ;
43+ import com .google .cloud .talent .v4 .ListCompaniesRequest ;
44+ import com .google .cloud .talent .v4 .ListJobsRequest ;
45+ import com .google .cloud .talent .v4 .ListTenantsRequest ;
46+ import com .google .cloud .talent .v4 .ProjectName ;
47+ import com .google .cloud .talent .v4 .Tenant ;
48+ import com .google .cloud .talent .v4 .TenantName ;
49+ import com .google .cloud .talent .v4 .TenantServiceClient ;
50+ import com .google .cloud .talent .v4 .UpdateCompanyRequest ;
51+ import com .google .cloud .talent .v4 .UpdateJobRequest ;
5252import com .google .protobuf .Timestamp ;
5353import java .io .IOException ;
5454import java .util .Arrays ;
@@ -120,7 +120,7 @@ public static void beforeTest() throws IOException {
120120 .build ();
121121 company = companyServiceClient .createCompany (companyRequest );
122122 companyId = getId (company .getName ());
123- companyName = CompanyName .ofProjectTenantCompanyName (PROJECT_ID , tenantId , companyId );
123+ companyName = CompanyName .of (PROJECT_ID , tenantId , companyId );
124124
125125 /* create job */
126126 jobServiceClient = JobServiceClient .create ();
@@ -140,7 +140,7 @@ public static void beforeTest() throws IOException {
140140 CreateJobRequest .newBuilder ().setParent (tenantName .toString ()).setJob (createJob ).build ();
141141 job = jobServiceClient .createJob (jobRequest );
142142 jobId = getId (job .getName ());
143- jobName = JobName .ofProjectTenantJobName (PROJECT_ID , tenantId , jobId );
143+ jobName = JobName .of (PROJECT_ID , tenantId , jobId );
144144
145145 /*create event */
146146 eventServiceClient = EventServiceClient .create ();
@@ -313,7 +313,7 @@ public void createEventTest() {
313313 public void completeQueryTest () {
314314 CompleteQueryRequest request =
315315 CompleteQueryRequest .newBuilder ()
316- .setParent (tenantName .toString ())
316+ .setTenant (tenantName .toString ())
317317 .setQuery ("Soft" )
318318 .setPageSize (5 )
319319 .addAllLanguageCodes (Arrays .asList (LANGUAGE_CODE ))
0 commit comments