Skip to content

Commit 5a82003

Browse files
feat: [aiplatform] add data_item_count to Dataset (#9636)
* feat: add data_item_count to Dataset feat: add DeleteSavedQuery to DatasetService feat: add JOB_STATE_PARTIALLY_SUCCEEDED to JobState feat: add pipeline_job to Model feat: add reserved_ip_ranges to PipelineJob PiperOrigin-RevId: 547343567 Source-Link: googleapis/googleapis@72b20cc Source-Link: https://github.com/googleapis/googleapis-gen/commit/4d84e76df6f5a361eca3573a0f69221b421e7359 Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI0ZDg0ZTc2ZGY2ZjVhMzYxZWNhMzU3M2EwZjY5MjIxYjQyMWU3MzU5In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add data_item_count to Dataset feat: add DeleteSavedQuery to DatasetService feat: add ExportEndpointOperationMetadata and ExportEndpointResponse to Endpoint feat: add JOB_STATE_PARTIALLY_SUCCEEDED to JobState feat: add pipeline_job to Model feat: add persistent_resource.proto and persistent_resource_service.proto feat: add reserved_ip_ranges to PipelineJob feat: add ReadTensorboardSize to TensorboardService PiperOrigin-RevId: 547519544 Source-Link: googleapis/googleapis@4f40e53 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cf937c7ecbe8ceeaa031f1389934149bdadf04be Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiJjZjkzN2M3ZWNiZThjZWVhYTAzMWYxMzg5OTM0MTQ5YmRhZGYwNGJlIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 843b17b commit 5a82003

File tree

154 files changed

+30804
-2966
lines changed

Some content is hidden

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

154 files changed

+30804
-2966
lines changed

java-aiplatform/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>26.17.0</version>
23+
<version>26.18.0</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>
@@ -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.22.0</version>
45+
<version>3.21.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.22.0'
52+
implementation 'com.google.cloud:google-cloud-aiplatform:3.21.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.22.0"
58+
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.21.0"
5959
```
6060
<!-- {x-version-update-end} -->
6161

@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.20.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.21.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[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/DatasetServiceClient.java

+151-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949

5050
// AUTO-GENERATED DOCUMENTATION AND CLASS.
5151
/**
52-
* Service Description: The service that handles the CRUD of Vertex AI Dataset and its child
53-
* resources.
52+
* Service Description: The service that manages Vertex AI Dataset and its child resources.
5453
*
5554
* <p>This class provides the ability to make remote calls to the backing service through method
5655
* calls that map to API methods. Sample code to get started:
@@ -1643,6 +1642,156 @@ public final ListSavedQueriesPagedResponse listSavedQueries(ListSavedQueriesRequ
16431642
return stub.listSavedQueriesCallable();
16441643
}
16451644

1645+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1646+
/**
1647+
* Deletes a SavedQuery.
1648+
*
1649+
* <p>Sample code:
1650+
*
1651+
* <pre>{@code
1652+
* // This snippet has been automatically generated and should be regarded as a code template only.
1653+
* // It will require modifications to work:
1654+
* // - It may require correct/in-range values for request initialization.
1655+
* // - It may require specifying regional endpoints when creating the service client as shown in
1656+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1657+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1658+
* SavedQueryName name =
1659+
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]");
1660+
* datasetServiceClient.deleteSavedQueryAsync(name).get();
1661+
* }
1662+
* }</pre>
1663+
*
1664+
* @param name Required. The resource name of the SavedQuery to delete. Format:
1665+
* `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
1666+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1667+
*/
1668+
public final OperationFuture<Empty, DeleteOperationMetadata> deleteSavedQueryAsync(
1669+
SavedQueryName name) {
1670+
DeleteSavedQueryRequest request =
1671+
DeleteSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build();
1672+
return deleteSavedQueryAsync(request);
1673+
}
1674+
1675+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1676+
/**
1677+
* Deletes a SavedQuery.
1678+
*
1679+
* <p>Sample code:
1680+
*
1681+
* <pre>{@code
1682+
* // This snippet has been automatically generated and should be regarded as a code template only.
1683+
* // It will require modifications to work:
1684+
* // - It may require correct/in-range values for request initialization.
1685+
* // - It may require specifying regional endpoints when creating the service client as shown in
1686+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1687+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1688+
* String name =
1689+
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]").toString();
1690+
* datasetServiceClient.deleteSavedQueryAsync(name).get();
1691+
* }
1692+
* }</pre>
1693+
*
1694+
* @param name Required. The resource name of the SavedQuery to delete. Format:
1695+
* `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
1696+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1697+
*/
1698+
public final OperationFuture<Empty, DeleteOperationMetadata> deleteSavedQueryAsync(String name) {
1699+
DeleteSavedQueryRequest request = DeleteSavedQueryRequest.newBuilder().setName(name).build();
1700+
return deleteSavedQueryAsync(request);
1701+
}
1702+
1703+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1704+
/**
1705+
* Deletes a SavedQuery.
1706+
*
1707+
* <p>Sample code:
1708+
*
1709+
* <pre>{@code
1710+
* // This snippet has been automatically generated and should be regarded as a code template only.
1711+
* // It will require modifications to work:
1712+
* // - It may require correct/in-range values for request initialization.
1713+
* // - It may require specifying regional endpoints when creating the service client as shown in
1714+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1715+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1716+
* DeleteSavedQueryRequest request =
1717+
* DeleteSavedQueryRequest.newBuilder()
1718+
* .setName(
1719+
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
1720+
* .toString())
1721+
* .build();
1722+
* datasetServiceClient.deleteSavedQueryAsync(request).get();
1723+
* }
1724+
* }</pre>
1725+
*
1726+
* @param request The request object containing all of the parameters for the API call.
1727+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1728+
*/
1729+
public final OperationFuture<Empty, DeleteOperationMetadata> deleteSavedQueryAsync(
1730+
DeleteSavedQueryRequest request) {
1731+
return deleteSavedQueryOperationCallable().futureCall(request);
1732+
}
1733+
1734+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1735+
/**
1736+
* Deletes a SavedQuery.
1737+
*
1738+
* <p>Sample code:
1739+
*
1740+
* <pre>{@code
1741+
* // This snippet has been automatically generated and should be regarded as a code template only.
1742+
* // It will require modifications to work:
1743+
* // - It may require correct/in-range values for request initialization.
1744+
* // - It may require specifying regional endpoints when creating the service client as shown in
1745+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1746+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1747+
* DeleteSavedQueryRequest request =
1748+
* DeleteSavedQueryRequest.newBuilder()
1749+
* .setName(
1750+
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
1751+
* .toString())
1752+
* .build();
1753+
* OperationFuture<Empty, DeleteOperationMetadata> future =
1754+
* datasetServiceClient.deleteSavedQueryOperationCallable().futureCall(request);
1755+
* // Do something.
1756+
* future.get();
1757+
* }
1758+
* }</pre>
1759+
*/
1760+
public final OperationCallable<DeleteSavedQueryRequest, Empty, DeleteOperationMetadata>
1761+
deleteSavedQueryOperationCallable() {
1762+
return stub.deleteSavedQueryOperationCallable();
1763+
}
1764+
1765+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1766+
/**
1767+
* Deletes a SavedQuery.
1768+
*
1769+
* <p>Sample code:
1770+
*
1771+
* <pre>{@code
1772+
* // This snippet has been automatically generated and should be regarded as a code template only.
1773+
* // It will require modifications to work:
1774+
* // - It may require correct/in-range values for request initialization.
1775+
* // - It may require specifying regional endpoints when creating the service client as shown in
1776+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1777+
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
1778+
* DeleteSavedQueryRequest request =
1779+
* DeleteSavedQueryRequest.newBuilder()
1780+
* .setName(
1781+
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
1782+
* .toString())
1783+
* .build();
1784+
* ApiFuture<Operation> future =
1785+
* datasetServiceClient.deleteSavedQueryCallable().futureCall(request);
1786+
* // Do something.
1787+
* future.get();
1788+
* }
1789+
* }</pre>
1790+
*/
1791+
public final UnaryCallable<DeleteSavedQueryRequest, Operation> deleteSavedQueryCallable() {
1792+
return stub.deleteSavedQueryCallable();
1793+
}
1794+
16461795
// AUTO-GENERATED DOCUMENTATION AND METHOD.
16471796
/**
16481797
* Gets an AnnotationSpec.

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

+23
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,17 @@ public UnaryCallSettings<ExportDataRequest, Operation> exportDataSettings() {
171171
return ((DatasetServiceStubSettings) getStubSettings()).listSavedQueriesSettings();
172172
}
173173

174+
/** Returns the object with the settings used for calls to deleteSavedQuery. */
175+
public UnaryCallSettings<DeleteSavedQueryRequest, Operation> deleteSavedQuerySettings() {
176+
return ((DatasetServiceStubSettings) getStubSettings()).deleteSavedQuerySettings();
177+
}
178+
179+
/** Returns the object with the settings used for calls to deleteSavedQuery. */
180+
public OperationCallSettings<DeleteSavedQueryRequest, Empty, DeleteOperationMetadata>
181+
deleteSavedQueryOperationSettings() {
182+
return ((DatasetServiceStubSettings) getStubSettings()).deleteSavedQueryOperationSettings();
183+
}
184+
174185
/** Returns the object with the settings used for calls to getAnnotationSpec. */
175186
public UnaryCallSettings<GetAnnotationSpecRequest, AnnotationSpec> getAnnotationSpecSettings() {
176187
return ((DatasetServiceStubSettings) getStubSettings()).getAnnotationSpecSettings();
@@ -392,6 +403,18 @@ public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSetting
392403
return getStubSettingsBuilder().listSavedQueriesSettings();
393404
}
394405

406+
/** Returns the builder for the settings used for calls to deleteSavedQuery. */
407+
public UnaryCallSettings.Builder<DeleteSavedQueryRequest, Operation>
408+
deleteSavedQuerySettings() {
409+
return getStubSettingsBuilder().deleteSavedQuerySettings();
410+
}
411+
412+
/** Returns the builder for the settings used for calls to deleteSavedQuery. */
413+
public OperationCallSettings.Builder<DeleteSavedQueryRequest, Empty, DeleteOperationMetadata>
414+
deleteSavedQueryOperationSettings() {
415+
return getStubSettingsBuilder().deleteSavedQueryOperationSettings();
416+
}
417+
395418
/** Returns the builder for the settings used for calls to getAnnotationSpec. */
396419
public UnaryCallSettings.Builder<GetAnnotationSpecRequest, AnnotationSpec>
397420
getAnnotationSpecSettings() {

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public final OperationsClient getOperationsClient() {
207207
* }</pre>
208208
*
209209
* @param parent Required. The resource name of the Location to create Featurestores. Format:
210-
* `projects/{project}/locations/{location}'`
210+
* `projects/{project}/locations/{location}`
211211
* @param featurestore Required. The Featurestore to create.
212212
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
213213
*/
@@ -242,7 +242,7 @@ public final OperationsClient getOperationsClient() {
242242
* }</pre>
243243
*
244244
* @param parent Required. The resource name of the Location to create Featurestores. Format:
245-
* `projects/{project}/locations/{location}'`
245+
* `projects/{project}/locations/{location}`
246246
* @param featurestore Required. The Featurestore to create.
247247
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
248248
*/
@@ -280,7 +280,7 @@ public final OperationsClient getOperationsClient() {
280280
* }</pre>
281281
*
282282
* @param parent Required. The resource name of the Location to create Featurestores. Format:
283-
* `projects/{project}/locations/{location}'`
283+
* `projects/{project}/locations/{location}`
284284
* @param featurestore Required. The Featurestore to create.
285285
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
286286
* final component of the Featurestore's resource name.
@@ -325,7 +325,7 @@ public final OperationsClient getOperationsClient() {
325325
* }</pre>
326326
*
327327
* @param parent Required. The resource name of the Location to create Featurestores. Format:
328-
* `projects/{project}/locations/{location}'`
328+
* `projects/{project}/locations/{location}`
329329
* @param featurestore Required. The Featurestore to create.
330330
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
331331
* final component of the Featurestore's resource name.

0 commit comments

Comments
 (0)