Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit a00087e

Browse files
feat!: release gapic-generator-java v2.0.0 (#603)
Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: googleapis/googleapis@d9eaf41 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a #439 feat: Adds additional_experiments field to AutoMlTablesInputs feat: Adds two new ModelType constants for Video Action Recognition training jobs PiperOrigin-RevId: 384483418 Source-Link: googleapis/googleapis@369fd2a Source-Link: googleapis/googleapis-gen@e46a365 #442 feat!: Removes AcceleratorType.TPU_V2 and TPU_V3 constants feat: Adds AcceleratorType.NVIDIA_TESLA_A100 constant feat: Adds BigQuery output table field to batch prediction job output config feat: Adds JobState.JOB_STATE_EXPIRED constant feat: Adds AutoscalingMetricSpec message feat: Adds PipelineService methods: CreatePipelineJob, GetPipelineJob, ListPipelineJobs, DeletePipelineJobs, CancelPipelineJobs feat: Adds fields to Study message PiperOrigin-RevId: 384714314 Source-Link: googleapis/googleapis@cc51e48 Source-Link: googleapis/googleapis-gen@f87b91c #443 feat: Adds additional_experiments field to AutoMlTablesInputs feat: Adds additional_experiments field to AutoMlForecastingInputs feat: Adds two new ModelType constants for Video Action Recognition training jobs PiperOrigin-RevId: 384715948 Source-Link: googleapis/googleapis@83c3728 Source-Link: googleapis/googleapis-gen@4c0c40d #448 feat!: Removes breaking change from v1 version of AI Platform protos PiperOrigin-RevId: 385812643 Source-Link: googleapis/googleapis@22e280d Source-Link: googleapis/googleapis-gen@8a8d8da feat: Adds CustomJob.web_access_uris, CustomJob.enable_web_access fields feat: Adds Feature Store features feat: Adds Endpoint.network, Endpoint.private_endpoints fields and PrivateEndpoints message feat: Adds Execution.State constants: CACHED and CANCELLED feat: Adds IndexEndpoint.private_ip_ranges field feat: Adds IndexEndpointService.deployed_index_id field feat: Adds MetadataService.DeleteArtifact and DeleteExecution methods feat: Adds ModelMonitoringObjectConfig.explanation_config field and ModelMonitoringObjectConfig.ExplanationConfig message feat: Adds ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attribution_score_skew_thresholds and ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attribution_score_drift_threshold fields feat: Adds fields to Study message feat: Adds BigQuery output table field to batch prediction job output config #449 PiperOrigin-RevId: 385903722 Source-Link: googleapis/googleapis@4e836c7 Source-Link: googleapis/googleapis-gen@649ba2a
1 parent ea89a04 commit a00087e

File tree

443 files changed

+72312
-8234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

443 files changed

+72312
-8234
lines changed

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java

+3-19
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.aiplatform.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -1426,12 +1425,7 @@ public static ApiFuture<ListDatasetsPagedResponse> createAsync(
14261425
ListDatasetsPage.createEmptyPage().createPageAsync(context, futureResponse);
14271426
return ApiFutures.transform(
14281427
futurePage,
1429-
new ApiFunction<ListDatasetsPage, ListDatasetsPagedResponse>() {
1430-
@Override
1431-
public ListDatasetsPagedResponse apply(ListDatasetsPage input) {
1432-
return new ListDatasetsPagedResponse(input);
1433-
}
1434-
},
1428+
input -> new ListDatasetsPagedResponse(input),
14351429
MoreExecutors.directExecutor());
14361430
}
14371431

@@ -1506,12 +1500,7 @@ public static ApiFuture<ListDataItemsPagedResponse> createAsync(
15061500
ListDataItemsPage.createEmptyPage().createPageAsync(context, futureResponse);
15071501
return ApiFutures.transform(
15081502
futurePage,
1509-
new ApiFunction<ListDataItemsPage, ListDataItemsPagedResponse>() {
1510-
@Override
1511-
public ListDataItemsPagedResponse apply(ListDataItemsPage input) {
1512-
return new ListDataItemsPagedResponse(input);
1513-
}
1514-
},
1503+
input -> new ListDataItemsPagedResponse(input),
15151504
MoreExecutors.directExecutor());
15161505
}
15171506

@@ -1587,12 +1576,7 @@ public static ApiFuture<ListAnnotationsPagedResponse> createAsync(
15871576
ListAnnotationsPage.createEmptyPage().createPageAsync(context, futureResponse);
15881577
return ApiFutures.transform(
15891578
futurePage,
1590-
new ApiFunction<ListAnnotationsPage, ListAnnotationsPagedResponse>() {
1591-
@Override
1592-
public ListAnnotationsPagedResponse apply(ListAnnotationsPage input) {
1593-
return new ListAnnotationsPagedResponse(input);
1594-
}
1595-
},
1579+
input -> new ListAnnotationsPagedResponse(input),
15961580
MoreExecutors.directExecutor());
15971581
}
15981582

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,13 @@ public DatasetServiceStubSettings.Builder getStubSettingsBuilder() {
237237
return ((DatasetServiceStubSettings.Builder) getStubSettings());
238238
}
239239

240-
// NEXT_MAJOR_VER: remove 'throws Exception'.
241240
/**
242241
* Applies the given settings updater function to all of the unary API methods in this service.
243242
*
244243
* <p>Note: This method does not support applying settings to streaming methods.
245244
*/
246245
public Builder applyToAllUnaryMethods(
247-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
246+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
248247
super.applyToAllUnaryMethods(
249248
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
250249
return this;

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.aiplatform.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -1097,12 +1096,7 @@ public static ApiFuture<ListEndpointsPagedResponse> createAsync(
10971096
ListEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse);
10981097
return ApiFutures.transform(
10991098
futurePage,
1100-
new ApiFunction<ListEndpointsPage, ListEndpointsPagedResponse>() {
1101-
@Override
1102-
public ListEndpointsPagedResponse apply(ListEndpointsPage input) {
1103-
return new ListEndpointsPagedResponse(input);
1104-
}
1105-
},
1099+
input -> new ListEndpointsPagedResponse(input),
11061100
MoreExecutors.directExecutor());
11071101
}
11081102

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,13 @@ public EndpointServiceStubSettings.Builder getStubSettingsBuilder() {
219219
return ((EndpointServiceStubSettings.Builder) getStubSettings());
220220
}
221221

222-
// NEXT_MAJOR_VER: remove 'throws Exception'.
223222
/**
224223
* Applies the given settings updater function to all of the unary API methods in this service.
225224
*
226225
* <p>Note: This method does not support applying settings to streaming methods.
227226
*/
228227
public Builder applyToAllUnaryMethods(
229-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
228+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
230229
super.applyToAllUnaryMethods(
231230
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
232231
return this;

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java

+4-27
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.aiplatform.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -2658,12 +2657,7 @@ public static ApiFuture<ListCustomJobsPagedResponse> createAsync(
26582657
ListCustomJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
26592658
return ApiFutures.transform(
26602659
futurePage,
2661-
new ApiFunction<ListCustomJobsPage, ListCustomJobsPagedResponse>() {
2662-
@Override
2663-
public ListCustomJobsPagedResponse apply(ListCustomJobsPage input) {
2664-
return new ListCustomJobsPagedResponse(input);
2665-
}
2666-
},
2660+
input -> new ListCustomJobsPagedResponse(input),
26672661
MoreExecutors.directExecutor());
26682662
}
26692663

@@ -2740,12 +2734,7 @@ public static ApiFuture<ListDataLabelingJobsPagedResponse> createAsync(
27402734
ListDataLabelingJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
27412735
return ApiFutures.transform(
27422736
futurePage,
2743-
new ApiFunction<ListDataLabelingJobsPage, ListDataLabelingJobsPagedResponse>() {
2744-
@Override
2745-
public ListDataLabelingJobsPagedResponse apply(ListDataLabelingJobsPage input) {
2746-
return new ListDataLabelingJobsPagedResponse(input);
2747-
}
2748-
},
2737+
input -> new ListDataLabelingJobsPagedResponse(input),
27492738
MoreExecutors.directExecutor());
27502739
}
27512740

@@ -2833,14 +2822,7 @@ public static ApiFuture<ListHyperparameterTuningJobsPagedResponse> createAsync(
28332822
.createPageAsync(context, futureResponse);
28342823
return ApiFutures.transform(
28352824
futurePage,
2836-
new ApiFunction<
2837-
ListHyperparameterTuningJobsPage, ListHyperparameterTuningJobsPagedResponse>() {
2838-
@Override
2839-
public ListHyperparameterTuningJobsPagedResponse apply(
2840-
ListHyperparameterTuningJobsPage input) {
2841-
return new ListHyperparameterTuningJobsPagedResponse(input);
2842-
}
2843-
},
2825+
input -> new ListHyperparameterTuningJobsPagedResponse(input),
28442826
MoreExecutors.directExecutor());
28452827
}
28462828

@@ -2934,12 +2916,7 @@ public static ApiFuture<ListBatchPredictionJobsPagedResponse> createAsync(
29342916
ListBatchPredictionJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
29352917
return ApiFutures.transform(
29362918
futurePage,
2937-
new ApiFunction<ListBatchPredictionJobsPage, ListBatchPredictionJobsPagedResponse>() {
2938-
@Override
2939-
public ListBatchPredictionJobsPagedResponse apply(ListBatchPredictionJobsPage input) {
2940-
return new ListBatchPredictionJobsPagedResponse(input);
2941-
}
2942-
},
2919+
input -> new ListBatchPredictionJobsPagedResponse(input),
29432920
MoreExecutors.directExecutor());
29442921
}
29452922

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,13 @@ public JobServiceStubSettings.Builder getStubSettingsBuilder() {
308308
return ((JobServiceStubSettings.Builder) getStubSettings());
309309
}
310310

311-
// NEXT_MAJOR_VER: remove 'throws Exception'.
312311
/**
313312
* Applies the given settings updater function to all of the unary API methods in this service.
314313
*
315314
* <p>Note: This method does not support applying settings to streaming methods.
316315
*/
317316
public Builder applyToAllUnaryMethods(
318-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
317+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
319318
super.applyToAllUnaryMethods(
320319
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
321320
return this;

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.aiplatform.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -530,13 +529,7 @@ public static ApiFuture<SearchMigratableResourcesPagedResponse> createAsync(
530529
SearchMigratableResourcesPage.createEmptyPage().createPageAsync(context, futureResponse);
531530
return ApiFutures.transform(
532531
futurePage,
533-
new ApiFunction<SearchMigratableResourcesPage, SearchMigratableResourcesPagedResponse>() {
534-
@Override
535-
public SearchMigratableResourcesPagedResponse apply(
536-
SearchMigratableResourcesPage input) {
537-
return new SearchMigratableResourcesPagedResponse(input);
538-
}
539-
},
532+
input -> new SearchMigratableResourcesPagedResponse(input),
540533
MoreExecutors.directExecutor());
541534
}
542535

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,13 @@ public MigrationServiceStubSettings.Builder getStubSettingsBuilder() {
181181
return ((MigrationServiceStubSettings.Builder) getStubSettings());
182182
}
183183

184-
// NEXT_MAJOR_VER: remove 'throws Exception'.
185184
/**
186185
* Applies the given settings updater function to all of the unary API methods in this service.
187186
*
188187
* <p>Note: This method does not support applying settings to streaming methods.
189188
*/
190189
public Builder applyToAllUnaryMethods(
191-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
190+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
192191
super.applyToAllUnaryMethods(
193192
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
194193
return this;

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java

+3-22
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.aiplatform.v1;
1818

19-
import com.google.api.core.ApiFunction;
2019
import com.google.api.core.ApiFuture;
2120
import com.google.api.core.ApiFutures;
2221
import com.google.api.core.BetaApi;
@@ -1425,14 +1424,7 @@ public static ApiFuture<ListModelsPagedResponse> createAsync(
14251424
ApiFuture<ListModelsPage> futurePage =
14261425
ListModelsPage.createEmptyPage().createPageAsync(context, futureResponse);
14271426
return ApiFutures.transform(
1428-
futurePage,
1429-
new ApiFunction<ListModelsPage, ListModelsPagedResponse>() {
1430-
@Override
1431-
public ListModelsPagedResponse apply(ListModelsPage input) {
1432-
return new ListModelsPagedResponse(input);
1433-
}
1434-
},
1435-
MoreExecutors.directExecutor());
1427+
futurePage, input -> new ListModelsPagedResponse(input), MoreExecutors.directExecutor());
14361428
}
14371429

14381430
private ListModelsPagedResponse(ListModelsPage page) {
@@ -1507,12 +1499,7 @@ public static ApiFuture<ListModelEvaluationsPagedResponse> createAsync(
15071499
ListModelEvaluationsPage.createEmptyPage().createPageAsync(context, futureResponse);
15081500
return ApiFutures.transform(
15091501
futurePage,
1510-
new ApiFunction<ListModelEvaluationsPage, ListModelEvaluationsPagedResponse>() {
1511-
@Override
1512-
public ListModelEvaluationsPagedResponse apply(ListModelEvaluationsPage input) {
1513-
return new ListModelEvaluationsPagedResponse(input);
1514-
}
1515-
},
1502+
input -> new ListModelEvaluationsPagedResponse(input),
15161503
MoreExecutors.directExecutor());
15171504
}
15181505

@@ -1599,13 +1586,7 @@ public static ApiFuture<ListModelEvaluationSlicesPagedResponse> createAsync(
15991586
ListModelEvaluationSlicesPage.createEmptyPage().createPageAsync(context, futureResponse);
16001587
return ApiFutures.transform(
16011588
futurePage,
1602-
new ApiFunction<ListModelEvaluationSlicesPage, ListModelEvaluationSlicesPagedResponse>() {
1603-
@Override
1604-
public ListModelEvaluationSlicesPagedResponse apply(
1605-
ListModelEvaluationSlicesPage input) {
1606-
return new ListModelEvaluationSlicesPagedResponse(input);
1607-
}
1608-
},
1589+
input -> new ListModelEvaluationSlicesPagedResponse(input),
16091590
MoreExecutors.directExecutor());
16101591
}
16111592

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceSettings.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,13 @@ public ModelServiceStubSettings.Builder getStubSettingsBuilder() {
239239
return ((ModelServiceStubSettings.Builder) getStubSettings());
240240
}
241241

242-
// NEXT_MAJOR_VER: remove 'throws Exception'.
243242
/**
244243
* Applies the given settings updater function to all of the unary API methods in this service.
245244
*
246245
* <p>Note: This method does not support applying settings to streaming methods.
247246
*/
248247
public Builder applyToAllUnaryMethods(
249-
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
248+
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
250249
super.applyToAllUnaryMethods(
251250
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
252251
return this;

0 commit comments

Comments
 (0)