Skip to content

Commit 1522da9

Browse files
chore: Update generation configuration at Fri Jun 20 02:32:25 UTC 2025 (#11615)
* chore: Update generation configuration at Thu Jun 5 02:32:48 UTC 2025 * chore: generate libraries at Thu Jun 5 02:35:02 UTC 2025 * chore: Update generation configuration at Fri Jun 6 02:32:14 UTC 2025 * chore: generate libraries at Fri Jun 6 02:34:33 UTC 2025 * chore: Update generation configuration at Sat Jun 7 02:31:49 UTC 2025 * chore: generate libraries at Sat Jun 7 02:34:07 UTC 2025 * chore: Update generation configuration at Tue Jun 10 02:33:19 UTC 2025 * chore: generate libraries at Tue Jun 10 02:35:36 UTC 2025 * chore: Update generation configuration at Wed Jun 11 02:32:43 UTC 2025 * chore: generate libraries at Wed Jun 11 02:35:02 UTC 2025 * chore: Update generation configuration at Thu Jun 12 02:32:13 UTC 2025 * chore: generate libraries at Thu Jun 12 02:34:22 UTC 2025 * chore: Update generation configuration at Fri Jun 13 02:32:32 UTC 2025 * chore: generate libraries at Fri Jun 13 02:34:45 UTC 2025 * chore: Update generation configuration at Sat Jun 14 02:31:31 UTC 2025 * chore: generate libraries at Sat Jun 14 02:33:46 UTC 2025 * chore: Update generation configuration at Tue Jun 17 02:33:07 UTC 2025 * chore: generate libraries at Tue Jun 17 02:35:23 UTC 2025 * chore: Update generation configuration at Wed Jun 18 02:32:35 UTC 2025 * chore: generate libraries at Wed Jun 18 02:35:23 UTC 2025 * chore: Update generation configuration at Thu Jun 19 02:33:03 UTC 2025 * chore: generate libraries at Thu Jun 19 02:35:21 UTC 2025 * chore: Update generation configuration at Fri Jun 20 02:32:25 UTC 2025
1 parent a0d0bf3 commit 1522da9

647 files changed

Lines changed: 190363 additions & 22444 deletions

File tree

Some content is hidden

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

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.59.0
2-
googleapis_commitish: f1859b90227eb09ecd2fa85c96e89b60dbf688b5
2+
googleapis_commitish: f01a17a560b4fbc888fd552c978f4e1f8614100b
33
libraries_bom_version: 26.61.0
44

55
# the libraries are ordered with respect to library name, which is

java-aiplatform/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
4242
<dependency>
4343
<groupId>com.google.cloud</groupId>
4444
<artifactId>google-cloud-aiplatform</artifactId>
45-
<version>3.64.0</version>
45+
<version>3.66.0</version>
4646
</dependency>
4747
```
4848

4949
If you are using Gradle without BOM, add this to your dependencies:
5050

5151
```Groovy
52-
implementation 'com.google.cloud:google-cloud-aiplatform:3.64.0'
52+
implementation 'com.google.cloud:google-cloud-aiplatform:3.66.0'
5353
```
5454

5555
If you are using SBT, add this to your dependencies:
5656

5757
```Scala
58-
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.64.0"
58+
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.66.0"
5959
```
6060

6161
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
194194
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
195195
[stability-image]: https://img.shields.io/badge/stability-stable-green
196196
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
197-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.64.0
197+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.66.0
198198
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
199199
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
200200
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

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

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
import com.google.api.core.ApiFuture;
2020
import com.google.api.core.ApiFutures;
2121
import com.google.api.gax.core.BackgroundResource;
22+
import com.google.api.gax.longrunning.OperationFuture;
2223
import com.google.api.gax.paging.AbstractFixedSizeCollection;
2324
import com.google.api.gax.paging.AbstractPage;
2425
import com.google.api.gax.paging.AbstractPagedListResponse;
26+
import com.google.api.gax.rpc.OperationCallable;
2527
import com.google.api.gax.rpc.PageContext;
2628
import com.google.api.gax.rpc.UnaryCallable;
2729
import com.google.cloud.aiplatform.v1.stub.ModelGardenServiceStub;
@@ -36,6 +38,8 @@
3638
import com.google.iam.v1.SetIamPolicyRequest;
3739
import com.google.iam.v1.TestIamPermissionsRequest;
3840
import com.google.iam.v1.TestIamPermissionsResponse;
41+
import com.google.longrunning.Operation;
42+
import com.google.longrunning.OperationsClient;
3943
import java.io.IOException;
4044
import java.util.List;
4145
import java.util.concurrent.TimeUnit;
@@ -91,6 +95,21 @@
9195
* </td>
9296
* </tr>
9397
* <tr>
98+
* <td><p> Deploy</td>
99+
* <td><p> Deploys a model to a new endpoint.</td>
100+
* <td>
101+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
102+
* <ul>
103+
* <li><p> deployAsync(DeployRequest request)
104+
* </ul>
105+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
106+
* <ul>
107+
* <li><p> deployOperationCallable()
108+
* <li><p> deployCallable()
109+
* </ul>
110+
* </td>
111+
* </tr>
112+
* <tr>
94113
* <td><p> ListLocations</td>
95114
* <td><p> Lists information about the supported locations for this service.</td>
96115
* <td>
@@ -210,6 +229,7 @@
210229
public class ModelGardenServiceClient implements BackgroundResource {
211230
private final ModelGardenServiceSettings settings;
212231
private final ModelGardenServiceStub stub;
232+
private final OperationsClient operationsClient;
213233

214234
/** Constructs an instance of ModelGardenServiceClient with default settings. */
215235
public static final ModelGardenServiceClient create() throws IOException {
@@ -241,11 +261,13 @@ public static final ModelGardenServiceClient create(ModelGardenServiceStub stub)
241261
protected ModelGardenServiceClient(ModelGardenServiceSettings settings) throws IOException {
242262
this.settings = settings;
243263
this.stub = ((ModelGardenServiceStubSettings) settings.getStubSettings()).createStub();
264+
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
244265
}
245266

246267
protected ModelGardenServiceClient(ModelGardenServiceStub stub) {
247268
this.settings = null;
248269
this.stub = stub;
270+
this.operationsClient = OperationsClient.create(this.stub.getOperationsStub());
249271
}
250272

251273
public final ModelGardenServiceSettings getSettings() {
@@ -256,6 +278,14 @@ public ModelGardenServiceStub getStub() {
256278
return stub;
257279
}
258280

281+
/**
282+
* Returns the OperationsClient that can be used to query the status of a long-running operation
283+
* returned by another API method call.
284+
*/
285+
public final OperationsClient getOperationsClient() {
286+
return operationsClient;
287+
}
288+
259289
// AUTO-GENERATED DOCUMENTATION AND METHOD.
260290
/**
261291
* Gets a Model Garden publisher model.
@@ -377,6 +407,100 @@ public final UnaryCallable<GetPublisherModelRequest, PublisherModel> getPublishe
377407
return stub.getPublisherModelCallable();
378408
}
379409

410+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
411+
/**
412+
* Deploys a model to a new endpoint.
413+
*
414+
* <p>Sample code:
415+
*
416+
* <pre>{@code
417+
* // This snippet has been automatically generated and should be regarded as a code template only.
418+
* // It will require modifications to work:
419+
* // - It may require correct/in-range values for request initialization.
420+
* // - It may require specifying regional endpoints when creating the service client as shown in
421+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
422+
* try (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) {
423+
* DeployRequest request =
424+
* DeployRequest.newBuilder()
425+
* .setDestination(LocationName.of("[PROJECT]", "[LOCATION]").toString())
426+
* .setModelConfig(DeployRequest.ModelConfig.newBuilder().build())
427+
* .setEndpointConfig(DeployRequest.EndpointConfig.newBuilder().build())
428+
* .setDeployConfig(DeployRequest.DeployConfig.newBuilder().build())
429+
* .build();
430+
* DeployResponse response = modelGardenServiceClient.deployAsync(request).get();
431+
* }
432+
* }</pre>
433+
*
434+
* @param request The request object containing all of the parameters for the API call.
435+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
436+
*/
437+
public final OperationFuture<DeployResponse, DeployOperationMetadata> deployAsync(
438+
DeployRequest request) {
439+
return deployOperationCallable().futureCall(request);
440+
}
441+
442+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
443+
/**
444+
* Deploys a model to a new endpoint.
445+
*
446+
* <p>Sample code:
447+
*
448+
* <pre>{@code
449+
* // This snippet has been automatically generated and should be regarded as a code template only.
450+
* // It will require modifications to work:
451+
* // - It may require correct/in-range values for request initialization.
452+
* // - It may require specifying regional endpoints when creating the service client as shown in
453+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
454+
* try (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) {
455+
* DeployRequest request =
456+
* DeployRequest.newBuilder()
457+
* .setDestination(LocationName.of("[PROJECT]", "[LOCATION]").toString())
458+
* .setModelConfig(DeployRequest.ModelConfig.newBuilder().build())
459+
* .setEndpointConfig(DeployRequest.EndpointConfig.newBuilder().build())
460+
* .setDeployConfig(DeployRequest.DeployConfig.newBuilder().build())
461+
* .build();
462+
* OperationFuture<DeployResponse, DeployOperationMetadata> future =
463+
* modelGardenServiceClient.deployOperationCallable().futureCall(request);
464+
* // Do something.
465+
* DeployResponse response = future.get();
466+
* }
467+
* }</pre>
468+
*/
469+
public final OperationCallable<DeployRequest, DeployResponse, DeployOperationMetadata>
470+
deployOperationCallable() {
471+
return stub.deployOperationCallable();
472+
}
473+
474+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
475+
/**
476+
* Deploys a model to a new endpoint.
477+
*
478+
* <p>Sample code:
479+
*
480+
* <pre>{@code
481+
* // This snippet has been automatically generated and should be regarded as a code template only.
482+
* // It will require modifications to work:
483+
* // - It may require correct/in-range values for request initialization.
484+
* // - It may require specifying regional endpoints when creating the service client as shown in
485+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
486+
* try (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) {
487+
* DeployRequest request =
488+
* DeployRequest.newBuilder()
489+
* .setDestination(LocationName.of("[PROJECT]", "[LOCATION]").toString())
490+
* .setModelConfig(DeployRequest.ModelConfig.newBuilder().build())
491+
* .setEndpointConfig(DeployRequest.EndpointConfig.newBuilder().build())
492+
* .setDeployConfig(DeployRequest.DeployConfig.newBuilder().build())
493+
* .build();
494+
* ApiFuture<Operation> future = modelGardenServiceClient.deployCallable().futureCall(request);
495+
* // Do something.
496+
* Operation response = future.get();
497+
* }
498+
* }</pre>
499+
*/
500+
public final UnaryCallable<DeployRequest, Operation> deployCallable() {
501+
return stub.deployCallable();
502+
}
503+
380504
// AUTO-GENERATED DOCUMENTATION AND METHOD.
381505
/**
382506
* Lists information about the supported locations for this service.

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.google.api.gax.rpc.ApiClientHeaderProvider;
2626
import com.google.api.gax.rpc.ClientContext;
2727
import com.google.api.gax.rpc.ClientSettings;
28+
import com.google.api.gax.rpc.OperationCallSettings;
2829
import com.google.api.gax.rpc.PagedCallSettings;
2930
import com.google.api.gax.rpc.TransportChannelProvider;
3031
import com.google.api.gax.rpc.UnaryCallSettings;
@@ -38,6 +39,7 @@
3839
import com.google.iam.v1.SetIamPolicyRequest;
3940
import com.google.iam.v1.TestIamPermissionsRequest;
4041
import com.google.iam.v1.TestIamPermissionsResponse;
42+
import com.google.longrunning.Operation;
4143
import java.io.IOException;
4244
import java.util.List;
4345
import javax.annotation.Generated;
@@ -92,6 +94,32 @@
9294
* Please refer to the [Client Side Retry
9395
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
9496
* additional support in setting retries.
97+
*
98+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
99+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
100+
* configure the RetrySettings for deploy:
101+
*
102+
* <pre>{@code
103+
* // This snippet has been automatically generated and should be regarded as a code template only.
104+
* // It will require modifications to work:
105+
* // - It may require correct/in-range values for request initialization.
106+
* // - It may require specifying regional endpoints when creating the service client as shown in
107+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
108+
* ModelGardenServiceSettings.Builder modelGardenServiceSettingsBuilder =
109+
* ModelGardenServiceSettings.newBuilder();
110+
* TimedRetryAlgorithm timedRetryAlgorithm =
111+
* OperationalTimedPollAlgorithm.create(
112+
* RetrySettings.newBuilder()
113+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
114+
* .setRetryDelayMultiplier(1.5)
115+
* .setMaxRetryDelayDuration(Duration.ofMillis(5000))
116+
* .setTotalTimeoutDuration(Duration.ofHours(24))
117+
* .build());
118+
* modelGardenServiceSettingsBuilder
119+
* .createClusterOperationSettings()
120+
* .setPollingAlgorithm(timedRetryAlgorithm)
121+
* .build();
122+
* }</pre>
95123
*/
96124
@Generated("by gapic-generator-java")
97125
public class ModelGardenServiceSettings extends ClientSettings<ModelGardenServiceSettings> {
@@ -101,6 +129,17 @@ public UnaryCallSettings<GetPublisherModelRequest, PublisherModel> getPublisherM
101129
return ((ModelGardenServiceStubSettings) getStubSettings()).getPublisherModelSettings();
102130
}
103131

132+
/** Returns the object with the settings used for calls to deploy. */
133+
public UnaryCallSettings<DeployRequest, Operation> deploySettings() {
134+
return ((ModelGardenServiceStubSettings) getStubSettings()).deploySettings();
135+
}
136+
137+
/** Returns the object with the settings used for calls to deploy. */
138+
public OperationCallSettings<DeployRequest, DeployResponse, DeployOperationMetadata>
139+
deployOperationSettings() {
140+
return ((ModelGardenServiceStubSettings) getStubSettings()).deployOperationSettings();
141+
}
142+
104143
/** Returns the object with the settings used for calls to listLocations. */
105144
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
106145
listLocationsSettings() {
@@ -230,6 +269,17 @@ public Builder applyToAllUnaryMethods(
230269
return getStubSettingsBuilder().getPublisherModelSettings();
231270
}
232271

272+
/** Returns the builder for the settings used for calls to deploy. */
273+
public UnaryCallSettings.Builder<DeployRequest, Operation> deploySettings() {
274+
return getStubSettingsBuilder().deploySettings();
275+
}
276+
277+
/** Returns the builder for the settings used for calls to deploy. */
278+
public OperationCallSettings.Builder<DeployRequest, DeployResponse, DeployOperationMetadata>
279+
deployOperationSettings() {
280+
return getStubSettingsBuilder().deployOperationSettings();
281+
}
282+
233283
/** Returns the builder for the settings used for calls to listLocations. */
234284
public PagedCallSettings.Builder<
235285
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>

0 commit comments

Comments
 (0)