Skip to content

Commit

Permalink
feat: [aiplatform] add data_item_count to Dataset (#9636)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 20, 2023
1 parent 843b17b commit 5a82003
Show file tree
Hide file tree
Showing 154 changed files with 30,804 additions and 2,966 deletions.
10 changes: 5 additions & 5 deletions java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.17.0</version>
<version>26.18.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-aiplatform</artifactId>
<version>3.22.0</version>
<version>3.21.0</version>
</dependency>
```

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

```Groovy
implementation 'com.google.cloud:google-cloud-aiplatform:3.22.0'
implementation 'com.google.cloud:google-cloud-aiplatform:3.21.0'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.22.0"
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.21.0"
```
<!-- {x-version-update-end} -->

Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.20.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.21.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@

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

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a SavedQuery.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* SavedQueryName name =
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]");
* datasetServiceClient.deleteSavedQueryAsync(name).get();
* }
* }</pre>
*
* @param name Required. The resource name of the SavedQuery to delete. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Empty, DeleteOperationMetadata> deleteSavedQueryAsync(
SavedQueryName name) {
DeleteSavedQueryRequest request =
DeleteSavedQueryRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return deleteSavedQueryAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a SavedQuery.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* String name =
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]").toString();
* datasetServiceClient.deleteSavedQueryAsync(name).get();
* }
* }</pre>
*
* @param name Required. The resource name of the SavedQuery to delete. Format:
* `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Empty, DeleteOperationMetadata> deleteSavedQueryAsync(String name) {
DeleteSavedQueryRequest request = DeleteSavedQueryRequest.newBuilder().setName(name).build();
return deleteSavedQueryAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a SavedQuery.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* DeleteSavedQueryRequest request =
* DeleteSavedQueryRequest.newBuilder()
* .setName(
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
* .toString())
* .build();
* datasetServiceClient.deleteSavedQueryAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Empty, DeleteOperationMetadata> deleteSavedQueryAsync(
DeleteSavedQueryRequest request) {
return deleteSavedQueryOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a SavedQuery.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* DeleteSavedQueryRequest request =
* DeleteSavedQueryRequest.newBuilder()
* .setName(
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
* .toString())
* .build();
* OperationFuture<Empty, DeleteOperationMetadata> future =
* datasetServiceClient.deleteSavedQueryOperationCallable().futureCall(request);
* // Do something.
* future.get();
* }
* }</pre>
*/
public final OperationCallable<DeleteSavedQueryRequest, Empty, DeleteOperationMetadata>
deleteSavedQueryOperationCallable() {
return stub.deleteSavedQueryOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a SavedQuery.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DatasetServiceClient datasetServiceClient = DatasetServiceClient.create()) {
* DeleteSavedQueryRequest request =
* DeleteSavedQueryRequest.newBuilder()
* .setName(
* SavedQueryName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[SAVED_QUERY]")
* .toString())
* .build();
* ApiFuture<Operation> future =
* datasetServiceClient.deleteSavedQueryCallable().futureCall(request);
* // Do something.
* future.get();
* }
* }</pre>
*/
public final UnaryCallable<DeleteSavedQueryRequest, Operation> deleteSavedQueryCallable() {
return stub.deleteSavedQueryCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets an AnnotationSpec.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ public UnaryCallSettings<ExportDataRequest, Operation> exportDataSettings() {
return ((DatasetServiceStubSettings) getStubSettings()).listSavedQueriesSettings();
}

/** Returns the object with the settings used for calls to deleteSavedQuery. */
public UnaryCallSettings<DeleteSavedQueryRequest, Operation> deleteSavedQuerySettings() {
return ((DatasetServiceStubSettings) getStubSettings()).deleteSavedQuerySettings();
}

/** Returns the object with the settings used for calls to deleteSavedQuery. */
public OperationCallSettings<DeleteSavedQueryRequest, Empty, DeleteOperationMetadata>
deleteSavedQueryOperationSettings() {
return ((DatasetServiceStubSettings) getStubSettings()).deleteSavedQueryOperationSettings();
}

/** Returns the object with the settings used for calls to getAnnotationSpec. */
public UnaryCallSettings<GetAnnotationSpecRequest, AnnotationSpec> getAnnotationSpecSettings() {
return ((DatasetServiceStubSettings) getStubSettings()).getAnnotationSpecSettings();
Expand Down Expand Up @@ -392,6 +403,18 @@ public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSetting
return getStubSettingsBuilder().listSavedQueriesSettings();
}

/** Returns the builder for the settings used for calls to deleteSavedQuery. */
public UnaryCallSettings.Builder<DeleteSavedQueryRequest, Operation>
deleteSavedQuerySettings() {
return getStubSettingsBuilder().deleteSavedQuerySettings();
}

/** Returns the builder for the settings used for calls to deleteSavedQuery. */
public OperationCallSettings.Builder<DeleteSavedQueryRequest, Empty, DeleteOperationMetadata>
deleteSavedQueryOperationSettings() {
return getStubSettingsBuilder().deleteSavedQueryOperationSettings();
}

/** Returns the builder for the settings used for calls to getAnnotationSpec. */
public UnaryCallSettings.Builder<GetAnnotationSpecRequest, AnnotationSpec>
getAnnotationSpecSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* `projects/{project}/locations/{location}`
* @param featurestore Required. The Featurestore to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -242,7 +242,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* `projects/{project}/locations/{location}`
* @param featurestore Required. The Featurestore to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
Expand Down Expand Up @@ -280,7 +280,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* `projects/{project}/locations/{location}`
* @param featurestore Required. The Featurestore to create.
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
* final component of the Featurestore's resource name.
Expand Down Expand Up @@ -325,7 +325,7 @@ public final OperationsClient getOperationsClient() {
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* `projects/{project}/locations/{location}`
* @param featurestore Required. The Featurestore to create.
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
* final component of the Featurestore's resource name.
Expand Down
Loading

0 comments on commit 5a82003

Please sign in to comment.