Skip to content

Commit

Permalink
feat: [aiplatform] add deleteFeatureValues in aiplatform v1beta1 feat…
Browse files Browse the repository at this point in the history
…urestore_service.proto (#8409)

* feat: add deleteFeatureValues in aiplatform v1beta1 featurestore_service.proto

PiperOrigin-RevId: 474635535

Source-Link: googleapis/googleapis@39c28bf

Source-Link: https://github.com/googleapis/googleapis-gen/commit/71f2abfb343562ce40b79c3b56fc97ec5a0dccb1
Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiI3MWYyYWJmYjM0MzU2MmNlNDBiNzljM2I1NmZjOTdlYzVhMGRjY2IxIn0=

* 🦉 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 Sep 20, 2022
1 parent 25ca88b commit a9183e5
Show file tree
Hide file tree
Showing 21 changed files with 5,414 additions and 31 deletions.
6 changes: 3 additions & 3 deletions java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.1.1')
implementation platform('com.google.cloud:libraries-bom:26.1.2')
implementation 'com.google.cloud:google-cloud-aiplatform'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-aiplatform:3.2.0'
implementation 'com.google.cloud:google-cloud-aiplatform:3.3.0'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.2.0"
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.3.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3573,6 +3573,209 @@ public final UnaryCallable<ExportFeatureValuesRequest, Operation> exportFeatureV
return stub.exportFeatureValuesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* EntityTypeName entityType =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
* DeleteFeatureValuesResponse response =
* featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
* }
* }</pre>
*
* @param entityType Required. The resource name of the EntityType grouping the Features for which
* values are being deleted from. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesAsync(EntityTypeName entityType) {
DeleteFeatureValuesRequest request =
DeleteFeatureValuesRequest.newBuilder()
.setEntityType(entityType == null ? null : entityType.toString())
.build();
return deleteFeatureValuesAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String entityType =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString();
* DeleteFeatureValuesResponse response =
* featurestoreServiceClient.deleteFeatureValuesAsync(entityType).get();
* }
* }</pre>
*
* @param entityType Required. The resource name of the EntityType grouping the Features for which
* values are being deleted from. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesAsync(String entityType) {
DeleteFeatureValuesRequest request =
DeleteFeatureValuesRequest.newBuilder().setEntityType(entityType).build();
return deleteFeatureValuesAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* DeleteFeatureValuesRequest request =
* DeleteFeatureValuesRequest.newBuilder()
* .setEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .build();
* DeleteFeatureValuesResponse response =
* featurestoreServiceClient.deleteFeatureValuesAsync(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<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesAsync(DeleteFeatureValuesRequest request) {
return deleteFeatureValuesOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* DeleteFeatureValuesRequest request =
* DeleteFeatureValuesRequest.newBuilder()
* .setEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .build();
* OperationFuture<DeleteFeatureValuesResponse, DeleteFeatureValuesOperationMetadata> future =
* featurestoreServiceClient.deleteFeatureValuesOperationCallable().futureCall(request);
* // Do something.
* DeleteFeatureValuesResponse response = future.get();
* }
* }</pre>
*/
public final OperationCallable<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationCallable() {
return stub.deleteFeatureValuesOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Delete Feature values from Featurestore.
*
* <p>The progress of the deletion is tracked by the returned operation. The deleted feature
* values are guaranteed to be invisible to subsequent read operations after the operation is
* marked as successfully done.
*
* <p>If a delete feature values operation fails, the feature values returned from reads and
* exports may be inconsistent. If consistency is required, the caller must retry the same delete
* request again and wait till the new operation returned is marked as successfully done.
*
* <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 (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* DeleteFeatureValuesRequest request =
* DeleteFeatureValuesRequest.newBuilder()
* .setEntityType(
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString())
* .build();
* ApiFuture<Operation> future =
* featurestoreServiceClient.deleteFeatureValuesCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesCallable() {
return stub.deleteFeatureValuesCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches Features matching a query in a given project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,21 @@ public UnaryCallSettings<ExportFeatureValuesRequest, Operation> exportFeatureVal
.exportFeatureValuesOperationSettings();
}

/** Returns the object with the settings used for calls to deleteFeatureValues. */
public UnaryCallSettings<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesSettings() {
return ((FeaturestoreServiceStubSettings) getStubSettings()).deleteFeatureValuesSettings();
}

/** Returns the object with the settings used for calls to deleteFeatureValues. */
public OperationCallSettings<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationSettings() {
return ((FeaturestoreServiceStubSettings) getStubSettings())
.deleteFeatureValuesOperationSettings();
}

/** Returns the object with the settings used for calls to searchFeatures. */
public PagedCallSettings<
SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>
Expand Down Expand Up @@ -608,6 +623,21 @@ public UnaryCallSettings.Builder<DeleteFeatureRequest, Operation> deleteFeatureS
return getStubSettingsBuilder().exportFeatureValuesOperationSettings();
}

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

/** Returns the builder for the settings used for calls to deleteFeatureValues. */
public OperationCallSettings.Builder<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationSettings() {
return getStubSettingsBuilder().deleteFeatureValuesOperationSettings();
}

/** Returns the builder for the settings used for calls to searchFeatures. */
public PagedCallSettings.Builder<
SearchFeaturesRequest, SearchFeaturesResponse, SearchFeaturesPagedResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@
"DeleteFeature": {
"methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"]
},
"DeleteFeatureValues": {
"methods": ["deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesAsync", "deleteFeatureValuesOperationCallable", "deleteFeatureValuesCallable"]
},
"DeleteFeaturestore": {
"methods": ["deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreAsync", "deleteFeaturestoreOperationCallable", "deleteFeaturestoreCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
import com.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse;
import com.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.EntityType;
Expand Down Expand Up @@ -261,6 +264,19 @@ public UnaryCallable<ExportFeatureValuesRequest, Operation> exportFeatureValuesC
throw new UnsupportedOperationException("Not implemented: exportFeatureValuesCallable()");
}

public OperationCallable<
DeleteFeatureValuesRequest,
DeleteFeatureValuesResponse,
DeleteFeatureValuesOperationMetadata>
deleteFeatureValuesOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: deleteFeatureValuesOperationCallable()");
}

public UnaryCallable<DeleteFeatureValuesRequest, Operation> deleteFeatureValuesCallable() {
throw new UnsupportedOperationException("Not implemented: deleteFeatureValuesCallable()");
}

public UnaryCallable<SearchFeaturesRequest, SearchFeaturesPagedResponse>
searchFeaturesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: searchFeaturesPagedCallable()");
Expand Down
Loading

0 comments on commit a9183e5

Please sign in to comment.