Skip to content

Commit

Permalink
feat: [aiplatform] add service_networking.proto to aiplatform v1 (#9073)
Browse files Browse the repository at this point in the history
* feat: add service_networking.proto to aiplatform v1
feat: add private_service_connect_config to IndexEndpoint in aiplatform v1 index_endpoint.proto
feat: add nas_job.proto to aiplatform v1
feat: add CreateNasJob, GetNasJob, ListNasJobs, DeleteNasJob, CancelNasJob, GetNasTrialDetail, ListNasTrialDetails RPCs to aiplatform v1 job_service.proto
feat: add original_model_info to Model in aiplatform v1 model.proto
feat: add CopyModel RPC to aiplatform v1 model_service.proto
feat: add failed_jobs to CustomJobDetail to aiplatform v1 pipeline_job.proto
feat: add safety_config to StudySpec in aiplatform v1 study.proto

PiperOrigin-RevId: 506776605

Source-Link: googleapis/googleapis@c7c17c0

Source-Link: https://github.com/googleapis/googleapis-gen/commit/d5217761a0cf1fc6bf240021d481eb9d70ca376a
Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiJkNTIxNzc2MWEwY2YxZmM2YmYyNDAwMjFkNDgxZWI5ZDcwY2EzNzZhIn0=

feat: add disable_explanations to DeployedModel in aiplatform v1beta1 endpoint.proto
feat: add service_networking.proto to aiplatform v1beta1
feat: add private_service_connect_config to IndexEndpoint in aiplatform v1beta1 index_endpoint.proto
feat: add nas_job.proto to aiplatform v1beta1
feat: add CreateNasJob, GetNasJob, ListNasJobs, DeleteNasJob, CancelNasJob, GetNasTrialDetail, ListNasTrialDetails RPCs to aiplatform v1beta1 job_service.proto
feat: add original_model_info to Model in aiplatform v1beta1 model.proto
feat: add CopyModel RPC to aiplatform v1beta1 model_service.proto
feat: add failed_jobs to CustomJobDetail to aiplatform v1beta1 pipeline_job.proto
feat: add safety_config to StudySpec in aiplatform v1beta1 study.proto

PiperOrigin-RevId: 506776591

Source-Link: googleapis/googleapis@a33b408

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e15a8ce6c9181b2590358a8b01809859e020d792
Copy-Tag: eyJwIjoiamF2YS1haXBsYXRmb3JtLy5Pd2xCb3QueWFtbCIsImgiOiJlMTVhOGNlNmM5MTgxYjI1OTAzNThhOGIwMTgwOTg1OWUwMjBkNzkyIn0=

* 🦉 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 Feb 3, 2023
1 parent 30ebd0d commit 3cebec3
Show file tree
Hide file tree
Showing 175 changed files with 82,274 additions and 1,893 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import static com.google.cloud.aiplatform.v1.JobServiceClient.ListHyperparameterTuningJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.JobServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.aiplatform.v1.JobServiceClient.ListModelDeploymentMonitoringJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.JobServiceClient.ListNasJobsPagedResponse;
import static com.google.cloud.aiplatform.v1.JobServiceClient.ListNasTrialDetailsPagedResponse;
import static com.google.cloud.aiplatform.v1.JobServiceClient.SearchModelDeploymentMonitoringStatsAnomaliesPagedResponse;

import com.google.api.core.ApiFunction;
Expand Down Expand Up @@ -202,6 +204,50 @@ public UnaryCallSettings<CancelDataLabelingJobRequest, Empty> cancelDataLabeling
return ((JobServiceStubSettings) getStubSettings()).cancelHyperparameterTuningJobSettings();
}

/** Returns the object with the settings used for calls to createNasJob. */
public UnaryCallSettings<CreateNasJobRequest, NasJob> createNasJobSettings() {
return ((JobServiceStubSettings) getStubSettings()).createNasJobSettings();
}

/** Returns the object with the settings used for calls to getNasJob. */
public UnaryCallSettings<GetNasJobRequest, NasJob> getNasJobSettings() {
return ((JobServiceStubSettings) getStubSettings()).getNasJobSettings();
}

/** Returns the object with the settings used for calls to listNasJobs. */
public PagedCallSettings<ListNasJobsRequest, ListNasJobsResponse, ListNasJobsPagedResponse>
listNasJobsSettings() {
return ((JobServiceStubSettings) getStubSettings()).listNasJobsSettings();
}

/** Returns the object with the settings used for calls to deleteNasJob. */
public UnaryCallSettings<DeleteNasJobRequest, Operation> deleteNasJobSettings() {
return ((JobServiceStubSettings) getStubSettings()).deleteNasJobSettings();
}

/** Returns the object with the settings used for calls to deleteNasJob. */
public OperationCallSettings<DeleteNasJobRequest, Empty, DeleteOperationMetadata>
deleteNasJobOperationSettings() {
return ((JobServiceStubSettings) getStubSettings()).deleteNasJobOperationSettings();
}

/** Returns the object with the settings used for calls to cancelNasJob. */
public UnaryCallSettings<CancelNasJobRequest, Empty> cancelNasJobSettings() {
return ((JobServiceStubSettings) getStubSettings()).cancelNasJobSettings();
}

/** Returns the object with the settings used for calls to getNasTrialDetail. */
public UnaryCallSettings<GetNasTrialDetailRequest, NasTrialDetail> getNasTrialDetailSettings() {
return ((JobServiceStubSettings) getStubSettings()).getNasTrialDetailSettings();
}

/** Returns the object with the settings used for calls to listNasTrialDetails. */
public PagedCallSettings<
ListNasTrialDetailsRequest, ListNasTrialDetailsResponse, ListNasTrialDetailsPagedResponse>
listNasTrialDetailsSettings() {
return ((JobServiceStubSettings) getStubSettings()).listNasTrialDetailsSettings();
}

/** Returns the object with the settings used for calls to createBatchPredictionJob. */
public UnaryCallSettings<CreateBatchPredictionJobRequest, BatchPredictionJob>
createBatchPredictionJobSettings() {
Expand Down Expand Up @@ -557,6 +603,54 @@ public UnaryCallSettings.Builder<CancelCustomJobRequest, Empty> cancelCustomJobS
return getStubSettingsBuilder().cancelHyperparameterTuningJobSettings();
}

/** Returns the builder for the settings used for calls to createNasJob. */
public UnaryCallSettings.Builder<CreateNasJobRequest, NasJob> createNasJobSettings() {
return getStubSettingsBuilder().createNasJobSettings();
}

/** Returns the builder for the settings used for calls to getNasJob. */
public UnaryCallSettings.Builder<GetNasJobRequest, NasJob> getNasJobSettings() {
return getStubSettingsBuilder().getNasJobSettings();
}

/** Returns the builder for the settings used for calls to listNasJobs. */
public PagedCallSettings.Builder<
ListNasJobsRequest, ListNasJobsResponse, ListNasJobsPagedResponse>
listNasJobsSettings() {
return getStubSettingsBuilder().listNasJobsSettings();
}

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

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

/** Returns the builder for the settings used for calls to cancelNasJob. */
public UnaryCallSettings.Builder<CancelNasJobRequest, Empty> cancelNasJobSettings() {
return getStubSettingsBuilder().cancelNasJobSettings();
}

/** Returns the builder for the settings used for calls to getNasTrialDetail. */
public UnaryCallSettings.Builder<GetNasTrialDetailRequest, NasTrialDetail>
getNasTrialDetailSettings() {
return getStubSettingsBuilder().getNasTrialDetailSettings();
}

/** Returns the builder for the settings used for calls to listNasTrialDetails. */
public PagedCallSettings.Builder<
ListNasTrialDetailsRequest,
ListNasTrialDetailsResponse,
ListNasTrialDetailsPagedResponse>
listNasTrialDetailsSettings() {
return getStubSettingsBuilder().listNasTrialDetailsSettings();
}

/** Returns the builder for the settings used for calls to createBatchPredictionJob. */
public UnaryCallSettings.Builder<CreateBatchPredictionJobRequest, BatchPredictionJob>
createBatchPredictionJobSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,255 @@ public final UnaryCallable<ExportModelRequest, Operation> exportModelCallable()
return stub.exportModelCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Copies an already existing Vertex AI Model into the specified Location. The source Model must
* exist in the same Project. When copying custom Models, the users themselves are responsible for
* [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as
* well as making sure that any resources (e.g. files) it depends on remain accessible.
*
* <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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* ModelName sourceModel = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
* CopyModelResponse response = modelServiceClient.copyModelAsync(parent, sourceModel).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location into which to copy the Model. Format:
* `projects/{project}/locations/{location}`
* @param sourceModel Required. The resource name of the Model to copy. That Model must be in the
* same Project. Format: `projects/{project}/locations/{location}/models/{model}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<CopyModelResponse, CopyModelOperationMetadata> copyModelAsync(
LocationName parent, ModelName sourceModel) {
CopyModelRequest request =
CopyModelRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setSourceModel(sourceModel == null ? null : sourceModel.toString())
.build();
return copyModelAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Copies an already existing Vertex AI Model into the specified Location. The source Model must
* exist in the same Project. When copying custom Models, the users themselves are responsible for
* [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as
* well as making sure that any resources (e.g. files) it depends on remain accessible.
*
* <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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* String sourceModel = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
* CopyModelResponse response = modelServiceClient.copyModelAsync(parent, sourceModel).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location into which to copy the Model. Format:
* `projects/{project}/locations/{location}`
* @param sourceModel Required. The resource name of the Model to copy. That Model must be in the
* same Project. Format: `projects/{project}/locations/{location}/models/{model}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<CopyModelResponse, CopyModelOperationMetadata> copyModelAsync(
LocationName parent, String sourceModel) {
CopyModelRequest request =
CopyModelRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setSourceModel(sourceModel)
.build();
return copyModelAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Copies an already existing Vertex AI Model into the specified Location. The source Model must
* exist in the same Project. When copying custom Models, the users themselves are responsible for
* [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as
* well as making sure that any resources (e.g. files) it depends on remain accessible.
*
* <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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* ModelName sourceModel = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
* CopyModelResponse response = modelServiceClient.copyModelAsync(parent, sourceModel).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location into which to copy the Model. Format:
* `projects/{project}/locations/{location}`
* @param sourceModel Required. The resource name of the Model to copy. That Model must be in the
* same Project. Format: `projects/{project}/locations/{location}/models/{model}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<CopyModelResponse, CopyModelOperationMetadata> copyModelAsync(
String parent, ModelName sourceModel) {
CopyModelRequest request =
CopyModelRequest.newBuilder()
.setParent(parent)
.setSourceModel(sourceModel == null ? null : sourceModel.toString())
.build();
return copyModelAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Copies an already existing Vertex AI Model into the specified Location. The source Model must
* exist in the same Project. When copying custom Models, the users themselves are responsible for
* [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as
* well as making sure that any resources (e.g. files) it depends on remain accessible.
*
* <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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* String sourceModel = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
* CopyModelResponse response = modelServiceClient.copyModelAsync(parent, sourceModel).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location into which to copy the Model. Format:
* `projects/{project}/locations/{location}`
* @param sourceModel Required. The resource name of the Model to copy. That Model must be in the
* same Project. Format: `projects/{project}/locations/{location}/models/{model}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<CopyModelResponse, CopyModelOperationMetadata> copyModelAsync(
String parent, String sourceModel) {
CopyModelRequest request =
CopyModelRequest.newBuilder().setParent(parent).setSourceModel(sourceModel).build();
return copyModelAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Copies an already existing Vertex AI Model into the specified Location. The source Model must
* exist in the same Project. When copying custom Models, the users themselves are responsible for
* [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as
* well as making sure that any resources (e.g. files) it depends on remain accessible.
*
* <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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
* CopyModelRequest request =
* CopyModelRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
* .setEncryptionSpec(EncryptionSpec.newBuilder().build())
* .build();
* CopyModelResponse response = modelServiceClient.copyModelAsync(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<CopyModelResponse, CopyModelOperationMetadata> copyModelAsync(
CopyModelRequest request) {
return copyModelOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Copies an already existing Vertex AI Model into the specified Location. The source Model must
* exist in the same Project. When copying custom Models, the users themselves are responsible for
* [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as
* well as making sure that any resources (e.g. files) it depends on remain accessible.
*
* <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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
* CopyModelRequest request =
* CopyModelRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
* .setEncryptionSpec(EncryptionSpec.newBuilder().build())
* .build();
* OperationFuture<CopyModelResponse, CopyModelOperationMetadata> future =
* modelServiceClient.copyModelOperationCallable().futureCall(request);
* // Do something.
* CopyModelResponse response = future.get();
* }
* }</pre>
*/
public final OperationCallable<CopyModelRequest, CopyModelResponse, CopyModelOperationMetadata>
copyModelOperationCallable() {
return stub.copyModelOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Copies an already existing Vertex AI Model into the specified Location. The source Model must
* exist in the same Project. When copying custom Models, the users themselves are responsible for
* [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as
* well as making sure that any resources (e.g. files) it depends on remain accessible.
*
* <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 (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
* CopyModelRequest request =
* CopyModelRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setSourceModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
* .setEncryptionSpec(EncryptionSpec.newBuilder().build())
* .build();
* ApiFuture<Operation> future = modelServiceClient.copyModelCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<CopyModelRequest, Operation> copyModelCallable() {
return stub.copyModelCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Imports an externally generated ModelEvaluation.
Expand Down
Loading

0 comments on commit 3cebec3

Please sign in to comment.