Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [aiplatform] add disable_container_logging to BatchPredictionJob in aiplatform v1,v1beta1 batch_prediction_job.proto #9184

Merged
merged 12 commits into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions java-aiplatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Java idiomatic client for [Vertex AI][product-docs].

If you are using Maven, add this to your pom.xml file:

<!--- {x-version-update-start:google-cloud-aiplatform:released} -->

```xml
<dependency>
Expand All @@ -35,7 +34,6 @@ If you are using SBT, add this to your dependencies:
```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.13.0"
```
<!--- {x-version-update-end} -->

## Authentication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3575,6 +3575,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 @@ -282,6 +282,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 @@ -607,6 +622,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
Loading