diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index b5fcec5f76ff..3b48e2da896a 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.24.0 pom import @@ -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.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.28.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 diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java index b2fc9821c066..ce4299d9ae14 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java @@ -1158,6 +1158,784 @@ public final UnaryCallable exportDataCallable() { return stub.exportDataCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
+   *   DatasetVersion datasetVersion = DatasetVersion.newBuilder().build();
+   *   DatasetVersion response =
+   *       datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get();
+   * }
+   * }
+ * + * @param parent Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param datasetVersion Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need to specify the + * EncryptionSpecType here. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createDatasetVersionAsync(DatasetName parent, DatasetVersion datasetVersion) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDatasetVersion(datasetVersion) + .build(); + return createDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
+   *   DatasetVersion datasetVersion = DatasetVersion.newBuilder().build();
+   *   DatasetVersion response =
+   *       datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get();
+   * }
+   * }
+ * + * @param parent Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param datasetVersion Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need to specify the + * EncryptionSpecType here. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createDatasetVersionAsync(String parent, DatasetVersion datasetVersion) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(parent) + .setDatasetVersion(datasetVersion) + .build(); + return createDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   CreateDatasetVersionRequest request =
+   *       CreateDatasetVersionRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setDatasetVersion(DatasetVersion.newBuilder().build())
+   *           .build();
+   *   DatasetVersion response = datasetServiceClient.createDatasetVersionAsync(request).get();
+   * }
+   * }
+ * + * @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 + createDatasetVersionAsync(CreateDatasetVersionRequest request) { + return createDatasetVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   CreateDatasetVersionRequest request =
+   *       CreateDatasetVersionRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setDatasetVersion(DatasetVersion.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       datasetServiceClient.createDatasetVersionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetVersion response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable() { + return stub.createDatasetVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   CreateDatasetVersionRequest request =
+   *       CreateDatasetVersionRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setDatasetVersion(DatasetVersion.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.createDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createDatasetVersionCallable() { + return stub.createDatasetVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetVersionName name =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]");
+   *   datasetServiceClient.deleteDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDatasetVersionAsync( + DatasetVersionName name) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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 =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *           .toString();
+   *   datasetServiceClient.deleteDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDatasetVersionAsync( + String name) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder().setName(name).build(); + return deleteDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DeleteDatasetVersionRequest request =
+   *       DeleteDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   datasetServiceClient.deleteDatasetVersionAsync(request).get();
+   * }
+   * }
+ * + * @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 deleteDatasetVersionAsync( + DeleteDatasetVersionRequest request) { + return deleteDatasetVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DeleteDatasetVersionRequest request =
+   *       DeleteDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       datasetServiceClient.deleteDatasetVersionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteDatasetVersionOperationCallable() { + return stub.deleteDatasetVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DeleteDatasetVersionRequest request =
+   *       DeleteDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.deleteDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteDatasetVersionCallable() { + return stub.deleteDatasetVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetVersionName name =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]");
+   *   DatasetVersion response = datasetServiceClient.getDatasetVersion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetVersion getDatasetVersion(DatasetVersionName name) { + GetDatasetVersionRequest request = + GetDatasetVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDatasetVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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 =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *           .toString();
+   *   DatasetVersion response = datasetServiceClient.getDatasetVersion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetVersion getDatasetVersion(String name) { + GetDatasetVersionRequest request = GetDatasetVersionRequest.newBuilder().setName(name).build(); + return getDatasetVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   GetDatasetVersionRequest request =
+   *       GetDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DatasetVersion response = datasetServiceClient.getDatasetVersion(request);
+   * }
+   * }
+ * + * @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 DatasetVersion getDatasetVersion(GetDatasetVersionRequest request) { + return getDatasetVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   GetDatasetVersionRequest request =
+   *       GetDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.getDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetVersion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDatasetVersionCallable() { + return stub.getDatasetVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
+   *   for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetVersionsPagedResponse listDatasetVersions(DatasetName parent) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDatasetVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
+   *   for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetVersionsPagedResponse listDatasetVersions(String parent) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder().setParent(parent).build(); + return listDatasetVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   ListDatasetVersionsRequest request =
+   *       ListDatasetVersionsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (DatasetVersion element :
+   *       datasetServiceClient.listDatasetVersions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListDatasetVersionsPagedResponse listDatasetVersions( + ListDatasetVersionsRequest request) { + return listDatasetVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   ListDatasetVersionsRequest request =
+   *       ListDatasetVersionsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.listDatasetVersionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DatasetVersion element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDatasetVersionsPagedCallable() { + return stub.listDatasetVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   ListDatasetVersionsRequest request =
+   *       ListDatasetVersionsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListDatasetVersionsResponse response =
+   *         datasetServiceClient.listDatasetVersionsCallable().call(request);
+   *     for (DatasetVersion element : response.getDatasetVersionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDatasetVersionsCallable() { + return stub.listDatasetVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetVersionName name =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]");
+   *   DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreDatasetVersionAsync(DatasetVersionName name) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return restoreDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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 =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *           .toString();
+   *   DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreDatasetVersionAsync(String name) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder().setName(name).build(); + return restoreDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   RestoreDatasetVersionRequest request =
+   *       RestoreDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(request).get();
+   * }
+   * }
+ * + * @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 + restoreDatasetVersionAsync(RestoreDatasetVersionRequest request) { + return restoreDatasetVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   RestoreDatasetVersionRequest request =
+   *       RestoreDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       datasetServiceClient.restoreDatasetVersionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetVersion response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable() { + return stub.restoreDatasetVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   RestoreDatasetVersionRequest request =
+   *       RestoreDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.restoreDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + restoreDatasetVersionCallable() { + return stub.restoreDatasetVersionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DataItems in a Dataset. @@ -2562,6 +3340,90 @@ protected ListDatasetsFixedSizeCollection createCollection( } } + public static class ListDatasetVersionsPagedResponse + extends AbstractPagedListResponse< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + DatasetVersion, + ListDatasetVersionsPage, + ListDatasetVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDatasetVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDatasetVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDatasetVersionsPagedResponse(ListDatasetVersionsPage page) { + super(page, ListDatasetVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDatasetVersionsPage + extends AbstractPage< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + DatasetVersion, + ListDatasetVersionsPage> { + + private ListDatasetVersionsPage( + PageContext + context, + ListDatasetVersionsResponse response) { + super(context, response); + } + + private static ListDatasetVersionsPage createEmptyPage() { + return new ListDatasetVersionsPage(null, null); + } + + @Override + protected ListDatasetVersionsPage createPage( + PageContext + context, + ListDatasetVersionsResponse response) { + return new ListDatasetVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDatasetVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + DatasetVersion, + ListDatasetVersionsPage, + ListDatasetVersionsFixedSizeCollection> { + + private ListDatasetVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDatasetVersionsFixedSizeCollection createEmptyCollection() { + return new ListDatasetVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListDatasetVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDatasetVersionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListDataItemsPagedResponse extends AbstractPagedListResponse< ListDataItemsRequest, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java index 21783e2a4f12..b1f387ae364d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -151,6 +152,55 @@ public UnaryCallSettings exportDataSettings() { return ((DatasetServiceStubSettings) getStubSettings()).exportDataOperationSettings(); } + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings createDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).createDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public OperationCallSettings< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).createDatasetVersionOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings deleteDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).deleteDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public OperationCallSettings + deleteDatasetVersionOperationSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).deleteDatasetVersionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings getDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).getDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to listDatasetVersions. */ + public PagedCallSettings< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).listDatasetVersionsSettings(); + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings + restoreDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).restoreDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public OperationCallSettings< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return ((DatasetServiceStubSettings) getStubSettings()) + .restoreDatasetVersionOperationSettings(); + } + /** Returns the object with the settings used for calls to listDataItems. */ public PagedCallSettings listDataItemsSettings() { @@ -382,6 +432,60 @@ public UnaryCallSettings.Builder exportDataSetting return getStubSettingsBuilder().exportDataOperationSettings(); } + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings.Builder + createDatasetVersionSettings() { + return getStubSettingsBuilder().createDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + public OperationCallSettings.Builder< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return getStubSettingsBuilder().createDatasetVersionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings.Builder + deleteDatasetVersionSettings() { + return getStubSettingsBuilder().deleteDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + public OperationCallSettings.Builder< + DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata> + deleteDatasetVersionOperationSettings() { + return getStubSettingsBuilder().deleteDatasetVersionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings.Builder + getDatasetVersionSettings() { + return getStubSettingsBuilder().getDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to listDatasetVersions. */ + public PagedCallSettings.Builder< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return getStubSettingsBuilder().listDatasetVersionsSettings(); + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings.Builder + restoreDatasetVersionSettings() { + return getStubSettingsBuilder().restoreDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + public OperationCallSettings.Builder< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return getStubSettingsBuilder().restoreDatasetVersionOperationSettings(); + } + /** Returns the builder for the settings used for calls to listDataItems. */ public PagedCallSettings.Builder< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java index b7a754537939..ce64cff258ef 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceClient.java @@ -958,7 +958,7 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request) * @param pipelineJob Required. The PipelineJob to create. * @param pipelineJobId The ID to use for the PipelineJob, which will become the final component * of the PipelineJob name. If not provided, an ID will be automatically generated. - *

This value should be less than 128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be less than 128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PipelineJob createPipelineJob( @@ -998,7 +998,7 @@ public final PipelineJob createPipelineJob( * @param pipelineJob Required. The PipelineJob to create. * @param pipelineJobId The ID to use for the PipelineJob, which will become the final component * of the PipelineJob name. If not provided, an ID will be automatically generated. - *

This value should be less than 128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be less than 128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PipelineJob createPipelineJob( diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java index 9f25b53d725c..a69a32f6e187 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/TensorboardServiceClient.java @@ -1174,7 +1174,7 @@ public final ReadTensorboardSizeResponse readTensorboardSize(ReadTensorboardSize * @param tensorboardExperiment The TensorboardExperiment to create. * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which * becomes the final component of the Tensorboard experiment's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardExperiment createTensorboardExperiment( @@ -1220,7 +1220,7 @@ public final TensorboardExperiment createTensorboardExperiment( * @param tensorboardExperiment The TensorboardExperiment to create. * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which * becomes the final component of the Tensorboard experiment's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardExperiment createTensorboardExperiment( @@ -1901,7 +1901,7 @@ public final OperationFuture deleteTensorboardEx * @param tensorboardRun Required. The TensorboardRun to create. * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which becomes the * final component of the Tensorboard run's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardRun createTensorboardRun( @@ -1944,7 +1944,7 @@ public final TensorboardRun createTensorboardRun( * @param tensorboardRun Required. The TensorboardRun to create. * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which becomes the * final component of the Tensorboard run's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardRun createTensorboardRun( diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index a74127fe79f0..dce7c4dc6698 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -13,9 +13,15 @@ "CreateDataset": { "methods": ["createDatasetAsync", "createDatasetAsync", "createDatasetAsync", "createDatasetOperationCallable", "createDatasetCallable"] }, + "CreateDatasetVersion": { + "methods": ["createDatasetVersionAsync", "createDatasetVersionAsync", "createDatasetVersionAsync", "createDatasetVersionOperationCallable", "createDatasetVersionCallable"] + }, "DeleteDataset": { "methods": ["deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetOperationCallable", "deleteDatasetCallable"] }, + "DeleteDatasetVersion": { + "methods": ["deleteDatasetVersionAsync", "deleteDatasetVersionAsync", "deleteDatasetVersionAsync", "deleteDatasetVersionOperationCallable", "deleteDatasetVersionCallable"] + }, "DeleteSavedQuery": { "methods": ["deleteSavedQueryAsync", "deleteSavedQueryAsync", "deleteSavedQueryAsync", "deleteSavedQueryOperationCallable", "deleteSavedQueryCallable"] }, @@ -28,6 +34,9 @@ "GetDataset": { "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"] }, + "GetDatasetVersion": { + "methods": ["getDatasetVersion", "getDatasetVersion", "getDatasetVersion", "getDatasetVersionCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, @@ -43,6 +52,9 @@ "ListDataItems": { "methods": ["listDataItems", "listDataItems", "listDataItems", "listDataItemsPagedCallable", "listDataItemsCallable"] }, + "ListDatasetVersions": { + "methods": ["listDatasetVersions", "listDatasetVersions", "listDatasetVersions", "listDatasetVersionsPagedCallable", "listDatasetVersionsCallable"] + }, "ListDatasets": { "methods": ["listDatasets", "listDatasets", "listDatasets", "listDatasetsPagedCallable", "listDatasetsCallable"] }, @@ -52,6 +64,9 @@ "ListSavedQueries": { "methods": ["listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueriesPagedCallable", "listSavedQueriesCallable"] }, + "RestoreDatasetVersion": { + "methods": ["restoreDatasetVersionAsync", "restoreDatasetVersionAsync", "restoreDatasetVersionAsync", "restoreDatasetVersionOperationCallable", "restoreDatasetVersionCallable"] + }, "SearchDataItems": { "methods": ["searchDataItems", "searchDataItemsPagedCallable", "searchDataItemsCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java index d5a795b870d0..57fdc4e2a294 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -29,8 +30,12 @@ import com.google.cloud.aiplatform.v1.AnnotationSpec; import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1.CreateDatasetRequest; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest; import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetVersion; import com.google.cloud.aiplatform.v1.DeleteDatasetRequest; +import com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1.DeleteSavedQueryRequest; import com.google.cloud.aiplatform.v1.ExportDataOperationMetadata; @@ -38,6 +43,7 @@ import com.google.cloud.aiplatform.v1.ExportDataResponse; import com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest; import com.google.cloud.aiplatform.v1.GetDatasetRequest; +import com.google.cloud.aiplatform.v1.GetDatasetVersionRequest; import com.google.cloud.aiplatform.v1.ImportDataOperationMetadata; import com.google.cloud.aiplatform.v1.ImportDataRequest; import com.google.cloud.aiplatform.v1.ImportDataResponse; @@ -45,10 +51,14 @@ import com.google.cloud.aiplatform.v1.ListAnnotationsResponse; import com.google.cloud.aiplatform.v1.ListDataItemsRequest; import com.google.cloud.aiplatform.v1.ListDataItemsResponse; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse; import com.google.cloud.aiplatform.v1.ListDatasetsRequest; import com.google.cloud.aiplatform.v1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest; import com.google.cloud.aiplatform.v1.SearchDataItemsRequest; import com.google.cloud.aiplatform.v1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1.UpdateDatasetRequest; @@ -131,6 +141,52 @@ public UnaryCallable exportDataCallable() { throw new UnsupportedOperationException("Not implemented: exportDataCallable()"); } + public OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createDatasetVersionOperationCallable()"); + } + + public UnaryCallable createDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: createDatasetVersionCallable()"); + } + + public OperationCallable + deleteDatasetVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteDatasetVersionOperationCallable()"); + } + + public UnaryCallable deleteDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDatasetVersionCallable()"); + } + + public UnaryCallable getDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: getDatasetVersionCallable()"); + } + + public UnaryCallable + listDatasetVersionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDatasetVersionsPagedCallable()"); + } + + public UnaryCallable + listDatasetVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listDatasetVersionsCallable()"); + } + + public OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: restoreDatasetVersionOperationCallable()"); + } + + public UnaryCallable restoreDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: restoreDatasetVersionCallable()"); + } + public UnaryCallable listDataItemsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listDataItemsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java index 5081cc4d71ca..b1ca0daee858 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/DatasetServiceStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -53,10 +54,14 @@ import com.google.cloud.aiplatform.v1.AnnotationSpec; import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1.CreateDatasetRequest; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest; import com.google.cloud.aiplatform.v1.DataItem; import com.google.cloud.aiplatform.v1.DataItemView; import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetVersion; import com.google.cloud.aiplatform.v1.DeleteDatasetRequest; +import com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1.DeleteSavedQueryRequest; import com.google.cloud.aiplatform.v1.ExportDataOperationMetadata; @@ -64,6 +69,7 @@ import com.google.cloud.aiplatform.v1.ExportDataResponse; import com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest; import com.google.cloud.aiplatform.v1.GetDatasetRequest; +import com.google.cloud.aiplatform.v1.GetDatasetVersionRequest; import com.google.cloud.aiplatform.v1.ImportDataOperationMetadata; import com.google.cloud.aiplatform.v1.ImportDataRequest; import com.google.cloud.aiplatform.v1.ImportDataResponse; @@ -71,10 +77,14 @@ import com.google.cloud.aiplatform.v1.ListAnnotationsResponse; import com.google.cloud.aiplatform.v1.ListDataItemsRequest; import com.google.cloud.aiplatform.v1.ListDataItemsResponse; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse; import com.google.cloud.aiplatform.v1.ListDatasetsRequest; import com.google.cloud.aiplatform.v1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest; import com.google.cloud.aiplatform.v1.SavedQuery; import com.google.cloud.aiplatform.v1.SearchDataItemsRequest; import com.google.cloud.aiplatform.v1.SearchDataItemsResponse; @@ -161,6 +171,25 @@ public class DatasetServiceStubSettings extends StubSettings exportDataOperationSettings; + private final UnaryCallSettings + createDatasetVersionSettings; + private final OperationCallSettings< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings; + private final UnaryCallSettings + deleteDatasetVersionSettings; + private final OperationCallSettings + deleteDatasetVersionOperationSettings; + private final UnaryCallSettings + getDatasetVersionSettings; + private final PagedCallSettings< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings; + private final UnaryCallSettings + restoreDatasetVersionSettings; + private final OperationCallSettings< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings; private final PagedCallSettings< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> listDataItemsSettings; @@ -223,6 +252,46 @@ public Iterable extractResources(ListDatasetsResponse payload) { } }; + private static final PagedListDescriptor< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, DatasetVersion> + LIST_DATASET_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, DatasetVersion>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDatasetVersionsRequest injectToken( + ListDatasetVersionsRequest payload, String token) { + return ListDatasetVersionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDatasetVersionsRequest injectPageSize( + ListDatasetVersionsRequest payload, int pageSize) { + return ListDatasetVersionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDatasetVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDatasetVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDatasetVersionsResponse payload) { + return payload.getDatasetVersionsList() == null + ? ImmutableList.of() + : payload.getDatasetVersionsList(); + } + }; + private static final PagedListDescriptor LIST_DATA_ITEMS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -429,6 +498,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + LIST_DATASET_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDatasetVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DATASET_VERSIONS_PAGE_STR_DESC, request, context); + return ListDatasetVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> LIST_DATA_ITEMS_PAGE_STR_FACT = @@ -578,6 +668,54 @@ public UnaryCallSettings exportDataSettings() { return exportDataOperationSettings; } + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings createDatasetVersionSettings() { + return createDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public OperationCallSettings< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return createDatasetVersionOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings deleteDatasetVersionSettings() { + return deleteDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public OperationCallSettings + deleteDatasetVersionOperationSettings() { + return deleteDatasetVersionOperationSettings; + } + + /** Returns the object with the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings getDatasetVersionSettings() { + return getDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to listDatasetVersions. */ + public PagedCallSettings< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return listDatasetVersionsSettings; + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings + restoreDatasetVersionSettings() { + return restoreDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public OperationCallSettings< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return restoreDatasetVersionOperationSettings; + } + /** Returns the object with the settings used for calls to listDataItems. */ public PagedCallSettings listDataItemsSettings() { @@ -734,6 +872,17 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException importDataOperationSettings = settingsBuilder.importDataOperationSettings().build(); exportDataSettings = settingsBuilder.exportDataSettings().build(); exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build(); + createDatasetVersionSettings = settingsBuilder.createDatasetVersionSettings().build(); + createDatasetVersionOperationSettings = + settingsBuilder.createDatasetVersionOperationSettings().build(); + deleteDatasetVersionSettings = settingsBuilder.deleteDatasetVersionSettings().build(); + deleteDatasetVersionOperationSettings = + settingsBuilder.deleteDatasetVersionOperationSettings().build(); + getDatasetVersionSettings = settingsBuilder.getDatasetVersionSettings().build(); + listDatasetVersionsSettings = settingsBuilder.listDatasetVersionsSettings().build(); + restoreDatasetVersionSettings = settingsBuilder.restoreDatasetVersionSettings().build(); + restoreDatasetVersionOperationSettings = + settingsBuilder.restoreDatasetVersionOperationSettings().build(); listDataItemsSettings = settingsBuilder.listDataItemsSettings().build(); searchDataItemsSettings = settingsBuilder.searchDataItemsSettings().build(); listSavedQueriesSettings = settingsBuilder.listSavedQueriesSettings().build(); @@ -772,6 +921,28 @@ public static class Builder extends StubSettings.Builder exportDataOperationSettings; + private final UnaryCallSettings.Builder + createDatasetVersionSettings; + private final OperationCallSettings.Builder< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings; + private final UnaryCallSettings.Builder + deleteDatasetVersionSettings; + private final OperationCallSettings.Builder< + DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata> + deleteDatasetVersionOperationSettings; + private final UnaryCallSettings.Builder + getDatasetVersionSettings; + private final PagedCallSettings.Builder< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings; + private final UnaryCallSettings.Builder + restoreDatasetVersionSettings; + private final OperationCallSettings.Builder< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings; private final PagedCallSettings.Builder< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> listDataItemsSettings; @@ -837,6 +1008,15 @@ protected Builder(ClientContext clientContext) { importDataOperationSettings = OperationCallSettings.newBuilder(); exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportDataOperationSettings = OperationCallSettings.newBuilder(); + createDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDatasetVersionOperationSettings = OperationCallSettings.newBuilder(); + deleteDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDatasetVersionOperationSettings = OperationCallSettings.newBuilder(); + getDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDatasetVersionsSettings = + PagedCallSettings.newBuilder(LIST_DATASET_VERSIONS_PAGE_STR_FACT); + restoreDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreDatasetVersionOperationSettings = OperationCallSettings.newBuilder(); listDataItemsSettings = PagedCallSettings.newBuilder(LIST_DATA_ITEMS_PAGE_STR_FACT); searchDataItemsSettings = PagedCallSettings.newBuilder(SEARCH_DATA_ITEMS_PAGE_STR_FACT); listSavedQueriesSettings = PagedCallSettings.newBuilder(LIST_SAVED_QUERIES_PAGE_STR_FACT); @@ -859,6 +1039,11 @@ protected Builder(ClientContext clientContext) { deleteDatasetSettings, importDataSettings, exportDataSettings, + createDatasetVersionSettings, + deleteDatasetVersionSettings, + getDatasetVersionSettings, + listDatasetVersionsSettings, + restoreDatasetVersionSettings, listDataItemsSettings, searchDataItemsSettings, listSavedQueriesSettings, @@ -887,6 +1072,17 @@ protected Builder(DatasetServiceStubSettings settings) { importDataOperationSettings = settings.importDataOperationSettings.toBuilder(); exportDataSettings = settings.exportDataSettings.toBuilder(); exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder(); + createDatasetVersionSettings = settings.createDatasetVersionSettings.toBuilder(); + createDatasetVersionOperationSettings = + settings.createDatasetVersionOperationSettings.toBuilder(); + deleteDatasetVersionSettings = settings.deleteDatasetVersionSettings.toBuilder(); + deleteDatasetVersionOperationSettings = + settings.deleteDatasetVersionOperationSettings.toBuilder(); + getDatasetVersionSettings = settings.getDatasetVersionSettings.toBuilder(); + listDatasetVersionsSettings = settings.listDatasetVersionsSettings.toBuilder(); + restoreDatasetVersionSettings = settings.restoreDatasetVersionSettings.toBuilder(); + restoreDatasetVersionOperationSettings = + settings.restoreDatasetVersionOperationSettings.toBuilder(); listDataItemsSettings = settings.listDataItemsSettings.toBuilder(); searchDataItemsSettings = settings.searchDataItemsSettings.toBuilder(); listSavedQueriesSettings = settings.listSavedQueriesSettings.toBuilder(); @@ -909,6 +1105,11 @@ protected Builder(DatasetServiceStubSettings settings) { deleteDatasetSettings, importDataSettings, exportDataSettings, + createDatasetVersionSettings, + deleteDatasetVersionSettings, + getDatasetVersionSettings, + listDatasetVersionsSettings, + restoreDatasetVersionSettings, listDataItemsSettings, searchDataItemsSettings, listSavedQueriesSettings, @@ -971,6 +1172,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDatasetVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .restoreDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listDataItemsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -1123,6 +1349,80 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createDatasetVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DatasetVersion.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateDatasetVersionOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteDatasetVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .restoreDatasetVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DatasetVersion.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + RestoreDatasetVersionOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .deleteSavedQueryOperationSettings() .setInitialCallSettings( @@ -1237,6 +1537,66 @@ public UnaryCallSettings.Builder exportDataSetting return exportDataOperationSettings; } + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings.Builder + createDatasetVersionSettings() { + return createDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return createDatasetVersionOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings.Builder + deleteDatasetVersionSettings() { + return deleteDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata> + deleteDatasetVersionOperationSettings() { + return deleteDatasetVersionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings.Builder + getDatasetVersionSettings() { + return getDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to listDatasetVersions. */ + public PagedCallSettings.Builder< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return listDatasetVersionsSettings; + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings.Builder + restoreDatasetVersionSettings() { + return restoreDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return restoreDatasetVersionOperationSettings; + } + /** Returns the builder for the settings used for calls to listDataItems. */ public PagedCallSettings.Builder< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java index e9b3ab08901d..815f93c6dc4c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcDatasetServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -34,8 +35,12 @@ import com.google.cloud.aiplatform.v1.AnnotationSpec; import com.google.cloud.aiplatform.v1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1.CreateDatasetRequest; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest; import com.google.cloud.aiplatform.v1.Dataset; +import com.google.cloud.aiplatform.v1.DatasetVersion; import com.google.cloud.aiplatform.v1.DeleteDatasetRequest; +import com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest; import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1.DeleteSavedQueryRequest; import com.google.cloud.aiplatform.v1.ExportDataOperationMetadata; @@ -43,6 +48,7 @@ import com.google.cloud.aiplatform.v1.ExportDataResponse; import com.google.cloud.aiplatform.v1.GetAnnotationSpecRequest; import com.google.cloud.aiplatform.v1.GetDatasetRequest; +import com.google.cloud.aiplatform.v1.GetDatasetVersionRequest; import com.google.cloud.aiplatform.v1.ImportDataOperationMetadata; import com.google.cloud.aiplatform.v1.ImportDataRequest; import com.google.cloud.aiplatform.v1.ImportDataResponse; @@ -50,10 +56,14 @@ import com.google.cloud.aiplatform.v1.ListAnnotationsResponse; import com.google.cloud.aiplatform.v1.ListDataItemsRequest; import com.google.cloud.aiplatform.v1.ListDataItemsResponse; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse; import com.google.cloud.aiplatform.v1.ListDatasetsRequest; import com.google.cloud.aiplatform.v1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest; import com.google.cloud.aiplatform.v1.SearchDataItemsRequest; import com.google.cloud.aiplatform.v1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1.UpdateDatasetRequest; @@ -147,6 +157,57 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + createDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.DatasetService/CreateDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.DatasetService/DeleteDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.DatasetService/GetDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DatasetVersion.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDatasetVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.DatasetService/ListDatasetVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDatasetVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDatasetVersionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + restoreDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.DatasetService/RestoreDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listDataItemsMethodDescriptor = MethodDescriptor.newBuilder() @@ -276,6 +337,23 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { private final OperationCallable< ExportDataRequest, ExportDataResponse, ExportDataOperationMetadata> exportDataOperationCallable; + private final UnaryCallable createDatasetVersionCallable; + private final OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable; + private final UnaryCallable deleteDatasetVersionCallable; + private final OperationCallable + deleteDatasetVersionOperationCallable; + private final UnaryCallable getDatasetVersionCallable; + private final UnaryCallable + listDatasetVersionsCallable; + private final UnaryCallable + listDatasetVersionsPagedCallable; + private final UnaryCallable + restoreDatasetVersionCallable; + private final OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable; private final UnaryCallable listDataItemsCallable; private final UnaryCallable listDataItemsPagedCallable; @@ -418,6 +496,58 @@ protected GrpcDatasetServiceStub( return builder.build(); }) .build(); + GrpcCallSettings createDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDatasetVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDatasetVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + restoreDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listDataItemsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataItemsMethodDescriptor) @@ -581,6 +711,54 @@ protected GrpcDatasetServiceStub( settings.exportDataOperationSettings(), clientContext, operationsStub); + this.createDatasetVersionCallable = + callableFactory.createUnaryCallable( + createDatasetVersionTransportSettings, + settings.createDatasetVersionSettings(), + clientContext); + this.createDatasetVersionOperationCallable = + callableFactory.createOperationCallable( + createDatasetVersionTransportSettings, + settings.createDatasetVersionOperationSettings(), + clientContext, + operationsStub); + this.deleteDatasetVersionCallable = + callableFactory.createUnaryCallable( + deleteDatasetVersionTransportSettings, + settings.deleteDatasetVersionSettings(), + clientContext); + this.deleteDatasetVersionOperationCallable = + callableFactory.createOperationCallable( + deleteDatasetVersionTransportSettings, + settings.deleteDatasetVersionOperationSettings(), + clientContext, + operationsStub); + this.getDatasetVersionCallable = + callableFactory.createUnaryCallable( + getDatasetVersionTransportSettings, + settings.getDatasetVersionSettings(), + clientContext); + this.listDatasetVersionsCallable = + callableFactory.createUnaryCallable( + listDatasetVersionsTransportSettings, + settings.listDatasetVersionsSettings(), + clientContext); + this.listDatasetVersionsPagedCallable = + callableFactory.createPagedCallable( + listDatasetVersionsTransportSettings, + settings.listDatasetVersionsSettings(), + clientContext); + this.restoreDatasetVersionCallable = + callableFactory.createUnaryCallable( + restoreDatasetVersionTransportSettings, + settings.restoreDatasetVersionSettings(), + clientContext); + this.restoreDatasetVersionOperationCallable = + callableFactory.createOperationCallable( + restoreDatasetVersionTransportSettings, + settings.restoreDatasetVersionOperationSettings(), + clientContext, + operationsStub); this.listDataItemsCallable = callableFactory.createUnaryCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); @@ -712,6 +890,58 @@ public UnaryCallable exportDataCallable() { return exportDataOperationCallable; } + @Override + public UnaryCallable createDatasetVersionCallable() { + return createDatasetVersionCallable; + } + + @Override + public OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable() { + return createDatasetVersionOperationCallable; + } + + @Override + public UnaryCallable deleteDatasetVersionCallable() { + return deleteDatasetVersionCallable; + } + + @Override + public OperationCallable + deleteDatasetVersionOperationCallable() { + return deleteDatasetVersionOperationCallable; + } + + @Override + public UnaryCallable getDatasetVersionCallable() { + return getDatasetVersionCallable; + } + + @Override + public UnaryCallable + listDatasetVersionsCallable() { + return listDatasetVersionsCallable; + } + + @Override + public UnaryCallable + listDatasetVersionsPagedCallable() { + return listDatasetVersionsPagedCallable; + } + + @Override + public UnaryCallable restoreDatasetVersionCallable() { + return restoreDatasetVersionCallable; + } + + @Override + public OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable() { + return restoreDatasetVersionOperationCallable; + } + @Override public UnaryCallable listDataItemsCallable() { return listDataItemsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java index 05731941ade5..8cda62de454d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java @@ -1160,6 +1160,784 @@ public final UnaryCallable exportDataCallable() { return stub.exportDataCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
+   *   DatasetVersion datasetVersion = DatasetVersion.newBuilder().build();
+   *   DatasetVersion response =
+   *       datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get();
+   * }
+   * }
+ * + * @param parent Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param datasetVersion Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need to specify the + * EncryptionSpecType here. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createDatasetVersionAsync(DatasetName parent, DatasetVersion datasetVersion) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDatasetVersion(datasetVersion) + .build(); + return createDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
+   *   DatasetVersion datasetVersion = DatasetVersion.newBuilder().build();
+   *   DatasetVersion response =
+   *       datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get();
+   * }
+   * }
+ * + * @param parent Required. The name of the Dataset resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param datasetVersion Required. The version to be created. The same CMEK policies with the + * original Dataset will be applied the dataset version. So here we don't need to specify the + * EncryptionSpecType here. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createDatasetVersionAsync(String parent, DatasetVersion datasetVersion) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(parent) + .setDatasetVersion(datasetVersion) + .build(); + return createDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   CreateDatasetVersionRequest request =
+   *       CreateDatasetVersionRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setDatasetVersion(DatasetVersion.newBuilder().build())
+   *           .build();
+   *   DatasetVersion response = datasetServiceClient.createDatasetVersionAsync(request).get();
+   * }
+   * }
+ * + * @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 + createDatasetVersionAsync(CreateDatasetVersionRequest request) { + return createDatasetVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   CreateDatasetVersionRequest request =
+   *       CreateDatasetVersionRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setDatasetVersion(DatasetVersion.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       datasetServiceClient.createDatasetVersionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetVersion response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable() { + return stub.createDatasetVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a version from a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   CreateDatasetVersionRequest request =
+   *       CreateDatasetVersionRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setDatasetVersion(DatasetVersion.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.createDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createDatasetVersionCallable() { + return stub.createDatasetVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetVersionName name =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]");
+   *   datasetServiceClient.deleteDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDatasetVersionAsync( + DatasetVersionName name) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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 =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *           .toString();
+   *   datasetServiceClient.deleteDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteDatasetVersionAsync( + String name) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder().setName(name).build(); + return deleteDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DeleteDatasetVersionRequest request =
+   *       DeleteDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   datasetServiceClient.deleteDatasetVersionAsync(request).get();
+   * }
+   * }
+ * + * @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 deleteDatasetVersionAsync( + DeleteDatasetVersionRequest request) { + return deleteDatasetVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DeleteDatasetVersionRequest request =
+   *       DeleteDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       datasetServiceClient.deleteDatasetVersionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteDatasetVersionOperationCallable() { + return stub.deleteDatasetVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DeleteDatasetVersionRequest request =
+   *       DeleteDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.deleteDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteDatasetVersionCallable() { + return stub.deleteDatasetVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetVersionName name =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]");
+   *   DatasetVersion response = datasetServiceClient.getDatasetVersion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetVersion getDatasetVersion(DatasetVersionName name) { + GetDatasetVersionRequest request = + GetDatasetVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDatasetVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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 =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *           .toString();
+   *   DatasetVersion response = datasetServiceClient.getDatasetVersion(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the Dataset version to delete. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DatasetVersion getDatasetVersion(String name) { + GetDatasetVersionRequest request = GetDatasetVersionRequest.newBuilder().setName(name).build(); + return getDatasetVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   GetDatasetVersionRequest request =
+   *       GetDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DatasetVersion response = datasetServiceClient.getDatasetVersion(request);
+   * }
+   * }
+ * + * @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 DatasetVersion getDatasetVersion(GetDatasetVersionRequest request) { + return getDatasetVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a Dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   GetDatasetVersionRequest request =
+   *       GetDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.getDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetVersion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getDatasetVersionCallable() { + return stub.getDatasetVersionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]");
+   *   for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetVersionsPagedResponse listDatasetVersions(DatasetName parent) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDatasetVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString();
+   *   for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the Dataset to list DatasetVersions from. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDatasetVersionsPagedResponse listDatasetVersions(String parent) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder().setParent(parent).build(); + return listDatasetVersions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   ListDatasetVersionsRequest request =
+   *       ListDatasetVersionsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (DatasetVersion element :
+   *       datasetServiceClient.listDatasetVersions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListDatasetVersionsPagedResponse listDatasetVersions( + ListDatasetVersionsRequest request) { + return listDatasetVersionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   ListDatasetVersionsRequest request =
+   *       ListDatasetVersionsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.listDatasetVersionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (DatasetVersion element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDatasetVersionsPagedCallable() { + return stub.listDatasetVersionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DatasetVersions in a Dataset. + * + *

Sample code: + * + *

{@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()) {
+   *   ListDatasetVersionsRequest request =
+   *       ListDatasetVersionsRequest.newBuilder()
+   *           .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListDatasetVersionsResponse response =
+   *         datasetServiceClient.listDatasetVersionsCallable().call(request);
+   *     for (DatasetVersion element : response.getDatasetVersionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listDatasetVersionsCallable() { + return stub.listDatasetVersionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   DatasetVersionName name =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]");
+   *   DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreDatasetVersionAsync(DatasetVersionName name) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return restoreDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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 =
+   *       DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *           .toString();
+   *   DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the DatasetVersion resource. Format: + * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + restoreDatasetVersionAsync(String name) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder().setName(name).build(); + return restoreDatasetVersionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   RestoreDatasetVersionRequest request =
+   *       RestoreDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(request).get();
+   * }
+   * }
+ * + * @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 + restoreDatasetVersionAsync(RestoreDatasetVersionRequest request) { + return restoreDatasetVersionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   RestoreDatasetVersionRequest request =
+   *       RestoreDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       datasetServiceClient.restoreDatasetVersionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   DatasetVersion response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable() { + return stub.restoreDatasetVersionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a dataset version. + * + *

Sample code: + * + *

{@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()) {
+   *   RestoreDatasetVersionRequest request =
+   *       RestoreDatasetVersionRequest.newBuilder()
+   *           .setName(
+   *               DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datasetServiceClient.restoreDatasetVersionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + restoreDatasetVersionCallable() { + return stub.restoreDatasetVersionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DataItems in a Dataset. @@ -2564,6 +3342,90 @@ protected ListDatasetsFixedSizeCollection createCollection( } } + public static class ListDatasetVersionsPagedResponse + extends AbstractPagedListResponse< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + DatasetVersion, + ListDatasetVersionsPage, + ListDatasetVersionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDatasetVersionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDatasetVersionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDatasetVersionsPagedResponse(ListDatasetVersionsPage page) { + super(page, ListDatasetVersionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDatasetVersionsPage + extends AbstractPage< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + DatasetVersion, + ListDatasetVersionsPage> { + + private ListDatasetVersionsPage( + PageContext + context, + ListDatasetVersionsResponse response) { + super(context, response); + } + + private static ListDatasetVersionsPage createEmptyPage() { + return new ListDatasetVersionsPage(null, null); + } + + @Override + protected ListDatasetVersionsPage createPage( + PageContext + context, + ListDatasetVersionsResponse response) { + return new ListDatasetVersionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDatasetVersionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + DatasetVersion, + ListDatasetVersionsPage, + ListDatasetVersionsFixedSizeCollection> { + + private ListDatasetVersionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDatasetVersionsFixedSizeCollection createEmptyCollection() { + return new ListDatasetVersionsFixedSizeCollection(null, 0); + } + + @Override + protected ListDatasetVersionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDatasetVersionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListDataItemsPagedResponse extends AbstractPagedListResponse< ListDataItemsRequest, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java index d7599484a3d9..2dea55f20740 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -152,6 +153,55 @@ public UnaryCallSettings exportDataSettings() { return ((DatasetServiceStubSettings) getStubSettings()).exportDataOperationSettings(); } + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings createDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).createDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public OperationCallSettings< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).createDatasetVersionOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings deleteDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).deleteDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public OperationCallSettings + deleteDatasetVersionOperationSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).deleteDatasetVersionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings getDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).getDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to listDatasetVersions. */ + public PagedCallSettings< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).listDatasetVersionsSettings(); + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings + restoreDatasetVersionSettings() { + return ((DatasetServiceStubSettings) getStubSettings()).restoreDatasetVersionSettings(); + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public OperationCallSettings< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return ((DatasetServiceStubSettings) getStubSettings()) + .restoreDatasetVersionOperationSettings(); + } + /** Returns the object with the settings used for calls to listDataItems. */ public PagedCallSettings listDataItemsSettings() { @@ -383,6 +433,60 @@ public UnaryCallSettings.Builder exportDataSetting return getStubSettingsBuilder().exportDataOperationSettings(); } + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings.Builder + createDatasetVersionSettings() { + return getStubSettingsBuilder().createDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + public OperationCallSettings.Builder< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return getStubSettingsBuilder().createDatasetVersionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings.Builder + deleteDatasetVersionSettings() { + return getStubSettingsBuilder().deleteDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + public OperationCallSettings.Builder< + DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata> + deleteDatasetVersionOperationSettings() { + return getStubSettingsBuilder().deleteDatasetVersionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings.Builder + getDatasetVersionSettings() { + return getStubSettingsBuilder().getDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to listDatasetVersions. */ + public PagedCallSettings.Builder< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return getStubSettingsBuilder().listDatasetVersionsSettings(); + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings.Builder + restoreDatasetVersionSettings() { + return getStubSettingsBuilder().restoreDatasetVersionSettings(); + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + public OperationCallSettings.Builder< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return getStubSettingsBuilder().restoreDatasetVersionOperationSettings(); + } + /** Returns the builder for the settings used for calls to listDataItems. */ public PagedCallSettings.Builder< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java index 15629c1af4e7..106f571e9f38 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureRegistryServiceClient.java @@ -991,9 +991,7 @@ public final UnaryCallable deleteFeatureGr * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @param featureId Required. The ID to use for the Feature, which will become the final component * of the Feature's resource name. @@ -1035,9 +1033,7 @@ public final OperationFuture cr * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @param featureId Required. The ID to use for the Feature, which will become the final component * of the Feature's resource name. @@ -1081,9 +1077,7 @@ public final OperationFuture cr * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @param featureId Required. The ID to use for the Feature, which will become the final component * of the Feature's resource name. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java index 49d3494b4c29..eaa20cffa073 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/FeaturestoreServiceClient.java @@ -1982,9 +1982,7 @@ public final UnaryCallable deleteEntityTypeC * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2017,9 +2015,7 @@ public final OperationFuture createFeat * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2054,9 +2050,7 @@ public final OperationFuture createFeat * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2089,9 +2083,7 @@ public final OperationFuture createFeat * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @param featureId Required. The ID to use for the Feature, which will become the final component * of the Feature's resource name. @@ -2132,9 +2124,7 @@ public final OperationFuture createFeat * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @param featureId Required. The ID to use for the Feature, which will become the final component * of the Feature's resource name. @@ -2177,9 +2167,7 @@ public final OperationFuture createFeat * } * } * - * @param parent The resource name of the EntityType or FeatureGroup to create a Feature. Format: - * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - * `projects/{project}/locations/{location}/featureGroups/{feature_group}` + * @param parent * @param feature Required. The Feature to create. * @param featureId Required. The ID to use for the Feature, which will become the final component * of the Feature's resource name. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java index c8c7669bd439..53d4b041163a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClient.java @@ -288,6 +288,156 @@ public final UnaryCallable getPublishe return stub.getPublisherModelCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists publisher models in Model Garden. + * + *

Sample code: + * + *

{@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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) {
+   *   String parent = "parent-995424086";
+   *   for (PublisherModel element :
+   *       modelGardenServiceClient.listPublisherModels(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The name of the Publisher from which to list the PublisherModels. + * Format: `publishers/{publisher}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPublisherModelsPagedResponse listPublisherModels(String parent) { + ListPublisherModelsRequest request = + ListPublisherModelsRequest.newBuilder().setParent(parent).build(); + return listPublisherModels(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists publisher models in Model Garden. + * + *

Sample code: + * + *

{@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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) {
+   *   ListPublisherModelsRequest request =
+   *       ListPublisherModelsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(PublisherModelView.forNumber(0))
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .build();
+   *   for (PublisherModel element :
+   *       modelGardenServiceClient.listPublisherModels(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListPublisherModelsPagedResponse listPublisherModels( + ListPublisherModelsRequest request) { + return listPublisherModelsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists publisher models in Model Garden. + * + *

Sample code: + * + *

{@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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) {
+   *   ListPublisherModelsRequest request =
+   *       ListPublisherModelsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(PublisherModelView.forNumber(0))
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .build();
+   *   ApiFuture future =
+   *       modelGardenServiceClient.listPublisherModelsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PublisherModel element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPublisherModelsPagedCallable() { + return stub.listPublisherModelsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists publisher models in Model Garden. + * + *

Sample code: + * + *

{@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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) {
+   *   ListPublisherModelsRequest request =
+   *       ListPublisherModelsRequest.newBuilder()
+   *           .setParent("parent-995424086")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setView(PublisherModelView.forNumber(0))
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setLanguageCode("languageCode-2092349083")
+   *           .build();
+   *   while (true) {
+   *     ListPublisherModelsResponse response =
+   *         modelGardenServiceClient.listPublisherModelsCallable().call(request);
+   *     for (PublisherModel element : response.getPublisherModelsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPublisherModelsCallable() { + return stub.listPublisherModelsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. @@ -686,6 +836,90 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class ListPublisherModelsPagedResponse + extends AbstractPagedListResponse< + ListPublisherModelsRequest, + ListPublisherModelsResponse, + PublisherModel, + ListPublisherModelsPage, + ListPublisherModelsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPublisherModelsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPublisherModelsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPublisherModelsPagedResponse(ListPublisherModelsPage page) { + super(page, ListPublisherModelsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPublisherModelsPage + extends AbstractPage< + ListPublisherModelsRequest, + ListPublisherModelsResponse, + PublisherModel, + ListPublisherModelsPage> { + + private ListPublisherModelsPage( + PageContext + context, + ListPublisherModelsResponse response) { + super(context, response); + } + + private static ListPublisherModelsPage createEmptyPage() { + return new ListPublisherModelsPage(null, null); + } + + @Override + protected ListPublisherModelsPage createPage( + PageContext + context, + ListPublisherModelsResponse response) { + return new ListPublisherModelsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPublisherModelsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPublisherModelsRequest, + ListPublisherModelsResponse, + PublisherModel, + ListPublisherModelsPage, + ListPublisherModelsFixedSizeCollection> { + + private ListPublisherModelsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPublisherModelsFixedSizeCollection createEmptyCollection() { + return new ListPublisherModelsFixedSizeCollection(null, 0); + } + + @Override + protected ListPublisherModelsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPublisherModelsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java index bc2d5dda42ee..cdc7b927de6d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1; import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListPublisherModelsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -90,6 +91,13 @@ public UnaryCallSettings getPublisherM return ((ModelGardenServiceStubSettings) getStubSettings()).getPublisherModelSettings(); } + /** Returns the object with the settings used for calls to listPublisherModels. */ + public PagedCallSettings< + ListPublisherModelsRequest, ListPublisherModelsResponse, ListPublisherModelsPagedResponse> + listPublisherModelsSettings() { + return ((ModelGardenServiceStubSettings) getStubSettings()).listPublisherModelsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -220,6 +228,15 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().getPublisherModelSettings(); } + /** Returns the builder for the settings used for calls to listPublisherModels. */ + public PagedCallSettings.Builder< + ListPublisherModelsRequest, + ListPublisherModelsResponse, + ListPublisherModelsPagedResponse> + listPublisherModelsSettings() { + return getStubSettingsBuilder().listPublisherModelsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java index abebc95b4bc7..1ea5ce728d8d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceClient.java @@ -222,7 +222,7 @@ public final OperationsClient getOperationsClient() { * @param persistentResourceId Required. The ID to use for the PersistentResource, which become * the final component of the PersistentResource's resource name. *

The maximum length is 63 characters, and valid characters are - * /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -267,7 +267,7 @@ public final OperationsClient getOperationsClient() { * @param persistentResourceId Required. The ID to use for the PersistentResource, which become * the final component of the PersistentResource's resource name. *

The maximum length is 63 characters, and valid characters are - * /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java index c95ae9cb72f5..515a563bbed2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java @@ -960,7 +960,7 @@ public final void cancelTrainingPipeline(CancelTrainingPipelineRequest request) * @param pipelineJob Required. The PipelineJob to create. * @param pipelineJobId The ID to use for the PipelineJob, which will become the final component * of the PipelineJob name. If not provided, an ID will be automatically generated. - *

This value should be less than 128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be less than 128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PipelineJob createPipelineJob( @@ -1000,7 +1000,7 @@ public final PipelineJob createPipelineJob( * @param pipelineJob Required. The PipelineJob to create. * @param pipelineJobId The ID to use for the PipelineJob, which will become the final component * of the PipelineJob name. If not provided, an ID will be automatically generated. - *

This value should be less than 128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be less than 128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PipelineJob createPipelineJob( diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java index 8762262ff116..a60944dca297 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/TensorboardServiceClient.java @@ -1176,7 +1176,7 @@ public final ReadTensorboardSizeResponse readTensorboardSize(ReadTensorboardSize * @param tensorboardExperiment The TensorboardExperiment to create. * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which * becomes the final component of the Tensorboard experiment's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardExperiment createTensorboardExperiment( @@ -1222,7 +1222,7 @@ public final TensorboardExperiment createTensorboardExperiment( * @param tensorboardExperiment The TensorboardExperiment to create. * @param tensorboardExperimentId Required. The ID to use for the Tensorboard experiment, which * becomes the final component of the Tensorboard experiment's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardExperiment createTensorboardExperiment( @@ -1903,7 +1903,7 @@ public final OperationFuture deleteTensorboardEx * @param tensorboardRun Required. The TensorboardRun to create. * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which becomes the * final component of the Tensorboard run's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardRun createTensorboardRun( @@ -1946,7 +1946,7 @@ public final TensorboardRun createTensorboardRun( * @param tensorboardRun Required. The TensorboardRun to create. * @param tensorboardRunId Required. The ID to use for the Tensorboard run, which becomes the * final component of the Tensorboard run's resource name. - *

This value should be 1-128 characters, and valid characters are /[a-z][0-9]-/. + *

This value should be 1-128 characters, and valid characters are `/[a-z][0-9]-/`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TensorboardRun createTensorboardRun( diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 8a8b2d9f9c5f..7a5b59754197 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -13,9 +13,15 @@ "CreateDataset": { "methods": ["createDatasetAsync", "createDatasetAsync", "createDatasetAsync", "createDatasetOperationCallable", "createDatasetCallable"] }, + "CreateDatasetVersion": { + "methods": ["createDatasetVersionAsync", "createDatasetVersionAsync", "createDatasetVersionAsync", "createDatasetVersionOperationCallable", "createDatasetVersionCallable"] + }, "DeleteDataset": { "methods": ["deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetAsync", "deleteDatasetOperationCallable", "deleteDatasetCallable"] }, + "DeleteDatasetVersion": { + "methods": ["deleteDatasetVersionAsync", "deleteDatasetVersionAsync", "deleteDatasetVersionAsync", "deleteDatasetVersionOperationCallable", "deleteDatasetVersionCallable"] + }, "DeleteSavedQuery": { "methods": ["deleteSavedQueryAsync", "deleteSavedQueryAsync", "deleteSavedQueryAsync", "deleteSavedQueryOperationCallable", "deleteSavedQueryCallable"] }, @@ -28,6 +34,9 @@ "GetDataset": { "methods": ["getDataset", "getDataset", "getDataset", "getDatasetCallable"] }, + "GetDatasetVersion": { + "methods": ["getDatasetVersion", "getDatasetVersion", "getDatasetVersion", "getDatasetVersionCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, @@ -43,6 +52,9 @@ "ListDataItems": { "methods": ["listDataItems", "listDataItems", "listDataItems", "listDataItemsPagedCallable", "listDataItemsCallable"] }, + "ListDatasetVersions": { + "methods": ["listDatasetVersions", "listDatasetVersions", "listDatasetVersions", "listDatasetVersionsPagedCallable", "listDatasetVersionsCallable"] + }, "ListDatasets": { "methods": ["listDatasets", "listDatasets", "listDatasets", "listDatasetsPagedCallable", "listDatasetsCallable"] }, @@ -52,6 +64,9 @@ "ListSavedQueries": { "methods": ["listSavedQueries", "listSavedQueries", "listSavedQueries", "listSavedQueriesPagedCallable", "listSavedQueriesCallable"] }, + "RestoreDatasetVersion": { + "methods": ["restoreDatasetVersionAsync", "restoreDatasetVersionAsync", "restoreDatasetVersionAsync", "restoreDatasetVersionOperationCallable", "restoreDatasetVersionCallable"] + }, "SearchDataItems": { "methods": ["searchDataItems", "searchDataItemsPagedCallable", "searchDataItemsCallable"] }, @@ -841,6 +856,9 @@ "ListLocations": { "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] }, + "ListPublisherModels": { + "methods": ["listPublisherModels", "listPublisherModels", "listPublisherModelsPagedCallable", "listPublisherModelsCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java index d3ad98130d9f..c13a6bfab9c7 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -30,8 +31,12 @@ import com.google.cloud.aiplatform.v1beta1.AnnotationSpec; import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.Dataset; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; import com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.DeleteSavedQueryRequest; import com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; @@ -39,6 +44,7 @@ import com.google.cloud.aiplatform.v1beta1.ExportDataResponse; import com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; import com.google.cloud.aiplatform.v1beta1.GetDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ImportDataRequest; import com.google.cloud.aiplatform.v1beta1.ImportDataResponse; @@ -46,10 +52,14 @@ import com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; import com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest; import com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest; import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; import com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; @@ -133,6 +143,52 @@ public UnaryCallable exportDataCallable() { throw new UnsupportedOperationException("Not implemented: exportDataCallable()"); } + public OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createDatasetVersionOperationCallable()"); + } + + public UnaryCallable createDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: createDatasetVersionCallable()"); + } + + public OperationCallable + deleteDatasetVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteDatasetVersionOperationCallable()"); + } + + public UnaryCallable deleteDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteDatasetVersionCallable()"); + } + + public UnaryCallable getDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: getDatasetVersionCallable()"); + } + + public UnaryCallable + listDatasetVersionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listDatasetVersionsPagedCallable()"); + } + + public UnaryCallable + listDatasetVersionsCallable() { + throw new UnsupportedOperationException("Not implemented: listDatasetVersionsCallable()"); + } + + public OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: restoreDatasetVersionOperationCallable()"); + } + + public UnaryCallable restoreDatasetVersionCallable() { + throw new UnsupportedOperationException("Not implemented: restoreDatasetVersionCallable()"); + } + public UnaryCallable listDataItemsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listDataItemsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java index 3369bc467b99..e6e961653f64 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/DatasetServiceStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -53,10 +54,14 @@ import com.google.cloud.aiplatform.v1beta1.AnnotationSpec; import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.DataItem; import com.google.cloud.aiplatform.v1beta1.DataItemView; import com.google.cloud.aiplatform.v1beta1.Dataset; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; import com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.DeleteSavedQueryRequest; import com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; @@ -64,6 +69,7 @@ import com.google.cloud.aiplatform.v1beta1.ExportDataResponse; import com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; import com.google.cloud.aiplatform.v1beta1.GetDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ImportDataRequest; import com.google.cloud.aiplatform.v1beta1.ImportDataResponse; @@ -71,10 +77,14 @@ import com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; import com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest; import com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest; import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.SavedQuery; import com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; import com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; @@ -162,6 +172,25 @@ public class DatasetServiceStubSettings extends StubSettings exportDataOperationSettings; + private final UnaryCallSettings + createDatasetVersionSettings; + private final OperationCallSettings< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings; + private final UnaryCallSettings + deleteDatasetVersionSettings; + private final OperationCallSettings + deleteDatasetVersionOperationSettings; + private final UnaryCallSettings + getDatasetVersionSettings; + private final PagedCallSettings< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings; + private final UnaryCallSettings + restoreDatasetVersionSettings; + private final OperationCallSettings< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings; private final PagedCallSettings< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> listDataItemsSettings; @@ -224,6 +253,46 @@ public Iterable extractResources(ListDatasetsResponse payload) { } }; + private static final PagedListDescriptor< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, DatasetVersion> + LIST_DATASET_VERSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, DatasetVersion>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDatasetVersionsRequest injectToken( + ListDatasetVersionsRequest payload, String token) { + return ListDatasetVersionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListDatasetVersionsRequest injectPageSize( + ListDatasetVersionsRequest payload, int pageSize) { + return ListDatasetVersionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListDatasetVersionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDatasetVersionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListDatasetVersionsResponse payload) { + return payload.getDatasetVersionsList() == null + ? ImmutableList.of() + : payload.getDatasetVersionsList(); + } + }; + private static final PagedListDescriptor LIST_DATA_ITEMS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -430,6 +499,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + LIST_DATASET_VERSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListDatasetVersionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_DATASET_VERSIONS_PAGE_STR_DESC, request, context); + return ListDatasetVersionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> LIST_DATA_ITEMS_PAGE_STR_FACT = @@ -579,6 +669,54 @@ public UnaryCallSettings exportDataSettings() { return exportDataOperationSettings; } + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings createDatasetVersionSettings() { + return createDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to createDatasetVersion. */ + public OperationCallSettings< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return createDatasetVersionOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings deleteDatasetVersionSettings() { + return deleteDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to deleteDatasetVersion. */ + public OperationCallSettings + deleteDatasetVersionOperationSettings() { + return deleteDatasetVersionOperationSettings; + } + + /** Returns the object with the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings getDatasetVersionSettings() { + return getDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to listDatasetVersions. */ + public PagedCallSettings< + ListDatasetVersionsRequest, ListDatasetVersionsResponse, ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return listDatasetVersionsSettings; + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings + restoreDatasetVersionSettings() { + return restoreDatasetVersionSettings; + } + + /** Returns the object with the settings used for calls to restoreDatasetVersion. */ + public OperationCallSettings< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return restoreDatasetVersionOperationSettings; + } + /** Returns the object with the settings used for calls to listDataItems. */ public PagedCallSettings listDataItemsSettings() { @@ -735,6 +873,17 @@ protected DatasetServiceStubSettings(Builder settingsBuilder) throws IOException importDataOperationSettings = settingsBuilder.importDataOperationSettings().build(); exportDataSettings = settingsBuilder.exportDataSettings().build(); exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build(); + createDatasetVersionSettings = settingsBuilder.createDatasetVersionSettings().build(); + createDatasetVersionOperationSettings = + settingsBuilder.createDatasetVersionOperationSettings().build(); + deleteDatasetVersionSettings = settingsBuilder.deleteDatasetVersionSettings().build(); + deleteDatasetVersionOperationSettings = + settingsBuilder.deleteDatasetVersionOperationSettings().build(); + getDatasetVersionSettings = settingsBuilder.getDatasetVersionSettings().build(); + listDatasetVersionsSettings = settingsBuilder.listDatasetVersionsSettings().build(); + restoreDatasetVersionSettings = settingsBuilder.restoreDatasetVersionSettings().build(); + restoreDatasetVersionOperationSettings = + settingsBuilder.restoreDatasetVersionOperationSettings().build(); listDataItemsSettings = settingsBuilder.listDataItemsSettings().build(); searchDataItemsSettings = settingsBuilder.searchDataItemsSettings().build(); listSavedQueriesSettings = settingsBuilder.listSavedQueriesSettings().build(); @@ -773,6 +922,28 @@ public static class Builder extends StubSettings.Builder exportDataOperationSettings; + private final UnaryCallSettings.Builder + createDatasetVersionSettings; + private final OperationCallSettings.Builder< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings; + private final UnaryCallSettings.Builder + deleteDatasetVersionSettings; + private final OperationCallSettings.Builder< + DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata> + deleteDatasetVersionOperationSettings; + private final UnaryCallSettings.Builder + getDatasetVersionSettings; + private final PagedCallSettings.Builder< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings; + private final UnaryCallSettings.Builder + restoreDatasetVersionSettings; + private final OperationCallSettings.Builder< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings; private final PagedCallSettings.Builder< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> listDataItemsSettings; @@ -848,6 +1019,15 @@ protected Builder(ClientContext clientContext) { importDataOperationSettings = OperationCallSettings.newBuilder(); exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportDataOperationSettings = OperationCallSettings.newBuilder(); + createDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createDatasetVersionOperationSettings = OperationCallSettings.newBuilder(); + deleteDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDatasetVersionOperationSettings = OperationCallSettings.newBuilder(); + getDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDatasetVersionsSettings = + PagedCallSettings.newBuilder(LIST_DATASET_VERSIONS_PAGE_STR_FACT); + restoreDatasetVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreDatasetVersionOperationSettings = OperationCallSettings.newBuilder(); listDataItemsSettings = PagedCallSettings.newBuilder(LIST_DATA_ITEMS_PAGE_STR_FACT); searchDataItemsSettings = PagedCallSettings.newBuilder(SEARCH_DATA_ITEMS_PAGE_STR_FACT); listSavedQueriesSettings = PagedCallSettings.newBuilder(LIST_SAVED_QUERIES_PAGE_STR_FACT); @@ -870,6 +1050,11 @@ protected Builder(ClientContext clientContext) { deleteDatasetSettings, importDataSettings, exportDataSettings, + createDatasetVersionSettings, + deleteDatasetVersionSettings, + getDatasetVersionSettings, + listDatasetVersionsSettings, + restoreDatasetVersionSettings, listDataItemsSettings, searchDataItemsSettings, listSavedQueriesSettings, @@ -898,6 +1083,17 @@ protected Builder(DatasetServiceStubSettings settings) { importDataOperationSettings = settings.importDataOperationSettings.toBuilder(); exportDataSettings = settings.exportDataSettings.toBuilder(); exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder(); + createDatasetVersionSettings = settings.createDatasetVersionSettings.toBuilder(); + createDatasetVersionOperationSettings = + settings.createDatasetVersionOperationSettings.toBuilder(); + deleteDatasetVersionSettings = settings.deleteDatasetVersionSettings.toBuilder(); + deleteDatasetVersionOperationSettings = + settings.deleteDatasetVersionOperationSettings.toBuilder(); + getDatasetVersionSettings = settings.getDatasetVersionSettings.toBuilder(); + listDatasetVersionsSettings = settings.listDatasetVersionsSettings.toBuilder(); + restoreDatasetVersionSettings = settings.restoreDatasetVersionSettings.toBuilder(); + restoreDatasetVersionOperationSettings = + settings.restoreDatasetVersionOperationSettings.toBuilder(); listDataItemsSettings = settings.listDataItemsSettings.toBuilder(); searchDataItemsSettings = settings.searchDataItemsSettings.toBuilder(); listSavedQueriesSettings = settings.listSavedQueriesSettings.toBuilder(); @@ -920,6 +1116,11 @@ protected Builder(DatasetServiceStubSettings settings) { deleteDatasetSettings, importDataSettings, exportDataSettings, + createDatasetVersionSettings, + deleteDatasetVersionSettings, + getDatasetVersionSettings, + listDatasetVersionsSettings, + restoreDatasetVersionSettings, listDataItemsSettings, searchDataItemsSettings, listSavedQueriesSettings, @@ -982,6 +1183,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .createDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listDatasetVersionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .restoreDatasetVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listDataItemsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -1134,6 +1360,80 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createDatasetVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DatasetVersion.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateDatasetVersionOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteDatasetVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .restoreDatasetVersionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(DatasetVersion.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + RestoreDatasetVersionOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .deleteSavedQueryOperationSettings() .setInitialCallSettings( @@ -1248,6 +1548,66 @@ public UnaryCallSettings.Builder exportDataSetting return exportDataOperationSettings; } + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + public UnaryCallSettings.Builder + createDatasetVersionSettings() { + return createDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to createDatasetVersion. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationSettings() { + return createDatasetVersionOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + public UnaryCallSettings.Builder + deleteDatasetVersionSettings() { + return deleteDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to deleteDatasetVersion. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + DeleteDatasetVersionRequest, Empty, DeleteOperationMetadata> + deleteDatasetVersionOperationSettings() { + return deleteDatasetVersionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getDatasetVersion. */ + public UnaryCallSettings.Builder + getDatasetVersionSettings() { + return getDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to listDatasetVersions. */ + public PagedCallSettings.Builder< + ListDatasetVersionsRequest, + ListDatasetVersionsResponse, + ListDatasetVersionsPagedResponse> + listDatasetVersionsSettings() { + return listDatasetVersionsSettings; + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + public UnaryCallSettings.Builder + restoreDatasetVersionSettings() { + return restoreDatasetVersionSettings; + } + + /** Returns the builder for the settings used for calls to restoreDatasetVersion. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationSettings() { + return restoreDatasetVersionOperationSettings; + } + /** Returns the builder for the settings used for calls to listDataItems. */ public PagedCallSettings.Builder< ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java index c158506fb931..57c48cf6cd6c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcDatasetServiceStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -35,8 +36,12 @@ import com.google.cloud.aiplatform.v1beta1.AnnotationSpec; import com.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; import com.google.cloud.aiplatform.v1beta1.CreateDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.Dataset; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; import com.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; import com.google.cloud.aiplatform.v1beta1.DeleteSavedQueryRequest; import com.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; @@ -44,6 +49,7 @@ import com.google.cloud.aiplatform.v1beta1.ExportDataResponse; import com.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; import com.google.cloud.aiplatform.v1beta1.GetDatasetRequest; +import com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; import com.google.cloud.aiplatform.v1beta1.ImportDataRequest; import com.google.cloud.aiplatform.v1beta1.ImportDataResponse; @@ -51,10 +57,14 @@ import com.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; import com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest; import com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse; import com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest; import com.google.cloud.aiplatform.v1beta1.ListDatasetsResponse; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; import com.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest; import com.google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; import com.google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; import com.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; @@ -149,6 +159,61 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + createDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DatasetService/CreateDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DatasetService/DeleteDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.DatasetService/GetDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DatasetVersion.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDatasetVersionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DatasetService/ListDatasetVersions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDatasetVersionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDatasetVersionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + restoreDatasetVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.DatasetService/RestoreDatasetVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreDatasetVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listDataItemsMethodDescriptor = MethodDescriptor.newBuilder() @@ -278,6 +343,23 @@ public class GrpcDatasetServiceStub extends DatasetServiceStub { private final OperationCallable< ExportDataRequest, ExportDataResponse, ExportDataOperationMetadata> exportDataOperationCallable; + private final UnaryCallable createDatasetVersionCallable; + private final OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable; + private final UnaryCallable deleteDatasetVersionCallable; + private final OperationCallable + deleteDatasetVersionOperationCallable; + private final UnaryCallable getDatasetVersionCallable; + private final UnaryCallable + listDatasetVersionsCallable; + private final UnaryCallable + listDatasetVersionsPagedCallable; + private final UnaryCallable + restoreDatasetVersionCallable; + private final OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable; private final UnaryCallable listDataItemsCallable; private final UnaryCallable listDataItemsPagedCallable; @@ -420,6 +502,58 @@ protected GrpcDatasetServiceStub( return builder.build(); }) .build(); + GrpcCallSettings createDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDatasetVersionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDatasetVersionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + restoreDatasetVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreDatasetVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listDataItemsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataItemsMethodDescriptor) @@ -583,6 +717,54 @@ protected GrpcDatasetServiceStub( settings.exportDataOperationSettings(), clientContext, operationsStub); + this.createDatasetVersionCallable = + callableFactory.createUnaryCallable( + createDatasetVersionTransportSettings, + settings.createDatasetVersionSettings(), + clientContext); + this.createDatasetVersionOperationCallable = + callableFactory.createOperationCallable( + createDatasetVersionTransportSettings, + settings.createDatasetVersionOperationSettings(), + clientContext, + operationsStub); + this.deleteDatasetVersionCallable = + callableFactory.createUnaryCallable( + deleteDatasetVersionTransportSettings, + settings.deleteDatasetVersionSettings(), + clientContext); + this.deleteDatasetVersionOperationCallable = + callableFactory.createOperationCallable( + deleteDatasetVersionTransportSettings, + settings.deleteDatasetVersionOperationSettings(), + clientContext, + operationsStub); + this.getDatasetVersionCallable = + callableFactory.createUnaryCallable( + getDatasetVersionTransportSettings, + settings.getDatasetVersionSettings(), + clientContext); + this.listDatasetVersionsCallable = + callableFactory.createUnaryCallable( + listDatasetVersionsTransportSettings, + settings.listDatasetVersionsSettings(), + clientContext); + this.listDatasetVersionsPagedCallable = + callableFactory.createPagedCallable( + listDatasetVersionsTransportSettings, + settings.listDatasetVersionsSettings(), + clientContext); + this.restoreDatasetVersionCallable = + callableFactory.createUnaryCallable( + restoreDatasetVersionTransportSettings, + settings.restoreDatasetVersionSettings(), + clientContext); + this.restoreDatasetVersionOperationCallable = + callableFactory.createOperationCallable( + restoreDatasetVersionTransportSettings, + settings.restoreDatasetVersionOperationSettings(), + clientContext, + operationsStub); this.listDataItemsCallable = callableFactory.createUnaryCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); @@ -714,6 +896,58 @@ public UnaryCallable exportDataCallable() { return exportDataOperationCallable; } + @Override + public UnaryCallable createDatasetVersionCallable() { + return createDatasetVersionCallable; + } + + @Override + public OperationCallable< + CreateDatasetVersionRequest, DatasetVersion, CreateDatasetVersionOperationMetadata> + createDatasetVersionOperationCallable() { + return createDatasetVersionOperationCallable; + } + + @Override + public UnaryCallable deleteDatasetVersionCallable() { + return deleteDatasetVersionCallable; + } + + @Override + public OperationCallable + deleteDatasetVersionOperationCallable() { + return deleteDatasetVersionOperationCallable; + } + + @Override + public UnaryCallable getDatasetVersionCallable() { + return getDatasetVersionCallable; + } + + @Override + public UnaryCallable + listDatasetVersionsCallable() { + return listDatasetVersionsCallable; + } + + @Override + public UnaryCallable + listDatasetVersionsPagedCallable() { + return listDatasetVersionsPagedCallable; + } + + @Override + public UnaryCallable restoreDatasetVersionCallable() { + return restoreDatasetVersionCallable; + } + + @Override + public OperationCallable< + RestoreDatasetVersionRequest, DatasetVersion, RestoreDatasetVersionOperationMetadata> + restoreDatasetVersionOperationCallable() { + return restoreDatasetVersionOperationCallable; + } + @Override public UnaryCallable listDataItemsCallable() { return listDataItemsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelGardenServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelGardenServiceStub.java index 4192cea11114..aae39f6edc48 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelGardenServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcModelGardenServiceStub.java @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1.stub; import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListPublisherModelsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; @@ -27,6 +28,8 @@ import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; import com.google.cloud.aiplatform.v1beta1.PublisherModel; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -64,6 +67,18 @@ public class GrpcModelGardenServiceStub extends ModelGardenServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(PublisherModel.getDefaultInstance())) .build(); + private static final MethodDescriptor + listPublisherModelsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.ModelGardenService/ListPublisherModels") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPublisherModelsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPublisherModelsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -111,6 +126,10 @@ public class GrpcModelGardenServiceStub extends ModelGardenServiceStub { .build(); private final UnaryCallable getPublisherModelCallable; + private final UnaryCallable + listPublisherModelsCallable; + private final UnaryCallable + listPublisherModelsPagedCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -174,6 +193,17 @@ protected GrpcModelGardenServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listPublisherModelsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPublisherModelsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -231,6 +261,16 @@ protected GrpcModelGardenServiceStub( getPublisherModelTransportSettings, settings.getPublisherModelSettings(), clientContext); + this.listPublisherModelsCallable = + callableFactory.createUnaryCallable( + listPublisherModelsTransportSettings, + settings.listPublisherModelsSettings(), + clientContext); + this.listPublisherModelsPagedCallable = + callableFactory.createPagedCallable( + listPublisherModelsTransportSettings, + settings.listPublisherModelsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -265,6 +305,18 @@ public UnaryCallable getPublisherModel return getPublisherModelCallable; } + @Override + public UnaryCallable + listPublisherModelsCallable() { + return listPublisherModelsCallable; + } + + @Override + public UnaryCallable + listPublisherModelsPagedCallable() { + return listPublisherModelsPagedCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java index 878742933b4c..5eed5a51cf79 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStub.java @@ -17,11 +17,14 @@ package com.google.cloud.aiplatform.v1beta1.stub; import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListPublisherModelsPagedResponse; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; import com.google.cloud.aiplatform.v1beta1.PublisherModel; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -48,6 +51,16 @@ public UnaryCallable getPublisherModel throw new UnsupportedOperationException("Not implemented: getPublisherModelCallable()"); } + public UnaryCallable + listPublisherModelsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listPublisherModelsPagedCallable()"); + } + + public UnaryCallable + listPublisherModelsCallable() { + throw new UnsupportedOperationException("Not implemented: listPublisherModelsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java index 00610f364e0b..d8c4c38209ed 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ModelGardenServiceStubSettings.java @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1.stub; import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListPublisherModelsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -41,6 +42,8 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; import com.google.cloud.aiplatform.v1beta1.PublisherModel; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -106,6 +109,9 @@ public class ModelGardenServiceStubSettings extends StubSettings getPublisherModelSettings; + private final PagedCallSettings< + ListPublisherModelsRequest, ListPublisherModelsResponse, ListPublisherModelsPagedResponse> + listPublisherModelsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -115,6 +121,46 @@ public class ModelGardenServiceStubSettings extends StubSettings testIamPermissionsSettings; + private static final PagedListDescriptor< + ListPublisherModelsRequest, ListPublisherModelsResponse, PublisherModel> + LIST_PUBLISHER_MODELS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPublisherModelsRequest, ListPublisherModelsResponse, PublisherModel>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPublisherModelsRequest injectToken( + ListPublisherModelsRequest payload, String token) { + return ListPublisherModelsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPublisherModelsRequest injectPageSize( + ListPublisherModelsRequest payload, int pageSize) { + return ListPublisherModelsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListPublisherModelsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPublisherModelsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListPublisherModelsResponse payload) { + return payload.getPublisherModelsList() == null + ? ImmutableList.of() + : payload.getPublisherModelsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -151,6 +197,27 @@ public Iterable extractResources(ListLocationsResponse payload) { } }; + private static final PagedListResponseFactory< + ListPublisherModelsRequest, ListPublisherModelsResponse, ListPublisherModelsPagedResponse> + LIST_PUBLISHER_MODELS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPublisherModelsRequest, + ListPublisherModelsResponse, + ListPublisherModelsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListPublisherModelsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_PUBLISHER_MODELS_PAGE_STR_DESC, request, context); + return ListPublisherModelsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -173,6 +240,13 @@ public UnaryCallSettings getPublisherM return getPublisherModelSettings; } + /** Returns the object with the settings used for calls to listPublisherModels. */ + public PagedCallSettings< + ListPublisherModelsRequest, ListPublisherModelsResponse, ListPublisherModelsPagedResponse> + listPublisherModelsSettings() { + return listPublisherModelsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -276,6 +350,7 @@ protected ModelGardenServiceStubSettings(Builder settingsBuilder) throws IOExcep super(settingsBuilder); getPublisherModelSettings = settingsBuilder.getPublisherModelSettings().build(); + listPublisherModelsSettings = settingsBuilder.listPublisherModelsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -289,6 +364,11 @@ public static class Builder private final ImmutableList> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder getPublisherModelSettings; + private final PagedCallSettings.Builder< + ListPublisherModelsRequest, + ListPublisherModelsResponse, + ListPublisherModelsPagedResponse> + listPublisherModelsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -325,6 +405,8 @@ protected Builder(ClientContext clientContext) { super(clientContext); getPublisherModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPublisherModelsSettings = + PagedCallSettings.newBuilder(LIST_PUBLISHER_MODELS_PAGE_STR_FACT); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -334,6 +416,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( getPublisherModelSettings, + listPublisherModelsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -346,6 +429,7 @@ protected Builder(ModelGardenServiceStubSettings settings) { super(settings); getPublisherModelSettings = settings.getPublisherModelSettings.toBuilder(); + listPublisherModelsSettings = settings.listPublisherModelsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -355,6 +439,7 @@ protected Builder(ModelGardenServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( getPublisherModelSettings, + listPublisherModelsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -381,6 +466,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listPublisherModelsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -430,6 +520,15 @@ public Builder applyToAllUnaryMethods( return getPublisherModelSettings; } + /** Returns the builder for the settings used for calls to listPublisherModels. */ + public PagedCallSettings.Builder< + ListPublisherModelsRequest, + ListPublisherModelsResponse, + ListPublisherModelsPagedResponse> + listPublisherModelsSettings() { + return listPublisherModelsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 40c7347b8bf5..450a6d45a85c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -1727,6 +1727,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.CreateEndpointOperationMetadata", "queryAllDeclaredConstructors": true, @@ -2429,6 +2447,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.DatasetVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DatasetVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.DedicatedResources", "queryAllDeclaredConstructors": true, @@ -2555,6 +2591,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.DeleteEndpointRequest", "queryAllDeclaredConstructors": true, @@ -4985,6 +5039,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.GetDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.GetDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.GetEndpointRequest", "queryAllDeclaredConstructors": true, @@ -6155,6 +6227,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ListDatasetsRequest", "queryAllDeclaredConstructors": true, @@ -8684,6 +8792,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.PersistentDiskSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.PersistentDiskSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.PipelineFailurePolicy", "queryAllDeclaredConstructors": true, @@ -9926,6 +10052,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index 70e9fd30727e..30644d35c7b4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -1763,6 +1763,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata", "queryAllDeclaredConstructors": true, @@ -2663,6 +2681,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DatasetVersion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DatasetVersion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.DedicatedResources", "queryAllDeclaredConstructors": true, @@ -2789,6 +2825,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest", "queryAllDeclaredConstructors": true, @@ -4850,6 +4904,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore$DedicatedServingEndpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore$DedicatedServingEndpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore$EmbeddingManagement", "queryAllDeclaredConstructors": true, @@ -5696,6 +5768,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest", "queryAllDeclaredConstructors": true, @@ -6974,6 +7064,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ListDatasetsRequest", "queryAllDeclaredConstructors": true, @@ -7910,6 +8036,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest", "queryAllDeclaredConstructors": true, @@ -11294,6 +11456,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java index 8a9f60e6b8de..cc0b710cc006 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/DatasetServiceClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -744,6 +745,492 @@ public void exportDataExceptionTest2() throws Exception { } } + @Test + public void createDatasetVersionTest() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + + DatasetVersion actualResponse = client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatasetVersionRequest actualRequest = + ((CreateDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(datasetVersion, actualRequest.getDatasetVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createDatasetVersionTest2() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + String parent = "parent-995424086"; + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + + DatasetVersion actualResponse = client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatasetVersionRequest actualRequest = + ((CreateDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(datasetVersion, actualRequest.getDatasetVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String parent = "parent-995424086"; + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDatasetVersionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + + client.deleteDatasetVersionAsync(name).get(); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDatasetVersionRequest actualRequest = + ((DeleteDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + client.deleteDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDatasetVersionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteDatasetVersionAsync(name).get(); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDatasetVersionRequest actualRequest = + ((DeleteDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getDatasetVersionTest() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + mockDatasetService.addResponse(expectedResponse); + + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + + DatasetVersion actualResponse = client.getDatasetVersion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatasetVersionRequest actualRequest = ((GetDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + client.getDatasetVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatasetVersionTest2() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + mockDatasetService.addResponse(expectedResponse); + + String name = "name3373707"; + + DatasetVersion actualResponse = client.getDatasetVersion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatasetVersionRequest actualRequest = ((GetDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String name = "name3373707"; + client.getDatasetVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatasetVersionsTest() throws Exception { + DatasetVersion responsesElement = DatasetVersion.newBuilder().build(); + ListDatasetVersionsResponse expectedResponse = + ListDatasetVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDatasetVersions(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + + ListDatasetVersionsPagedResponse pagedListResponse = client.listDatasetVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatasetVersionsList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatasetVersionsRequest actualRequest = ((ListDatasetVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatasetVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + client.listDatasetVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatasetVersionsTest2() throws Exception { + DatasetVersion responsesElement = DatasetVersion.newBuilder().build(); + ListDatasetVersionsResponse expectedResponse = + ListDatasetVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDatasetVersions(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatasetVersionsPagedResponse pagedListResponse = client.listDatasetVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatasetVersionsList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatasetVersionsRequest actualRequest = ((ListDatasetVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatasetVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatasetVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void restoreDatasetVersionTest() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + + DatasetVersion actualResponse = client.restoreDatasetVersionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatasetVersionRequest actualRequest = + ((RestoreDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + client.restoreDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreDatasetVersionTest2() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + String name = "name3373707"; + + DatasetVersion actualResponse = client.restoreDatasetVersionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatasetVersionRequest actualRequest = + ((RestoreDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String name = "name3373707"; + client.restoreDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listDataItemsTest() throws Exception { DataItem responsesElement = DataItem.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java index 701bbcb2ed2a..cf2990af0b96 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockDatasetServiceImpl.java @@ -203,6 +203,112 @@ public void exportData(ExportDataRequest request, StreamObserver resp } } + @Override + public void createDatasetVersion( + CreateDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDatasetVersion( + DeleteDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDatasetVersion( + GetDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DatasetVersion) { + requests.add(request); + responseObserver.onNext(((DatasetVersion) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DatasetVersion.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDatasetVersions( + ListDatasetVersionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatasetVersionsResponse) { + requests.add(request); + responseObserver.onNext(((ListDatasetVersionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDatasetVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDatasetVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void restoreDatasetVersion( + RestoreDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RestoreDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listDataItems( ListDataItemsRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java index 145efdff9f58..52daa021e01a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListAnnotationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDataItemsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetVersionsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListDatasetsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListLocationsPagedResponse; import static com.google.cloud.aiplatform.v1beta1.DatasetServiceClient.ListSavedQueriesPagedResponse; @@ -744,6 +745,492 @@ public void exportDataExceptionTest2() throws Exception { } } + @Test + public void createDatasetVersionTest() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + + DatasetVersion actualResponse = client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatasetVersionRequest actualRequest = + ((CreateDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(datasetVersion, actualRequest.getDatasetVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createDatasetVersionTest2() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + String parent = "parent-995424086"; + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + + DatasetVersion actualResponse = client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDatasetVersionRequest actualRequest = + ((CreateDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(datasetVersion, actualRequest.getDatasetVersion()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String parent = "parent-995424086"; + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + client.createDatasetVersionAsync(parent, datasetVersion).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDatasetVersionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + + client.deleteDatasetVersionAsync(name).get(); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDatasetVersionRequest actualRequest = + ((DeleteDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + client.deleteDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteDatasetVersionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteDatasetVersionAsync(name).get(); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDatasetVersionRequest actualRequest = + ((DeleteDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getDatasetVersionTest() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + mockDatasetService.addResponse(expectedResponse); + + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + + DatasetVersion actualResponse = client.getDatasetVersion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatasetVersionRequest actualRequest = ((GetDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + client.getDatasetVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDatasetVersionTest2() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + mockDatasetService.addResponse(expectedResponse); + + String name = "name3373707"; + + DatasetVersion actualResponse = client.getDatasetVersion(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDatasetVersionRequest actualRequest = ((GetDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String name = "name3373707"; + client.getDatasetVersion(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatasetVersionsTest() throws Exception { + DatasetVersion responsesElement = DatasetVersion.newBuilder().build(); + ListDatasetVersionsResponse expectedResponse = + ListDatasetVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDatasetVersions(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + + ListDatasetVersionsPagedResponse pagedListResponse = client.listDatasetVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatasetVersionsList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatasetVersionsRequest actualRequest = ((ListDatasetVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatasetVersionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + client.listDatasetVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDatasetVersionsTest2() throws Exception { + DatasetVersion responsesElement = DatasetVersion.newBuilder().build(); + ListDatasetVersionsResponse expectedResponse = + ListDatasetVersionsResponse.newBuilder() + .setNextPageToken("") + .addAllDatasetVersions(Arrays.asList(responsesElement)) + .build(); + mockDatasetService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDatasetVersionsPagedResponse pagedListResponse = client.listDatasetVersions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDatasetVersionsList().get(0), resources.get(0)); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDatasetVersionsRequest actualRequest = ((ListDatasetVersionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDatasetVersionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDatasetVersions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void restoreDatasetVersionTest() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + + DatasetVersion actualResponse = client.restoreDatasetVersionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatasetVersionRequest actualRequest = + ((RestoreDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatasetVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + client.restoreDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreDatasetVersionTest2() throws Exception { + DatasetVersion expectedResponse = + DatasetVersion.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setBigQueryDatasetName("bigQueryDatasetName1406937691") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreDatasetVersionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatasetService.addResponse(resultOperation); + + String name = "name3373707"; + + DatasetVersion actualResponse = client.restoreDatasetVersionAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatasetService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreDatasetVersionRequest actualRequest = + ((RestoreDatasetVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreDatasetVersionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatasetService.addException(exception); + + try { + String name = "name3373707"; + client.restoreDatasetVersionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listDataItemsTest() throws Exception { DataItem responsesElement = DataItem.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java index 9af6cb6a9b74..30e96a426087 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java @@ -122,6 +122,8 @@ public void createFeatureOnlineStoreTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .putAllLabels(new HashMap()) + .setDedicatedServingEndpoint( + FeatureOnlineStore.DedicatedServingEndpoint.newBuilder().build()) .setEmbeddingManagement(FeatureOnlineStore.EmbeddingManagement.newBuilder().build()) .build(); Operation resultOperation = @@ -185,6 +187,8 @@ public void createFeatureOnlineStoreTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .putAllLabels(new HashMap()) + .setDedicatedServingEndpoint( + FeatureOnlineStore.DedicatedServingEndpoint.newBuilder().build()) .setEmbeddingManagement(FeatureOnlineStore.EmbeddingManagement.newBuilder().build()) .build(); Operation resultOperation = @@ -248,6 +252,8 @@ public void getFeatureOnlineStoreTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .putAllLabels(new HashMap()) + .setDedicatedServingEndpoint( + FeatureOnlineStore.DedicatedServingEndpoint.newBuilder().build()) .setEmbeddingManagement(FeatureOnlineStore.EmbeddingManagement.newBuilder().build()) .build(); mockFeatureOnlineStoreAdminService.addResponse(expectedResponse); @@ -296,6 +302,8 @@ public void getFeatureOnlineStoreTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .putAllLabels(new HashMap()) + .setDedicatedServingEndpoint( + FeatureOnlineStore.DedicatedServingEndpoint.newBuilder().build()) .setEmbeddingManagement(FeatureOnlineStore.EmbeddingManagement.newBuilder().build()) .build(); mockFeatureOnlineStoreAdminService.addResponse(expectedResponse); @@ -432,6 +440,8 @@ public void updateFeatureOnlineStoreTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setEtag("etag3123477") .putAllLabels(new HashMap()) + .setDedicatedServingEndpoint( + FeatureOnlineStore.DedicatedServingEndpoint.newBuilder().build()) .setEmbeddingManagement(FeatureOnlineStore.EmbeddingManagement.newBuilder().build()) .build(); Operation resultOperation = diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java index ab85acc1d879..a4c398b872dc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockDatasetServiceImpl.java @@ -203,6 +203,112 @@ public void exportData(ExportDataRequest request, StreamObserver resp } } + @Override + public void createDatasetVersion( + CreateDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDatasetVersion( + DeleteDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDatasetVersion( + GetDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DatasetVersion) { + requests.add(request); + responseObserver.onNext(((DatasetVersion) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DatasetVersion.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDatasetVersions( + ListDatasetVersionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDatasetVersionsResponse) { + requests.add(request); + responseObserver.onNext(((ListDatasetVersionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListDatasetVersions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDatasetVersionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void restoreDatasetVersion( + RestoreDatasetVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RestoreDatasetVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listDataItems( ListDataItemsRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelGardenServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelGardenServiceImpl.java index caf66ab43f13..6e8aeef7029e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelGardenServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockModelGardenServiceImpl.java @@ -78,4 +78,26 @@ public void getPublisherModel( Exception.class.getName()))); } } + + @Override + public void listPublisherModels( + ListPublisherModelsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPublisherModelsResponse) { + requests.add(request); + responseObserver.onNext(((ListPublisherModelsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListPublisherModels, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPublisherModelsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java index 4584f415afb7..5936cea62962 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceClientTest.java @@ -17,6 +17,7 @@ package com.google.cloud.aiplatform.v1beta1; import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient.ListPublisherModelsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -188,6 +189,50 @@ public void getPublisherModelExceptionTest2() throws Exception { } } + @Test + public void listPublisherModelsTest() throws Exception { + PublisherModel responsesElement = PublisherModel.newBuilder().build(); + ListPublisherModelsResponse expectedResponse = + ListPublisherModelsResponse.newBuilder() + .setNextPageToken("") + .addAllPublisherModels(Arrays.asList(responsesElement)) + .build(); + mockModelGardenService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPublisherModelsPagedResponse pagedListResponse = client.listPublisherModels(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPublisherModelsList().get(0), resources.get(0)); + + List actualRequests = mockModelGardenService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPublisherModelsRequest actualRequest = ((ListPublisherModelsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPublisherModelsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockModelGardenService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPublisherModels(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java index a818bb2a7a6f..ed0370511ffe 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceGrpc.java @@ -341,6 +341,248 @@ private DatasetServiceGrpc() {} return getExportDataMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest, + com.google.longrunning.Operation> + getCreateDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDatasetVersion", + requestType = com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest, + com.google.longrunning.Operation> + getCreateDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest, + com.google.longrunning.Operation> + getCreateDatasetVersionMethod; + if ((getCreateDatasetVersionMethod = DatasetServiceGrpc.getCreateDatasetVersionMethod) + == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getCreateDatasetVersionMethod = DatasetServiceGrpc.getCreateDatasetVersionMethod) + == null) { + DatasetServiceGrpc.getCreateDatasetVersionMethod = + getCreateDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("CreateDatasetVersion")) + .build(); + } + } + } + return getCreateDatasetVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation> + getDeleteDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDatasetVersion", + requestType = com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation> + getDeleteDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation> + getDeleteDatasetVersionMethod; + if ((getDeleteDatasetVersionMethod = DatasetServiceGrpc.getDeleteDatasetVersionMethod) + == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getDeleteDatasetVersionMethod = DatasetServiceGrpc.getDeleteDatasetVersionMethod) + == null) { + DatasetServiceGrpc.getDeleteDatasetVersionMethod = + getDeleteDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("DeleteDatasetVersion")) + .build(); + } + } + } + return getDeleteDatasetVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1.DatasetVersion> + getGetDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDatasetVersion", + requestType = com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.class, + responseType = com.google.cloud.aiplatform.v1.DatasetVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1.DatasetVersion> + getGetDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1.DatasetVersion> + getGetDatasetVersionMethod; + if ((getGetDatasetVersionMethod = DatasetServiceGrpc.getGetDatasetVersionMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getGetDatasetVersionMethod = DatasetServiceGrpc.getGetDatasetVersionMethod) == null) { + DatasetServiceGrpc.getGetDatasetVersionMethod = + getGetDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("GetDatasetVersion")) + .build(); + } + } + } + return getGetDatasetVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse> + getListDatasetVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasetVersions", + requestType = com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.class, + responseType = com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse> + getListDatasetVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse> + getListDatasetVersionsMethod; + if ((getListDatasetVersionsMethod = DatasetServiceGrpc.getListDatasetVersionsMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getListDatasetVersionsMethod = DatasetServiceGrpc.getListDatasetVersionsMethod) + == null) { + DatasetServiceGrpc.getListDatasetVersionsMethod = + getListDatasetVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDatasetVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("ListDatasetVersions")) + .build(); + } + } + } + return getListDatasetVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation> + getRestoreDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreDatasetVersion", + requestType = com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation> + getRestoreDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation> + getRestoreDatasetVersionMethod; + if ((getRestoreDatasetVersionMethod = DatasetServiceGrpc.getRestoreDatasetVersionMethod) + == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getRestoreDatasetVersionMethod = DatasetServiceGrpc.getRestoreDatasetVersionMethod) + == null) { + DatasetServiceGrpc.getRestoreDatasetVersionMethod = + getRestoreDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RestoreDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("RestoreDatasetVersion")) + .build(); + } + } + } + return getRestoreDatasetVersionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.ListDataItemsRequest, com.google.cloud.aiplatform.v1.ListDataItemsResponse> @@ -765,6 +1007,78 @@ default void exportData( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); } + /** + * + * + *

+     * Create a version from a Dataset.
+     * 
+ */ + default void createDatasetVersion( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + default void deleteDatasetVersion( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + default void getDatasetVersion( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDatasetVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + default void listDatasetVersions( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetVersionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + default void restoreDatasetVersion( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreDatasetVersionMethod(), responseObserver); + } + /** * * @@ -996,6 +1310,88 @@ public void exportData( getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Create a version from a Dataset.
+     * 
+ */ + public void createDatasetVersion( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + public void deleteDatasetVersion( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + public void getDatasetVersion( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + public void listDatasetVersions( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + public void restoreDatasetVersion( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1208,6 +1604,71 @@ public com.google.longrunning.Operation exportData( getChannel(), getExportDataMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Create a version from a Dataset.
+     * 
+ */ + public com.google.longrunning.Operation createDatasetVersion( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + public com.google.longrunning.Operation deleteDatasetVersion( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersion( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + public com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse listDatasetVersions( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + public com.google.longrunning.Operation restoreDatasetVersion( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreDatasetVersionMethod(), getCallOptions(), request); + } + /** * * @@ -1400,6 +1861,73 @@ protected DatasetServiceFutureStub build( getChannel().newCall(getExportDataMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Create a version from a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createDatasetVersion(com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDatasetVersion(com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.DatasetVersion> + getDatasetVersion(com.google.cloud.aiplatform.v1.GetDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse> + listDatasetVersions(com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreDatasetVersion(com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreDatasetVersionMethod(), getCallOptions()), request); + } + /** * * @@ -1491,12 +2019,17 @@ protected DatasetServiceFutureStub build( private static final int METHODID_DELETE_DATASET = 4; private static final int METHODID_IMPORT_DATA = 5; private static final int METHODID_EXPORT_DATA = 6; - private static final int METHODID_LIST_DATA_ITEMS = 7; - private static final int METHODID_SEARCH_DATA_ITEMS = 8; - private static final int METHODID_LIST_SAVED_QUERIES = 9; - private static final int METHODID_DELETE_SAVED_QUERY = 10; - private static final int METHODID_GET_ANNOTATION_SPEC = 11; - private static final int METHODID_LIST_ANNOTATIONS = 12; + private static final int METHODID_CREATE_DATASET_VERSION = 7; + private static final int METHODID_DELETE_DATASET_VERSION = 8; + private static final int METHODID_GET_DATASET_VERSION = 9; + private static final int METHODID_LIST_DATASET_VERSIONS = 10; + private static final int METHODID_RESTORE_DATASET_VERSION = 11; + private static final int METHODID_LIST_DATA_ITEMS = 12; + private static final int METHODID_SEARCH_DATA_ITEMS = 13; + private static final int METHODID_LIST_SAVED_QUERIES = 14; + private static final int METHODID_DELETE_SAVED_QUERY = 15; + private static final int METHODID_GET_ANNOTATION_SPEC = 16; + private static final int METHODID_LIST_ANNOTATIONS = 17; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1553,6 +2086,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1.ExportDataRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_DATASET_VERSION: + serviceImpl.createDatasetVersion( + (com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DATASET_VERSION: + serviceImpl.deleteDatasetVersion( + (com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATASET_VERSION: + serviceImpl.getDatasetVersion( + (com.google.cloud.aiplatform.v1.GetDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATASET_VERSIONS: + serviceImpl.listDatasetVersions( + (com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse>) + responseObserver); + break; + case METHODID_RESTORE_DATASET_VERSION: + serviceImpl.restoreDatasetVersion( + (com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_DATA_ITEMS: serviceImpl.listDataItems( (com.google.cloud.aiplatform.v1.ListDataItemsRequest) request, @@ -1649,6 +2210,38 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1.ExportDataRequest, com.google.longrunning.Operation>(service, METHODID_EXPORT_DATA))) + .addMethod( + getCreateDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_DATASET_VERSION))) + .addMethod( + getDeleteDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_DATASET_VERSION))) + .addMethod( + getGetDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1.DatasetVersion>( + service, METHODID_GET_DATASET_VERSION))) + .addMethod( + getListDatasetVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse>( + service, METHODID_LIST_DATASET_VERSIONS))) + .addMethod( + getRestoreDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_DATASET_VERSION))) .addMethod( getListDataItemsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1748,6 +2341,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteDatasetMethod()) .addMethod(getImportDataMethod()) .addMethod(getExportDataMethod()) + .addMethod(getCreateDatasetVersionMethod()) + .addMethod(getDeleteDatasetVersionMethod()) + .addMethod(getGetDatasetVersionMethod()) + .addMethod(getListDatasetVersionsMethod()) + .addMethod(getRestoreDatasetVersionMethod()) .addMethod(getListDataItemsMethod()) .addMethod(getSearchDataItemsMethod()) .addMethod(getListSavedQueriesMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java index a0200a317203..a1039445b6e3 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceGrpc.java @@ -350,6 +350,249 @@ private DatasetServiceGrpc() {} return getExportDataMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest, + com.google.longrunning.Operation> + getCreateDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDatasetVersion", + requestType = com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest, + com.google.longrunning.Operation> + getCreateDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest, + com.google.longrunning.Operation> + getCreateDatasetVersionMethod; + if ((getCreateDatasetVersionMethod = DatasetServiceGrpc.getCreateDatasetVersionMethod) + == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getCreateDatasetVersionMethod = DatasetServiceGrpc.getCreateDatasetVersionMethod) + == null) { + DatasetServiceGrpc.getCreateDatasetVersionMethod = + getCreateDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("CreateDatasetVersion")) + .build(); + } + } + } + return getCreateDatasetVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation> + getDeleteDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDatasetVersion", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation> + getDeleteDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation> + getDeleteDatasetVersionMethod; + if ((getDeleteDatasetVersionMethod = DatasetServiceGrpc.getDeleteDatasetVersionMethod) + == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getDeleteDatasetVersionMethod = DatasetServiceGrpc.getDeleteDatasetVersionMethod) + == null) { + DatasetServiceGrpc.getDeleteDatasetVersionMethod = + getDeleteDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("DeleteDatasetVersion")) + .build(); + } + } + } + return getDeleteDatasetVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1beta1.DatasetVersion> + getGetDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDatasetVersion", + requestType = com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.DatasetVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1beta1.DatasetVersion> + getGetDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1beta1.DatasetVersion> + getGetDatasetVersionMethod; + if ((getGetDatasetVersionMethod = DatasetServiceGrpc.getGetDatasetVersionMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getGetDatasetVersionMethod = DatasetServiceGrpc.getGetDatasetVersionMethod) == null) { + DatasetServiceGrpc.getGetDatasetVersionMethod = + getGetDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DatasetVersion + .getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("GetDatasetVersion")) + .build(); + } + } + } + return getGetDatasetVersionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse> + getListDatasetVersionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasetVersions", + requestType = com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse> + getListDatasetVersionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse> + getListDatasetVersionsMethod; + if ((getListDatasetVersionsMethod = DatasetServiceGrpc.getListDatasetVersionsMethod) == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getListDatasetVersionsMethod = DatasetServiceGrpc.getListDatasetVersionsMethod) + == null) { + DatasetServiceGrpc.getListDatasetVersionsMethod = + getListDatasetVersionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDatasetVersions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("ListDatasetVersions")) + .build(); + } + } + } + return getListDatasetVersionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation> + getRestoreDatasetVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreDatasetVersion", + requestType = com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation> + getRestoreDatasetVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation> + getRestoreDatasetVersionMethod; + if ((getRestoreDatasetVersionMethod = DatasetServiceGrpc.getRestoreDatasetVersionMethod) + == null) { + synchronized (DatasetServiceGrpc.class) { + if ((getRestoreDatasetVersionMethod = DatasetServiceGrpc.getRestoreDatasetVersionMethod) + == null) { + DatasetServiceGrpc.getRestoreDatasetVersionMethod = + getRestoreDatasetVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RestoreDatasetVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatasetServiceMethodDescriptorSupplier("RestoreDatasetVersion")) + .build(); + } + } + } + return getRestoreDatasetVersionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest, com.google.cloud.aiplatform.v1beta1.ListDataItemsResponse> @@ -777,6 +1020,78 @@ default void exportData( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); } + /** + * + * + *
+     * Create a version from a Dataset.
+     * 
+ */ + default void createDatasetVersion( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + default void deleteDatasetVersion( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + default void getDatasetVersion( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDatasetVersionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + default void listDatasetVersions( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetVersionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + default void restoreDatasetVersion( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreDatasetVersionMethod(), responseObserver); + } + /** * * @@ -1008,6 +1323,88 @@ public void exportData( getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Create a version from a Dataset.
+     * 
+ */ + public void createDatasetVersion( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + public void deleteDatasetVersion( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + public void getDatasetVersion( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + public void listDatasetVersions( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetVersionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + public void restoreDatasetVersion( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreDatasetVersionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1220,6 +1617,71 @@ public com.google.longrunning.Operation exportData( getChannel(), getExportDataMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Create a version from a Dataset.
+     * 
+ */ + public com.google.longrunning.Operation createDatasetVersion( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + public com.google.longrunning.Operation deleteDatasetVersion( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersion( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetVersionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse listDatasetVersions( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetVersionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + public com.google.longrunning.Operation restoreDatasetVersion( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreDatasetVersionMethod(), getCallOptions(), request); + } + /** * * @@ -1412,6 +1874,77 @@ protected DatasetServiceFutureStub build( getChannel().newCall(getExportDataMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Create a version from a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createDatasetVersion( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a Dataset version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDatasetVersion( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a Dataset version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.DatasetVersion> + getDatasetVersion(com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetVersionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists DatasetVersions in a Dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse> + listDatasetVersions( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetVersionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restores a dataset version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreDatasetVersion( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreDatasetVersionMethod(), getCallOptions()), request); + } + /** * * @@ -1503,12 +2036,17 @@ protected DatasetServiceFutureStub build( private static final int METHODID_DELETE_DATASET = 4; private static final int METHODID_IMPORT_DATA = 5; private static final int METHODID_EXPORT_DATA = 6; - private static final int METHODID_LIST_DATA_ITEMS = 7; - private static final int METHODID_SEARCH_DATA_ITEMS = 8; - private static final int METHODID_LIST_SAVED_QUERIES = 9; - private static final int METHODID_DELETE_SAVED_QUERY = 10; - private static final int METHODID_GET_ANNOTATION_SPEC = 11; - private static final int METHODID_LIST_ANNOTATIONS = 12; + private static final int METHODID_CREATE_DATASET_VERSION = 7; + private static final int METHODID_DELETE_DATASET_VERSION = 8; + private static final int METHODID_GET_DATASET_VERSION = 9; + private static final int METHODID_LIST_DATASET_VERSIONS = 10; + private static final int METHODID_RESTORE_DATASET_VERSION = 11; + private static final int METHODID_LIST_DATA_ITEMS = 12; + private static final int METHODID_SEARCH_DATA_ITEMS = 13; + private static final int METHODID_LIST_SAVED_QUERIES = 14; + private static final int METHODID_DELETE_SAVED_QUERY = 15; + private static final int METHODID_GET_ANNOTATION_SPEC = 16; + private static final int METHODID_LIST_ANNOTATIONS = 17; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1566,6 +2104,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.ExportDataRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_DATASET_VERSION: + serviceImpl.createDatasetVersion( + (com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DATASET_VERSION: + serviceImpl.deleteDatasetVersion( + (com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATASET_VERSION: + serviceImpl.getDatasetVersion( + (com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATASET_VERSIONS: + serviceImpl.listDatasetVersions( + (com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse>) + responseObserver); + break; + case METHODID_RESTORE_DATASET_VERSION: + serviceImpl.restoreDatasetVersion( + (com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_DATA_ITEMS: serviceImpl.listDataItems( (com.google.cloud.aiplatform.v1beta1.ListDataItemsRequest) request, @@ -1666,6 +2232,38 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1beta1.ExportDataRequest, com.google.longrunning.Operation>(service, METHODID_EXPORT_DATA))) + .addMethod( + getCreateDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_DATASET_VERSION))) + .addMethod( + getDeleteDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_DATASET_VERSION))) + .addMethod( + getGetDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest, + com.google.cloud.aiplatform.v1beta1.DatasetVersion>( + service, METHODID_GET_DATASET_VERSION))) + .addMethod( + getListDatasetVersionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse>( + service, METHODID_LIST_DATASET_VERSIONS))) + .addMethod( + getRestoreDatasetVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_DATASET_VERSION))) .addMethod( getListDataItemsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1765,6 +2363,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteDatasetMethod()) .addMethod(getImportDataMethod()) .addMethod(getExportDataMethod()) + .addMethod(getCreateDatasetVersionMethod()) + .addMethod(getDeleteDatasetVersionMethod()) + .addMethod(getGetDatasetVersionMethod()) + .addMethod(getListDatasetVersionsMethod()) + .addMethod(getRestoreDatasetVersionMethod()) .addMethod(getListDataItemsMethod()) .addMethod(getSearchDataItemsMethod()) .addMethod(getListSavedQueriesMethod()) diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java index 827defd5398c..13d5a5306633 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceGrpc.java @@ -84,6 +84,56 @@ private ModelGardenServiceGrpc() {} return getGetPublisherModelMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse> + getListPublisherModelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPublisherModels", + requestType = com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse> + getListPublisherModelsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse> + getListPublisherModelsMethod; + if ((getListPublisherModelsMethod = ModelGardenServiceGrpc.getListPublisherModelsMethod) + == null) { + synchronized (ModelGardenServiceGrpc.class) { + if ((getListPublisherModelsMethod = ModelGardenServiceGrpc.getListPublisherModelsMethod) + == null) { + ModelGardenServiceGrpc.getListPublisherModelsMethod = + getListPublisherModelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPublisherModels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ModelGardenServiceMethodDescriptorSupplier("ListPublisherModels")) + .build(); + } + } + } + return getListPublisherModelsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ModelGardenServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -148,6 +198,21 @@ default void getPublisherModel( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetPublisherModelMethod(), responseObserver); } + + /** + * + * + *
+     * Lists publisher models in Model Garden.
+     * 
+ */ + default void listPublisherModels( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPublisherModelsMethod(), responseObserver); + } } /** @@ -201,6 +266,23 @@ public void getPublisherModel( request, responseObserver); } + + /** + * + * + *
+     * Lists publisher models in Model Garden.
+     * 
+ */ + public void listPublisherModels( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPublisherModelsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -235,6 +317,19 @@ public com.google.cloud.aiplatform.v1beta1.PublisherModel getPublisherModel( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPublisherModelMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Lists publisher models in Model Garden.
+     * 
+ */ + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse listPublisherModels( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPublisherModelsMethod(), getCallOptions(), request); + } } /** @@ -269,9 +364,25 @@ protected ModelGardenServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPublisherModelMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Lists publisher models in Model Garden.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse> + listPublisherModels( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPublisherModelsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_PUBLISHER_MODEL = 0; + private static final int METHODID_LIST_PUBLISHER_MODELS = 1; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -296,6 +407,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_PUBLISHER_MODELS: + serviceImpl.listPublisherModels( + (com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -321,6 +439,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.aiplatform.v1beta1.GetPublisherModelRequest, com.google.cloud.aiplatform.v1beta1.PublisherModel>( service, METHODID_GET_PUBLISHER_MODEL))) + .addMethod( + getListPublisherModelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse>( + service, METHODID_LIST_PUBLISHER_MODELS))) .build(); } @@ -373,6 +498,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ModelGardenServiceFileDescriptorSupplier()) .addMethod(getGetPublisherModelMethod()) + .addMethod(getListPublisherModelsMethod()) .build(); } } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionRequest.java new file mode 100644 index 000000000000..166efb19a700 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionRequest.java @@ -0,0 +1,970 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateDatasetVersionRequest} + */ +public final class CreateDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.CreateDatasetVersionRequest) + CreateDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetVersionRequest.newBuilder() to construct. + private CreateDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDatasetVersionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_VERSION_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.DatasetVersion datasetVersion_; + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetVersion field is set. + */ + @java.lang.Override + public boolean hasDatasetVersion() { + return datasetVersion_ != null; + } + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetVersion. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersion() { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder getDatasetVersionOrBuilder() { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (datasetVersion_ != null) { + output.writeMessage(2, getDatasetVersion()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (datasetVersion_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDatasetVersion()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDatasetVersion() != other.hasDatasetVersion()) return false; + if (hasDatasetVersion()) { + if (!getDatasetVersion().equals(other.getDatasetVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDatasetVersion()) { + hash = (37 * hash) + DATASET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDatasetVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.CreateDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.CreateDatasetVersionRequest) + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + datasetVersion_ = null; + if (datasetVersionBuilder_ != null) { + datasetVersionBuilder_.dispose(); + datasetVersionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetVersion_ = + datasetVersionBuilder_ == null ? datasetVersion_ : datasetVersionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest other) { + if (other == com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDatasetVersion()) { + mergeDatasetVersion(other.getDatasetVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDatasetVersionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.DatasetVersion datasetVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DatasetVersion, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder> + datasetVersionBuilder_; + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetVersion field is set. + */ + public boolean hasDatasetVersion() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetVersion. + */ + public com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersion() { + if (datasetVersionBuilder_ == null) { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } else { + return datasetVersionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasetVersion(com.google.cloud.aiplatform.v1.DatasetVersion value) { + if (datasetVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetVersion_ = value; + } else { + datasetVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasetVersion( + com.google.cloud.aiplatform.v1.DatasetVersion.Builder builderForValue) { + if (datasetVersionBuilder_ == null) { + datasetVersion_ = builderForValue.build(); + } else { + datasetVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatasetVersion(com.google.cloud.aiplatform.v1.DatasetVersion value) { + if (datasetVersionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && datasetVersion_ != null + && datasetVersion_ + != com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance()) { + getDatasetVersionBuilder().mergeFrom(value); + } else { + datasetVersion_ = value; + } + } else { + datasetVersionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatasetVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + datasetVersion_ = null; + if (datasetVersionBuilder_ != null) { + datasetVersionBuilder_.dispose(); + datasetVersionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.DatasetVersion.Builder getDatasetVersionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDatasetVersionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder getDatasetVersionOrBuilder() { + if (datasetVersionBuilder_ != null) { + return datasetVersionBuilder_.getMessageOrBuilder(); + } else { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DatasetVersion, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder> + getDatasetVersionFieldBuilder() { + if (datasetVersionBuilder_ == null) { + datasetVersionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.DatasetVersion, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder>( + getDatasetVersion(), getParentForChildren(), isClean()); + datasetVersion_ = null; + } + return datasetVersionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.CreateDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.CreateDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..0e24bdd1bfbc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateDatasetVersionRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface CreateDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.CreateDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetVersion field is set. + */ + boolean hasDatasetVersion(); + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetVersion. + */ + com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersion(); + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder getDatasetVersionOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java index 8818dc9f269c..a39df2bb2934 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequest.java @@ -190,7 +190,7 @@ public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobOrBuild * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -218,7 +218,7 @@ public java.lang.String getPipelineJobId() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -971,7 +971,7 @@ public com.google.cloud.aiplatform.v1.PipelineJobOrBuilder getPipelineJobOrBuild * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -998,7 +998,7 @@ public java.lang.String getPipelineJobId() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -1025,7 +1025,7 @@ public com.google.protobuf.ByteString getPipelineJobIdBytes() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -1051,7 +1051,7 @@ public Builder setPipelineJobId(java.lang.String value) { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -1073,7 +1073,7 @@ public Builder clearPipelineJobId() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequestOrBuilder.java index da5bfe49aaf8..64ccd817aa95 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreatePipelineJobRequestOrBuilder.java @@ -104,7 +104,7 @@ public interface CreatePipelineJobRequestOrBuilder * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -121,7 +121,7 @@ public interface CreatePipelineJobRequestOrBuilder * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java index 09aa5d73b680..bd4267d7d281 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequest.java @@ -187,7 +187,7 @@ public com.google.cloud.aiplatform.v1.TensorboardExperiment getTensorboardExperi * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -214,7 +214,7 @@ public java.lang.String getTensorboardExperimentId() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -968,7 +968,7 @@ public Builder clearTensorboardExperiment() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -994,7 +994,7 @@ public java.lang.String getTensorboardExperimentId() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1020,7 +1020,7 @@ public com.google.protobuf.ByteString getTensorboardExperimentIdBytes() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1045,7 +1045,7 @@ public Builder setTensorboardExperimentId(java.lang.String value) { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1066,7 +1066,7 @@ public Builder clearTensorboardExperimentId() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequestOrBuilder.java index 730fcaa95995..45f4caed4635 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardExperimentRequestOrBuilder.java @@ -99,7 +99,7 @@ public interface CreateTensorboardExperimentRequestOrBuilder * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -115,7 +115,7 @@ public interface CreateTensorboardExperimentRequestOrBuilder * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java index 8dfb0125cfd2..b17d2abb9109 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequest.java @@ -191,7 +191,7 @@ public com.google.cloud.aiplatform.v1.TensorboardRunOrBuilder getTensorboardRunO * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -218,7 +218,7 @@ public java.lang.String getTensorboardRunId() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -976,7 +976,7 @@ public com.google.cloud.aiplatform.v1.TensorboardRunOrBuilder getTensorboardRunO * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1002,7 +1002,7 @@ public java.lang.String getTensorboardRunId() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1028,7 +1028,7 @@ public com.google.protobuf.ByteString getTensorboardRunIdBytes() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1053,7 +1053,7 @@ public Builder setTensorboardRunId(java.lang.String value) { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1074,7 +1074,7 @@ public Builder clearTensorboardRunId() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequestOrBuilder.java index 13ccc3fd001f..5b12d290dd35 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateTensorboardRunRequestOrBuilder.java @@ -105,7 +105,7 @@ public interface CreateTensorboardRunRequestOrBuilder * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -121,7 +121,7 @@ public interface CreateTensorboardRunRequestOrBuilder * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java index 67b9da36afec..dbffd6577494 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceProto.java @@ -79,10 +79,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ExportDataOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -153,183 +177,237 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/cloud/aiplatform/v1/annotation_sp" + "ec.proto\032*google/cloud/aiplatform/v1/dat" + "a_item.proto\032(google/cloud/aiplatform/v1" - + "/dataset.proto\032*google/cloud/aiplatform/" - + "v1/operation.proto\032,google/cloud/aiplatf" - + "orm/v1/saved_query.proto\032#google/longrun" - + "ning/operations.proto\032\033google/protobuf/e" - + "mpty.proto\032 google/protobuf/field_mask.p" - + "roto\"\216\001\n\024CreateDatasetRequest\022:\n\006parent\030" - + "\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapis.com" - + "/Location\022:\n\007dataset\030\002 \001(\0132#.google.clou" - + "d.aiplatform.v1.DatasetB\004\342A\001\002\"p\n\036CreateD" - + "atasetOperationMetadata\022N\n\020generic_metad" - + "ata\030\001 \001(\01324.google.cloud.aiplatform.v1.G" - + "enericOperationMetadata\"|\n\021GetDatasetReq" - + "uest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform." - + "googleapis.com/Dataset\022-\n\tread_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMask\"\211\001\n\024Update" - + "DatasetRequest\022:\n\007dataset\030\001 \001(\0132#.google" - + ".cloud.aiplatform.v1.DatasetB\004\342A\001\002\0225\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\004\342A\001\002\"\311\001\n\023ListDatasetsRequest\022:\n\006par" - + "ent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapis" - + ".com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" - + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mas" - + "k\030\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010o" - + "rder_by\030\006 \001(\t\"f\n\024ListDatasetsResponse\0225\n" - + "\010datasets\030\001 \003(\0132#.google.cloud.aiplatfor" - + "m.v1.Dataset\022\027\n\017next_page_token\030\002 \001(\t\"P\n" - + "\024DeleteDatasetRequest\0228\n\004name\030\001 \001(\tB*\342A\001" - + "\002\372A#\n!aiplatform.googleapis.com/Dataset\"" - + "\231\001\n\021ImportDataRequest\0228\n\004name\030\001 \001(\tB*\342A\001" - + "\002\372A#\n!aiplatform.googleapis.com/Dataset\022" - + "J\n\016import_configs\030\002 \003(\0132,.google.cloud.a" - + "iplatform.v1.ImportDataConfigB\004\342A\001\002\"\024\n\022I" - + "mportDataResponse\"m\n\033ImportDataOperation" - + "Metadata\022N\n\020generic_metadata\030\001 \001(\01324.goo" - + "gle.cloud.aiplatform.v1.GenericOperation" - + "Metadata\"\230\001\n\021ExportDataRequest\0228\n\004name\030\001" - + " \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.com" - + "/Dataset\022I\n\rexport_config\030\002 \001(\0132,.google" - + ".cloud.aiplatform.v1.ExportDataConfigB\004\342" - + "A\001\002\",\n\022ExportDataResponse\022\026\n\016exported_fi" - + "les\030\001 \003(\t\"\213\001\n\033ExportDataOperationMetadat" - + "a\022N\n\020generic_metadata\030\001 \001(\01324.google.clo" - + "ud.aiplatform.v1.GenericOperationMetadat" - + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"w\n%Creat" + + "/dataset.proto\0320google/cloud/aiplatform/" + + "v1/dataset_version.proto\032*google/cloud/a" + + "iplatform/v1/operation.proto\032,google/clo" + + "ud/aiplatform/v1/saved_query.proto\032#goog" + + "le/longrunning/operations.proto\032\033google/" + + "protobuf/empty.proto\032 google/protobuf/fi" + + "eld_mask.proto\"\216\001\n\024CreateDatasetRequest\022" + + ":\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goog" + + "leapis.com/Location\022:\n\007dataset\030\002 \001(\0132#.g" + + "oogle.cloud.aiplatform.v1.DatasetB\004\342A\001\002\"" + + "p\n\036CreateDatasetOperationMetadata\022N\n\020gen" + + "eric_metadata\030\001 \001(\01324.google.cloud.aipla" + + "tform.v1.GenericOperationMetadata\"|\n\021Get" + + "DatasetRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!a" + + "iplatform.googleapis.com/Dataset\022-\n\tread" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" + + "\211\001\n\024UpdateDatasetRequest\022:\n\007dataset\030\001 \001(" + + "\0132#.google.cloud.aiplatform.v1.DatasetB\004" + + "\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\004\342A\001\002\"\311\001\n\023ListDatasetsRequ" + + "est\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations." + + "googleapis.com/Location\022\016\n\006filter\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-" + + "\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fiel" + + "dMask\022\020\n\010order_by\030\006 \001(\t\"f\n\024ListDatasetsR" + + "esponse\0225\n\010datasets\030\001 \003(\0132#.google.cloud" + + ".aiplatform.v1.Dataset\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"P\n\024DeleteDatasetRequest\0228\n\004name\030" + + "\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.co" + + "m/Dataset\"\231\001\n\021ImportDataRequest\0228\n\004name\030" + + "\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.co" + + "m/Dataset\022J\n\016import_configs\030\002 \003(\0132,.goog" + + "le.cloud.aiplatform.v1.ImportDataConfigB" + + "\004\342A\001\002\"\024\n\022ImportDataResponse\"m\n\033ImportDat" + + "aOperationMetadata\022N\n\020generic_metadata\030\001" + + " \001(\01324.google.cloud.aiplatform.v1.Generi" + + "cOperationMetadata\"\230\001\n\021ExportDataRequest" + + "\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.goog" + + "leapis.com/Dataset\022I\n\rexport_config\030\002 \001(" + + "\0132,.google.cloud.aiplatform.v1.ExportDat" + + "aConfigB\004\342A\001\002\",\n\022ExportDataResponse\022\026\n\016e" + + "xported_files\030\001 \003(\t\"\213\001\n\033ExportDataOperat" + + "ionMetadata\022N\n\020generic_metadata\030\001 \001(\01324." + + "google.cloud.aiplatform.v1.GenericOperat" + + "ionMetadata\022\034\n\024gcs_output_directory\030\002 \001(" + + "\t\"\244\001\n\033CreateDatasetVersionRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapi" + + "s.com/Dataset\022I\n\017dataset_version\030\002 \001(\0132*" + + ".google.cloud.aiplatform.v1.DatasetVersi" + + "onB\004\342A\001\002\"w\n%CreateDatasetVersionOperatio" + + "nMetadata\022N\n\020generic_metadata\030\001 \001(\01324.go" + + "ogle.cloud.aiplatform.v1.GenericOperatio" + + "nMetadata\"^\n\033DeleteDatasetVersionRequest" + + "\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform.goog" + + "leapis.com/DatasetVersion\"\212\001\n\030GetDataset" + + "VersionRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(a" + + "iplatform.googleapis.com/DatasetVersion\022" + + "-\n\tread_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"\356\001\n\032ListDatasetVersionsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googl" + + "eapis.com/Dataset\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001\022" + + "\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\004" + + " \001(\tB\004\342A\001\001\0223\n\tread_mask\030\005 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\004\342A\001\001\022\026\n\010order_by\030\006 \001(" + + "\tB\004\342A\001\001\"|\n\033ListDatasetVersionsResponse\022D" + + "\n\020dataset_versions\030\001 \003(\0132*.google.cloud." + + "aiplatform.v1.DatasetVersion\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"_\n\034RestoreDatasetVersionRe" + + "quest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform" + + ".googleapis.com/DatasetVersion\"x\n&Restor" + "eDatasetVersionOperationMetadata\022N\n\020gene" + "ric_metadata\030\001 \001(\01324.google.cloud.aiplat" - + "form.v1.GenericOperationMetadata\"x\n&Rest" - + "oreDatasetVersionOperationMetadata\022N\n\020ge" - + "neric_metadata\030\001 \001(\01324.google.cloud.aipl" - + "atform.v1.GenericOperationMetadata\"\312\001\n\024L" - + "istDataItemsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001" - + "\002\372A#\n!aiplatform.googleapis.com/Dataset\022" - + "\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" - + "ge_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.goog" - + "le.protobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"" - + "j\n\025ListDataItemsResponse\0228\n\ndata_items\030\001" - + " \003(\0132$.google.cloud.aiplatform.v1.DataIt" - + "em\022\027\n\017next_page_token\030\002 \001(\t\"\336\004\n\026SearchDa" - + "taItemsRequest\022\034\n\022order_by_data_item\030\014 \001" - + "(\tH\000\022c\n\023order_by_annotation\030\r \001(\0132D.goog" - + "le.cloud.aiplatform.v1.SearchDataItemsRe" - + "quest.OrderByAnnotationH\000\022;\n\007dataset\030\001 \001" - + "(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.com/D" - + "ataset\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A&\n$aipl" - + "atform.googleapis.com/SavedQuery\022\031\n\021data" - + "_labeling_job\030\003 \001(\t\022\030\n\020data_item_filter\030" - + "\004 \001(\t\022\036\n\022annotations_filter\030\005 \001(\tB\002\030\001\022\032\n" - + "\022annotation_filters\030\013 \003(\t\022.\n\nfield_mask\030" - + "\006 \001(\0132\032.google.protobuf.FieldMask\022\031\n\021ann" - + "otations_limit\030\007 \001(\005\022\021\n\tpage_size\030\010 \001(\005\022" - + "\024\n\010order_by\030\t \001(\tB\002\030\001\022\022\n\npage_token\030\n \001(" - + "\t\032@\n\021OrderByAnnotation\022\031\n\013saved_query\030\001 " - + "\001(\tB\004\342A\001\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005order\"u\n\027" - + "SearchDataItemsResponse\022A\n\017data_item_vie" - + "ws\030\001 \003(\0132(.google.cloud.aiplatform.v1.Da" - + "taItemView\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\014" - + "DataItemView\0227\n\tdata_item\030\001 \001(\0132$.google" - + ".cloud.aiplatform.v1.DataItem\022;\n\013annotat" - + "ions\030\002 \003(\0132&.google.cloud.aiplatform.v1." - + "Annotation\022!\n\031has_truncated_annotations\030" - + "\003 \001(\010\"\315\001\n\027ListSavedQueriesRequest\022:\n\006par" - + "ent\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapi" - + "s.com/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_si" - + "ze\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mas" - + "k\030\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010o" - + "rder_by\030\006 \001(\t\"r\n\030ListSavedQueriesRespons" - + "e\022=\n\rsaved_queries\030\001 \003(\0132&.google.cloud." - + "aiplatform.v1.SavedQuery\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"V\n\027DeleteSavedQueryRequest\022;\n\004" - + "name\030\001 \001(\tB-\342A\001\002\372A&\n$aiplatform.googleap" - + "is.com/SavedQuery\"\212\001\n\030GetAnnotationSpecR" - + "equest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatfor" - + "m.googleapis.com/AnnotationSpec\022-\n\tread_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\315" - + "\001\n\026ListAnnotationsRequest\022;\n\006parent\030\001 \001(" - + "\tB+\342A\001\002\372A$\n\"aiplatform.googleapis.com/Da" - + "taItem\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" - + "\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\013" - + "2\032.google.protobuf.FieldMask\022\020\n\010order_by" - + "\030\006 \001(\t\"o\n\027ListAnnotationsResponse\022;\n\013ann" - + "otations\030\001 \003(\0132&.google.cloud.aiplatform" - + ".v1.Annotation\022\027\n\017next_page_token\030\002 \001(\t2" - + "\324\025\n\016DatasetService\022\334\001\n\rCreateDataset\0220.g" - + "oogle.cloud.aiplatform.v1.CreateDatasetR" - + "equest\032\035.google.longrunning.Operation\"z\312" - + "A)\n\007Dataset\022\036CreateDatasetOperationMetad" - + "ata\332A\016parent,dataset\202\323\344\223\0027\",/v1/{parent=" - + "projects/*/locations/*}/datasets:\007datase" - + "t\022\235\001\n\nGetDataset\022-.google.cloud.aiplatfo" - + "rm.v1.GetDatasetRequest\032#.google.cloud.a" - + "iplatform.v1.Dataset\";\332A\004name\202\323\344\223\002.\022,/v1" - + "/{name=projects/*/locations/*/datasets/*" - + "}\022\303\001\n\rUpdateDataset\0220.google.cloud.aipla" - + "tform.v1.UpdateDatasetRequest\032#.google.c" - + "loud.aiplatform.v1.Dataset\"[\332A\023dataset,u" - + "pdate_mask\202\323\344\223\002?24/v1/{dataset.name=proj" - + "ects/*/locations/*/datasets/*}:\007dataset\022" - + "\260\001\n\014ListDatasets\022/.google.cloud.aiplatfo" - + "rm.v1.ListDatasetsRequest\0320.google.cloud" - + ".aiplatform.v1.ListDatasetsResponse\"=\332A\006" - + "parent\202\323\344\223\002.\022,/v1/{parent=projects/*/loc" - + "ations/*}/datasets\022\320\001\n\rDeleteDataset\0220.g" - + "oogle.cloud.aiplatform.v1.DeleteDatasetR" - + "equest\032\035.google.longrunning.Operation\"n\312" - + "A0\n\025google.protobuf.Empty\022\027DeleteOperati" - + "onMetadata\332A\004name\202\323\344\223\002.*,/v1/{name=proje" - + "cts/*/locations/*/datasets/*}\022\345\001\n\nImport" - + "Data\022-.google.cloud.aiplatform.v1.Import" - + "DataRequest\032\035.google.longrunning.Operati" - + "on\"\210\001\312A1\n\022ImportDataResponse\022\033ImportData" - + "OperationMetadata\332A\023name,import_configs\202" - + "\323\344\223\0028\"3/v1/{name=projects/*/locations/*/" - + "datasets/*}:import:\001*\022\344\001\n\nExportData\022-.g" - + "oogle.cloud.aiplatform.v1.ExportDataRequ" - + "est\032\035.google.longrunning.Operation\"\207\001\312A1" - + "\n\022ExportDataResponse\022\033ExportDataOperatio" - + "nMetadata\332A\022name,export_config\202\323\344\223\0028\"3/v" - + "1/{name=projects/*/locations/*/datasets/" - + "*}:export:\001*\022\277\001\n\rListDataItems\0220.google." - + "cloud.aiplatform.v1.ListDataItemsRequest" - + "\0321.google.cloud.aiplatform.v1.ListDataIt" - + "emsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{paren" - + "t=projects/*/locations/*/datasets/*}/dat" - + "aItems\022\303\001\n\017SearchDataItems\0222.google.clou" - + "d.aiplatform.v1.SearchDataItemsRequest\0323" - + ".google.cloud.aiplatform.v1.SearchDataIt" - + "emsResponse\"G\202\323\344\223\002A\022?/v1/{dataset=projec" - + "ts/*/locations/*/datasets/*}:searchDataI" - + "tems\022\313\001\n\020ListSavedQueries\0223.google.cloud" - + ".aiplatform.v1.ListSavedQueriesRequest\0324" - + ".google.cloud.aiplatform.v1.ListSavedQue" - + "riesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{pare" - + "nt=projects/*/locations/*/datasets/*}/sa" - + "vedQueries\022\345\001\n\020DeleteSavedQuery\0223.google" - + ".cloud.aiplatform.v1.DeleteSavedQueryReq" - + "uest\032\035.google.longrunning.Operation\"}\312A0" + + "form.v1.GenericOperationMetadata\"\312\001\n\024Lis" + + "tDataItemsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372" + + "A#\n!aiplatform.googleapis.com/Dataset\022\016\n" + + "\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage" + + "_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google" + + ".protobuf.FieldMask\022\020\n\010order_by\030\006 \001(\t\"j\n" + + "\025ListDataItemsResponse\0228\n\ndata_items\030\001 \003" + + "(\0132$.google.cloud.aiplatform.v1.DataItem" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\336\004\n\026SearchData" + + "ItemsRequest\022\034\n\022order_by_data_item\030\014 \001(\t" + + "H\000\022c\n\023order_by_annotation\030\r \001(\0132D.google" + + ".cloud.aiplatform.v1.SearchDataItemsRequ" + + "est.OrderByAnnotationH\000\022;\n\007dataset\030\001 \001(\t" + + "B*\342A\001\002\372A#\n!aiplatform.googleapis.com/Dat" + + "aset\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A&\n$aiplat" + + "form.googleapis.com/SavedQuery\022\031\n\021data_l" + + "abeling_job\030\003 \001(\t\022\030\n\020data_item_filter\030\004 " + + "\001(\t\022\036\n\022annotations_filter\030\005 \001(\tB\002\030\001\022\032\n\022a" + + "nnotation_filters\030\013 \003(\t\022.\n\nfield_mask\030\006 " + + "\001(\0132\032.google.protobuf.FieldMask\022\031\n\021annot" + + "ations_limit\030\007 \001(\005\022\021\n\tpage_size\030\010 \001(\005\022\024\n" + + "\010order_by\030\t \001(\tB\002\030\001\022\022\n\npage_token\030\n \001(\t\032" + + "@\n\021OrderByAnnotation\022\031\n\013saved_query\030\001 \001(" + + "\tB\004\342A\001\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005order\"u\n\027Se" + + "archDataItemsResponse\022A\n\017data_item_views" + + "\030\001 \003(\0132(.google.cloud.aiplatform.v1.Data" + + "ItemView\022\027\n\017next_page_token\030\002 \001(\t\"\247\001\n\014Da" + + "taItemView\0227\n\tdata_item\030\001 \001(\0132$.google.c" + + "loud.aiplatform.v1.DataItem\022;\n\013annotatio" + + "ns\030\002 \003(\0132&.google.cloud.aiplatform.v1.An" + + "notation\022!\n\031has_truncated_annotations\030\003 " + + "\001(\010\"\315\001\n\027ListSavedQueriesRequest\022:\n\006paren" + + "t\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis." + + "com/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size" + + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030" + + "\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010ord" + + "er_by\030\006 \001(\t\"r\n\030ListSavedQueriesResponse\022" + + "=\n\rsaved_queries\030\001 \003(\0132&.google.cloud.ai" + + "platform.v1.SavedQuery\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"V\n\027DeleteSavedQueryRequest\022;\n\004na" + + "me\030\001 \001(\tB-\342A\001\002\372A&\n$aiplatform.googleapis" + + ".com/SavedQuery\"\212\001\n\030GetAnnotationSpecReq" + + "uest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatform." + + "googleapis.com/AnnotationSpec\022-\n\tread_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"\315\001\n" + + "\026ListAnnotationsRequest\022;\n\006parent\030\001 \001(\tB" + + "+\342A\001\002\372A$\n\"aiplatform.googleapis.com/Data" + + "Item\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" + + "\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032" + + ".google.protobuf.FieldMask\022\020\n\010order_by\030\006" + + " \001(\t\"o\n\027ListAnnotationsResponse\022;\n\013annot" + + "ations\030\001 \003(\0132&.google.cloud.aiplatform.v" + + "1.Annotation\022\027\n\017next_page_token\030\002 \001(\t2\215\037" + + "\n\016DatasetService\022\334\001\n\rCreateDataset\0220.goo" + + "gle.cloud.aiplatform.v1.CreateDatasetReq" + + "uest\032\035.google.longrunning.Operation\"z\312A)" + + "\n\007Dataset\022\036CreateDatasetOperationMetadat" + + "a\332A\016parent,dataset\202\323\344\223\0027\",/v1/{parent=pr" + + "ojects/*/locations/*}/datasets:\007dataset\022" + + "\235\001\n\nGetDataset\022-.google.cloud.aiplatform" + + ".v1.GetDatasetRequest\032#.google.cloud.aip" + + "latform.v1.Dataset\";\332A\004name\202\323\344\223\002.\022,/v1/{" + + "name=projects/*/locations/*/datasets/*}\022" + + "\303\001\n\rUpdateDataset\0220.google.cloud.aiplatf" + + "orm.v1.UpdateDatasetRequest\032#.google.clo" + + "ud.aiplatform.v1.Dataset\"[\332A\023dataset,upd" + + "ate_mask\202\323\344\223\002?24/v1/{dataset.name=projec" + + "ts/*/locations/*/datasets/*}:\007dataset\022\260\001" + + "\n\014ListDatasets\022/.google.cloud.aiplatform" + + ".v1.ListDatasetsRequest\0320.google.cloud.a" + + "iplatform.v1.ListDatasetsResponse\"=\332A\006pa" + + "rent\202\323\344\223\002.\022,/v1/{parent=projects/*/locat" + + "ions/*}/datasets\022\320\001\n\rDeleteDataset\0220.goo" + + "gle.cloud.aiplatform.v1.DeleteDatasetReq" + + "uest\032\035.google.longrunning.Operation\"n\312A0" + "\n\025google.protobuf.Empty\022\027DeleteOperation" - + "Metadata\332A\004name\202\323\344\223\002=*;/v1/{name=project" - + "s/*/locations/*/datasets/*/savedQueries/" - + "*}\022\304\001\n\021GetAnnotationSpec\0224.google.cloud." - + "aiplatform.v1.GetAnnotationSpecRequest\032*" - + ".google.cloud.aiplatform.v1.AnnotationSp" - + "ec\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/*/" - + "locations/*/datasets/*/annotationSpecs/*" - + "}\022\323\001\n\017ListAnnotations\0222.google.cloud.aip" - + "latform.v1.ListAnnotationsRequest\0323.goog" - + "le.cloud.aiplatform.v1.ListAnnotationsRe" - + "sponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=pro" - + "jects/*/locations/*/datasets/*/dataItems" - + "/*}/annotations\032M\312A\031aiplatform.googleapi" - + "s.com\322A.https://www.googleapis.com/auth/" - + "cloud-platformB\321\001\n\036com.google.cloud.aipl" - + "atform.v1B\023DatasetServiceProtoP\001Z>cloud." - + "google.com/go/aiplatform/apiv1/aiplatfor" - + "mpb;aiplatformpb\252\002\032Google.Cloud.AIPlatfo" - + "rm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Goo" - + "gle::Cloud::AIPlatform::V1b\006proto3" + + "Metadata\332A\004name\202\323\344\223\002.*,/v1/{name=project" + + "s/*/locations/*/datasets/*}\022\345\001\n\nImportDa" + + "ta\022-.google.cloud.aiplatform.v1.ImportDa" + + "taRequest\032\035.google.longrunning.Operation" + + "\"\210\001\312A1\n\022ImportDataResponse\022\033ImportDataOp" + + "erationMetadata\332A\023name,import_configs\202\323\344" + + "\223\0028\"3/v1/{name=projects/*/locations/*/da" + + "tasets/*}:import:\001*\022\344\001\n\nExportData\022-.goo" + + "gle.cloud.aiplatform.v1.ExportDataReques" + + "t\032\035.google.longrunning.Operation\"\207\001\312A1\n\022" + + "ExportDataResponse\022\033ExportDataOperationM" + + "etadata\332A\022name,export_config\202\323\344\223\0028\"3/v1/" + + "{name=projects/*/locations/*/datasets/*}" + + ":export:\001*\022\233\002\n\024CreateDatasetVersion\0227.go" + + "ogle.cloud.aiplatform.v1.CreateDatasetVe" + + "rsionRequest\032\035.google.longrunning.Operat" + + "ion\"\252\001\312A7\n\016DatasetVersion\022%CreateDataset" + + "VersionOperationMetadata\332A\026parent,datase" + + "t_version\202\323\344\223\002Q\">/v1/{parent=projects/*/" + + "locations/*/datasets/*}/datasetVersions:" + + "\017dataset_version\022\361\001\n\024DeleteDatasetVersio" + + "n\0227.google.cloud.aiplatform.v1.DeleteDat" + + "asetVersionRequest\032\035.google.longrunning." + + "Operation\"\200\001\312A0\n\025google.protobuf.Empty\022\027" + + "DeleteOperationMetadata\332A\004name\202\323\344\223\002@*>/v" + + "1/{name=projects/*/locations/*/datasets/" + + "*/datasetVersions/*}\022\304\001\n\021GetDatasetVersi" + + "on\0224.google.cloud.aiplatform.v1.GetDatas" + + "etVersionRequest\032*.google.cloud.aiplatfo" + + "rm.v1.DatasetVersion\"M\332A\004name\202\323\344\223\002@\022>/v1" + + "/{name=projects/*/locations/*/datasets/*" + + "/datasetVersions/*}\022\327\001\n\023ListDatasetVersi" + + "ons\0226.google.cloud.aiplatform.v1.ListDat" + + "asetVersionsRequest\0327.google.cloud.aipla" + + "tform.v1.ListDatasetVersionsResponse\"O\332A" + + "\006parent\202\323\344\223\002@\022>/v1/{parent=projects/*/lo" + + "cations/*/datasets/*}/datasetVersions\022\203\002" + + "\n\025RestoreDatasetVersion\0228.google.cloud.a" + + "iplatform.v1.RestoreDatasetVersionReques" + + "t\032\035.google.longrunning.Operation\"\220\001\312A8\n\016" + + "DatasetVersion\022&RestoreDatasetVersionOpe" + + "rationMetadata\332A\004name\202\323\344\223\002H\022F/v1/{name=p" + + "rojects/*/locations/*/datasets/*/dataset" + + "Versions/*}:restore\022\277\001\n\rListDataItems\0220." + + "google.cloud.aiplatform.v1.ListDataItems" + + "Request\0321.google.cloud.aiplatform.v1.Lis" + + "tDataItemsResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1" + + "/{parent=projects/*/locations/*/datasets" + + "/*}/dataItems\022\303\001\n\017SearchDataItems\0222.goog" + + "le.cloud.aiplatform.v1.SearchDataItemsRe" + + "quest\0323.google.cloud.aiplatform.v1.Searc" + + "hDataItemsResponse\"G\202\323\344\223\002A\022?/v1/{dataset" + + "=projects/*/locations/*/datasets/*}:sear" + + "chDataItems\022\313\001\n\020ListSavedQueries\0223.googl" + + "e.cloud.aiplatform.v1.ListSavedQueriesRe" + + "quest\0324.google.cloud.aiplatform.v1.ListS" + + "avedQueriesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" + + "1/{parent=projects/*/locations/*/dataset" + + "s/*}/savedQueries\022\345\001\n\020DeleteSavedQuery\0223" + + ".google.cloud.aiplatform.v1.DeleteSavedQ" + + "ueryRequest\032\035.google.longrunning.Operati" + + "on\"}\312A0\n\025google.protobuf.Empty\022\027DeleteOp" + + "erationMetadata\332A\004name\202\323\344\223\002=*;/v1/{name=" + + "projects/*/locations/*/datasets/*/savedQ" + + "ueries/*}\022\304\001\n\021GetAnnotationSpec\0224.google" + + ".cloud.aiplatform.v1.GetAnnotationSpecRe" + + "quest\032*.google.cloud.aiplatform.v1.Annot" + + "ationSpec\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=proj" + + "ects/*/locations/*/datasets/*/annotation" + + "Specs/*}\022\323\001\n\017ListAnnotations\0222.google.cl" + + "oud.aiplatform.v1.ListAnnotationsRequest" + + "\0323.google.cloud.aiplatform.v1.ListAnnota" + + "tionsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{par" + + "ent=projects/*/locations/*/datasets/*/da" + + "taItems/*}/annotations\032M\312A\031aiplatform.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\321\001\n\036com.google.clo" + + "ud.aiplatform.v1B\023DatasetServiceProtoP\001Z" + + ">cloud.google.com/go/aiplatform/apiv1/ai" + + "platformpb;aiplatformpb\252\002\032Google.Cloud.A" + + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" + + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -343,6 +421,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.AnnotationSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1.DataItemProto.getDescriptor(), com.google.cloud.aiplatform.v1.DatasetProto.getDescriptor(), + com.google.cloud.aiplatform.v1.DatasetVersionProto.getDescriptor(), com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(), com.google.cloud.aiplatform.v1.SavedQueryProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), @@ -451,16 +530,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GenericMetadata", "GcsOutputDirectory", }); - internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor = + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Parent", "DatasetVersion", + }); + internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CreateDatasetVersionOperationMetadata_descriptor, new java.lang.String[] { "GenericMetadata", }); + internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_descriptor, + new java.lang.String[] { + "DatasetVersions", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionOperationMetadata_descriptor, @@ -468,7 +595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListDataItemsRequest_descriptor, @@ -476,7 +603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListDataItemsResponse_descriptor, @@ -484,7 +611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItems", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SearchDataItemsRequest_descriptor, @@ -515,7 +642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQuery", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_SearchDataItemsResponse_descriptor, @@ -523,7 +650,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItemViews", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1_DataItemView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DataItemView_descriptor, @@ -531,7 +658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItem", "Annotations", "HasTruncatedAnnotations", }); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListSavedQueriesRequest_descriptor, @@ -539,7 +666,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListSavedQueriesResponse_descriptor, @@ -547,7 +674,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQueries", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1_DeleteSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_aiplatform_v1_DeleteSavedQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DeleteSavedQueryRequest_descriptor, @@ -555,7 +682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GetAnnotationSpecRequest_descriptor, @@ -563,7 +690,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsRequest_descriptor, @@ -571,7 +698,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ListAnnotationsResponse_descriptor, @@ -597,6 +724,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1.AnnotationSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1.DataItemProto.getDescriptor(); com.google.cloud.aiplatform.v1.DatasetProto.getDescriptor(); + com.google.cloud.aiplatform.v1.DatasetVersionProto.getDescriptor(); com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(); com.google.cloud.aiplatform.v1.SavedQueryProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java new file mode 100644 index 000000000000..2d6b238c904e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersion.java @@ -0,0 +1,1556 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_version.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Describes the dataset version.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DatasetVersion} + */ +public final class DatasetVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DatasetVersion) + DatasetVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetVersion.newBuilder() to construct. + private DatasetVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetVersion() { + name_ = ""; + etag_ = ""; + bigQueryDatasetName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1_DatasetVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DatasetVersion.class, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIG_QUERY_DATASET_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object bigQueryDatasetName_ = ""; + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigQueryDatasetName. + */ + @java.lang.Override + public java.lang.String getBigQueryDatasetName() { + java.lang.Object ref = bigQueryDatasetName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigQueryDatasetName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigQueryDatasetName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBigQueryDatasetNameBytes() { + java.lang.Object ref = bigQueryDatasetName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigQueryDatasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigQueryDatasetName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bigQueryDatasetName_); + } + if (updateTime_ != null) { + output.writeMessage(6, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigQueryDatasetName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bigQueryDatasetName_); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.DatasetVersion)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DatasetVersion other = + (com.google.cloud.aiplatform.v1.DatasetVersion) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getBigQueryDatasetName().equals(other.getBigQueryDatasetName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + BIG_QUERY_DATASET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBigQueryDatasetName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.DatasetVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes the dataset version.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DatasetVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DatasetVersion) + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1_DatasetVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DatasetVersion.class, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DatasetVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + bigQueryDatasetName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersion getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersion build() { + com.google.cloud.aiplatform.v1.DatasetVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersion buildPartial() { + com.google.cloud.aiplatform.v1.DatasetVersion result = + new com.google.cloud.aiplatform.v1.DatasetVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DatasetVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bigQueryDatasetName_ = bigQueryDatasetName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.DatasetVersion) { + return mergeFrom((com.google.cloud.aiplatform.v1.DatasetVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DatasetVersion other) { + if (other == com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getBigQueryDatasetName().isEmpty()) { + bigQueryDatasetName_ = other.bigQueryDatasetName_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + bigQueryDatasetName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object bigQueryDatasetName_ = ""; + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigQueryDatasetName. + */ + public java.lang.String getBigQueryDatasetName() { + java.lang.Object ref = bigQueryDatasetName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigQueryDatasetName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigQueryDatasetName. + */ + public com.google.protobuf.ByteString getBigQueryDatasetNameBytes() { + java.lang.Object ref = bigQueryDatasetName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigQueryDatasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bigQueryDatasetName to set. + * @return This builder for chaining. + */ + public Builder setBigQueryDatasetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bigQueryDatasetName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBigQueryDatasetName() { + bigQueryDatasetName_ = getDefaultInstance().getBigQueryDatasetName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for bigQueryDatasetName to set. + * @return This builder for chaining. + */ + public Builder setBigQueryDatasetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigQueryDatasetName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.DatasetVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DatasetVersion) + private static final com.google.cloud.aiplatform.v1.DatasetVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DatasetVersion(); + } + + public static com.google.cloud.aiplatform.v1.DatasetVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionName.java new file mode 100644 index 000000000000..236ce48ddbfc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DatasetVersionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATASET_DATASET_VERSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataset; + private final String datasetVersion; + + @Deprecated + protected DatasetVersionName() { + project = null; + location = null; + dataset = null; + datasetVersion = null; + } + + private DatasetVersionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataset = Preconditions.checkNotNull(builder.getDataset()); + datasetVersion = Preconditions.checkNotNull(builder.getDatasetVersion()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getDatasetVersion() { + return datasetVersion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DatasetVersionName of( + String project, String location, String dataset, String datasetVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setDatasetVersion(datasetVersion) + .build(); + } + + public static String format( + String project, String location, String dataset, String datasetVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setDatasetVersion(datasetVersion) + .build() + .toString(); + } + + public static DatasetVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATASET_DATASET_VERSION.validatedMatch( + formattedString, "DatasetVersionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("dataset"), + matchMap.get("dataset_version")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DatasetVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATASET_DATASET_VERSION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataset != null) { + fieldMapBuilder.put("dataset", dataset); + } + if (datasetVersion != null) { + fieldMapBuilder.put("dataset_version", datasetVersion); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATASET_DATASET_VERSION.instantiate( + "project", + project, + "location", + location, + "dataset", + dataset, + "dataset_version", + datasetVersion); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DatasetVersionName that = ((DatasetVersionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataset, that.dataset) + && Objects.equals(this.datasetVersion, that.datasetVersion); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataset); + h *= 1000003; + h ^= Objects.hashCode(datasetVersion); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}. + */ + public static class Builder { + private String project; + private String location; + private String dataset; + private String datasetVersion; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getDatasetVersion() { + return datasetVersion; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataset(String dataset) { + this.dataset = dataset; + return this; + } + + public Builder setDatasetVersion(String datasetVersion) { + this.datasetVersion = datasetVersion; + return this; + } + + private Builder(DatasetVersionName datasetVersionName) { + this.project = datasetVersionName.project; + this.location = datasetVersionName.location; + this.dataset = datasetVersionName.dataset; + this.datasetVersion = datasetVersionName.datasetVersion; + } + + public DatasetVersionName build() { + return new DatasetVersionName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java new file mode 100644 index 000000000000..8d36e5666fb8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_version.proto + +package com.google.cloud.aiplatform.v1; + +public interface DatasetVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DatasetVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigQueryDatasetName. + */ + java.lang.String getBigQueryDatasetName(); + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigQueryDatasetName. + */ + com.google.protobuf.ByteString getBigQueryDatasetNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java new file mode 100644 index 000000000000..f6c0eaa691f4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DatasetVersionProto.java @@ -0,0 +1,91 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_version.proto + +package com.google.cloud.aiplatform.v1; + +public final class DatasetVersionProto { + private DatasetVersionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_DatasetVersion_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/aiplatform/v1/dataset_ver" + + "sion.proto\022\032google.cloud.aiplatform.v1\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\037google/protobuf/time" + + "stamp.proto\"\325\002\n\016DatasetVersion\022\022\n\004name\030\001" + + " \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\022\014\n\004etag\030\003 \001(\t\022$\n\026big_query_dataset_name" + + "\030\004 \001(\tB\004\342A\001\003:\214\001\352A\210\001\n(aiplatform.googleap" + + "is.com/DatasetVersion\022\\projects/{project" + + "}/locations/{location}/datasets/{dataset" + + "}/datasetVersions/{dataset_version}B\321\001\n\036" + + "com.google.cloud.aiplatform.v1B\023DatasetV" + + "ersionProtoP\001Z>cloud.google.com/go/aipla" + + "tform/apiv1/aiplatformpb;aiplatformpb\252\002\032" + + "Google.Cloud.AIPlatform.V1\312\002\032Google\\Clou" + + "d\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatf" + + "orm::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1_DatasetVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_DatasetVersion_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "Etag", "BigQueryDatasetName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetVersionRequest.java new file mode 100644 index 000000000000..327cd070f226 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetVersionRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.DeleteDatasetVersion][google.cloud.aiplatform.v1.DatasetService.DeleteDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteDatasetVersionRequest} + */ +public final class DeleteDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) + DeleteDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDatasetVersionRequest.newBuilder() to construct. + private DeleteDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDatasetVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.DeleteDatasetVersion][google.cloud.aiplatform.v1.DatasetService.DeleteDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.DeleteDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_DeleteDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest other) { + if (other == com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..23884b28e61d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteDatasetVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface DeleteDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.DeleteDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java index 9a428db308ce..7810b1d52306 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndex.java @@ -724,7 +724,10 @@ public com.google.cloud.aiplatform.v1.DeployedIndexAuthConfig getDeployedIndexAu * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -747,7 +750,10 @@ public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -770,7 +776,10 @@ public int getReservedIpRangesCount() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -794,7 +803,10 @@ public java.lang.String getReservedIpRanges(int index) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3575,7 +3587,10 @@ private void ensureReservedIpRangesIsMutable() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3600,7 +3615,10 @@ public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3624,7 +3642,10 @@ public int getReservedIpRangesCount() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3649,7 +3670,10 @@ public java.lang.String getReservedIpRanges(int index) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3674,7 +3698,10 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3707,7 +3734,10 @@ public Builder setReservedIpRanges(int index, java.lang.String value) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3739,7 +3769,10 @@ public Builder addReservedIpRanges(java.lang.String value) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3768,7 +3801,10 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3796,7 +3832,10 @@ public Builder clearReservedIpRanges() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexOrBuilder.java index 97c957642b95..2de342a86daa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedIndexOrBuilder.java @@ -504,7 +504,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -525,7 +528,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -546,7 +552,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -568,7 +577,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java index 8f4c361a06b2..2a5cf2d953a7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModel.java @@ -236,7 +236,7 @@ public com.google.cloud.aiplatform.v1.AutomaticResources getAutomaticResources() * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -262,7 +262,7 @@ public java.lang.String getId() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1919,7 +1919,7 @@ public Builder clearAutomaticResources() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1944,7 +1944,7 @@ public java.lang.String getId() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1969,7 +1969,7 @@ public com.google.protobuf.ByteString getIdBytes() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -1993,7 +1993,7 @@ public Builder setId(java.lang.String value) { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2013,7 +2013,7 @@ public Builder clearId() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java index 3a1d2328b93f..969ea4ce8b7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeployedModelOrBuilder.java @@ -106,7 +106,7 @@ public interface DeployedModelOrBuilder * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -121,7 +121,7 @@ public interface DeployedModelOrBuilder * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java new file mode 100644 index 000000000000..969c938a20c2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequest.java @@ -0,0 +1,911 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest} + */ +public final class GetDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.GetDatasetVersionRequest) + GetDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDatasetVersionRequest.newBuilder() to construct. + private GetDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDatasetVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (readMask_ != null) { + output.writeMessage(2, getReadMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.GetDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1.GetDatasetVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.GetDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.GetDatasetVersionRequest) + com.google.cloud.aiplatform.v1.GetDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_GetDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetDatasetVersionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1.GetDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1.GetDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.GetDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.GetDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.GetDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.GetDatasetVersionRequest other) { + if (other == com.google.cloud.aiplatform.v1.GetDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + } else { + readMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); + } else { + readMask_ = value; + } + } else { + readMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder clearReadMask() { + bitField0_ = (bitField0_ & ~0x00000002); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.GetDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.GetDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1.GetDatasetVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.GetDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1.GetDatasetVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.GetDatasetVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..aeee0ffea656 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GetDatasetVersionRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface GetDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.GetDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java index ff376c5e0a79..28c63b3593cd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Index.java @@ -105,7 +105,7 @@ public enum IndexUpdateMethod implements com.google.protobuf.ProtocolMessageEnum * *
      * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
-     * datapoints to update.
+     * Datapoints to update.
      * 
* * BATCH_UPDATE = 1; @@ -141,7 +141,7 @@ public enum IndexUpdateMethod implements com.google.protobuf.ProtocolMessageEnum * *
      * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
-     * datapoints to update.
+     * Datapoints to update.
      * 
* * BATCH_UPDATE = 1; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java index 52b0fc56abb0..f01ebbe09a85 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapoint.java @@ -73,7 +73,7 @@ public interface RestrictionOrBuilder * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -85,7 +85,7 @@ public interface RestrictionOrBuilder * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -98,7 +98,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -110,7 +110,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -122,7 +122,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -135,7 +135,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -149,7 +149,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -161,7 +161,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -173,7 +173,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -186,7 +186,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -251,7 +251,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -274,7 +274,7 @@ public java.lang.String getNamespace() { * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -303,7 +303,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -317,7 +317,7 @@ public com.google.protobuf.ProtocolStringList getAllowListList() { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -331,7 +331,7 @@ public int getAllowListCount() { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -346,7 +346,7 @@ public java.lang.String getAllowList(int index) { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -367,7 +367,7 @@ public com.google.protobuf.ByteString getAllowListBytes(int index) { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -381,7 +381,7 @@ public com.google.protobuf.ProtocolStringList getDenyListList() { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -395,7 +395,7 @@ public int getDenyListCount() { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -410,7 +410,7 @@ public java.lang.String getDenyList(int index) { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -851,7 +851,7 @@ public Builder mergeFrom( * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -873,7 +873,7 @@ public java.lang.String getNamespace() { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -895,7 +895,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -916,7 +916,7 @@ public Builder setNamespace(java.lang.String value) { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -933,7 +933,7 @@ public Builder clearNamespace() { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -965,7 +965,7 @@ private void ensureAllowListIsMutable() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -980,7 +980,7 @@ public com.google.protobuf.ProtocolStringList getAllowListList() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -994,7 +994,7 @@ public int getAllowListCount() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1009,7 +1009,7 @@ public java.lang.String getAllowList(int index) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1024,7 +1024,7 @@ public com.google.protobuf.ByteString getAllowListBytes(int index) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1047,7 +1047,7 @@ public Builder setAllowList(int index, java.lang.String value) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1069,7 +1069,7 @@ public Builder addAllowList(java.lang.String value) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1088,7 +1088,7 @@ public Builder addAllAllowList(java.lang.Iterable values) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1106,7 +1106,7 @@ public Builder clearAllowList() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1139,7 +1139,7 @@ private void ensureDenyListIsMutable() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1154,7 +1154,7 @@ public com.google.protobuf.ProtocolStringList getDenyListList() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1168,7 +1168,7 @@ public int getDenyListCount() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1183,7 +1183,7 @@ public java.lang.String getDenyList(int index) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1198,7 +1198,7 @@ public com.google.protobuf.ByteString getDenyListBytes(int index) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1221,7 +1221,7 @@ public Builder setDenyList(int index, java.lang.String value) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1243,7 +1243,7 @@ public Builder addDenyList(java.lang.String value) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1262,7 +1262,7 @@ public Builder addAllDenyList(java.lang.Iterable values) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1280,7 +1280,7 @@ public Builder clearDenyList() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -2161,7 +2161,7 @@ public float getFeatureVector(int index) { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2180,7 +2180,7 @@ public float getFeatureVector(int index) { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2200,7 +2200,7 @@ public float getFeatureVector(int index) { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2218,7 +2218,7 @@ public int getRestrictsCount() { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2236,7 +2236,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction getRestricts(in *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -3077,7 +3077,7 @@ private void ensureRestrictsIsMutable() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3099,7 +3099,7 @@ private void ensureRestrictsIsMutable() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3120,7 +3120,7 @@ public int getRestrictsCount() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3141,7 +3141,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction getRestricts(in *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3169,7 +3169,7 @@ public Builder setRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3195,7 +3195,7 @@ public Builder setRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3222,7 +3222,7 @@ public Builder addRestricts(com.google.cloud.aiplatform.v1.IndexDatapoint.Restri *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3250,7 +3250,7 @@ public Builder addRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3275,7 +3275,7 @@ public Builder addRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3301,7 +3301,7 @@ public Builder addRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3327,7 +3327,7 @@ public Builder addAllRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3351,7 +3351,7 @@ public Builder clearRestricts() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3375,7 +3375,7 @@ public Builder removeRestricts(int index) { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3393,7 +3393,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder getRest *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3415,7 +3415,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder getRes *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3438,7 +3438,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.RestrictionOrBuilder getRes *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3457,7 +3457,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder addRest *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3478,7 +3478,7 @@ public com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder addRest *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapointOrBuilder.java index f42c53be14eb..aeb8eb18e2a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexDatapointOrBuilder.java @@ -95,7 +95,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -110,7 +110,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -125,7 +125,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -140,7 +140,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -156,7 +156,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsRequest.java new file mode 100644 index 000000000000..7f6532c9c1b1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsRequest.java @@ -0,0 +1,1569 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListDatasetVersionsRequest} + */ +public final class ListDatasetVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListDatasetVersionsRequest) + ListDatasetVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetVersionsRequest.newBuilder() to construct. + private ListDatasetVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatasetVersionsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatasetVersionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.class, + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest other = + (com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListDatasetVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListDatasetVersionsRequest) + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.class, + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest build() { + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest buildPartial() { + com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest result = + new com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest other) { + if (other == com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + } else { + readMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); + } else { + readMask_ = value; + } + } else { + readMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReadMask() { + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ListDatasetVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListDatasetVersionsRequest) + private static final com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest(); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..6210b1497aa1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsRequestOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ListDatasetVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListDatasetVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsResponse.java new file mode 100644 index 000000000000..68e27af312ec --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsResponse.java @@ -0,0 +1,1132 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Response message for
+ * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListDatasetVersionsResponse} + */ +public final class ListDatasetVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ListDatasetVersionsResponse) + ListDatasetVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetVersionsResponse.newBuilder() to construct. + private ListDatasetVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatasetVersionsResponse() { + datasetVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatasetVersionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.class, + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.Builder.class); + } + + public static final int DATASET_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List datasetVersions_; + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public java.util.List getDatasetVersionsList() { + return datasetVersions_; + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public java.util.List + getDatasetVersionsOrBuilderList() { + return datasetVersions_; + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public int getDatasetVersionsCount() { + return datasetVersions_.size(); + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersions(int index) { + return datasetVersions_.get(index); + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder getDatasetVersionsOrBuilder( + int index) { + return datasetVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < datasetVersions_.size(); i++) { + output.writeMessage(1, datasetVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < datasetVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, datasetVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse other = + (com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse) obj; + + if (!getDatasetVersionsList().equals(other.getDatasetVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDatasetVersionsCount() > 0) { + hash = (37 * hash) + DATASET_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDatasetVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for
+   * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ListDatasetVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ListDatasetVersionsResponse) + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.class, + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (datasetVersionsBuilder_ == null) { + datasetVersions_ = java.util.Collections.emptyList(); + } else { + datasetVersions_ = null; + datasetVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_ListDatasetVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse build() { + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse buildPartial() { + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse result = + new com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse result) { + if (datasetVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + datasetVersions_ = java.util.Collections.unmodifiableList(datasetVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.datasetVersions_ = datasetVersions_; + } else { + result.datasetVersions_ = datasetVersionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse other) { + if (other == com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse.getDefaultInstance()) + return this; + if (datasetVersionsBuilder_ == null) { + if (!other.datasetVersions_.isEmpty()) { + if (datasetVersions_.isEmpty()) { + datasetVersions_ = other.datasetVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatasetVersionsIsMutable(); + datasetVersions_.addAll(other.datasetVersions_); + } + onChanged(); + } + } else { + if (!other.datasetVersions_.isEmpty()) { + if (datasetVersionsBuilder_.isEmpty()) { + datasetVersionsBuilder_.dispose(); + datasetVersionsBuilder_ = null; + datasetVersions_ = other.datasetVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + datasetVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatasetVersionsFieldBuilder() + : null; + } else { + datasetVersionsBuilder_.addAllMessages(other.datasetVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1.DatasetVersion m = + input.readMessage( + com.google.cloud.aiplatform.v1.DatasetVersion.parser(), extensionRegistry); + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(m); + } else { + datasetVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List datasetVersions_ = + java.util.Collections.emptyList(); + + private void ensureDatasetVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + datasetVersions_ = + new java.util.ArrayList( + datasetVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.DatasetVersion, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder> + datasetVersionsBuilder_; + + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public java.util.List getDatasetVersionsList() { + if (datasetVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(datasetVersions_); + } else { + return datasetVersionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public int getDatasetVersionsCount() { + if (datasetVersionsBuilder_ == null) { + return datasetVersions_.size(); + } else { + return datasetVersionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersions(int index) { + if (datasetVersionsBuilder_ == null) { + return datasetVersions_.get(index); + } else { + return datasetVersionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder setDatasetVersions( + int index, com.google.cloud.aiplatform.v1.DatasetVersion value) { + if (datasetVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetVersionsIsMutable(); + datasetVersions_.set(index, value); + onChanged(); + } else { + datasetVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder setDatasetVersions( + int index, com.google.cloud.aiplatform.v1.DatasetVersion.Builder builderForValue) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + datasetVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions(com.google.cloud.aiplatform.v1.DatasetVersion value) { + if (datasetVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(value); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions( + int index, com.google.cloud.aiplatform.v1.DatasetVersion value) { + if (datasetVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(index, value); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions( + com.google.cloud.aiplatform.v1.DatasetVersion.Builder builderForValue) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(builderForValue.build()); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions( + int index, com.google.cloud.aiplatform.v1.DatasetVersion.Builder builderForValue) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder addAllDatasetVersions( + java.lang.Iterable values) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datasetVersions_); + onChanged(); + } else { + datasetVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder clearDatasetVersions() { + if (datasetVersionsBuilder_ == null) { + datasetVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + datasetVersionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public Builder removeDatasetVersions(int index) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.remove(index); + onChanged(); + } else { + datasetVersionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1.DatasetVersion.Builder getDatasetVersionsBuilder( + int index) { + return getDatasetVersionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder getDatasetVersionsOrBuilder( + int index) { + if (datasetVersionsBuilder_ == null) { + return datasetVersions_.get(index); + } else { + return datasetVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public java.util.List + getDatasetVersionsOrBuilderList() { + if (datasetVersionsBuilder_ != null) { + return datasetVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(datasetVersions_); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1.DatasetVersion.Builder addDatasetVersionsBuilder() { + return getDatasetVersionsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance()); + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1.DatasetVersion.Builder addDatasetVersionsBuilder( + int index) { + return getDatasetVersionsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.DatasetVersion.getDefaultInstance()); + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + public java.util.List + getDatasetVersionsBuilderList() { + return getDatasetVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.DatasetVersion, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder> + getDatasetVersionsFieldBuilder() { + if (datasetVersionsBuilder_ == null) { + datasetVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.DatasetVersion, + com.google.cloud.aiplatform.v1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder>( + datasetVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + datasetVersions_ = null; + } + return datasetVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ListDatasetVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ListDatasetVersionsResponse) + private static final com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse(); + } + + public static com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..f8db25c6f760 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ListDatasetVersionsResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface ListDatasetVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ListDatasetVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + java.util.List getDatasetVersionsList(); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + com.google.cloud.aiplatform.v1.DatasetVersion getDatasetVersions(int index); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + int getDatasetVersionsCount(); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + java.util.List + getDatasetVersionsOrBuilderList(); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.DatasetVersion dataset_versions = 1; + */ + com.google.cloud.aiplatform.v1.DatasetVersionOrBuilder getDatasetVersionsOrBuilder(int index); + + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java index 816801667eb5..7d66763fe3c1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java @@ -51,6 +51,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_DiskSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_DiskSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -91,16 +95,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ca_count\030\003 \001(\005B\004\342A\001\005\"0\n\021ResourcesConsume" + "d\022\033\n\rreplica_hours\030\001 \001(\001B\004\342A\001\003\"=\n\010DiskSp" + "ec\022\026\n\016boot_disk_type\030\001 \001(\t\022\031\n\021boot_disk_" - + "size_gb\030\002 \001(\005\"O\n\010NfsMount\022\024\n\006server\030\001 \001(" - + "\tB\004\342A\001\002\022\022\n\004path\030\002 \001(\tB\004\342A\001\002\022\031\n\013mount_poi" - + "nt\030\003 \001(\tB\004\342A\001\002\"B\n\025AutoscalingMetricSpec\022" - + "\031\n\013metric_name\030\001 \001(\tB\004\342A\001\002\022\016\n\006target\030\002 \001" - + "(\005B\323\001\n\036com.google.cloud.aiplatform.v1B\025M" - + "achineResourcesProtoP\001Z>cloud.google.com" - + "/go/aiplatform/apiv1/aiplatformpb;aiplat" - + "formpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Go" - + "ogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud" - + "::AIPlatform::V1b\006proto3" + + "size_gb\030\002 \001(\005\"=\n\022PersistentDiskSpec\022\021\n\td" + + "isk_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(\003\"O\n\010" + + "NfsMount\022\024\n\006server\030\001 \001(\tB\004\342A\001\002\022\022\n\004path\030\002" + + " \001(\tB\004\342A\001\002\022\031\n\013mount_point\030\003 \001(\tB\004\342A\001\002\"B\n" + + "\025AutoscalingMetricSpec\022\031\n\013metric_name\030\001 " + + "\001(\tB\004\342A\001\002\022\016\n\006target\030\002 \001(\005B\323\001\n\036com.google" + + ".cloud.aiplatform.v1B\025MachineResourcesPr" + + "otoP\001Z>cloud.google.com/go/aiplatform/ap" + + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C" + + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" + + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -157,8 +163,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "BootDiskType", "BootDiskSizeGb", }); - internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor = + internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_descriptor, + new java.lang.String[] { + "DiskType", "DiskSizeGb", + }); + internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1_NfsMount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_NfsMount_descriptor, @@ -166,7 +180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Server", "Path", "MountPoint", }); internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_AutoscalingMetricSpec_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java index 2c6d31a25f95..28264b7cbd07 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfig.java @@ -29,7 +29,9 @@ private ModelMonitoringAlertConfig(com.google.protobuf.GeneratedMessageV3.Builde super(builder); } - private ModelMonitoringAlertConfig() {} + private ModelMonitoringAlertConfig() { + notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -967,6 +969,82 @@ public boolean getEnableLogging() { return enableLogging_; } + public static final int NOTIFICATION_CHANNELS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList notificationChannels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the notificationChannels. + */ + public com.google.protobuf.ProtocolStringList getNotificationChannelsList() { + return notificationChannels_; + } + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of notificationChannels. + */ + public int getNotificationChannelsCount() { + return notificationChannels_.size(); + } + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The notificationChannels at the given index. + */ + public java.lang.String getNotificationChannels(int index) { + return notificationChannels_.get(index); + } + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the notificationChannels at the given index. + */ + public com.google.protobuf.ByteString getNotificationChannelsBytes(int index) { + return notificationChannels_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -988,6 +1066,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableLogging_ != false) { output.writeBool(2, enableLogging_); } + for (int i = 0; i < notificationChannels_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, notificationChannels_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -1006,6 +1088,14 @@ public int getSerializedSize() { if (enableLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableLogging_); } + { + int dataSize = 0; + for (int i = 0; i < notificationChannels_.size(); i++) { + dataSize += computeStringSizeNoTag(notificationChannels_.getRaw(i)); + } + size += dataSize; + size += 1 * getNotificationChannelsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1023,6 +1113,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig) obj; if (getEnableLogging() != other.getEnableLogging()) return false; + if (!getNotificationChannelsList().equals(other.getNotificationChannelsList())) return false; if (!getAlertCase().equals(other.getAlertCase())) return false; switch (alertCase_) { case 1: @@ -1044,6 +1135,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLogging()); + if (getNotificationChannelsCount() > 0) { + hash = (37 * hash) + NOTIFICATION_CHANNELS_FIELD_NUMBER; + hash = (53 * hash) + getNotificationChannelsList().hashCode(); + } switch (alertCase_) { case 1: hash = (37 * hash) + EMAIL_ALERT_CONFIG_FIELD_NUMBER; @@ -1188,6 +1283,7 @@ public Builder clear() { emailAlertConfigBuilder_.clear(); } enableLogging_ = false; + notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); alertCase_ = 0; alert_ = null; return this; @@ -1230,6 +1326,10 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.ModelMonitoringAlertCo if (((from_bitField0_ & 0x00000002) != 0)) { result.enableLogging_ = enableLogging_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + notificationChannels_.makeImmutable(); + result.notificationChannels_ = notificationChannels_; + } } private void buildPartialOneofs( @@ -1290,6 +1390,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.ModelMonitoringAlertConf if (other.getEnableLogging() != false) { setEnableLogging(other.getEnableLogging()); } + if (!other.notificationChannels_.isEmpty()) { + if (notificationChannels_.isEmpty()) { + notificationChannels_ = other.notificationChannels_; + bitField0_ |= 0x00000004; + } else { + ensureNotificationChannelsIsMutable(); + notificationChannels_.addAll(other.notificationChannels_); + } + onChanged(); + } switch (other.getAlertCase()) { case EMAIL_ALERT_CONFIG: { @@ -1340,6 +1450,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNotificationChannelsIsMutable(); + notificationChannels_.add(s); + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1682,6 +1799,207 @@ public Builder clearEnableLogging() { return this; } + private com.google.protobuf.LazyStringArrayList notificationChannels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNotificationChannelsIsMutable() { + if (!notificationChannels_.isModifiable()) { + notificationChannels_ = new com.google.protobuf.LazyStringArrayList(notificationChannels_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the notificationChannels. + */ + public com.google.protobuf.ProtocolStringList getNotificationChannelsList() { + notificationChannels_.makeImmutable(); + return notificationChannels_; + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of notificationChannels. + */ + public int getNotificationChannelsCount() { + return notificationChannels_.size(); + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The notificationChannels at the given index. + */ + public java.lang.String getNotificationChannels(int index) { + return notificationChannels_.get(index); + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the notificationChannels at the given index. + */ + public com.google.protobuf.ByteString getNotificationChannelsBytes(int index) { + return notificationChannels_.getByteString(index); + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The notificationChannels to set. + * @return This builder for chaining. + */ + public Builder setNotificationChannels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationChannelsIsMutable(); + notificationChannels_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param value The notificationChannels to add. + * @return This builder for chaining. + */ + public Builder addNotificationChannels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNotificationChannelsIsMutable(); + notificationChannels_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param values The notificationChannels to add. + * @return This builder for chaining. + */ + public Builder addAllNotificationChannels(java.lang.Iterable values) { + ensureNotificationChannelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationChannels_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNotificationChannels() { + notificationChannels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource names of the NotificationChannels to send alert.
+     * Must be of the format
+     * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+     * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the notificationChannels to add. + * @return This builder for chaining. + */ + public Builder addNotificationChannelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNotificationChannelsIsMutable(); + notificationChannels_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfigOrBuilder.java index 7a208d108603..97841e5c4c36 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringAlertConfigOrBuilder.java @@ -82,5 +82,68 @@ public interface ModelMonitoringAlertConfigOrBuilder */ boolean getEnableLogging(); + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the notificationChannels. + */ + java.util.List getNotificationChannelsList(); + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of notificationChannels. + */ + int getNotificationChannelsCount(); + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The notificationChannels at the given index. + */ + java.lang.String getNotificationChannels(int index); + /** + * + * + *
+   * Resource names of the NotificationChannels to send alert.
+   * Must be of the format
+   * `projects/<project_id_or_number>/notificationChannels/<channel_id>`
+   * 
+ * + * repeated string notification_channels = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the notificationChannels at the given index. + */ + com.google.protobuf.ByteString getNotificationChannelsBytes(int index); + com.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.AlertCase getAlertCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java index 879dfd7e546d..93d8a6e90726 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelMonitoringProto.java @@ -168,26 +168,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onfig.ExplanationBaseline.PredictionForm" + "at\"N\n\020PredictionFormat\022!\n\035PREDICTION_FOR" + "MAT_UNSPECIFIED\020\000\022\t\n\005JSONL\020\002\022\014\n\010BIGQUERY" - + "\020\003B\r\n\013destination\"\315\001\n\032ModelMonitoringAle" + + "\020\003B\r\n\013destination\"\240\002\n\032ModelMonitoringAle" + "rtConfig\022e\n\022email_alert_config\030\001 \001(\0132G.g" + "oogle.cloud.aiplatform.v1.ModelMonitorin" + "gAlertConfig.EmailAlertConfigH\000\022\026\n\016enabl" - + "e_logging\030\002 \001(\010\032\'\n\020EmailAlertConfig\022\023\n\013u" - + "ser_emails\030\001 \003(\tB\007\n\005alert\"/\n\017ThresholdCo" - + "nfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthreshold\"\234\001\n\020S" - + "amplingStrategy\022]\n\024random_sample_config\030" - + "\001 \001(\0132?.google.cloud.aiplatform.v1.Sampl" - + "ingStrategy.RandomSampleConfig\032)\n\022Random" - + "SampleConfig\022\023\n\013sample_rate\030\001 \001(\001B\304\002\n\036co" - + "m.google.cloud.aiplatform.v1B\024ModelMonit" - + "oringProtoP\001Z>cloud.google.com/go/aiplat" - + "form/apiv1/aiplatformpb;aiplatformpb\252\002\032G" - + "oogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud" - + "\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfo" - + "rm::V1\352Ao\n-monitoring.googleapis.com/Not" - + "ificationChannel\022>projects/{project}/not" - + "ificationChannels/{notification_channel}" - + "b\006proto3" + + "e_logging\030\002 \001(\010\022Q\n\025notification_channels" + + "\030\003 \003(\tB2\372A/\n-monitoring.googleapis.com/N" + + "otificationChannel\032\'\n\020EmailAlertConfig\022\023" + + "\n\013user_emails\030\001 \003(\tB\007\n\005alert\"/\n\017Threshol" + + "dConfig\022\017\n\005value\030\001 \001(\001H\000B\013\n\tthreshold\"\234\001" + + "\n\020SamplingStrategy\022]\n\024random_sample_conf" + + "ig\030\001 \001(\0132?.google.cloud.aiplatform.v1.Sa" + + "mplingStrategy.RandomSampleConfig\032)\n\022Ran" + + "domSampleConfig\022\023\n\013sample_rate\030\001 \001(\001B\304\002\n" + + "\036com.google.cloud.aiplatform.v1B\024ModelMo" + + "nitoringProtoP\001Z>cloud.google.com/go/aip" + + "latform/apiv1/aiplatformpb;aiplatformpb\252" + + "\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\Cl" + + "oud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPla" + + "tform::V1\352Ao\n-monitoring.googleapis.com/" + + "NotificationChannel\022>projects/{project}/" + + "notificationChannels/{notification_chann" + + "el}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -309,7 +311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ModelMonitoringAlertConfig_descriptor, new java.lang.String[] { - "EmailAlertConfig", "EnableLogging", "Alert", + "EmailAlertConfig", "EnableLogging", "NotificationChannels", "Alert", }); internal_static_google_cloud_aiplatform_v1_ModelMonitoringAlertConfig_EmailAlertConfig_descriptor = internal_static_google_cloud_aiplatform_v1_ModelMonitoringAlertConfig_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentDiskSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentDiskSpec.java new file mode 100644 index 000000000000..0e995f01449d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentDiskSpec.java @@ -0,0 +1,747 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/machine_resources.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Represents the spec of [persistent
+ * disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PersistentDiskSpec} + */ +public final class PersistentDiskSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PersistentDiskSpec) + PersistentDiskSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use PersistentDiskSpec.newBuilder() to construct. + private PersistentDiskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PersistentDiskSpec() { + diskType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PersistentDiskSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PersistentDiskSpec.class, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder.class); + } + + public static final int DISK_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskType_ = ""; + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The diskType. + */ + @java.lang.Override + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } + } + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The bytes for diskType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISK_SIZE_GB_FIELD_NUMBER = 2; + private long diskSizeGb_ = 0L; + /** + * + * + *
+   * Size in GB of the disk (default is 100GB).
+   * 
+ * + * int64 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, diskType_); + } + if (diskSizeGb_ != 0L) { + output.writeInt64(2, diskSizeGb_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, diskType_); + } + if (diskSizeGb_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, diskSizeGb_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.PersistentDiskSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PersistentDiskSpec other = + (com.google.cloud.aiplatform.v1.PersistentDiskSpec) obj; + + if (!getDiskType().equals(other.getDiskType())) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDiskType().hashCode(); + hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1.PersistentDiskSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents the spec of [persistent
+   * disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PersistentDiskSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PersistentDiskSpec) + com.google.cloud.aiplatform.v1.PersistentDiskSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PersistentDiskSpec.class, + com.google.cloud.aiplatform.v1.PersistentDiskSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PersistentDiskSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + diskType_ = ""; + diskSizeGb_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1_PersistentDiskSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpec build() { + com.google.cloud.aiplatform.v1.PersistentDiskSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpec buildPartial() { + com.google.cloud.aiplatform.v1.PersistentDiskSpec result = + new com.google.cloud.aiplatform.v1.PersistentDiskSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PersistentDiskSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.diskType_ = diskType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskSizeGb_ = diskSizeGb_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.PersistentDiskSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1.PersistentDiskSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PersistentDiskSpec other) { + if (other == com.google.cloud.aiplatform.v1.PersistentDiskSpec.getDefaultInstance()) + return this; + if (!other.getDiskType().isEmpty()) { + diskType_ = other.diskType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDiskSizeGb() != 0L) { + setDiskSizeGb(other.getDiskSizeGb()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + diskSizeGb_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object diskType_ = ""; + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @return The diskType. + */ + public java.lang.String getDiskType() { + java.lang.Object ref = diskType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @return The bytes for diskType. + */ + public com.google.protobuf.ByteString getDiskTypeBytes() { + java.lang.Object ref = diskType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @param value The diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearDiskType() { + diskType_ = getDefaultInstance().getDiskType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Type of the disk (default is "pd-standard").
+     * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+     * "pd-standard" (Persistent Disk Hard Disk Drive)
+     * "pd-balanced" (Balanced Persistent Disk)
+     * "pd-extreme" (Extreme Persistent Disk)
+     * 
+ * + * string disk_type = 1; + * + * @param value The bytes for diskType to set. + * @return This builder for chaining. + */ + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long diskSizeGb_; + /** + * + * + *
+     * Size in GB of the disk (default is 100GB).
+     * 
+ * + * int64 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + @java.lang.Override + public long getDiskSizeGb() { + return diskSizeGb_; + } + /** + * + * + *
+     * Size in GB of the disk (default is 100GB).
+     * 
+ * + * int64 disk_size_gb = 2; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. + */ + public Builder setDiskSizeGb(long value) { + + diskSizeGb_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Size in GB of the disk (default is 100GB).
+     * 
+ * + * int64 disk_size_gb = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiskSizeGb() { + bitField0_ = (bitField0_ & ~0x00000002); + diskSizeGb_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.PersistentDiskSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PersistentDiskSpec) + private static final com.google.cloud.aiplatform.v1.PersistentDiskSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PersistentDiskSpec(); + } + + public static com.google.cloud.aiplatform.v1.PersistentDiskSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDiskSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PersistentDiskSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentDiskSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentDiskSpecOrBuilder.java new file mode 100644 index 000000000000..985db7ecaf01 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PersistentDiskSpecOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/machine_resources.proto + +package com.google.cloud.aiplatform.v1; + +public interface PersistentDiskSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PersistentDiskSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The diskType. + */ + java.lang.String getDiskType(); + /** + * + * + *
+   * Type of the disk (default is "pd-standard").
+   * Valid values: "pd-ssd" (Persistent Disk Solid State Drive)
+   * "pd-standard" (Persistent Disk Hard Disk Drive)
+   * "pd-balanced" (Balanced Persistent Disk)
+   * "pd-extreme" (Extreme Persistent Disk)
+   * 
+ * + * string disk_type = 1; + * + * @return The bytes for diskType. + */ + com.google.protobuf.ByteString getDiskTypeBytes(); + + /** + * + * + *
+   * Size in GB of the disk (default is 100GB).
+   * 
+ * + * int64 disk_size_gb = 2; + * + * @return The diskSizeGb. + */ + long getDiskSizeGb(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java index eab92fc2fe14..1dbbebee1542 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -4389,7 +4389,9 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { *
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; @@ -4414,7 +4416,9 @@ public java.lang.String getTemplateUri() { *
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; @@ -8278,7 +8282,9 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8302,7 +8308,9 @@ public java.lang.String getTemplateUri() { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8326,7 +8334,9 @@ public com.google.protobuf.ByteString getTemplateUriBytes() { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8349,7 +8359,9 @@ public Builder setTemplateUri(java.lang.String value) { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8368,7 +8380,9 @@ public Builder clearTemplateUri() { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java index c3ffd385427e..8525b2891dfe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -723,7 +723,9 @@ java.lang.String getLabelsOrDefault( *
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; @@ -737,7 +739,9 @@ java.lang.String getLabelsOrDefault( *
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionRequest.java new file mode 100644 index 000000000000..0da7f2946cc7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionRequest.java @@ -0,0 +1,655 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RestoreDatasetVersionRequest} + */ +public final class RestoreDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) + RestoreDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RestoreDatasetVersionRequest.newBuilder() to construct. + private RestoreDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreDatasetVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.RestoreDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1_RestoreDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest other) { + if (other == com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..cdaa2d81f635 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RestoreDatasetVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/dataset_service.proto + +package com.google.cloud.aiplatform.v1; + +public interface RestoreDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.RestoreDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java index 842f0200441b..2be1955c494e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequest.java @@ -1224,7 +1224,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { *
* * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @return The savedQuery. */ @java.lang.Override @@ -1254,7 +1254,7 @@ public java.lang.String getSavedQuery() { *
* * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @return The bytes for savedQuery. */ @java.lang.Override @@ -1419,7 +1419,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @return The annotationsFilter. */ @java.lang.Override @@ -1447,7 +1447,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @return The bytes for annotationsFilter. */ @java.lang.Override @@ -1647,7 +1647,7 @@ public int getPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @return The orderBy. */ @java.lang.Override @@ -1674,7 +1674,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @return The bytes for orderBy. */ @java.lang.Override @@ -2973,7 +2973,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @return The savedQuery. */ @java.lang.Deprecated @@ -3002,7 +3002,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -3031,7 +3031,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @param value The savedQuery to set. * @return This builder for chaining. */ @@ -3059,7 +3059,7 @@ public Builder setSavedQuery(java.lang.String value) { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3083,7 +3083,7 @@ public Builder clearSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @param value The bytes for savedQuery to set. * @return This builder for chaining. */ @@ -3399,7 +3399,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -3426,7 +3426,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -3453,7 +3453,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @param value The annotationsFilter to set. * @return This builder for chaining. */ @@ -3479,7 +3479,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3501,7 +3501,7 @@ public Builder clearAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @param value The bytes for annotationsFilter to set. * @return This builder for chaining. */ @@ -4042,7 +4042,7 @@ public Builder clearPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @return The orderBy. */ @java.lang.Deprecated @@ -4068,7 +4068,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @return The bytes for orderBy. */ @java.lang.Deprecated @@ -4094,7 +4094,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @param value The orderBy to set. * @return This builder for chaining. */ @@ -4119,7 +4119,7 @@ public Builder setOrderBy(java.lang.String value) { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4140,7 +4140,7 @@ public Builder clearOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @param value The bytes for orderBy to set. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java index 6f6c9e680632..16e1fa62e9a3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchDataItemsRequestOrBuilder.java @@ -152,7 +152,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @return The savedQuery. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.saved_query is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=463 + * google/cloud/aiplatform/v1/dataset_service.proto;l=626 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -269,7 +269,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -286,7 +286,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.annotations_filter is deprecated. - * See google/cloud/aiplatform/v1/dataset_service.proto;l=494 + * See google/cloud/aiplatform/v1/dataset_service.proto;l=657 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -437,7 +437,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @return The orderBy. */ @java.lang.Deprecated @@ -453,7 +453,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1/dataset_service.proto;l=681 * @return The bytes for orderBy. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto index 5968668aa46b..a9186a335d88 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_service.proto @@ -24,6 +24,7 @@ import "google/cloud/aiplatform/v1/annotation.proto"; import "google/cloud/aiplatform/v1/annotation_spec.proto"; import "google/cloud/aiplatform/v1/data_item.proto"; import "google/cloud/aiplatform/v1/dataset.proto"; +import "google/cloud/aiplatform/v1/dataset_version.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/cloud/aiplatform/v1/saved_query.proto"; import "google/longrunning/operations.proto"; @@ -122,6 +123,63 @@ service DatasetService { }; } + // Create a version from a Dataset. + rpc CreateDatasetVersion(CreateDatasetVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + body: "dataset_version" + }; + option (google.api.method_signature) = "parent,dataset_version"; + option (google.longrunning.operation_info) = { + response_type: "DatasetVersion" + metadata_type: "CreateDatasetVersionOperationMetadata" + }; + } + + // Deletes a Dataset version. + rpc DeleteDatasetVersion(DeleteDatasetVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Gets a Dataset version. + rpc GetDatasetVersion(GetDatasetVersionRequest) returns (DatasetVersion) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists DatasetVersions in a Dataset. + rpc ListDatasetVersions(ListDatasetVersionsRequest) + returns (ListDatasetVersionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + }; + option (google.api.method_signature) = "parent"; + } + + // Restores a dataset version. + rpc RestoreDatasetVersion(RestoreDatasetVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "DatasetVersion" + metadata_type: "RestoreDatasetVersionOperationMetadata" + }; + } + // Lists DataItems in a Dataset. rpc ListDataItems(ListDataItemsRequest) returns (ListDataItemsResponse) { option (google.api.http) = { @@ -369,6 +427,25 @@ message ExportDataOperationMetadata { string gcs_output_directory = 2; } +// Request message for +// [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion]. +message CreateDatasetVersionRequest { + // Required. The name of the Dataset resource. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Required. The version to be created. The same CMEK policies with the + // original Dataset will be applied the dataset version. So here we don't need + // to specify the EncryptionSpecType here. + DatasetVersion dataset_version = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Runtime operation information for // [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion]. message CreateDatasetVersionOperationMetadata { @@ -376,6 +453,92 @@ message CreateDatasetVersionOperationMetadata { GenericOperationMetadata generic_metadata = 1; } +// Request message for +// [DatasetService.DeleteDatasetVersion][google.cloud.aiplatform.v1.DatasetService.DeleteDatasetVersion]. +message DeleteDatasetVersionRequest { + // Required. The resource name of the Dataset version to delete. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } + ]; +} + +// Request message for +// [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion]. +message GetDatasetVersionRequest { + // Required. The resource name of the Dataset version to delete. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } + ]; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 2; +} + +// Request message for +// [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions]. +message ListDatasetVersionsRequest { + // Required. The resource name of the Dataset to list DatasetVersions from. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Optional. The standard list filter. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page size. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. + string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions]. +message ListDatasetVersionsResponse { + // A list of DatasetVersions that matches the specified filter in the request. + repeated DatasetVersion dataset_versions = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + +// Request message for +// [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion]. +message RestoreDatasetVersionRequest { + // Required. The name of the DatasetVersion resource. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } + ]; +} + // Runtime operation information for // [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion]. message RestoreDatasetVersionOperationMetadata { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto new file mode 100644 index 000000000000..5a6dd1110d34 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto @@ -0,0 +1,55 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "DatasetVersionProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Describes the dataset version. +message DatasetVersion { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/DatasetVersion" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}" + }; + + // Output only. The resource name of the DatasetVersion. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DatasetVersion was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DatasetVersion was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 3; + + // Output only. Name of the associated BigQuery dataset. + string big_query_dataset_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto index e014e10611f0..b29ec0c03054 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint.proto @@ -164,7 +164,7 @@ message DeployedModel { // Immutable. The ID of the DeployedModel. If not provided upon deployment, // Vertex AI will generate a value for this ID. // - // This value should be 1-10 characters, and valid characters are /[0-9]/. + // This value should be 1-10 characters, and valid characters are `/[0-9]/`. string id = 1 [(google.api.field_behavior) = IMMUTABLE]; // Required. The resource name of the Model that this is the deployment of. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto index 192a8d53bcf8..1dfaca9b8ac1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto @@ -45,7 +45,7 @@ message Index { INDEX_UPDATE_METHOD_UNSPECIFIED = 0; // BatchUpdate: user can call UpdateIndex with files on Cloud Storage of - // datapoints to update. + // Datapoints to update. BATCH_UPDATE = 1; // StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update @@ -132,13 +132,13 @@ message IndexDatapoint { // Restriction of a datapoint which describe its attributes(tokens) from each // of several attribute categories(namespaces). message Restriction { - // The namespace of this restriction. eg: color. + // The namespace of this restriction. e.g.: color. string namespace = 1; - // The attributes to allow in this namespace. eg: 'red' + // The attributes to allow in this namespace. e.g.: 'red' repeated string allow_list = 2; - // The attributes to deny in this namespace. eg: 'blue' + // The attributes to deny in this namespace. e.g.: 'blue' repeated string deny_list = 3; } @@ -163,7 +163,7 @@ message IndexDatapoint { // Optional. List of Restrict of the datapoint, used to perform "restricted // searches" where boolean rule are used to filter the subset of the database - // eligible for matching. See: + // eligible for matching. This uses categorical tokens. See: // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering repeated Restriction restricts = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto index 89672421d00b..cca3fc3d5dd5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_endpoint.proto @@ -233,7 +233,10 @@ message DeployedIndex { // // The value should be the name of the address // (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - // Example: 'vertex-ai-ip-range'. + // Example: ['vertex-ai-ip-range']. + // + // For more information about subnets and network IP ranges, please see + // https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. repeated string reserved_ip_ranges = 10 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto index ae19c491235e..2a307e51f809 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto @@ -181,6 +181,20 @@ message DiskSpec { int32 boot_disk_size_gb = 2; } +// Represents the spec of [persistent +// disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options. +message PersistentDiskSpec { + // Type of the disk (default is "pd-standard"). + // Valid values: "pd-ssd" (Persistent Disk Solid State Drive) + // "pd-standard" (Persistent Disk Hard Disk Drive) + // "pd-balanced" (Balanced Persistent Disk) + // "pd-extreme" (Extreme Persistent Disk) + string disk_type = 1; + + // Size in GB of the disk (default is 100GB). + int64 disk_size_gb = 2; +} + // Represents a mount configuration for Network File System (NFS) to mount. message NfsMount { // Required. IP address of the NFS server. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto index 1978accfb378..c747508d10d2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_monitoring.proto @@ -188,6 +188,13 @@ message ModelMonitoringAlertConfig { // This can be further sinked to Pub/Sub or any other services supported // by Cloud Logging. bool enable_logging = 2; + + // Resource names of the NotificationChannels to send alert. + // Must be of the format + // `projects//notificationChannels/` + repeated string notification_channels = 3 [(google.api.resource_reference) = { + type: "monitoring.googleapis.com/NotificationChannel" + }]; } // The config for feature monitoring threshold. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto index f5da296dae46..e48cd9546538 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -199,7 +199,9 @@ message PipelineJob { // A template uri from where the // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], - // if empty, will be downloaded. + // if empty, will be downloaded. Currently, only uri from Vertex Template + // Registry & Gallery is supported. Reference to + // https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template. string template_uri = 19; // Output only. Pipeline template metadata. Will fill up fields if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto index 39acd31657c5..c500559d9318 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto @@ -312,7 +312,7 @@ message CreatePipelineJobRequest { // generated. // // This value should be less than 128 characters, and valid characters - // are /[a-z][0-9]-/. + // are `/[a-z][0-9]-/`. string pipeline_job_id = 3; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto index 0086f73671dd..b5c769c0c134 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tensorboard_service.proto @@ -560,7 +560,7 @@ message CreateTensorboardExperimentRequest { // final component of the Tensorboard experiment's resource name. // // This value should be 1-128 characters, and valid characters - // are /[a-z][0-9]-/. + // are `/[a-z][0-9]-/`. string tensorboard_experiment_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -710,7 +710,7 @@ message CreateTensorboardRunRequest { // component of the Tensorboard run's resource name. // // This value should be 1-128 characters, and valid characters - // are /[a-z][0-9]-/. + // are `/[a-z][0-9]-/`. string tensorboard_run_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionRequest.java new file mode 100644 index 000000000000..6f2e76f7187b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest} + */ +public final class CreateDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) + CreateDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDatasetVersionRequest.newBuilder() to construct. + private CreateDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDatasetVersionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_VERSION_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.DatasetVersion datasetVersion_; + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetVersion field is set. + */ + @java.lang.Override + public boolean hasDatasetVersion() { + return datasetVersion_ != null; + } + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetVersion. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersion() { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder getDatasetVersionOrBuilder() { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (datasetVersion_ != null) { + output.writeMessage(2, getDatasetVersion()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (datasetVersion_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDatasetVersion()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDatasetVersion() != other.hasDatasetVersion()) return false; + if (hasDatasetVersion()) { + if (!getDatasetVersion().equals(other.getDatasetVersion())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDatasetVersion()) { + hash = (37 * hash) + DATASET_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDatasetVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + datasetVersion_ = null; + if (datasetVersionBuilder_ != null) { + datasetVersionBuilder_.dispose(); + datasetVersionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.datasetVersion_ = + datasetVersionBuilder_ == null ? datasetVersion_ : datasetVersionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDatasetVersion()) { + mergeDatasetVersion(other.getDatasetVersion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDatasetVersionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Dataset resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.DatasetVersion datasetVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetVersion, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder> + datasetVersionBuilder_; + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetVersion field is set. + */ + public boolean hasDatasetVersion() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetVersion. + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersion() { + if (datasetVersionBuilder_ == null) { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } else { + return datasetVersionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasetVersion(com.google.cloud.aiplatform.v1beta1.DatasetVersion value) { + if (datasetVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetVersion_ = value; + } else { + datasetVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasetVersion( + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder builderForValue) { + if (datasetVersionBuilder_ == null) { + datasetVersion_ = builderForValue.build(); + } else { + datasetVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatasetVersion(com.google.cloud.aiplatform.v1beta1.DatasetVersion value) { + if (datasetVersionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && datasetVersion_ != null + && datasetVersion_ + != com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance()) { + getDatasetVersionBuilder().mergeFrom(value); + } else { + datasetVersion_ = value; + } + } else { + datasetVersionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatasetVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + datasetVersion_ = null; + if (datasetVersionBuilder_ != null) { + datasetVersionBuilder_.dispose(); + datasetVersionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder getDatasetVersionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDatasetVersionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder + getDatasetVersionOrBuilder() { + if (datasetVersionBuilder_ != null) { + return datasetVersionBuilder_.getMessageOrBuilder(); + } else { + return datasetVersion_ == null + ? com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance() + : datasetVersion_; + } + } + /** + * + * + *
+     * Required. The version to be created. The same CMEK policies with the
+     * original Dataset will be applied the dataset version. So here we don't need
+     * to specify the EncryptionSpecType here.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetVersion, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder> + getDatasetVersionFieldBuilder() { + if (datasetVersionBuilder_ == null) { + datasetVersionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetVersion, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder>( + getDatasetVersion(), getParentForChildren(), isClean()); + datasetVersion_ = null; + } + return datasetVersionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..97a8f49219c2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateDatasetVersionRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface CreateDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the Dataset resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasetVersion field is set. + */ + boolean hasDatasetVersion(); + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasetVersion. + */ + com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersion(); + /** + * + * + *
+   * Required. The version to be created. The same CMEK policies with the
+   * original Dataset will be applied the dataset version. So here we don't need
+   * to specify the EncryptionSpecType here.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_version = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder getDatasetVersionOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java index 13ca546d3d38..165dfe86b4c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequest.java @@ -71,15 +71,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * - *
-   * The resource name of the EntityType or FeatureGroup to create a Feature.
-   * Format:
-   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-   * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-   * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @@ -99,15 +90,6 @@ public java.lang.String getParent() { } } /** - * - * - *
-   * The resource name of the EntityType or FeatureGroup to create a Feature.
-   * Format:
-   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-   * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-   * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @@ -649,15 +631,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * - *
-     * The resource name of the EntityType or FeatureGroup to create a Feature.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-     * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @@ -676,15 +649,6 @@ public java.lang.String getParent() { } } /** - * - * - *
-     * The resource name of the EntityType or FeatureGroup to create a Feature.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-     * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @@ -703,15 +667,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * - *
-     * The resource name of the EntityType or FeatureGroup to create a Feature.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-     * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @@ -729,15 +684,6 @@ public Builder setParent(java.lang.String value) { return this; } /** - * - * - *
-     * The resource name of the EntityType or FeatureGroup to create a Feature.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-     * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @@ -751,15 +697,6 @@ public Builder clearParent() { return this; } /** - * - * - *
-     * The resource name of the EntityType or FeatureGroup to create a Feature.
-     * Format:
-     * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-     * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequestOrBuilder.java index 32a4b98f5e39..05b81f3a447c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateFeatureRequestOrBuilder.java @@ -24,15 +24,6 @@ public interface CreateFeatureRequestOrBuilder com.google.protobuf.MessageOrBuilder { /** - * - * - *
-   * The resource name of the EntityType or FeatureGroup to create a Feature.
-   * Format:
-   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-   * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-   * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @@ -41,15 +32,6 @@ public interface CreateFeatureRequestOrBuilder */ java.lang.String getParent(); /** - * - * - *
-   * The resource name of the EntityType or FeatureGroup to create a Feature.
-   * Format:
-   * `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
-   * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
-   * 
- * * * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequest.java index 6f8999f7f3de..e6351b4bfc2a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequest.java @@ -191,7 +191,7 @@ public com.google.cloud.aiplatform.v1beta1.PersistentResource getPersistentResou * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -218,7 +218,7 @@ public java.lang.String getPersistentResourceId() { * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -986,7 +986,7 @@ public Builder clearPersistentResource() { * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1012,7 +1012,7 @@ public java.lang.String getPersistentResourceId() { * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1038,7 +1038,7 @@ public com.google.protobuf.ByteString getPersistentResourceIdBytes() { * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1063,7 +1063,7 @@ public Builder setPersistentResourceId(java.lang.String value) { * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1084,7 +1084,7 @@ public Builder clearPersistentResourceId() { * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequestOrBuilder.java index ae959a60c98c..13f2e0f04c7d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceRequestOrBuilder.java @@ -103,7 +103,7 @@ public interface CreatePersistentResourceRequestOrBuilder * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -119,7 +119,7 @@ public interface CreatePersistentResourceRequestOrBuilder * component of the PersistentResource's resource name. * * The maximum length is 63 characters, and valid characters - * are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + * are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. * * * string persistent_resource_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java index 09616c47bf58..7adc20e4e324 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java @@ -190,7 +190,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder getPipelineJobOr * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -218,7 +218,7 @@ public java.lang.String getPipelineJobId() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -975,7 +975,7 @@ public com.google.cloud.aiplatform.v1beta1.PipelineJobOrBuilder getPipelineJobOr * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -1002,7 +1002,7 @@ public java.lang.String getPipelineJobId() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -1029,7 +1029,7 @@ public com.google.protobuf.ByteString getPipelineJobIdBytes() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -1055,7 +1055,7 @@ public Builder setPipelineJobId(java.lang.String value) { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -1077,7 +1077,7 @@ public Builder clearPipelineJobId() { * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java index a0c803efa637..3fbc2ce0130c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java @@ -104,7 +104,7 @@ public interface CreatePipelineJobRequestOrBuilder * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; @@ -121,7 +121,7 @@ public interface CreatePipelineJobRequestOrBuilder * generated. * * This value should be less than 128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string pipeline_job_id = 3; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java index 9742509e98ae..1ae147910726 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequest.java @@ -187,7 +187,7 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardExperiment getTensorboardE * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -214,7 +214,7 @@ public java.lang.String getTensorboardExperimentId() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -980,7 +980,7 @@ public Builder clearTensorboardExperiment() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1006,7 +1006,7 @@ public java.lang.String getTensorboardExperimentId() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1032,7 +1032,7 @@ public com.google.protobuf.ByteString getTensorboardExperimentIdBytes() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1057,7 +1057,7 @@ public Builder setTensorboardExperimentId(java.lang.String value) { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1078,7 +1078,7 @@ public Builder clearTensorboardExperimentId() { * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequestOrBuilder.java index de20a35e81a1..0fd4b19805c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardExperimentRequestOrBuilder.java @@ -100,7 +100,7 @@ public interface CreateTensorboardExperimentRequestOrBuilder * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -116,7 +116,7 @@ public interface CreateTensorboardExperimentRequestOrBuilder * final component of the Tensorboard experiment's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_experiment_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java index ec1d91d86431..28bf628735aa 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequest.java @@ -191,7 +191,7 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRunOrBuilder getTensorboar * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -218,7 +218,7 @@ public java.lang.String getTensorboardRunId() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -981,7 +981,7 @@ public com.google.cloud.aiplatform.v1beta1.TensorboardRun.Builder getTensorboard * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1007,7 +1007,7 @@ public java.lang.String getTensorboardRunId() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1033,7 +1033,7 @@ public com.google.protobuf.ByteString getTensorboardRunIdBytes() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1058,7 +1058,7 @@ public Builder setTensorboardRunId(java.lang.String value) { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1079,7 +1079,7 @@ public Builder clearTensorboardRunId() { * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequestOrBuilder.java index 4a54c41ba758..a4f74a4802f7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateTensorboardRunRequestOrBuilder.java @@ -105,7 +105,7 @@ public interface CreateTensorboardRunRequestOrBuilder * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -121,7 +121,7 @@ public interface CreateTensorboardRunRequestOrBuilder * component of the Tensorboard run's resource name. * * This value should be 1-128 characters, and valid characters - * are /[a-z][0-9]-/. + * are `/[a-z][0-9]-/`. * * * string tensorboard_run_id = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java index 1c292f0f0608..adb89a3c4681 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceProto.java @@ -79,10 +79,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ExportDataOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -154,190 +178,245 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1beta1/annotation_spec.proto\032/google/clo" + "ud/aiplatform/v1beta1/data_item.proto\032-g" + "oogle/cloud/aiplatform/v1beta1/dataset.p" - + "roto\032/google/cloud/aiplatform/v1beta1/op" - + "eration.proto\0321google/cloud/aiplatform/v" - + "1beta1/saved_query.proto\032#google/longrun" - + "ning/operations.proto\032\033google/protobuf/e" - + "mpty.proto\032 google/protobuf/field_mask.p" - + "roto\"\223\001\n\024CreateDatasetRequest\022:\n\006parent\030" - + "\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapis.com" - + "/Location\022?\n\007dataset\030\002 \001(\0132(.google.clou" - + "d.aiplatform.v1beta1.DatasetB\004\342A\001\002\"u\n\036Cr" - + "eateDatasetOperationMetadata\022S\n\020generic_" - + "metadata\030\001 \001(\01329.google.cloud.aiplatform" - + ".v1beta1.GenericOperationMetadata\"|\n\021Get" - + "DatasetRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!a" - + "iplatform.googleapis.com/Dataset\022-\n\tread" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" - + "\216\001\n\024UpdateDatasetRequest\022?\n\007dataset\030\001 \001(" + + "roto\0325google/cloud/aiplatform/v1beta1/da" + + "taset_version.proto\032/google/cloud/aiplat" + + "form/v1beta1/operation.proto\0321google/clo" + + "ud/aiplatform/v1beta1/saved_query.proto\032" + + "#google/longrunning/operations.proto\032\033go" + + "ogle/protobuf/empty.proto\032 google/protob" + + "uf/field_mask.proto\"\223\001\n\024CreateDatasetReq" + + "uest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations" + + ".googleapis.com/Location\022?\n\007dataset\030\002 \001(" + "\0132(.google.cloud.aiplatform.v1beta1.Data" - + "setB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\004\342A\001\002\"\311\001\n\023ListDataset" - + "sRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" - + "ions.googleapis.com/Location\022\016\n\006filter\030\002" - + " \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 " - + "\001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.protobuf" - + ".FieldMask\022\020\n\010order_by\030\006 \001(\t\"k\n\024ListData" - + "setsResponse\022:\n\010datasets\030\001 \003(\0132(.google." - + "cloud.aiplatform.v1beta1.Dataset\022\027\n\017next" - + "_page_token\030\002 \001(\t\"P\n\024DeleteDatasetReques" - + "t\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.goo" - + "gleapis.com/Dataset\"\236\001\n\021ImportDataReques" - + "t\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.goo" - + "gleapis.com/Dataset\022O\n\016import_configs\030\002 " - + "\003(\01321.google.cloud.aiplatform.v1beta1.Im" - + "portDataConfigB\004\342A\001\002\"\024\n\022ImportDataRespon" - + "se\"r\n\033ImportDataOperationMetadata\022S\n\020gen" - + "eric_metadata\030\001 \001(\01329.google.cloud.aipla" - + "tform.v1beta1.GenericOperationMetadata\"\235" - + "\001\n\021ExportDataRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" - + "\372A#\n!aiplatform.googleapis.com/Dataset\022N" - + "\n\rexport_config\030\002 \001(\01321.google.cloud.aip" - + "latform.v1beta1.ExportDataConfigB\004\342A\001\002\"," - + "\n\022ExportDataResponse\022\026\n\016exported_files\030\001" - + " \003(\t\"\220\001\n\033ExportDataOperationMetadata\022S\n\020" - + "generic_metadata\030\001 \001(\01329.google.cloud.ai" - + "platform.v1beta1.GenericOperationMetadat" - + "a\022\034\n\024gcs_output_directory\030\002 \001(\t\"|\n%Creat" - + "eDatasetVersionOperationMetadata\022S\n\020gene" - + "ric_metadata\030\001 \001(\01329.google.cloud.aiplat" - + "form.v1beta1.GenericOperationMetadata\"}\n" - + "&RestoreDatasetVersionOperationMetadata\022" - + "S\n\020generic_metadata\030\001 \001(\01329.google.cloud" - + ".aiplatform.v1beta1.GenericOperationMeta" - + "data\"\312\001\n\024ListDataItemsRequest\022:\n\006parent\030" - + "\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.co" - + "m/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003" - + " \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 " - + "\001(\0132\032.google.protobuf.FieldMask\022\020\n\010order" - + "_by\030\006 \001(\t\"o\n\025ListDataItemsResponse\022=\n\nda" - + "ta_items\030\001 \003(\0132).google.cloud.aiplatform" - + ".v1beta1.DataItem\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\343\004\n\026SearchDataItemsRequest\022\034\n\022order_b" - + "y_data_item\030\014 \001(\tH\000\022h\n\023order_by_annotati" - + "on\030\r \001(\0132I.google.cloud.aiplatform.v1bet" - + "a1.SearchDataItemsRequest.OrderByAnnotat" - + "ionH\000\022;\n\007dataset\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatf" - + "orm.googleapis.com/Dataset\022@\n\013saved_quer" - + "y\030\002 \001(\tB+\030\001\372A&\n$aiplatform.googleapis.co" - + "m/SavedQuery\022\031\n\021data_labeling_job\030\003 \001(\t\022" - + "\030\n\020data_item_filter\030\004 \001(\t\022\036\n\022annotations" - + "_filter\030\005 \001(\tB\002\030\001\022\032\n\022annotation_filters\030" - + "\013 \003(\t\022.\n\nfield_mask\030\006 \001(\0132\032.google.proto" - + "buf.FieldMask\022\031\n\021annotations_limit\030\007 \001(\005" - + "\022\021\n\tpage_size\030\010 \001(\005\022\024\n\010order_by\030\t \001(\tB\002\030" - + "\001\022\022\n\npage_token\030\n \001(\t\032@\n\021OrderByAnnotati" - + "on\022\031\n\013saved_query\030\001 \001(\tB\004\342A\001\002\022\020\n\010order_b" - + "y\030\002 \001(\tB\007\n\005order\"z\n\027SearchDataItemsRespo" - + "nse\022F\n\017data_item_views\030\001 \003(\0132-.google.cl" - + "oud.aiplatform.v1beta1.DataItemView\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"\261\001\n\014DataItemView\022<\n" - + "\tdata_item\030\001 \001(\0132).google.cloud.aiplatfo" - + "rm.v1beta1.DataItem\022@\n\013annotations\030\002 \003(\013" - + "2+.google.cloud.aiplatform.v1beta1.Annot" - + "ation\022!\n\031has_truncated_annotations\030\003 \001(\010" - + "\"\315\001\n\027ListSavedQueriesRequest\022:\n\006parent\030\001" - + " \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.com" - + "/Dataset\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 " - + "\001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001" - + "(\0132\032.google.protobuf.FieldMask\022\020\n\010order_" - + "by\030\006 \001(\t\"w\n\030ListSavedQueriesResponse\022B\n\r" - + "saved_queries\030\001 \003(\0132+.google.cloud.aipla" - + "tform.v1beta1.SavedQuery\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"V\n\027DeleteSavedQueryRequest\022;\n\004" - + "name\030\001 \001(\tB-\342A\001\002\372A&\n$aiplatform.googleap" - + "is.com/SavedQuery\"\212\001\n\030GetAnnotationSpecR" - + "equest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(aiplatfor" - + "m.googleapis.com/AnnotationSpec\022-\n\tread_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\315" - + "\001\n\026ListAnnotationsRequest\022;\n\006parent\030\001 \001(" - + "\tB+\342A\001\002\372A$\n\"aiplatform.googleapis.com/Da" - + "taItem\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" - + "\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\013" - + "2\032.google.protobuf.FieldMask\022\020\n\010order_by" - + "\030\006 \001(\t\"t\n\027ListAnnotationsResponse\022@\n\013ann" - + "otations\030\001 \003(\0132+.google.cloud.aiplatform" - + ".v1beta1.Annotation\022\027\n\017next_page_token\030\002" - + " \001(\t2\377\026\n\016DatasetService\022\346\001\n\rCreateDatase" - + "t\0225.google.cloud.aiplatform.v1beta1.Crea" - + "teDatasetRequest\032\035.google.longrunning.Op" - + "eration\"\177\312A)\n\007Dataset\022\036CreateDatasetOper" - + "ationMetadata\332A\016parent,dataset\202\323\344\223\002<\"1/v" - + "1beta1/{parent=projects/*/locations/*}/d" - + "atasets:\007dataset\022\254\001\n\nGetDataset\0222.google" - + ".cloud.aiplatform.v1beta1.GetDatasetRequ" - + "est\032(.google.cloud.aiplatform.v1beta1.Da" - + "taset\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{name=pro" - + "jects/*/locations/*/datasets/*}\022\322\001\n\rUpda" - + "teDataset\0225.google.cloud.aiplatform.v1be" - + "ta1.UpdateDatasetRequest\032(.google.cloud." - + "aiplatform.v1beta1.Dataset\"`\332A\023dataset,u" - + "pdate_mask\202\323\344\223\002D29/v1beta1/{dataset.name" - + "=projects/*/locations/*/datasets/*}:\007dat" - + "aset\022\277\001\n\014ListDatasets\0224.google.cloud.aip" - + "latform.v1beta1.ListDatasetsRequest\0325.go" - + "ogle.cloud.aiplatform.v1beta1.ListDatase" - + "tsResponse\"B\332A\006parent\202\323\344\223\0023\0221/v1beta1/{p" - + "arent=projects/*/locations/*}/datasets\022\332" - + "\001\n\rDeleteDataset\0225.google.cloud.aiplatfo" - + "rm.v1beta1.DeleteDatasetRequest\032\035.google" - + ".longrunning.Operation\"s\312A0\n\025google.prot" - + "obuf.Empty\022\027DeleteOperationMetadata\332A\004na" - + "me\202\323\344\223\0023*1/v1beta1/{name=projects/*/loca" - + "tions/*/datasets/*}\022\357\001\n\nImportData\0222.goo" - + "gle.cloud.aiplatform.v1beta1.ImportDataR" - + "equest\032\035.google.longrunning.Operation\"\215\001" - + "\312A1\n\022ImportDataResponse\022\033ImportDataOpera" - + "tionMetadata\332A\023name,import_configs\202\323\344\223\002=" - + "\"8/v1beta1/{name=projects/*/locations/*/" - + "datasets/*}:import:\001*\022\356\001\n\nExportData\0222.g" + + "setB\004\342A\001\002\"u\n\036CreateDatasetOperationMetad" + + "ata\022S\n\020generic_metadata\030\001 \001(\01329.google.c" + + "loud.aiplatform.v1beta1.GenericOperation" + + "Metadata\"|\n\021GetDatasetRequest\0228\n\004name\030\001 " + + "\001(\tB*\342A\001\002\372A#\n!aiplatform.googleapis.com/" + + "Dataset\022-\n\tread_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMask\"\216\001\n\024UpdateDatasetRequest\022" + + "?\n\007dataset\030\001 \001(\0132(.google.cloud.aiplatfo" + + "rm.v1beta1.DatasetB\004\342A\001\002\0225\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"" + + "\311\001\n\023ListDatasetsRequest\022:\n\006parent\030\001 \001(\tB" + + "*\342A\001\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022" + + "\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032." + + "google.protobuf.FieldMask\022\020\n\010order_by\030\006 " + + "\001(\t\"k\n\024ListDatasetsResponse\022:\n\010datasets\030" + + "\001 \003(\0132(.google.cloud.aiplatform.v1beta1." + + "Dataset\022\027\n\017next_page_token\030\002 \001(\t\"P\n\024Dele" + + "teDatasetRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!aiplatform.googleapis.com/Dataset\"\236\001\n\021I" + + "mportDataRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!aiplatform.googleapis.com/Dataset\022O\n\016im" + + "port_configs\030\002 \003(\01321.google.cloud.aiplat" + + "form.v1beta1.ImportDataConfigB\004\342A\001\002\"\024\n\022I" + + "mportDataResponse\"r\n\033ImportDataOperation" + + "Metadata\022S\n\020generic_metadata\030\001 \001(\01329.goo" + + "gle.cloud.aiplatform.v1beta1.GenericOper" + + "ationMetadata\"\235\001\n\021ExportDataRequest\0228\n\004n" + + "ame\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.googleapi" + + "s.com/Dataset\022N\n\rexport_config\030\002 \001(\01321.g" + "oogle.cloud.aiplatform.v1beta1.ExportDat" - + "aRequest\032\035.google.longrunning.Operation\"" - + "\214\001\312A1\n\022ExportDataResponse\022\033ExportDataOpe" - + "rationMetadata\332A\022name,export_config\202\323\344\223\002" - + "=\"8/v1beta1/{name=projects/*/locations/*" - + "/datasets/*}:export:\001*\022\316\001\n\rListDataItems" - + "\0225.google.cloud.aiplatform.v1beta1.ListD" - + "ataItemsRequest\0326.google.cloud.aiplatfor" - + "m.v1beta1.ListDataItemsResponse\"N\332A\006pare" - + "nt\202\323\344\223\002?\022=/v1beta1/{parent=projects/*/lo" - + "cations/*/datasets/*}/dataItems\022\322\001\n\017Sear" - + "chDataItems\0227.google.cloud.aiplatform.v1" - + "beta1.SearchDataItemsRequest\0328.google.cl" - + "oud.aiplatform.v1beta1.SearchDataItemsRe" - + "sponse\"L\202\323\344\223\002F\022D/v1beta1/{dataset=projec" - + "ts/*/locations/*/datasets/*}:searchDataI" - + "tems\022\332\001\n\020ListSavedQueries\0228.google.cloud" - + ".aiplatform.v1beta1.ListSavedQueriesRequ" - + "est\0329.google.cloud.aiplatform.v1beta1.Li" - + "stSavedQueriesResponse\"Q\332A\006parent\202\323\344\223\002B\022" - + "@/v1beta1/{parent=projects/*/locations/*" - + "/datasets/*}/savedQueries\022\360\001\n\020DeleteSave" - + "dQuery\0228.google.cloud.aiplatform.v1beta1" - + ".DeleteSavedQueryRequest\032\035.google.longru" - + "nning.Operation\"\202\001\312A0\n\025google.protobuf.E" - + "mpty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223" - + "\002B*@/v1beta1/{name=projects/*/locations/" - + "*/datasets/*/savedQueries/*}\022\323\001\n\021GetAnno" - + "tationSpec\0229.google.cloud.aiplatform.v1b" - + "eta1.GetAnnotationSpecRequest\032/.google.c" - + "loud.aiplatform.v1beta1.AnnotationSpec\"R" - + "\332A\004name\202\323\344\223\002E\022C/v1beta1/{name=projects/*" - + "/locations/*/datasets/*/annotationSpecs/" - + "*}\022\342\001\n\017ListAnnotations\0227.google.cloud.ai" - + "platform.v1beta1.ListAnnotationsRequest\032" - + "8.google.cloud.aiplatform.v1beta1.ListAn" - + "notationsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1b" - + "eta1/{parent=projects/*/locations/*/data" - + "sets/*/dataItems/*}/annotations\032M\312A\031aipl" - + "atform.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\352\001\n#com.g" - + "oogle.cloud.aiplatform.v1beta1B\023DatasetS" - + "erviceProtoP\001ZCcloud.google.com/go/aipla" - + "tform/apiv1beta1/aiplatformpb;aiplatform" - + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" - + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google:" - + ":Cloud::AIPlatform::V1beta1b\006proto3" + + "aConfigB\004\342A\001\002\",\n\022ExportDataResponse\022\026\n\016e" + + "xported_files\030\001 \003(\t\"\220\001\n\033ExportDataOperat" + + "ionMetadata\022S\n\020generic_metadata\030\001 \001(\01329." + + "google.cloud.aiplatform.v1beta1.GenericO" + + "perationMetadata\022\034\n\024gcs_output_directory" + + "\030\002 \001(\t\"\251\001\n\033CreateDatasetVersionRequest\022:" + + "\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform.goog" + + "leapis.com/Dataset\022N\n\017dataset_version\030\002 " + + "\001(\0132/.google.cloud.aiplatform.v1beta1.Da" + + "tasetVersionB\004\342A\001\002\"|\n%CreateDatasetVersi" + + "onOperationMetadata\022S\n\020generic_metadata\030" + + "\001 \001(\01329.google.cloud.aiplatform.v1beta1." + + "GenericOperationMetadata\"^\n\033DeleteDatase" + + "tVersionRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(" + + "aiplatform.googleapis.com/DatasetVersion" + + "\"\212\001\n\030GetDatasetVersionRequest\022?\n\004name\030\001 " + + "\001(\tB1\342A\001\002\372A*\n(aiplatform.googleapis.com/" + + "DatasetVersion\022-\n\tread_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"\356\001\n\032ListDatasetVer" + + "sionsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!a" + + "iplatform.googleapis.com/Dataset\022\024\n\006filt" + + "er\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\0223\n\tread_mask\030\005" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022\026" + + "\n\010order_by\030\006 \001(\tB\004\342A\001\001\"\201\001\n\033ListDatasetVe" + + "rsionsResponse\022I\n\020dataset_versions\030\001 \003(\013" + + "2/.google.cloud.aiplatform.v1beta1.Datas" + + "etVersion\022\027\n\017next_page_token\030\002 \001(\t\"_\n\034Re" + + "storeDatasetVersionRequest\022?\n\004name\030\001 \001(\t" + + "B1\342A\001\002\372A*\n(aiplatform.googleapis.com/Dat" + + "asetVersion\"}\n&RestoreDatasetVersionOper" + + "ationMetadata\022S\n\020generic_metadata\030\001 \001(\0132" + + "9.google.cloud.aiplatform.v1beta1.Generi" + + "cOperationMetadata\"\312\001\n\024ListDataItemsRequ" + + "est\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform" + + ".googleapis.com/Dataset\022\016\n\006filter\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-" + + "\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fiel" + + "dMask\022\020\n\010order_by\030\006 \001(\t\"o\n\025ListDataItems" + + "Response\022=\n\ndata_items\030\001 \003(\0132).google.cl" + + "oud.aiplatform.v1beta1.DataItem\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\343\004\n\026SearchDataItemsRequ" + + "est\022\034\n\022order_by_data_item\030\014 \001(\tH\000\022h\n\023ord" + + "er_by_annotation\030\r \001(\0132I.google.cloud.ai" + + "platform.v1beta1.SearchDataItemsRequest." + + "OrderByAnnotationH\000\022;\n\007dataset\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!aiplatform.googleapis.com/Dataset" + + "\022@\n\013saved_query\030\002 \001(\tB+\030\001\372A&\n$aiplatform" + + ".googleapis.com/SavedQuery\022\031\n\021data_label" + + "ing_job\030\003 \001(\t\022\030\n\020data_item_filter\030\004 \001(\t\022" + + "\036\n\022annotations_filter\030\005 \001(\tB\002\030\001\022\032\n\022annot" + + "ation_filters\030\013 \003(\t\022.\n\nfield_mask\030\006 \001(\0132" + + "\032.google.protobuf.FieldMask\022\031\n\021annotatio" + + "ns_limit\030\007 \001(\005\022\021\n\tpage_size\030\010 \001(\005\022\024\n\010ord" + + "er_by\030\t \001(\tB\002\030\001\022\022\n\npage_token\030\n \001(\t\032@\n\021O" + + "rderByAnnotation\022\031\n\013saved_query\030\001 \001(\tB\004\342" + + "A\001\002\022\020\n\010order_by\030\002 \001(\tB\007\n\005order\"z\n\027Search" + + "DataItemsResponse\022F\n\017data_item_views\030\001 \003" + + "(\0132-.google.cloud.aiplatform.v1beta1.Dat" + + "aItemView\022\027\n\017next_page_token\030\002 \001(\t\"\261\001\n\014D" + + "ataItemView\022<\n\tdata_item\030\001 \001(\0132).google." + + "cloud.aiplatform.v1beta1.DataItem\022@\n\013ann" + + "otations\030\002 \003(\0132+.google.cloud.aiplatform" + + ".v1beta1.Annotation\022!\n\031has_truncated_ann" + + "otations\030\003 \001(\010\"\315\001\n\027ListSavedQueriesReque" + + "st\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!aiplatform." + + "googleapis.com/Dataset\022\016\n\006filter\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n" + + "\tread_mask\030\005 \001(\0132\032.google.protobuf.Field" + + "Mask\022\020\n\010order_by\030\006 \001(\t\"w\n\030ListSavedQueri" + + "esResponse\022B\n\rsaved_queries\030\001 \003(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.SavedQuery\022\027" + + "\n\017next_page_token\030\002 \001(\t\"V\n\027DeleteSavedQu" + + "eryRequest\022;\n\004name\030\001 \001(\tB-\342A\001\002\372A&\n$aipla" + + "tform.googleapis.com/SavedQuery\"\212\001\n\030GetA" + + "nnotationSpecRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002" + + "\372A*\n(aiplatform.googleapis.com/Annotatio" + + "nSpec\022-\n\tread_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"\315\001\n\026ListAnnotationsRequest\022" + + ";\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"aiplatform.goo" + + "gleapis.com/DataItem\022\016\n\006filter\030\002 \001(\t\022\021\n\t" + + "page_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tr" + + "ead_mask\030\005 \001(\0132\032.google.protobuf.FieldMa" + + "sk\022\020\n\010order_by\030\006 \001(\t\"t\n\027ListAnnotationsR" + + "esponse\022@\n\013annotations\030\001 \003(\0132+.google.cl" + + "oud.aiplatform.v1beta1.Annotation\022\027\n\017nex" + + "t_page_token\030\002 \001(\t2\364 \n\016DatasetService\022\346\001" + + "\n\rCreateDataset\0225.google.cloud.aiplatfor" + + "m.v1beta1.CreateDatasetRequest\032\035.google." + + "longrunning.Operation\"\177\312A)\n\007Dataset\022\036Cre" + + "ateDatasetOperationMetadata\332A\016parent,dat" + + "aset\202\323\344\223\002<\"1/v1beta1/{parent=projects/*/" + + "locations/*}/datasets:\007dataset\022\254\001\n\nGetDa" + + "taset\0222.google.cloud.aiplatform.v1beta1." + + "GetDatasetRequest\032(.google.cloud.aiplatf" + + "orm.v1beta1.Dataset\"@\332A\004name\202\323\344\223\0023\0221/v1b" + + "eta1/{name=projects/*/locations/*/datase" + + "ts/*}\022\322\001\n\rUpdateDataset\0225.google.cloud.a" + + "iplatform.v1beta1.UpdateDatasetRequest\032(" + + ".google.cloud.aiplatform.v1beta1.Dataset" + + "\"`\332A\023dataset,update_mask\202\323\344\223\002D29/v1beta1" + + "/{dataset.name=projects/*/locations/*/da" + + "tasets/*}:\007dataset\022\277\001\n\014ListDatasets\0224.go" + + "ogle.cloud.aiplatform.v1beta1.ListDatase" + + "tsRequest\0325.google.cloud.aiplatform.v1be" + + "ta1.ListDatasetsResponse\"B\332A\006parent\202\323\344\223\002" + + "3\0221/v1beta1/{parent=projects/*/locations" + + "/*}/datasets\022\332\001\n\rDeleteDataset\0225.google." + + "cloud.aiplatform.v1beta1.DeleteDatasetRe" + + "quest\032\035.google.longrunning.Operation\"s\312A" + + "0\n\025google.protobuf.Empty\022\027DeleteOperatio" + + "nMetadata\332A\004name\202\323\344\223\0023*1/v1beta1/{name=p" + + "rojects/*/locations/*/datasets/*}\022\357\001\n\nIm" + + "portData\0222.google.cloud.aiplatform.v1bet" + + "a1.ImportDataRequest\032\035.google.longrunnin" + + "g.Operation\"\215\001\312A1\n\022ImportDataResponse\022\033I" + + "mportDataOperationMetadata\332A\023name,import" + + "_configs\202\323\344\223\002=\"8/v1beta1/{name=projects/" + + "*/locations/*/datasets/*}:import:\001*\022\356\001\n\n" + + "ExportData\0222.google.cloud.aiplatform.v1b" + + "eta1.ExportDataRequest\032\035.google.longrunn" + + "ing.Operation\"\214\001\312A1\n\022ExportDataResponse\022" + + "\033ExportDataOperationMetadata\332A\022name,expo" + + "rt_config\202\323\344\223\002=\"8/v1beta1/{name=projects" + + "/*/locations/*/datasets/*}:export:\001*\022\245\002\n" + + "\024CreateDatasetVersion\022<.google.cloud.aip" + + "latform.v1beta1.CreateDatasetVersionRequ" + + "est\032\035.google.longrunning.Operation\"\257\001\312A7" + + "\n\016DatasetVersion\022%CreateDatasetVersionOp" + + "erationMetadata\332A\026parent,dataset_version" + + "\202\323\344\223\002V\"C/v1beta1/{parent=projects/*/loca" + + "tions/*/datasets/*}/datasetVersions:\017dat" + + "aset_version\022\373\001\n\024DeleteDatasetVersion\022<." + + "google.cloud.aiplatform.v1beta1.DeleteDa" + + "tasetVersionRequest\032\035.google.longrunning" + + ".Operation\"\205\001\312A0\n\025google.protobuf.Empty\022" + + "\027DeleteOperationMetadata\332A\004name\202\323\344\223\002E*C/" + + "v1beta1/{name=projects/*/locations/*/dat" + + "asets/*/datasetVersions/*}\022\323\001\n\021GetDatase" + + "tVersion\0229.google.cloud.aiplatform.v1bet" + + "a1.GetDatasetVersionRequest\032/.google.clo" + + "ud.aiplatform.v1beta1.DatasetVersion\"R\332A" + + "\004name\202\323\344\223\002E\022C/v1beta1/{name=projects/*/l" + + "ocations/*/datasets/*/datasetVersions/*}" + + "\022\346\001\n\023ListDatasetVersions\022;.google.cloud." + + "aiplatform.v1beta1.ListDatasetVersionsRe" + + "quest\032<.google.cloud.aiplatform.v1beta1." + + "ListDatasetVersionsResponse\"T\332A\006parent\202\323" + + "\344\223\002E\022C/v1beta1/{parent=projects/*/locati" + + "ons/*/datasets/*}/datasetVersions\022\215\002\n\025Re" + + "storeDatasetVersion\022=.google.cloud.aipla" + + "tform.v1beta1.RestoreDatasetVersionReque" + + "st\032\035.google.longrunning.Operation\"\225\001\312A8\n" + + "\016DatasetVersion\022&RestoreDatasetVersionOp" + + "erationMetadata\332A\004name\202\323\344\223\002M\022K/v1beta1/{" + + "name=projects/*/locations/*/datasets/*/d" + + "atasetVersions/*}:restore\022\316\001\n\rListDataIt" + + "ems\0225.google.cloud.aiplatform.v1beta1.Li" + + "stDataItemsRequest\0326.google.cloud.aiplat" + + "form.v1beta1.ListDataItemsResponse\"N\332A\006p" + + "arent\202\323\344\223\002?\022=/v1beta1/{parent=projects/*" + + "/locations/*/datasets/*}/dataItems\022\322\001\n\017S" + + "earchDataItems\0227.google.cloud.aiplatform" + + ".v1beta1.SearchDataItemsRequest\0328.google" + + ".cloud.aiplatform.v1beta1.SearchDataItem" + + "sResponse\"L\202\323\344\223\002F\022D/v1beta1/{dataset=pro" + + "jects/*/locations/*/datasets/*}:searchDa" + + "taItems\022\332\001\n\020ListSavedQueries\0228.google.cl" + + "oud.aiplatform.v1beta1.ListSavedQueriesR" + + "equest\0329.google.cloud.aiplatform.v1beta1" + + ".ListSavedQueriesResponse\"Q\332A\006parent\202\323\344\223" + + "\002B\022@/v1beta1/{parent=projects/*/location" + + "s/*/datasets/*}/savedQueries\022\360\001\n\020DeleteS" + + "avedQuery\0228.google.cloud.aiplatform.v1be" + + "ta1.DeleteSavedQueryRequest\032\035.google.lon" + + "grunning.Operation\"\202\001\312A0\n\025google.protobu" + + "f.Empty\022\027DeleteOperationMetadata\332A\004name\202" + + "\323\344\223\002B*@/v1beta1/{name=projects/*/locatio" + + "ns/*/datasets/*/savedQueries/*}\022\323\001\n\021GetA" + + "nnotationSpec\0229.google.cloud.aiplatform." + + "v1beta1.GetAnnotationSpecRequest\032/.googl" + + "e.cloud.aiplatform.v1beta1.AnnotationSpe" + + "c\"R\332A\004name\202\323\344\223\002E\022C/v1beta1/{name=project" + + "s/*/locations/*/datasets/*/annotationSpe" + + "cs/*}\022\342\001\n\017ListAnnotations\0227.google.cloud" + + ".aiplatform.v1beta1.ListAnnotationsReque" + + "st\0328.google.cloud.aiplatform.v1beta1.Lis" + + "tAnnotationsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/" + + "v1beta1/{parent=projects/*/locations/*/d" + + "atasets/*/dataItems/*}/annotations\032M\312A\031a" + + "iplatform.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\352\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\023Datas" + + "etServiceProtoP\001ZCcloud.google.com/go/ai" + + "platform/apiv1beta1/aiplatformpb;aiplatf" + + "ormpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312" + + "\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goog" + + "le::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -351,6 +430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.AnnotationSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.DataItemProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.DatasetVersionProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.SavedQueryProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), @@ -459,16 +539,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "GenericMetadata", "GcsOutputDirectory", }); - internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Parent", "DatasetVersion", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreateDatasetVersionOperationMetadata_descriptor, new java.lang.String[] { "GenericMetadata", }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Name", "ReadMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_descriptor, + new java.lang.String[] { + "DatasetVersions", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionOperationMetadata_descriptor, @@ -476,7 +604,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenericMetadata", }); internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsRequest_descriptor, @@ -484,7 +612,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListDataItemsResponse_descriptor, @@ -492,7 +620,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItems", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsRequest_descriptor, @@ -523,7 +651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQuery", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SearchDataItemsResponse_descriptor, @@ -531,7 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItemViews", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_aiplatform_v1beta1_DataItemView_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DataItemView_descriptor, @@ -539,7 +667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataItem", "Annotations", "HasTruncatedAnnotations", }); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesRequest_descriptor, @@ -547,7 +675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListSavedQueriesResponse_descriptor, @@ -555,7 +683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SavedQueries", "NextPageToken", }); internal_static_google_cloud_aiplatform_v1beta1_DeleteSavedQueryRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_aiplatform_v1beta1_DeleteSavedQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DeleteSavedQueryRequest_descriptor, @@ -563,7 +691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GetAnnotationSpecRequest_descriptor, @@ -571,7 +699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ReadMask", }); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsRequest_descriptor, @@ -579,7 +707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "ReadMask", "OrderBy", }); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ListAnnotationsResponse_descriptor, @@ -605,6 +733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.AnnotationSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.DataItemProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.DatasetProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.DatasetVersionProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.SavedQueryProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java new file mode 100644 index 000000000000..1d308ec0849d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java @@ -0,0 +1,1557 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_version.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Describes the dataset version.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetVersion} + */ +public final class DatasetVersion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DatasetVersion) + DatasetVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetVersion.newBuilder() to construct. + private DatasetVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetVersion() { + name_ = ""; + etag_ = ""; + bigQueryDatasetName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetVersion(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetVersion.class, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIG_QUERY_DATASET_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object bigQueryDatasetName_ = ""; + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigQueryDatasetName. + */ + @java.lang.Override + public java.lang.String getBigQueryDatasetName() { + java.lang.Object ref = bigQueryDatasetName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigQueryDatasetName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigQueryDatasetName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBigQueryDatasetNameBytes() { + java.lang.Object ref = bigQueryDatasetName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigQueryDatasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigQueryDatasetName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bigQueryDatasetName_); + } + if (updateTime_ != null) { + output.writeMessage(6, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bigQueryDatasetName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bigQueryDatasetName_); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DatasetVersion)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DatasetVersion other = + (com.google.cloud.aiplatform.v1beta1.DatasetVersion) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getBigQueryDatasetName().equals(other.getBigQueryDatasetName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + BIG_QUERY_DATASET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBigQueryDatasetName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.DatasetVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes the dataset version.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DatasetVersion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DatasetVersion) + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DatasetVersion.class, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DatasetVersion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + bigQueryDatasetName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetVersionProto + .internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersion build() { + com.google.cloud.aiplatform.v1beta1.DatasetVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersion buildPartial() { + com.google.cloud.aiplatform.v1beta1.DatasetVersion result = + new com.google.cloud.aiplatform.v1beta1.DatasetVersion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DatasetVersion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bigQueryDatasetName_ = bigQueryDatasetName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DatasetVersion) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DatasetVersion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DatasetVersion other) { + if (other == com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getBigQueryDatasetName().isEmpty()) { + bigQueryDatasetName_ = other.bigQueryDatasetName_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + bigQueryDatasetName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the DatasetVersion.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp when this DatasetVersion was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Used to perform consistent read-modify-write updates. If not set, a blind
+     * "overwrite" update happens.
+     * 
+ * + * string etag = 3; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object bigQueryDatasetName_ = ""; + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigQueryDatasetName. + */ + public java.lang.String getBigQueryDatasetName() { + java.lang.Object ref = bigQueryDatasetName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bigQueryDatasetName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigQueryDatasetName. + */ + public com.google.protobuf.ByteString getBigQueryDatasetNameBytes() { + java.lang.Object ref = bigQueryDatasetName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bigQueryDatasetName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bigQueryDatasetName to set. + * @return This builder for chaining. + */ + public Builder setBigQueryDatasetName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bigQueryDatasetName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBigQueryDatasetName() { + bigQueryDatasetName_ = getDefaultInstance().getBigQueryDatasetName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the associated BigQuery dataset.
+     * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for bigQueryDatasetName to set. + * @return This builder for chaining. + */ + public Builder setBigQueryDatasetNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bigQueryDatasetName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DatasetVersion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DatasetVersion) + private static final com.google.cloud.aiplatform.v1beta1.DatasetVersion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DatasetVersion(); + } + + public static com.google.cloud.aiplatform.v1beta1.DatasetVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionName.java new file mode 100644 index 000000000000..dfb8ddad738e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DatasetVersionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATASET_DATASET_VERSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String dataset; + private final String datasetVersion; + + @Deprecated + protected DatasetVersionName() { + project = null; + location = null; + dataset = null; + datasetVersion = null; + } + + private DatasetVersionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataset = Preconditions.checkNotNull(builder.getDataset()); + datasetVersion = Preconditions.checkNotNull(builder.getDatasetVersion()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getDatasetVersion() { + return datasetVersion; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DatasetVersionName of( + String project, String location, String dataset, String datasetVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setDatasetVersion(datasetVersion) + .build(); + } + + public static String format( + String project, String location, String dataset, String datasetVersion) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataset(dataset) + .setDatasetVersion(datasetVersion) + .build() + .toString(); + } + + public static DatasetVersionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_DATASET_DATASET_VERSION.validatedMatch( + formattedString, "DatasetVersionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("dataset"), + matchMap.get("dataset_version")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DatasetVersionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATASET_DATASET_VERSION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataset != null) { + fieldMapBuilder.put("dataset", dataset); + } + if (datasetVersion != null) { + fieldMapBuilder.put("dataset_version", datasetVersion); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_DATASET_DATASET_VERSION.instantiate( + "project", + project, + "location", + location, + "dataset", + dataset, + "dataset_version", + datasetVersion); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DatasetVersionName that = ((DatasetVersionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataset, that.dataset) + && Objects.equals(this.datasetVersion, that.datasetVersion); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataset); + h *= 1000003; + h ^= Objects.hashCode(datasetVersion); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}. + */ + public static class Builder { + private String project; + private String location; + private String dataset; + private String datasetVersion; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataset() { + return dataset; + } + + public String getDatasetVersion() { + return datasetVersion; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataset(String dataset) { + this.dataset = dataset; + return this; + } + + public Builder setDatasetVersion(String datasetVersion) { + this.datasetVersion = datasetVersion; + return this; + } + + private Builder(DatasetVersionName datasetVersionName) { + this.project = datasetVersionName.project; + this.location = datasetVersionName.location; + this.dataset = datasetVersionName.dataset; + this.datasetVersion = datasetVersionName.datasetVersion; + } + + public DatasetVersionName build() { + return new DatasetVersionName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java new file mode 100644 index 000000000000..79d10c5b57c8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_version.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DatasetVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DatasetVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the DatasetVersion.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Timestamp when this DatasetVersion was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Used to perform consistent read-modify-write updates. If not set, a blind
+   * "overwrite" update happens.
+   * 
+ * + * string etag = 3; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bigQueryDatasetName. + */ + java.lang.String getBigQueryDatasetName(); + /** + * + * + *
+   * Output only. Name of the associated BigQuery dataset.
+   * 
+ * + * string big_query_dataset_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for bigQueryDatasetName. + */ + com.google.protobuf.ByteString getBigQueryDatasetNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java new file mode 100644 index 000000000000..50fa5c8e5501 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_version.proto + +package com.google.cloud.aiplatform.v1beta1; + +public final class DatasetVersionProto { + private DatasetVersionProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/aiplatform/v1beta1/datase" + + "t_version.proto\022\037google.cloud.aiplatform" + + ".v1beta1\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\325\002\n\016DatasetVersion" + + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013u" + + "pdate_time\030\006 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\022\014\n\004etag\030\003 \001(\t\022$\n\026big_query_da" + + "taset_name\030\004 \001(\tB\004\342A\001\003:\214\001\352A\210\001\n(aiplatfor" + + "m.googleapis.com/DatasetVersion\022\\project" + + "s/{project}/locations/{location}/dataset" + + "s/{dataset}/datasetVersions/{dataset_ver" + + "sion}B\352\001\n#com.google.cloud.aiplatform.v1" + + "beta1B\023DatasetVersionProtoP\001ZCcloud.goog" + + "le.com/go/aiplatform/apiv1beta1/aiplatfo" + + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DatasetVersion_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "Etag", "BigQueryDatasetName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetVersionRequest.java new file mode 100644 index 000000000000..b13c13920758 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetVersionRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.DeleteDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest} + */ +public final class DeleteDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) + DeleteDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDatasetVersionRequest.newBuilder() to construct. + private DeleteDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDatasetVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.DeleteDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..62fefaf71783 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteDatasetVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface DeleteDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java index 8d3da789c731..b27ff21da4c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndex.java @@ -727,7 +727,10 @@ public com.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig getDeployedIn * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -750,7 +753,10 @@ public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -773,7 +779,10 @@ public int getReservedIpRangesCount() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -797,7 +806,10 @@ public java.lang.String getReservedIpRanges(int index) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3593,7 +3605,10 @@ private void ensureReservedIpRangesIsMutable() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3618,7 +3633,10 @@ public com.google.protobuf.ProtocolStringList getReservedIpRangesList() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3642,7 +3660,10 @@ public int getReservedIpRangesCount() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3667,7 +3688,10 @@ public java.lang.String getReservedIpRanges(int index) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3692,7 +3716,10 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3725,7 +3752,10 @@ public Builder setReservedIpRanges(int index, java.lang.String value) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3757,7 +3787,10 @@ public Builder addReservedIpRanges(java.lang.String value) { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3786,7 +3819,10 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -3814,7 +3850,10 @@ public Builder clearReservedIpRanges() { * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java index f2860ec77419..0cf486b14a5b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedIndexOrBuilder.java @@ -507,7 +507,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -528,7 +531,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -549,7 +555,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -571,7 +580,10 @@ public interface DeployedIndexOrBuilder * * The value should be the name of the address * (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - * Example: 'vertex-ai-ip-range'. + * Example: ['vertex-ai-ip-range']. + * + * For more information about subnets and network IP ranges, please see + * https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. * * * repeated string reserved_ip_ranges = 10 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java index ea73838977c1..63842e86e122 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModel.java @@ -315,7 +315,7 @@ public com.google.protobuf.ByteString getSharedResourcesBytes() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -341,7 +341,7 @@ public java.lang.String getId() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2217,7 +2217,7 @@ public Builder setSharedResourcesBytes(com.google.protobuf.ByteString value) { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2242,7 +2242,7 @@ public java.lang.String getId() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2267,7 +2267,7 @@ public com.google.protobuf.ByteString getIdBytes() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2291,7 +2291,7 @@ public Builder setId(java.lang.String value) { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2311,7 +2311,7 @@ public Builder clearId() { * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java index f6d8bcc6feda..b9d7305f39b8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java @@ -149,7 +149,7 @@ public interface DeployedModelOrBuilder * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -164,7 +164,7 @@ public interface DeployedModelOrBuilder * Immutable. The ID of the DeployedModel. If not provided upon deployment, * Vertex AI will generate a value for this ID. * - * This value should be 1-10 characters, and valid characters are /[0-9]/. + * This value should be 1-10 characters, and valid characters are `/[0-9]/`. * * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java index d27c9988ee95..1effb33e8a32 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStore.java @@ -1827,6 +1827,699 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface DedicatedServingEndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. This field will be populated with the domain name to use for
+     * this FeatureOnlineStore
+     * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicEndpointDomainName. + */ + java.lang.String getPublicEndpointDomainName(); + /** + * + * + *
+     * Output only. This field will be populated with the domain name to use for
+     * this FeatureOnlineStore
+     * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for publicEndpointDomainName. + */ + com.google.protobuf.ByteString getPublicEndpointDomainNameBytes(); + } + /** + * + * + *
+   * The dedicated serving endpoint for this FeatureOnlineStore.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint} + */ + public static final class DedicatedServingEndpoint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) + DedicatedServingEndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use DedicatedServingEndpoint.newBuilder() to construct. + private DedicatedServingEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DedicatedServingEndpoint() { + publicEndpointDomainName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DedicatedServingEndpoint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint.class, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .Builder.class); + } + + public static final int PUBLIC_ENDPOINT_DOMAIN_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object publicEndpointDomainName_ = ""; + /** + * + * + *
+     * Output only. This field will be populated with the domain name to use for
+     * this FeatureOnlineStore
+     * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicEndpointDomainName. + */ + @java.lang.Override + public java.lang.String getPublicEndpointDomainName() { + java.lang.Object ref = publicEndpointDomainName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpointDomainName_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. This field will be populated with the domain name to use for
+     * this FeatureOnlineStore
+     * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for publicEndpointDomainName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPublicEndpointDomainNameBytes() { + java.lang.Object ref = publicEndpointDomainName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpointDomainName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpointDomainName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, publicEndpointDomainName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicEndpointDomainName_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, publicEndpointDomainName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint other = + (com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) obj; + + if (!getPublicEndpointDomainName().equals(other.getPublicEndpointDomainName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PUBLIC_ENDPOINT_DOMAIN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPublicEndpointDomainName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The dedicated serving endpoint for this FeatureOnlineStore.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .class, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + publicEndpointDomainName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStoreProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + build() { + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint result = + new com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.publicEndpointDomainName_ = publicEndpointDomainName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint other) { + if (other + == com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .getDefaultInstance()) return this; + if (!other.getPublicEndpointDomainName().isEmpty()) { + publicEndpointDomainName_ = other.publicEndpointDomainName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + publicEndpointDomainName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object publicEndpointDomainName_ = ""; + /** + * + * + *
+       * Output only. This field will be populated with the domain name to use for
+       * this FeatureOnlineStore
+       * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicEndpointDomainName. + */ + public java.lang.String getPublicEndpointDomainName() { + java.lang.Object ref = publicEndpointDomainName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + publicEndpointDomainName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. This field will be populated with the domain name to use for
+       * this FeatureOnlineStore
+       * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for publicEndpointDomainName. + */ + public com.google.protobuf.ByteString getPublicEndpointDomainNameBytes() { + java.lang.Object ref = publicEndpointDomainName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + publicEndpointDomainName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. This field will be populated with the domain name to use for
+       * this FeatureOnlineStore
+       * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The publicEndpointDomainName to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpointDomainName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + publicEndpointDomainName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. This field will be populated with the domain name to use for
+       * this FeatureOnlineStore
+       * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPublicEndpointDomainName() { + publicEndpointDomainName_ = getDefaultInstance().getPublicEndpointDomainName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. This field will be populated with the domain name to use for
+       * this FeatureOnlineStore
+       * 
+ * + * string public_endpoint_domain_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for publicEndpointDomainName to set. + * @return This builder for chaining. + */ + public Builder setPublicEndpointDomainNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publicEndpointDomainName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint) + private static final com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore + .DedicatedServingEndpoint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint(); + } + + public static com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DedicatedServingEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface EmbeddingManagementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagement) @@ -2901,6 +3594,70 @@ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.State getState() { : result; } + public static final int DEDICATED_SERVING_ENDPOINT_FIELD_NUMBER = 10; + private com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + dedicatedServingEndpoint_; + /** + * + * + *
+   * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+   * is different from common Vertex service endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dedicatedServingEndpoint field is set. + */ + @java.lang.Override + public boolean hasDedicatedServingEndpoint() { + return dedicatedServingEndpoint_ != null; + } + /** + * + * + *
+   * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+   * is different from common Vertex service endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dedicatedServingEndpoint. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + getDedicatedServingEndpoint() { + return dedicatedServingEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .getDefaultInstance() + : dedicatedServingEndpoint_; + } + /** + * + * + *
+   * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+   * is different from common Vertex service endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpointOrBuilder + getDedicatedServingEndpointOrBuilder() { + return dedicatedServingEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .getDefaultInstance() + : dedicatedServingEndpoint_; + } + public static final int EMBEDDING_MANAGEMENT_FIELD_NUMBER = 11; private com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagement embeddingManagement_; @@ -2999,6 +3756,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 8, (com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable) storageType_); } + if (dedicatedServingEndpoint_ != null) { + output.writeMessage(10, getDedicatedServingEndpoint()); + } if (embeddingManagement_ != null) { output.writeMessage(11, getEmbeddingManagement()); } @@ -3043,6 +3803,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable) storageType_); } + if (dedicatedServingEndpoint_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getDedicatedServingEndpoint()); + } if (embeddingManagement_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getEmbeddingManagement()); @@ -3075,6 +3840,10 @@ public boolean equals(final java.lang.Object obj) { if (!getEtag().equals(other.getEtag())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (state_ != other.state_) return false; + if (hasDedicatedServingEndpoint() != other.hasDedicatedServingEndpoint()) return false; + if (hasDedicatedServingEndpoint()) { + if (!getDedicatedServingEndpoint().equals(other.getDedicatedServingEndpoint())) return false; + } if (hasEmbeddingManagement() != other.hasEmbeddingManagement()) return false; if (hasEmbeddingManagement()) { if (!getEmbeddingManagement().equals(other.getEmbeddingManagement())) return false; @@ -3116,6 +3885,10 @@ public int hashCode() { } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + if (hasDedicatedServingEndpoint()) { + hash = (37 * hash) + DEDICATED_SERVING_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getDedicatedServingEndpoint().hashCode(); + } if (hasEmbeddingManagement()) { hash = (37 * hash) + EMBEDDING_MANAGEMENT_FIELD_NUMBER; hash = (53 * hash) + getEmbeddingManagement().hashCode(); @@ -3307,6 +4080,11 @@ public Builder clear() { etag_ = ""; internalGetMutableLabels().clear(); state_ = 0; + dedicatedServingEndpoint_ = null; + if (dedicatedServingEndpointBuilder_ != null) { + dedicatedServingEndpointBuilder_.dispose(); + dedicatedServingEndpointBuilder_ = null; + } embeddingManagement_ = null; if (embeddingManagementBuilder_ != null) { embeddingManagementBuilder_.dispose(); @@ -3371,6 +4149,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureOnlineStor result.state_ = state_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.dedicatedServingEndpoint_ = + dedicatedServingEndpointBuilder_ == null + ? dedicatedServingEndpoint_ + : dedicatedServingEndpointBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.embeddingManagement_ = embeddingManagementBuilder_ == null ? embeddingManagement_ @@ -3453,6 +4237,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.hasDedicatedServingEndpoint()) { + mergeDedicatedServingEndpoint(other.getDedicatedServingEndpoint()); + } if (other.hasEmbeddingManagement()) { mergeEmbeddingManagement(other.getEmbeddingManagement()); } @@ -3541,11 +4328,18 @@ public Builder mergeFrom( storageTypeCase_ = 8; break; } // case 66 + case 82: + { + input.readMessage( + getDedicatedServingEndpointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 case 90: { input.readMessage( getEmbeddingManagementFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 90 default: @@ -4775,6 +5569,232 @@ public Builder clearState() { return this; } + private com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + dedicatedServingEndpoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore + .DedicatedServingEndpointOrBuilder> + dedicatedServingEndpointBuilder_; + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dedicatedServingEndpoint field is set. + */ + public boolean hasDedicatedServingEndpoint() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dedicatedServingEndpoint. + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + getDedicatedServingEndpoint() { + if (dedicatedServingEndpointBuilder_ == null) { + return dedicatedServingEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .getDefaultInstance() + : dedicatedServingEndpoint_; + } else { + return dedicatedServingEndpointBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDedicatedServingEndpoint( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint value) { + if (dedicatedServingEndpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dedicatedServingEndpoint_ = value; + } else { + dedicatedServingEndpointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDedicatedServingEndpoint( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint.Builder + builderForValue) { + if (dedicatedServingEndpointBuilder_ == null) { + dedicatedServingEndpoint_ = builderForValue.build(); + } else { + dedicatedServingEndpointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDedicatedServingEndpoint( + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint value) { + if (dedicatedServingEndpointBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && dedicatedServingEndpoint_ != null + && dedicatedServingEndpoint_ + != com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .getDefaultInstance()) { + getDedicatedServingEndpointBuilder().mergeFrom(value); + } else { + dedicatedServingEndpoint_ = value; + } + } else { + dedicatedServingEndpointBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDedicatedServingEndpoint() { + bitField0_ = (bitField0_ & ~0x00000080); + dedicatedServingEndpoint_ = null; + if (dedicatedServingEndpointBuilder_ != null) { + dedicatedServingEndpointBuilder_.dispose(); + dedicatedServingEndpointBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint.Builder + getDedicatedServingEndpointBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDedicatedServingEndpointFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpointOrBuilder + getDedicatedServingEndpointOrBuilder() { + if (dedicatedServingEndpointBuilder_ != null) { + return dedicatedServingEndpointBuilder_.getMessageOrBuilder(); + } else { + return dedicatedServingEndpoint_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .getDefaultInstance() + : dedicatedServingEndpoint_; + } + } + /** + * + * + *
+     * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+     * is different from common Vertex service endpoint.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore + .DedicatedServingEndpointOrBuilder> + getDedicatedServingEndpointFieldBuilder() { + if (dedicatedServingEndpointBuilder_ == null) { + dedicatedServingEndpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + .Builder, + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore + .DedicatedServingEndpointOrBuilder>( + getDedicatedServingEndpoint(), getParentForChildren(), isClean()); + dedicatedServingEndpoint_ = null; + } + return dedicatedServingEndpointBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagement embeddingManagement_; private com.google.protobuf.SingleFieldBuilderV3< @@ -4796,7 +5816,7 @@ public Builder clearState() { * @return Whether the embeddingManagement field is set. */ public boolean hasEmbeddingManagement() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -4843,7 +5863,7 @@ public Builder setEmbeddingManagement( } else { embeddingManagementBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4866,7 +5886,7 @@ public Builder setEmbeddingManagement( } else { embeddingManagementBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4884,7 +5904,7 @@ public Builder setEmbeddingManagement( public Builder mergeEmbeddingManagement( com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagement value) { if (embeddingManagementBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && embeddingManagement_ != null && embeddingManagement_ != com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagement @@ -4896,7 +5916,7 @@ public Builder mergeEmbeddingManagement( } else { embeddingManagementBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4912,7 +5932,7 @@ public Builder mergeEmbeddingManagement( *
*/ public Builder clearEmbeddingManagement() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); embeddingManagement_ = null; if (embeddingManagementBuilder_ != null) { embeddingManagementBuilder_.dispose(); @@ -4934,7 +5954,7 @@ public Builder clearEmbeddingManagement() { */ public com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagement.Builder getEmbeddingManagementBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getEmbeddingManagementFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java index db6f87277913..03c094470851 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java @@ -331,6 +331,52 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.State getState(); + /** + * + * + *
+   * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+   * is different from common Vertex service endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dedicatedServingEndpoint field is set. + */ + boolean hasDedicatedServingEndpoint(); + /** + * + * + *
+   * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+   * is different from common Vertex service endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dedicatedServingEndpoint. + */ + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint + getDedicatedServingEndpoint(); + /** + * + * + *
+   * Optional. The dedicated serving endpoint for this FeatureOnlineStore, which
+   * is different from common Vertex service endpoint.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpoint dedicated_serving_endpoint = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureOnlineStore.DedicatedServingEndpointOrBuilder + getDedicatedServingEndpointOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java index 2e40ffc9f06e..52d142a272ba 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java @@ -39,6 +39,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_AutoScaling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_EmbeddingManagement_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -60,7 +64,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e_online_store.proto\022\037google.cloud.aipla" + "tform.v1beta1\032\037google/api/field_behavior" + ".proto\032\031google/api/resource.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\245\010\n\022FeatureOn" + + "e/protobuf/timestamp.proto\"\344\t\n\022FeatureOn" + "lineStore\022P\n\010bigtable\030\010 \001(\0132<.google.clo" + "ud.aiplatform.v1beta1.FeatureOnlineStore" + ".BigtableH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013creat" @@ -71,7 +75,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.v1beta1.FeatureOnlineStore.LabelsEnt" + "ryB\004\342A\001\001\022N\n\005state\030\007 \001(\01629.google.cloud.a" + "iplatform.v1beta1.FeatureOnlineStore.Sta" - + "teB\004\342A\001\003\022k\n\024embedding_management\030\013 \001(\0132G" + + "teB\004\342A\001\003\022v\n\032dedicated_serving_endpoint\030\n" + + " \001(\0132L.google.cloud.aiplatform.v1beta1.F" + + "eatureOnlineStore.DedicatedServingEndpoi" + + "ntB\004\342A\001\001\022k\n\024embedding_management\030\013 \001(\0132G" + ".google.cloud.aiplatform.v1beta1.Feature" + "OnlineStore.EmbeddingManagementB\004\342A\001\001\032\341\001" + "\n\010Bigtable\022d\n\014auto_scaling\030\001 \001(\0132H.googl" @@ -79,21 +86,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Store.Bigtable.AutoScalingB\004\342A\001\002\032o\n\013Auto" + "Scaling\022\034\n\016min_node_count\030\001 \001(\005B\004\342A\001\002\022\034\n" + "\016max_node_count\030\002 \001(\005B\004\342A\001\002\022$\n\026cpu_utili" - + "zation_target\030\003 \001(\005B\004\342A\001\001\032-\n\023EmbeddingMa" - + "nagement\022\026\n\007enabled\030\001 \001(\010B\005\342A\002\001\005\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006STABL" - + "E\020\001\022\014\n\010UPDATING\020\002:\206\001\352A\202\001\n,aiplatform.goo" - + "gleapis.com/FeatureOnlineStore\022Rprojects" - + "/{project}/locations/{location}/featureO" - + "nlineStores/{feature_online_store}B\016\n\014st" - + "orage_typeB\356\001\n#com.google.cloud.aiplatfo" - + "rm.v1beta1B\027FeatureOnlineStoreProtoP\001ZCc" - + "loud.google.com/go/aiplatform/apiv1beta1" - + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou" - + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" - + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatfo" - + "rm::V1beta1b\006proto3" + + "zation_target\030\003 \001(\005B\004\342A\001\001\032E\n\030DedicatedSe" + + "rvingEndpoint\022)\n\033public_endpoint_domain_" + + "name\030\002 \001(\tB\004\342A\001\003\032-\n\023EmbeddingManagement\022" + + "\026\n\007enabled\030\001 \001(\010B\005\342A\002\001\005\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010UP" + + "DATING\020\002:\206\001\352A\202\001\n,aiplatform.googleapis.c" + + "om/FeatureOnlineStore\022Rprojects/{project" + + "}/locations/{location}/featureOnlineStor" + + "es/{feature_online_store}B\016\n\014storage_typ" + + "eB\356\001\n#com.google.cloud.aiplatform.v1beta" + + "1B\027FeatureOnlineStoreProtoP\001ZCcloud.goog" + + "le.com/go/aiplatform/apiv1beta1/aiplatfo" + + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -116,6 +125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Etag", "Labels", "State", + "DedicatedServingEndpoint", "EmbeddingManagement", "StorageType", }); @@ -139,10 +149,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MinNodeCount", "MaxNodeCount", "CpuUtilizationTarget", }); - internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_EmbeddingManagement_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_descriptor = internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_DedicatedServingEndpoint_descriptor, + new java.lang.String[] { + "PublicEndpointDomainName", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_EmbeddingManagement_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_EmbeddingManagement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_EmbeddingManagement_descriptor, @@ -152,7 +172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_LabelsEntry_descriptor = internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_descriptor .getNestedTypes() - .get(2); + .get(3); internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_LabelsEntry_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetVersionRequest.java new file mode 100644 index 000000000000..5fd01721a752 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetVersionRequest.java @@ -0,0 +1,915 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest} + */ +public final class GetDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) + GetDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDatasetVersionRequest.newBuilder() to construct. + private GetDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDatasetVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (readMask_ != null) { + output.writeMessage(2, getReadMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset version to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + } else { + readMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); + } else { + readMask_ = value; + } + } else { + readMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public Builder clearReadMask() { + bitField0_ = (bitField0_ & ~0x00000002); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..283042b67dfd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetDatasetVersionRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface GetDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the Dataset version to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java index bb3b7a03ed46..7f6bab0a8b93 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Index.java @@ -105,7 +105,7 @@ public enum IndexUpdateMethod implements com.google.protobuf.ProtocolMessageEnum * *
      * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
-     * datapoints to update.
+     * Datapoints to update.
      * 
* * BATCH_UPDATE = 1; @@ -141,7 +141,7 @@ public enum IndexUpdateMethod implements com.google.protobuf.ProtocolMessageEnum * *
      * BatchUpdate: user can call UpdateIndex with files on Cloud Storage of
-     * datapoints to update.
+     * Datapoints to update.
      * 
* * BATCH_UPDATE = 1; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java index d049e8859870..a41bd1c0241c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java @@ -73,7 +73,7 @@ public interface RestrictionOrBuilder * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -85,7 +85,7 @@ public interface RestrictionOrBuilder * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -98,7 +98,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -110,7 +110,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -122,7 +122,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -135,7 +135,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -149,7 +149,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -161,7 +161,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -173,7 +173,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -186,7 +186,7 @@ public interface RestrictionOrBuilder * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -251,7 +251,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -274,7 +274,7 @@ public java.lang.String getNamespace() { * * *
-     * The namespace of this restriction. eg: color.
+     * The namespace of this restriction. e.g.: color.
      * 
* * string namespace = 1; @@ -303,7 +303,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -317,7 +317,7 @@ public com.google.protobuf.ProtocolStringList getAllowListList() { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -331,7 +331,7 @@ public int getAllowListCount() { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -346,7 +346,7 @@ public java.lang.String getAllowList(int index) { * * *
-     * The attributes to allow in this namespace. eg: 'red'
+     * The attributes to allow in this namespace. e.g.: 'red'
      * 
* * repeated string allow_list = 2; @@ -367,7 +367,7 @@ public com.google.protobuf.ByteString getAllowListBytes(int index) { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -381,7 +381,7 @@ public com.google.protobuf.ProtocolStringList getDenyListList() { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -395,7 +395,7 @@ public int getDenyListCount() { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -410,7 +410,7 @@ public java.lang.String getDenyList(int index) { * * *
-     * The attributes to deny in this namespace. eg: 'blue'
+     * The attributes to deny in this namespace. e.g.: 'blue'
      * 
* * repeated string deny_list = 3; @@ -855,7 +855,7 @@ public Builder mergeFrom( * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -877,7 +877,7 @@ public java.lang.String getNamespace() { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -899,7 +899,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -920,7 +920,7 @@ public Builder setNamespace(java.lang.String value) { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -937,7 +937,7 @@ public Builder clearNamespace() { * * *
-       * The namespace of this restriction. eg: color.
+       * The namespace of this restriction. e.g.: color.
        * 
* * string namespace = 1; @@ -969,7 +969,7 @@ private void ensureAllowListIsMutable() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -984,7 +984,7 @@ public com.google.protobuf.ProtocolStringList getAllowListList() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -998,7 +998,7 @@ public int getAllowListCount() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1013,7 +1013,7 @@ public java.lang.String getAllowList(int index) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1028,7 +1028,7 @@ public com.google.protobuf.ByteString getAllowListBytes(int index) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1051,7 +1051,7 @@ public Builder setAllowList(int index, java.lang.String value) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1073,7 +1073,7 @@ public Builder addAllowList(java.lang.String value) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1092,7 +1092,7 @@ public Builder addAllAllowList(java.lang.Iterable values) { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1110,7 +1110,7 @@ public Builder clearAllowList() { * * *
-       * The attributes to allow in this namespace. eg: 'red'
+       * The attributes to allow in this namespace. e.g.: 'red'
        * 
* * repeated string allow_list = 2; @@ -1143,7 +1143,7 @@ private void ensureDenyListIsMutable() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1158,7 +1158,7 @@ public com.google.protobuf.ProtocolStringList getDenyListList() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1172,7 +1172,7 @@ public int getDenyListCount() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1187,7 +1187,7 @@ public java.lang.String getDenyList(int index) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1202,7 +1202,7 @@ public com.google.protobuf.ByteString getDenyListBytes(int index) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1225,7 +1225,7 @@ public Builder setDenyList(int index, java.lang.String value) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1247,7 +1247,7 @@ public Builder addDenyList(java.lang.String value) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1266,7 +1266,7 @@ public Builder addAllDenyList(java.lang.Iterable values) { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -1284,7 +1284,7 @@ public Builder clearDenyList() { * * *
-       * The attributes to deny in this namespace. eg: 'blue'
+       * The attributes to deny in this namespace. e.g.: 'blue'
        * 
* * repeated string deny_list = 3; @@ -2175,7 +2175,7 @@ public float getFeatureVector(int index) { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2194,7 +2194,7 @@ public float getFeatureVector(int index) { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2214,7 +2214,7 @@ public float getFeatureVector(int index) { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2232,7 +2232,7 @@ public int getRestrictsCount() { *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -2250,7 +2250,7 @@ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction getRestric *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -3093,7 +3093,7 @@ private void ensureRestrictsIsMutable() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3115,7 +3115,7 @@ private void ensureRestrictsIsMutable() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3136,7 +3136,7 @@ public int getRestrictsCount() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3157,7 +3157,7 @@ public com.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction getRestric *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3185,7 +3185,7 @@ public Builder setRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3211,7 +3211,7 @@ public Builder setRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3239,7 +3239,7 @@ public Builder addRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3267,7 +3267,7 @@ public Builder addRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3292,7 +3292,7 @@ public Builder addRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3318,7 +3318,7 @@ public Builder addRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3344,7 +3344,7 @@ public Builder addAllRestricts( *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3368,7 +3368,7 @@ public Builder clearRestricts() { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3392,7 +3392,7 @@ public Builder removeRestricts(int index) { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3410,7 +3410,7 @@ public Builder removeRestricts(int index) { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3432,7 +3432,7 @@ public Builder removeRestricts(int index) { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3455,7 +3455,7 @@ public Builder removeRestricts(int index) { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3475,7 +3475,7 @@ public Builder removeRestricts(int index) { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* @@ -3496,7 +3496,7 @@ public Builder removeRestricts(int index) { *
      * Optional. List of Restrict of the datapoint, used to perform "restricted
      * searches" where boolean rule are used to filter the subset of the database
-     * eligible for matching. See:
+     * eligible for matching. This uses categorical tokens. See:
      * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapointOrBuilder.java index f53550c63e58..a3c864feff5e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapointOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapointOrBuilder.java @@ -95,7 +95,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -110,7 +110,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -125,7 +125,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -140,7 +140,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* @@ -156,7 +156,7 @@ public interface IndexDatapointOrBuilder *
    * Optional. List of Restrict of the datapoint, used to perform "restricted
    * searches" where boolean rule are used to filter the subset of the database
-   * eligible for matching. See:
+   * eligible for matching. This uses categorical tokens. See:
    * https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsRequest.java new file mode 100644 index 000000000000..839f1246a542 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsRequest.java @@ -0,0 +1,1575 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest} + */ +public final class ListDatasetVersionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) + ListDatasetVersionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetVersionsRequest.newBuilder() to construct. + private ListDatasetVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatasetVersionsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatasetVersionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int READ_MASK_FIELD_NUMBER = 5; + private com.google.protobuf.FieldMask readMask_; + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + @java.lang.Override + public boolean hasReadMask() { + return readMask_ != null; + } + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getReadMask() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (readMask_ != null) { + output.writeMessage(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (readMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (hasReadMask() != other.hasReadMask()) return false; + if (hasReadMask()) { + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + if (hasReadMask()) { + hash = (37 * hash) + READ_MASK_FIELD_NUMBER; + hash = (53 * hash) + getReadMask().hashCode(); + } + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasReadMask()) { + mergeReadMask(other.getReadMask()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the Dataset to list DatasetVersions from.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.FieldMask readMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + readMaskBuilder_; + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + public boolean hasReadMask() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + public com.google.protobuf.FieldMask getReadMask() { + if (readMaskBuilder_ == null) { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } else { + return readMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + readMask_ = value; + } else { + readMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (readMaskBuilder_ == null) { + readMask_ = builderForValue.build(); + } else { + readMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReadMask(com.google.protobuf.FieldMask value) { + if (readMaskBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && readMask_ != null + && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getReadMaskBuilder().mergeFrom(value); + } else { + readMask_ = value; + } + } else { + readMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReadMask() { + bitField0_ = (bitField0_ & ~0x00000010); + readMask_ = null; + if (readMaskBuilder_ != null) { + readMaskBuilder_.dispose(); + readMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getReadMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { + if (readMaskBuilder_ != null) { + return readMaskBuilder_.getMessageOrBuilder(); + } else { + return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; + } + } + /** + * + * + *
+     * Optional. Mask specifying which fields to read.
+     * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getReadMaskFieldBuilder() { + if (readMaskBuilder_ == null) { + readMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getReadMask(), getParentForChildren(), isClean()); + readMask_ = null; + } + return readMaskBuilder_; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetVersionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsRequestOrBuilder.java new file mode 100644 index 000000000000..10ec00aab02e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsRequestOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListDatasetVersionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the Dataset to list DatasetVersions from.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the readMask field is set. + */ + boolean hasReadMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The readMask. + */ + com.google.protobuf.FieldMask getReadMask(); + /** + * + * + *
+   * Optional. Mask specifying which fields to read.
+   * 
+ * + * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsResponse.java new file mode 100644 index 000000000000..b1f8fec4ef27 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsResponse.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse} + */ +public final class ListDatasetVersionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) + ListDatasetVersionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDatasetVersionsResponse.newBuilder() to construct. + private ListDatasetVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDatasetVersionsResponse() { + datasetVersions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDatasetVersionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.Builder.class); + } + + public static final int DATASET_VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List datasetVersions_; + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public java.util.List + getDatasetVersionsList() { + return datasetVersions_; + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public java.util.List + getDatasetVersionsOrBuilderList() { + return datasetVersions_; + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public int getDatasetVersionsCount() { + return datasetVersions_.size(); + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersions(int index) { + return datasetVersions_.get(index); + } + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder getDatasetVersionsOrBuilder( + int index) { + return datasetVersions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < datasetVersions_.size(); i++) { + output.writeMessage(1, datasetVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < datasetVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, datasetVersions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) obj; + + if (!getDatasetVersionsList().equals(other.getDatasetVersionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDatasetVersionsCount() > 0) { + hash = (37 * hash) + DATASET_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDatasetVersionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for
+   * [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (datasetVersionsBuilder_ == null) { + datasetVersions_ = java.util.Collections.emptyList(); + } else { + datasetVersions_ = null; + datasetVersionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListDatasetVersionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse result) { + if (datasetVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + datasetVersions_ = java.util.Collections.unmodifiableList(datasetVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.datasetVersions_ = datasetVersions_; + } else { + result.datasetVersions_ = datasetVersionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse.getDefaultInstance()) + return this; + if (datasetVersionsBuilder_ == null) { + if (!other.datasetVersions_.isEmpty()) { + if (datasetVersions_.isEmpty()) { + datasetVersions_ = other.datasetVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDatasetVersionsIsMutable(); + datasetVersions_.addAll(other.datasetVersions_); + } + onChanged(); + } + } else { + if (!other.datasetVersions_.isEmpty()) { + if (datasetVersionsBuilder_.isEmpty()) { + datasetVersionsBuilder_.dispose(); + datasetVersionsBuilder_ = null; + datasetVersions_ = other.datasetVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + datasetVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDatasetVersionsFieldBuilder() + : null; + } else { + datasetVersionsBuilder_.addAllMessages(other.datasetVersions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.DatasetVersion m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.DatasetVersion.parser(), + extensionRegistry); + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(m); + } else { + datasetVersionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List datasetVersions_ = + java.util.Collections.emptyList(); + + private void ensureDatasetVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + datasetVersions_ = + new java.util.ArrayList( + datasetVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetVersion, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder> + datasetVersionsBuilder_; + + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public java.util.List + getDatasetVersionsList() { + if (datasetVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(datasetVersions_); + } else { + return datasetVersionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public int getDatasetVersionsCount() { + if (datasetVersionsBuilder_ == null) { + return datasetVersions_.size(); + } else { + return datasetVersionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersions(int index) { + if (datasetVersionsBuilder_ == null) { + return datasetVersions_.get(index); + } else { + return datasetVersionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder setDatasetVersions( + int index, com.google.cloud.aiplatform.v1beta1.DatasetVersion value) { + if (datasetVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetVersionsIsMutable(); + datasetVersions_.set(index, value); + onChanged(); + } else { + datasetVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder setDatasetVersions( + int index, com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder builderForValue) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + datasetVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions(com.google.cloud.aiplatform.v1beta1.DatasetVersion value) { + if (datasetVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(value); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions( + int index, com.google.cloud.aiplatform.v1beta1.DatasetVersion value) { + if (datasetVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(index, value); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions( + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder builderForValue) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(builderForValue.build()); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder addDatasetVersions( + int index, com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder builderForValue) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + datasetVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder addAllDatasetVersions( + java.lang.Iterable values) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, datasetVersions_); + onChanged(); + } else { + datasetVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder clearDatasetVersions() { + if (datasetVersionsBuilder_ == null) { + datasetVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + datasetVersionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public Builder removeDatasetVersions(int index) { + if (datasetVersionsBuilder_ == null) { + ensureDatasetVersionsIsMutable(); + datasetVersions_.remove(index); + onChanged(); + } else { + datasetVersionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder getDatasetVersionsBuilder( + int index) { + return getDatasetVersionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder getDatasetVersionsOrBuilder( + int index) { + if (datasetVersionsBuilder_ == null) { + return datasetVersions_.get(index); + } else { + return datasetVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public java.util.List + getDatasetVersionsOrBuilderList() { + if (datasetVersionsBuilder_ != null) { + return datasetVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(datasetVersions_); + } + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder addDatasetVersionsBuilder() { + return getDatasetVersionsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance()); + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder addDatasetVersionsBuilder( + int index) { + return getDatasetVersionsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.DatasetVersion.getDefaultInstance()); + } + /** + * + * + *
+     * A list of DatasetVersions that matches the specified filter in the request.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + public java.util.List + getDatasetVersionsBuilderList() { + return getDatasetVersionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetVersion, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder> + getDatasetVersionsFieldBuilder() { + if (datasetVersionsBuilder_ == null) { + datasetVersionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.DatasetVersion, + com.google.cloud.aiplatform.v1beta1.DatasetVersion.Builder, + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder>( + datasetVersions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + datasetVersions_ = null; + } + return datasetVersionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The standard List next-page token.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDatasetVersionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsResponseOrBuilder.java new file mode 100644 index 000000000000..165d1e7e5d61 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListDatasetVersionsResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListDatasetVersionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + java.util.List getDatasetVersionsList(); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + com.google.cloud.aiplatform.v1beta1.DatasetVersion getDatasetVersions(int index); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + int getDatasetVersionsCount(); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + java.util.List + getDatasetVersionsOrBuilderList(); + /** + * + * + *
+   * A list of DatasetVersions that matches the specified filter in the request.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.DatasetVersion dataset_versions = 1; + */ + com.google.cloud.aiplatform.v1beta1.DatasetVersionOrBuilder getDatasetVersionsOrBuilder( + int index); + + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * The standard List next-page token.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java new file mode 100644 index 000000000000..c6913a7e7ea1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequest.java @@ -0,0 +1,1687 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_garden_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} + */ +public final class ListPublisherModelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) + ListPublisherModelsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPublisherModelsRequest.newBuilder() to construct. + private ListPublisherModelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPublisherModelsRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + view_ = 0; + orderBy_ = ""; + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPublisherModelsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the Publisher from which to list the PublisherModels.
+   * Format: `publishers/{publisher}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Publisher from which to list the PublisherModels.
+   * Format: `publishers/{publisher}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+   * of the previous
+   * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+   * of the previous
+   * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 5; + private int view_ = 0; + /** + * + * + *
+   * Optional. PublisherModel view specifying which fields to read.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * Optional. PublisherModel view specifying which fields to read.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModelView getView() { + com.google.cloud.aiplatform.v1beta1.PublisherModelView result = + com.google.cloud.aiplatform.v1beta1.PublisherModelView.forNumber(view_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModelView.UNRECOGNIZED + : result; + } + + public static final int ORDER_BY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + /** + * + * + *
+   * Optional. The IETF BCP-47 language code representing the language in which
+   * the publisher models' text information should be written in (see go/bcp47).
+   * If not set, by default English (en).
+   * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The IETF BCP-47 language code representing the language in which
+   * the publisher models' text information should be written in (see go/bcp47).
+   * If not set, by default English (en).
+   * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (view_ + != com.google.cloud.aiplatform.v1beta1.PublisherModelView.PUBLISHER_MODEL_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, view_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, languageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (view_ + != com.google.cloud.aiplatform.v1beta1.PublisherModelView.PUBLISHER_MODEL_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, languageCode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (view_ != other.view_) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + view_ = 0; + orderBy_ = ""; + languageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.view_ = view_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.languageCode_ = languageCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the Publisher from which to list the PublisherModels.
+     * Format: `publishers/{publisher}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Publisher from which to list the PublisherModels.
+     * Format: `publishers/{publisher}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Publisher from which to list the PublisherModels.
+     * Format: `publishers/{publisher}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Publisher from which to list the PublisherModels.
+     * Format: `publishers/{publisher}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Publisher from which to list the PublisherModels.
+     * Format: `publishers/{publisher}`
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list filter.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page size.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+     * of the previous
+     * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+     * of the previous
+     * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+     * of the previous
+     * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+     * of the previous
+     * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The standard list page token.
+     * Typically obtained via
+     * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+     * of the previous
+     * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+     * call.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
+     * Optional. PublisherModel view specifying which fields to read.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * Optional. PublisherModel view specifying which fields to read.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. PublisherModel view specifying which fields to read.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModelView getView() { + com.google.cloud.aiplatform.v1beta1.PublisherModelView result = + com.google.cloud.aiplatform.v1beta1.PublisherModelView.forNumber(view_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModelView.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. PublisherModel view specifying which fields to read.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.aiplatform.v1beta1.PublisherModelView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. PublisherModel view specifying which fields to read.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000010); + view_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A comma-separated list of fields to order by, sorted in ascending
+     * order. Use "desc" after a field name for descending.
+     * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * Optional. The IETF BCP-47 language code representing the language in which
+     * the publisher models' text information should be written in (see go/bcp47).
+     * If not set, by default English (en).
+     * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The IETF BCP-47 language code representing the language in which
+     * the publisher models' text information should be written in (see go/bcp47).
+     * If not set, by default English (en).
+     * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The IETF BCP-47 language code representing the language in which
+     * the publisher models' text information should be written in (see go/bcp47).
+     * If not set, by default English (en).
+     * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IETF BCP-47 language code representing the language in which
+     * the publisher models' text information should be written in (see go/bcp47).
+     * If not set, by default English (en).
+     * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The IETF BCP-47 language code representing the language in which
+     * the publisher models' text information should be written in (see go/bcp47).
+     * If not set, by default English (en).
+     * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublisherModelsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java new file mode 100644 index 000000000000..8975ca6ccd52 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsRequestOrBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_garden_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListPublisherModelsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Publisher from which to list the PublisherModels.
+   * Format: `publishers/{publisher}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the Publisher from which to list the PublisherModels.
+   * Format: `publishers/{publisher}`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. The standard list filter.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The standard list page size.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+   * of the previous
+   * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. The standard list page token.
+   * Typically obtained via
+   * [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token]
+   * of the previous
+   * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]
+   * call.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. PublisherModel view specifying which fields to read.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * Optional. PublisherModel view specifying which fields to read.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.aiplatform.v1beta1.PublisherModelView getView(); + + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. A comma-separated list of fields to order by, sorted in ascending
+   * order. Use "desc" after a field name for descending.
+   * 
+ * + * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. The IETF BCP-47 language code representing the language in which
+   * the publisher models' text information should be written in (see go/bcp47).
+   * If not set, by default English (en).
+   * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * Optional. The IETF BCP-47 language code representing the language in which
+   * the publisher models' text information should be written in (see go/bcp47).
+   * If not set, by default English (en).
+   * 
+ * + * string language_code = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsResponse.java new file mode 100644 index 000000000000..af1b49c687d8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsResponse.java @@ -0,0 +1,1150 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_garden_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Response message for
+ * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} + */ +public final class ListPublisherModelsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) + ListPublisherModelsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPublisherModelsResponse.newBuilder() to construct. + private ListPublisherModelsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPublisherModelsResponse() { + publisherModels_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPublisherModelsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.Builder.class); + } + + public static final int PUBLISHER_MODELS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List publisherModels_; + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + @java.lang.Override + public java.util.List + getPublisherModelsList() { + return publisherModels_; + } + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + @java.lang.Override + public java.util.List + getPublisherModelsOrBuilderList() { + return publisherModels_; + } + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + @java.lang.Override + public int getPublisherModelsCount() { + return publisherModels_.size(); + } + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModel getPublisherModels(int index) { + return publisherModels_.get(index); + } + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModelOrBuilder getPublisherModelsOrBuilder( + int index) { + return publisherModels_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListPublisherModels.page_token][] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListPublisherModels.page_token][] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < publisherModels_.size(); i++) { + output.writeMessage(1, publisherModels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < publisherModels_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, publisherModels_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) obj; + + if (!getPublisherModelsList().equals(other.getPublisherModelsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPublisherModelsCount() > 0) { + hash = (37 * hash) + PUBLISHER_MODELS_FIELD_NUMBER; + hash = (53 * hash) + getPublisherModelsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for
+   * [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (publisherModelsBuilder_ == null) { + publisherModels_ = java.util.Collections.emptyList(); + } else { + publisherModels_ = null; + publisherModelsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse result) { + if (publisherModelsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + publisherModels_ = java.util.Collections.unmodifiableList(publisherModels_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.publisherModels_ = publisherModels_; + } else { + result.publisherModels_ = publisherModelsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.getDefaultInstance()) + return this; + if (publisherModelsBuilder_ == null) { + if (!other.publisherModels_.isEmpty()) { + if (publisherModels_.isEmpty()) { + publisherModels_ = other.publisherModels_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePublisherModelsIsMutable(); + publisherModels_.addAll(other.publisherModels_); + } + onChanged(); + } + } else { + if (!other.publisherModels_.isEmpty()) { + if (publisherModelsBuilder_.isEmpty()) { + publisherModelsBuilder_.dispose(); + publisherModelsBuilder_ = null; + publisherModels_ = other.publisherModels_; + bitField0_ = (bitField0_ & ~0x00000001); + publisherModelsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPublisherModelsFieldBuilder() + : null; + } else { + publisherModelsBuilder_.addAllMessages(other.publisherModels_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.aiplatform.v1beta1.PublisherModel m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.PublisherModel.parser(), + extensionRegistry); + if (publisherModelsBuilder_ == null) { + ensurePublisherModelsIsMutable(); + publisherModels_.add(m); + } else { + publisherModelsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List publisherModels_ = + java.util.Collections.emptyList(); + + private void ensurePublisherModelsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + publisherModels_ = + new java.util.ArrayList( + publisherModels_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModelOrBuilder> + publisherModelsBuilder_; + + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public java.util.List + getPublisherModelsList() { + if (publisherModelsBuilder_ == null) { + return java.util.Collections.unmodifiableList(publisherModels_); + } else { + return publisherModelsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public int getPublisherModelsCount() { + if (publisherModelsBuilder_ == null) { + return publisherModels_.size(); + } else { + return publisherModelsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel getPublisherModels(int index) { + if (publisherModelsBuilder_ == null) { + return publisherModels_.get(index); + } else { + return publisherModelsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder setPublisherModels( + int index, com.google.cloud.aiplatform.v1beta1.PublisherModel value) { + if (publisherModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublisherModelsIsMutable(); + publisherModels_.set(index, value); + onChanged(); + } else { + publisherModelsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder setPublisherModels( + int index, com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder builderForValue) { + if (publisherModelsBuilder_ == null) { + ensurePublisherModelsIsMutable(); + publisherModels_.set(index, builderForValue.build()); + onChanged(); + } else { + publisherModelsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder addPublisherModels(com.google.cloud.aiplatform.v1beta1.PublisherModel value) { + if (publisherModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublisherModelsIsMutable(); + publisherModels_.add(value); + onChanged(); + } else { + publisherModelsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder addPublisherModels( + int index, com.google.cloud.aiplatform.v1beta1.PublisherModel value) { + if (publisherModelsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePublisherModelsIsMutable(); + publisherModels_.add(index, value); + onChanged(); + } else { + publisherModelsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder addPublisherModels( + com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder builderForValue) { + if (publisherModelsBuilder_ == null) { + ensurePublisherModelsIsMutable(); + publisherModels_.add(builderForValue.build()); + onChanged(); + } else { + publisherModelsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder addPublisherModels( + int index, com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder builderForValue) { + if (publisherModelsBuilder_ == null) { + ensurePublisherModelsIsMutable(); + publisherModels_.add(index, builderForValue.build()); + onChanged(); + } else { + publisherModelsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder addAllPublisherModels( + java.lang.Iterable values) { + if (publisherModelsBuilder_ == null) { + ensurePublisherModelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, publisherModels_); + onChanged(); + } else { + publisherModelsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder clearPublisherModels() { + if (publisherModelsBuilder_ == null) { + publisherModels_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + publisherModelsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public Builder removePublisherModels(int index) { + if (publisherModelsBuilder_ == null) { + ensurePublisherModelsIsMutable(); + publisherModels_.remove(index); + onChanged(); + } else { + publisherModelsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder getPublisherModelsBuilder( + int index) { + return getPublisherModelsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModelOrBuilder getPublisherModelsOrBuilder( + int index) { + if (publisherModelsBuilder_ == null) { + return publisherModels_.get(index); + } else { + return publisherModelsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public java.util.List + getPublisherModelsOrBuilderList() { + if (publisherModelsBuilder_ != null) { + return publisherModelsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(publisherModels_); + } + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder addPublisherModelsBuilder() { + return getPublisherModelsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.PublisherModel.getDefaultInstance()); + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder addPublisherModelsBuilder( + int index) { + return getPublisherModelsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.PublisherModel.getDefaultInstance()); + } + /** + * + * + *
+     * List of PublisherModels in the requested page.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + public java.util.List + getPublisherModelsBuilderList() { + return getPublisherModelsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModelOrBuilder> + getPublisherModelsFieldBuilder() { + if (publisherModelsBuilder_ == null) { + publisherModelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.PublisherModel, + com.google.cloud.aiplatform.v1beta1.PublisherModel.Builder, + com.google.cloud.aiplatform.v1beta1.PublisherModelOrBuilder>( + publisherModels_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + publisherModels_ = null; + } + return publisherModelsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListPublisherModels.page_token][] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListPublisherModels.page_token][] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListPublisherModels.page_token][] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListPublisherModels.page_token][] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token to retrieve next page of results.
+     * Pass to [ListPublisherModels.page_token][] to obtain that page.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPublisherModelsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsResponseOrBuilder.java new file mode 100644 index 000000000000..33585f345773 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListPublisherModelsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/model_garden_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface ListPublisherModelsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + java.util.List getPublisherModelsList(); + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + com.google.cloud.aiplatform.v1beta1.PublisherModel getPublisherModels(int index); + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + int getPublisherModelsCount(); + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + java.util.List + getPublisherModelsOrBuilderList(); + /** + * + * + *
+   * List of PublisherModels in the requested page.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.PublisherModel publisher_models = 1; + */ + com.google.cloud.aiplatform.v1beta1.PublisherModelOrBuilder getPublisherModelsOrBuilder( + int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListPublisherModels.page_token][] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * Pass to [ListPublisherModels.page_token][] to obtain that page.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java index f912d1df646a..16b24e3f11c0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenServiceProto.java @@ -31,6 +31,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_GetPublisherModelRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_GetPublisherModelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -51,24 +59,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "latform.googleapis.com/PublisherModel\022\033\n" + "\rlanguage_code\030\002 \001(\tB\004\342A\001\001\022G\n\004view\030\003 \001(\016" + "23.google.cloud.aiplatform.v1beta1.Publi" - + "sherModelViewB\004\342A\001\001*\241\001\n\022PublisherModelVi" - + "ew\022$\n PUBLISHER_MODEL_VIEW_UNSPECIFIED\020\000" - + "\022\036\n\032PUBLISHER_MODEL_VIEW_BASIC\020\001\022\035\n\031PUBL" - + "ISHER_MODEL_VIEW_FULL\020\002\022&\n\"PUBLISHER_MOD" - + "EL_VERSION_VIEW_BASIC\020\0032\233\002\n\022ModelGardenS" - + "ervice\022\265\001\n\021GetPublisherModel\0229.google.cl" - + "oud.aiplatform.v1beta1.GetPublisherModel" - + "Request\032/.google.cloud.aiplatform.v1beta" - + "1.PublisherModel\"4\332A\004name\202\323\344\223\002\'\022%/v1beta" - + "1/{name=publishers/*/models/*}\032M\312A\031aipla" - + "tform.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\356\001\n#com.go" - + "ogle.cloud.aiplatform.v1beta1B\027ModelGard" - + "enServiceProtoP\001ZCcloud.google.com/go/ai" - + "platform/apiv1beta1/aiplatformpb;aiplatf" - + "ormpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312" - + "\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Goog" - + "le::Cloud::AIPlatform::V1beta1b\006proto3" + + "sherModelViewB\004\342A\001\001\"\371\001\n\032ListPublisherMod" + + "elsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\024\n\006filt" + + "er\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\004 \001(\tB\004\342A\001\001\022G\n\004view\030\005 \001(\0162" + + "3.google.cloud.aiplatform.v1beta1.Publis" + + "herModelViewB\004\342A\001\001\022\026\n\010order_by\030\006 \001(\tB\004\342A" + + "\001\001\022\033\n\rlanguage_code\030\007 \001(\tB\004\342A\001\001\"\201\001\n\033List" + + "PublisherModelsResponse\022I\n\020publisher_mod" + + "els\030\001 \003(\0132/.google.cloud.aiplatform.v1be" + + "ta1.PublisherModel\022\027\n\017next_page_token\030\002 " + + "\001(\t*\241\001\n\022PublisherModelView\022$\n PUBLISHER_" + + "MODEL_VIEW_UNSPECIFIED\020\000\022\036\n\032PUBLISHER_MO" + + "DEL_VIEW_BASIC\020\001\022\035\n\031PUBLISHER_MODEL_VIEW" + + "_FULL\020\002\022&\n\"PUBLISHER_MODEL_VERSION_VIEW_" + + "BASIC\020\0032\346\003\n\022ModelGardenService\022\265\001\n\021GetPu" + + "blisherModel\0229.google.cloud.aiplatform.v" + + "1beta1.GetPublisherModelRequest\032/.google" + + ".cloud.aiplatform.v1beta1.PublisherModel" + + "\"4\332A\004name\202\323\344\223\002\'\022%/v1beta1/{name=publishe" + + "rs/*/models/*}\022\310\001\n\023ListPublisherModels\022;" + + ".google.cloud.aiplatform.v1beta1.ListPub" + + "lisherModelsRequest\032<.google.cloud.aipla" + + "tform.v1beta1.ListPublisherModelsRespons" + + "e\"6\332A\006parent\202\323\344\223\002\'\022%/v1beta1/{parent=pub" + + "lishers/*}/models\032M\312A\031aiplatform.googlea" + + "pis.com\322A.https://www.googleapis.com/aut" + + "h/cloud-platformB\356\001\n#com.google.cloud.ai" + + "platform.v1beta1B\027ModelGardenServiceProt" + + "oP\001ZCcloud.google.com/go/aiplatform/apiv" + + "1beta1/aiplatformpb;aiplatformpb\252\002\037Googl" + + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" + + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" + + "Platform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -88,6 +111,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "LanguageCode", "View", }); + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "View", "OrderBy", "LanguageCode", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListPublisherModelsResponse_descriptor, + new java.lang.String[] { + "PublisherModels", "NextPageToken", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java index 0adb603014cc..c60b8bb68c80 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResource.java @@ -869,7 +869,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * Peering for Vertex * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). * - * If this field is left unspecified, the resources is not peered with any + * If this field is left unspecified, the resources aren't peered with any * network. * * @@ -908,7 +908,7 @@ public java.lang.String getNetwork() { * Peering for Vertex * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). * - * If this field is left unspecified, the resources is not peered with any + * If this field is left unspecified, the resources aren't peered with any * network. * * @@ -1000,7 +1000,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpecOrBuilder getEncryption * *
    * Optional. Persistent Resource runtime spec.
-   * Used for e.g. Ray cluster configuration.
+   * For example, used for Ray cluster configuration.
    * 
* * @@ -1018,7 +1018,7 @@ public boolean hasResourceRuntimeSpec() { * *
    * Optional. Persistent Resource runtime spec.
-   * Used for e.g. Ray cluster configuration.
+   * For example, used for Ray cluster configuration.
    * 
* * @@ -1038,7 +1038,7 @@ public com.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec getResourceRuntim * *
    * Optional. Persistent Resource runtime spec.
-   * Used for e.g. Ray cluster configuration.
+   * For example, used for Ray cluster configuration.
    * 
* * @@ -1119,11 +1119,11 @@ public com.google.cloud.aiplatform.v1beta1.ResourceRuntime getResourceRuntime() * * *
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
@@ -1140,11 +1140,11 @@ public com.google.protobuf.ProtocolStringList getReservedIpRangesList() {
    *
    *
    * 
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
@@ -1161,11 +1161,11 @@ public int getReservedIpRangesCount() {
    *
    *
    * 
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
@@ -1183,11 +1183,11 @@ public java.lang.String getReservedIpRanges(int index) {
    *
    *
    * 
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
@@ -3745,7 +3745,7 @@ public Builder putAllLabels(java.util.Map va
      * Peering for Vertex
      * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering).
      *
-     * If this field is left unspecified, the resources is not peered with any
+     * If this field is left unspecified, the resources aren't peered with any
      * network.
      * 
* @@ -3783,7 +3783,7 @@ public java.lang.String getNetwork() { * Peering for Vertex * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). * - * If this field is left unspecified, the resources is not peered with any + * If this field is left unspecified, the resources aren't peered with any * network. *
* @@ -3821,7 +3821,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * Peering for Vertex * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). * - * If this field is left unspecified, the resources is not peered with any + * If this field is left unspecified, the resources aren't peered with any * network. *
* @@ -3858,7 +3858,7 @@ public Builder setNetwork(java.lang.String value) { * Peering for Vertex * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). * - * If this field is left unspecified, the resources is not peered with any + * If this field is left unspecified, the resources aren't peered with any * network. *
* @@ -3891,7 +3891,7 @@ public Builder clearNetwork() { * Peering for Vertex * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). * - * If this field is left unspecified, the resources is not peered with any + * If this field is left unspecified, the resources aren't peered with any * network. * * @@ -4146,7 +4146,7 @@ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionS * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4163,7 +4163,7 @@ public boolean hasResourceRuntimeSpec() { * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4186,7 +4186,7 @@ public com.google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec getResourceRuntim * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4212,7 +4212,7 @@ public Builder setResourceRuntimeSpec( * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4235,7 +4235,7 @@ public Builder setResourceRuntimeSpec( * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4265,7 +4265,7 @@ public Builder mergeResourceRuntimeSpec( * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4287,7 +4287,7 @@ public Builder clearResourceRuntimeSpec() { * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4305,7 +4305,7 @@ public Builder clearResourceRuntimeSpec() { * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4327,7 +4327,7 @@ public Builder clearResourceRuntimeSpec() { * *
      * Optional. Persistent Resource runtime spec.
-     * Used for e.g. Ray cluster configuration.
+     * For example, used for Ray cluster configuration.
      * 
* * @@ -4568,11 +4568,11 @@ private void ensureReservedIpRangesIsMutable() { * * *
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4591,11 +4591,11 @@ public com.google.protobuf.ProtocolStringList getReservedIpRangesList() {
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4613,11 +4613,11 @@ public int getReservedIpRangesCount() {
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4636,11 +4636,11 @@ public java.lang.String getReservedIpRanges(int index) {
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4659,11 +4659,11 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) {
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4690,11 +4690,11 @@ public Builder setReservedIpRanges(int index, java.lang.String value) {
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4720,11 +4720,11 @@ public Builder addReservedIpRanges(java.lang.String value) {
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4747,11 +4747,11 @@ public Builder addAllReservedIpRanges(java.lang.Iterable value
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
@@ -4773,11 +4773,11 @@ public Builder clearReservedIpRanges() {
      *
      *
      * 
-     * Optional. A list of names for the reserved ip ranges under the VPC network
+     * Optional. A list of names for the reserved IP ranges under the VPC network
      * that can be used for this persistent resource.
      *
-     * If set, we will deploy the persistent resource within the provided ip
-     * ranges. Otherwise, the persistent resource will be deployed to any ip
+     * If set, we will deploy the persistent resource within the provided IP
+     * ranges. Otherwise, the persistent resource is deployed to any IP
      * ranges under the provided VPC network.
      *
      * Example: ['vertex-ai-ip-range'].
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java
index 03a056ce9c37..9fa664520089 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceOrBuilder.java
@@ -433,7 +433,7 @@ java.lang.String getLabelsOrDefault(
    * Peering for Vertex
    * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering).
    *
-   * If this field is left unspecified, the resources is not peered with any
+   * If this field is left unspecified, the resources aren't peered with any
    * network.
    * 
* @@ -461,7 +461,7 @@ java.lang.String getLabelsOrDefault( * Peering for Vertex * AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). * - * If this field is left unspecified, the resources is not peered with any + * If this field is left unspecified, the resources aren't peered with any * network. *
* @@ -525,7 +525,7 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. Persistent Resource runtime spec.
-   * Used for e.g. Ray cluster configuration.
+   * For example, used for Ray cluster configuration.
    * 
* * @@ -540,7 +540,7 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. Persistent Resource runtime spec.
-   * Used for e.g. Ray cluster configuration.
+   * For example, used for Ray cluster configuration.
    * 
* * @@ -555,7 +555,7 @@ java.lang.String getLabelsOrDefault( * *
    * Optional. Persistent Resource runtime spec.
-   * Used for e.g. Ray cluster configuration.
+   * For example, used for Ray cluster configuration.
    * 
* * @@ -610,11 +610,11 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
@@ -629,11 +629,11 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
@@ -648,11 +648,11 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
@@ -668,11 +668,11 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Optional. A list of names for the reserved ip ranges under the VPC network
+   * Optional. A list of names for the reserved IP ranges under the VPC network
    * that can be used for this persistent resource.
    *
-   * If set, we will deploy the persistent resource within the provided ip
-   * ranges. Otherwise, the persistent resource will be deployed to any ip
+   * If set, we will deploy the persistent resource within the provided IP
+   * ranges. Otherwise, the persistent resource is deployed to any IP
    * ranges under the provided VPC network.
    *
    * Example: ['vertex-ai-ip-range'].
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java
index f1d624d9505e..18079591f5e5 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java
@@ -4416,7 +4416,9 @@ public com.google.protobuf.ByteString getReservedIpRangesBytes(int index) {
    * 
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; @@ -4441,7 +4443,9 @@ public java.lang.String getTemplateUri() { *
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; @@ -8312,7 +8316,9 @@ public Builder addReservedIpRangesBytes(com.google.protobuf.ByteString value) { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8336,7 +8342,9 @@ public java.lang.String getTemplateUri() { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8360,7 +8368,9 @@ public com.google.protobuf.ByteString getTemplateUriBytes() { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8383,7 +8393,9 @@ public Builder setTemplateUri(java.lang.String value) { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; @@ -8402,7 +8414,9 @@ public Builder clearTemplateUri() { *
      * A template uri from where the
      * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-     * if empty, will be downloaded.
+     * if empty, will be downloaded. Currently, only uri from Vertex Template
+     * Registry & Gallery is supported. Reference to
+     * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
      * 
* * string template_uri = 19; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index 4099793e2a28..7ee4be39315d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -724,7 +724,9 @@ java.lang.String getLabelsOrDefault( *
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; @@ -738,7 +740,9 @@ java.lang.String getLabelsOrDefault( *
    * A template uri from where the
    * [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec],
-   * if empty, will be downloaded.
+   * if empty, will be downloaded. Currently, only uri from Vertex Template
+   * Registry & Gallery is supported. Reference to
+   * https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template.
    * 
* * string template_uri = 19; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java index bc7aca42cf2f..f0f9795f64f3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpec.java @@ -85,11 +85,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * Optional. Default image for user to choose a preferred ML framework(e.g.
-   * tensorflow or Pytorch) by choosing from Vertex prebuild
-   * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * Optional. Default image for user to choose a preferred ML framework
+   * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+   * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
    * Either this or the resource_pool_images is required. Use this field if
-   * you need all the resource pools to have the same Ray image, Otherwise, use
+   * you need all the resource pools to have the same Ray image. Otherwise, use
    * the {@code resource_pool_images} field.
    * 
* @@ -113,11 +113,11 @@ public java.lang.String getImageUri() { * * *
-   * Optional. Default image for user to choose a preferred ML framework(e.g.
-   * tensorflow or Pytorch) by choosing from Vertex prebuild
-   * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * Optional. Default image for user to choose a preferred ML framework
+   * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+   * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
    * Either this or the resource_pool_images is required. Use this field if
-   * you need all the resource pools to have the same Ray image, Otherwise, use
+   * you need all the resource pools to have the same Ray image. Otherwise, use
    * the {@code resource_pool_images} field.
    * 
* @@ -170,7 +170,7 @@ public int getResourcePoolImagesCount() { * * *
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -202,7 +202,7 @@ public java.util.Map getResourcePoolImages()
    *
    *
    * 
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -225,7 +225,7 @@ public java.util.Map getResourcePoolImagesMa
    *
    *
    * 
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -256,7 +256,7 @@ public java.util.Map getResourcePoolImagesMa
    *
    *
    * 
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -294,7 +294,7 @@ public java.lang.String getResourcePoolImagesOrThrow(java.lang.String key) {
    * 
    * Optional. This will be used to indicate which resource pool will serve as
    * the Ray head node(the first node within that pool). Will use the machine
-   * from the first workerpool as the head node by default if this field is not
+   * from the first workerpool as the head node by default if this field isn't
    * set.
    * 
* @@ -320,7 +320,7 @@ public java.lang.String getHeadNodeResourcePoolId() { *
    * Optional. This will be used to indicate which resource pool will serve as
    * the Ray head node(the first node within that pool). Will use the machine
-   * from the first workerpool as the head node by default if this field is not
+   * from the first workerpool as the head node by default if this field isn't
    * set.
    * 
* @@ -775,11 +775,11 @@ public Builder mergeFrom( * * *
-     * Optional. Default image for user to choose a preferred ML framework(e.g.
-     * tensorflow or Pytorch) by choosing from Vertex prebuild
-     * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * Optional. Default image for user to choose a preferred ML framework
+     * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+     * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
      * Either this or the resource_pool_images is required. Use this field if
-     * you need all the resource pools to have the same Ray image, Otherwise, use
+     * you need all the resource pools to have the same Ray image. Otherwise, use
      * the {@code resource_pool_images} field.
      * 
* @@ -802,11 +802,11 @@ public java.lang.String getImageUri() { * * *
-     * Optional. Default image for user to choose a preferred ML framework(e.g.
-     * tensorflow or Pytorch) by choosing from Vertex prebuild
-     * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * Optional. Default image for user to choose a preferred ML framework
+     * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+     * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
      * Either this or the resource_pool_images is required. Use this field if
-     * you need all the resource pools to have the same Ray image, Otherwise, use
+     * you need all the resource pools to have the same Ray image. Otherwise, use
      * the {@code resource_pool_images} field.
      * 
* @@ -829,11 +829,11 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
-     * Optional. Default image for user to choose a preferred ML framework(e.g.
-     * tensorflow or Pytorch) by choosing from Vertex prebuild
-     * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * Optional. Default image for user to choose a preferred ML framework
+     * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+     * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
      * Either this or the resource_pool_images is required. Use this field if
-     * you need all the resource pools to have the same Ray image, Otherwise, use
+     * you need all the resource pools to have the same Ray image. Otherwise, use
      * the {@code resource_pool_images} field.
      * 
* @@ -855,11 +855,11 @@ public Builder setImageUri(java.lang.String value) { * * *
-     * Optional. Default image for user to choose a preferred ML framework(e.g.
-     * tensorflow or Pytorch) by choosing from Vertex prebuild
-     * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * Optional. Default image for user to choose a preferred ML framework
+     * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+     * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
      * Either this or the resource_pool_images is required. Use this field if
-     * you need all the resource pools to have the same Ray image, Otherwise, use
+     * you need all the resource pools to have the same Ray image. Otherwise, use
      * the {@code resource_pool_images} field.
      * 
* @@ -877,11 +877,11 @@ public Builder clearImageUri() { * * *
-     * Optional. Default image for user to choose a preferred ML framework(e.g.
-     * tensorflow or Pytorch) by choosing from Vertex prebuild
-     * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+     * Optional. Default image for user to choose a preferred ML framework
+     * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+     * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
      * Either this or the resource_pool_images is required. Use this field if
-     * you need all the resource pools to have the same Ray image, Otherwise, use
+     * you need all the resource pools to have the same Ray image. Otherwise, use
      * the {@code resource_pool_images} field.
      * 
* @@ -934,7 +934,7 @@ public int getResourcePoolImagesCount() { * * *
-     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * Optional. Required if image_uri isn't set. A map of resource_pool_id to
      * prebuild Ray image if user need to use different images for different
      * head/worker pools. This map needs to cover all the resource pool ids.
      * Example:
@@ -966,7 +966,7 @@ public java.util.Map getResourcePoolImages()
      *
      *
      * 
-     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * Optional. Required if image_uri isn't set. A map of resource_pool_id to
      * prebuild Ray image if user need to use different images for different
      * head/worker pools. This map needs to cover all the resource pool ids.
      * Example:
@@ -989,7 +989,7 @@ public java.util.Map getResourcePoolImagesMa
      *
      *
      * 
-     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * Optional. Required if image_uri isn't set. A map of resource_pool_id to
      * prebuild Ray image if user need to use different images for different
      * head/worker pools. This map needs to cover all the resource pool ids.
      * Example:
@@ -1020,7 +1020,7 @@ public java.util.Map getResourcePoolImagesMa
      *
      *
      * 
-     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * Optional. Required if image_uri isn't set. A map of resource_pool_id to
      * prebuild Ray image if user need to use different images for different
      * head/worker pools. This map needs to cover all the resource pool ids.
      * Example:
@@ -1057,7 +1057,7 @@ public Builder clearResourcePoolImages() {
      *
      *
      * 
-     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * Optional. Required if image_uri isn't set. A map of resource_pool_id to
      * prebuild Ray image if user need to use different images for different
      * head/worker pools. This map needs to cover all the resource pool ids.
      * Example:
@@ -1089,7 +1089,7 @@ public java.util.Map getMutableResourcePoolI
      *
      *
      * 
-     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * Optional. Required if image_uri isn't set. A map of resource_pool_id to
      * prebuild Ray image if user need to use different images for different
      * head/worker pools. This map needs to cover all the resource pool ids.
      * Example:
@@ -1119,7 +1119,7 @@ public Builder putResourcePoolImages(java.lang.String key, java.lang.String valu
      *
      *
      * 
-     * Optional. Required if image_uri is not set. A map of resource_pool_id to
+     * Optional. Required if image_uri isn't set. A map of resource_pool_id to
      * prebuild Ray image if user need to use different images for different
      * head/worker pools. This map needs to cover all the resource pool ids.
      * Example:
@@ -1148,7 +1148,7 @@ public Builder putAllResourcePoolImages(
      * 
      * Optional. This will be used to indicate which resource pool will serve as
      * the Ray head node(the first node within that pool). Will use the machine
-     * from the first workerpool as the head node by default if this field is not
+     * from the first workerpool as the head node by default if this field isn't
      * set.
      * 
* @@ -1173,7 +1173,7 @@ public java.lang.String getHeadNodeResourcePoolId() { *
      * Optional. This will be used to indicate which resource pool will serve as
      * the Ray head node(the first node within that pool). Will use the machine
-     * from the first workerpool as the head node by default if this field is not
+     * from the first workerpool as the head node by default if this field isn't
      * set.
      * 
* @@ -1198,7 +1198,7 @@ public com.google.protobuf.ByteString getHeadNodeResourcePoolIdBytes() { *
      * Optional. This will be used to indicate which resource pool will serve as
      * the Ray head node(the first node within that pool). Will use the machine
-     * from the first workerpool as the head node by default if this field is not
+     * from the first workerpool as the head node by default if this field isn't
      * set.
      * 
* @@ -1222,7 +1222,7 @@ public Builder setHeadNodeResourcePoolId(java.lang.String value) { *
      * Optional. This will be used to indicate which resource pool will serve as
      * the Ray head node(the first node within that pool). Will use the machine
-     * from the first workerpool as the head node by default if this field is not
+     * from the first workerpool as the head node by default if this field isn't
      * set.
      * 
* @@ -1242,7 +1242,7 @@ public Builder clearHeadNodeResourcePoolId() { *
      * Optional. This will be used to indicate which resource pool will serve as
      * the Ray head node(the first node within that pool). Will use the machine
-     * from the first workerpool as the head node by default if this field is not
+     * from the first workerpool as the head node by default if this field isn't
      * set.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java index 1672a399a91d..94b50692ea6c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RaySpecOrBuilder.java @@ -27,11 +27,11 @@ public interface RaySpecOrBuilder * * *
-   * Optional. Default image for user to choose a preferred ML framework(e.g.
-   * tensorflow or Pytorch) by choosing from Vertex prebuild
-   * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * Optional. Default image for user to choose a preferred ML framework
+   * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+   * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
    * Either this or the resource_pool_images is required. Use this field if
-   * you need all the resource pools to have the same Ray image, Otherwise, use
+   * you need all the resource pools to have the same Ray image. Otherwise, use
    * the {@code resource_pool_images} field.
    * 
* @@ -44,11 +44,11 @@ public interface RaySpecOrBuilder * * *
-   * Optional. Default image for user to choose a preferred ML framework(e.g.
-   * tensorflow or Pytorch) by choosing from Vertex prebuild
-   * images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
+   * Optional. Default image for user to choose a preferred ML framework
+   * (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt
+   * images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers).
    * Either this or the resource_pool_images is required. Use this field if
-   * you need all the resource pools to have the same Ray image, Otherwise, use
+   * you need all the resource pools to have the same Ray image. Otherwise, use
    * the {@code resource_pool_images} field.
    * 
* @@ -62,7 +62,7 @@ public interface RaySpecOrBuilder * * *
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -82,7 +82,7 @@ public interface RaySpecOrBuilder
    *
    *
    * 
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -105,7 +105,7 @@ public interface RaySpecOrBuilder
    *
    *
    * 
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -125,7 +125,7 @@ public interface RaySpecOrBuilder
    *
    *
    * 
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -149,7 +149,7 @@ java.lang.String getResourcePoolImagesOrDefault(
    *
    *
    * 
-   * Optional. Required if image_uri is not set. A map of resource_pool_id to
+   * Optional. Required if image_uri isn't set. A map of resource_pool_id to
    * prebuild Ray image if user need to use different images for different
    * head/worker pools. This map needs to cover all the resource pool ids.
    * Example:
@@ -172,7 +172,7 @@ java.lang.String getResourcePoolImagesOrDefault(
    * 
    * Optional. This will be used to indicate which resource pool will serve as
    * the Ray head node(the first node within that pool). Will use the machine
-   * from the first workerpool as the head node by default if this field is not
+   * from the first workerpool as the head node by default if this field isn't
    * set.
    * 
* @@ -187,7 +187,7 @@ java.lang.String getResourcePoolImagesOrDefault( *
    * Optional. This will be used to indicate which resource pool will serve as
    * the Ray head node(the first node within that pool). Will use the machine
-   * from the first workerpool as the head node by default if this field is not
+   * from the first workerpool as the head node by default if this field isn't
    * set.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java index 9148bddbeb83..cad44ca022f3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePool.java @@ -22,8 +22,8 @@ * * *
- * Represents the spec a group of resources of same type, e.g. machine, disk
- * and accelerators, in a PersistentResource.
+ * Represents the spec of a group of resources of the same type,
+ * for example machine type, disk, and accelerators, in a PersistentResource.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ResourcePool} @@ -852,8 +852,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Immutable. The unique ID in a PersistentResource to refer the this resource
-   * pool. User can specify it if need to use it, otherwise we will generate it
+   * Immutable. The unique ID in a PersistentResource for referring to this
+   * resource pool. User can specify it if necessary. Otherwise, it's generated
    * automatically.
    * 
* @@ -877,8 +877,8 @@ public java.lang.String getId() { * * *
-   * Immutable. The unique ID in a PersistentResource to refer the this resource
-   * pool. User can specify it if need to use it, otherwise we will generate it
+   * Immutable. The unique ID in a PersistentResource for referring to this
+   * resource pool. User can specify it if necessary. Otherwise, it's generated
    * automatically.
    * 
* @@ -1348,8 +1348,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Represents the spec a group of resources of same type, e.g. machine, disk
-   * and accelerators, in a PersistentResource.
+   * Represents the spec of a group of resources of the same type,
+   * for example machine type, disk, and accelerators, in a PersistentResource.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ResourcePool} @@ -1615,8 +1615,8 @@ public Builder mergeFrom( * * *
-     * Immutable. The unique ID in a PersistentResource to refer the this resource
-     * pool. User can specify it if need to use it, otherwise we will generate it
+     * Immutable. The unique ID in a PersistentResource for referring to this
+     * resource pool. User can specify it if necessary. Otherwise, it's generated
      * automatically.
      * 
* @@ -1639,8 +1639,8 @@ public java.lang.String getId() { * * *
-     * Immutable. The unique ID in a PersistentResource to refer the this resource
-     * pool. User can specify it if need to use it, otherwise we will generate it
+     * Immutable. The unique ID in a PersistentResource for referring to this
+     * resource pool. User can specify it if necessary. Otherwise, it's generated
      * automatically.
      * 
* @@ -1663,8 +1663,8 @@ public com.google.protobuf.ByteString getIdBytes() { * * *
-     * Immutable. The unique ID in a PersistentResource to refer the this resource
-     * pool. User can specify it if need to use it, otherwise we will generate it
+     * Immutable. The unique ID in a PersistentResource for referring to this
+     * resource pool. User can specify it if necessary. Otherwise, it's generated
      * automatically.
      * 
* @@ -1686,8 +1686,8 @@ public Builder setId(java.lang.String value) { * * *
-     * Immutable. The unique ID in a PersistentResource to refer the this resource
-     * pool. User can specify it if need to use it, otherwise we will generate it
+     * Immutable. The unique ID in a PersistentResource for referring to this
+     * resource pool. User can specify it if necessary. Otherwise, it's generated
      * automatically.
      * 
* @@ -1705,8 +1705,8 @@ public Builder clearId() { * * *
-     * Immutable. The unique ID in a PersistentResource to refer the this resource
-     * pool. User can specify it if need to use it, otherwise we will generate it
+     * Immutable. The unique ID in a PersistentResource for referring to this
+     * resource pool. User can specify it if necessary. Otherwise, it's generated
      * automatically.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java index fa7e83ef31c9..24d39a013d9b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourcePoolOrBuilder.java @@ -27,8 +27,8 @@ public interface ResourcePoolOrBuilder * * *
-   * Immutable. The unique ID in a PersistentResource to refer the this resource
-   * pool. User can specify it if need to use it, otherwise we will generate it
+   * Immutable. The unique ID in a PersistentResource for referring to this
+   * resource pool. User can specify it if necessary. Otherwise, it's generated
    * automatically.
    * 
* @@ -41,8 +41,8 @@ public interface ResourcePoolOrBuilder * * *
-   * Immutable. The unique ID in a PersistentResource to refer the this resource
-   * pool. User can specify it if need to use it, otherwise we will generate it
+   * Immutable. The unique ID in a PersistentResource for referring to this
+   * resource pool. User can specify it if necessary. Otherwise, it's generated
    * automatically.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java index 684a22181e74..3db933c774cf 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ResourceRuntimeSpec.java @@ -22,10 +22,11 @@ * * *
- * Configure runtime on a PersistentResource instance, including but may not
- * limited to:
- * * Service accounts used to run the workloads;
- * * Whether make it a dedicated Ray Cluster;
+ * Configuration for the runtime on a PersistentResource instance, including
+ * but not limited to:
+ *
+ * * Service accounts used to run the workloads.
+ * * Whether to make it a dedicated Ray Cluster.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} @@ -362,10 +363,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Configure runtime on a PersistentResource instance, including but may not
-   * limited to:
-   * * Service accounts used to run the workloads;
-   * * Whether make it a dedicated Ray Cluster;
+   * Configuration for the runtime on a PersistentResource instance, including
+   * but not limited to:
+   *
+   * * Service accounts used to run the workloads.
+   * * Whether to make it a dedicated Ray Cluster.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.ResourceRuntimeSpec} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionRequest.java new file mode 100644 index 000000000000..163c2a5a41e5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest} + */ +public final class RestoreDatasetVersionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) + RestoreDatasetVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RestoreDatasetVersionRequest.newBuilder() to construct. + private RestoreDatasetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RestoreDatasetVersionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RestoreDatasetVersionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest other = + (com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.class, + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.DatasetServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RestoreDatasetVersionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest build() { + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest result = + new com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DatasetVersion resource.
+     * Format:
+     * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) + private static final com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreDatasetVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionRequestOrBuilder.java new file mode 100644 index 000000000000..d11a246c2751 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RestoreDatasetVersionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/dataset_service.proto + +package com.google.cloud.aiplatform.v1beta1; + +public interface RestoreDatasetVersionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DatasetVersion resource.
+   * Format:
+   * `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java index 87e3d11964e6..15a3f6ca216e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequest.java @@ -1233,7 +1233,7 @@ public com.google.protobuf.ByteString getDatasetBytes() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @return The savedQuery. */ @java.lang.Override @@ -1263,7 +1263,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @return The bytes for savedQuery. */ @java.lang.Override @@ -1428,7 +1428,7 @@ public com.google.protobuf.ByteString getDataItemFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @return The annotationsFilter. */ @java.lang.Override @@ -1456,7 +1456,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @return The bytes for annotationsFilter. */ @java.lang.Override @@ -1656,7 +1656,7 @@ public int getPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @return The orderBy. */ @java.lang.Override @@ -1683,7 +1683,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @return The bytes for orderBy. */ @java.lang.Override @@ -2992,7 +2992,7 @@ public Builder setDatasetBytes(com.google.protobuf.ByteString value) { *
* * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @return The savedQuery. */ @java.lang.Deprecated @@ -3021,7 +3021,7 @@ public java.lang.String getSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -3050,7 +3050,7 @@ public com.google.protobuf.ByteString getSavedQueryBytes() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @param value The savedQuery to set. * @return This builder for chaining. */ @@ -3078,7 +3078,7 @@ public Builder setSavedQuery(java.lang.String value) { *
* * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3102,7 +3102,7 @@ public Builder clearSavedQuery() { * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @param value The bytes for savedQuery to set. * @return This builder for chaining. */ @@ -3418,7 +3418,7 @@ public Builder setDataItemFilterBytes(com.google.protobuf.ByteString value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -3445,7 +3445,7 @@ public java.lang.String getAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -3472,7 +3472,7 @@ public com.google.protobuf.ByteString getAnnotationsFilterBytes() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @param value The annotationsFilter to set. * @return This builder for chaining. */ @@ -3498,7 +3498,7 @@ public Builder setAnnotationsFilter(java.lang.String value) { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3520,7 +3520,7 @@ public Builder clearAnnotationsFilter() { * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @param value The bytes for annotationsFilter to set. * @return This builder for chaining. */ @@ -4061,7 +4061,7 @@ public Builder clearPageSize() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @return The orderBy. */ @java.lang.Deprecated @@ -4087,7 +4087,7 @@ public java.lang.String getOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @return The bytes for orderBy. */ @java.lang.Deprecated @@ -4113,7 +4113,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @param value The orderBy to set. * @return This builder for chaining. */ @@ -4138,7 +4138,7 @@ public Builder setOrderBy(java.lang.String value) { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4159,7 +4159,7 @@ public Builder clearOrderBy() { * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @param value The bytes for orderBy to set. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java index a6c3add561c0..4f3e75ddd0c7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SearchDataItemsRequestOrBuilder.java @@ -153,7 +153,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @return The savedQuery. */ @java.lang.Deprecated @@ -172,7 +172,7 @@ public interface SearchDataItemsRequestOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.saved_query is deprecated. - * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=463 + * See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=626 * @return The bytes for savedQuery. */ @java.lang.Deprecated @@ -270,7 +270,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @return The annotationsFilter. */ @java.lang.Deprecated @@ -287,7 +287,7 @@ public interface SearchDataItemsRequestOrBuilder * string annotations_filter = 5 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.annotations_filter is - * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=494 + * deprecated. See google/cloud/aiplatform/v1beta1/dataset_service.proto;l=657 * @return The bytes for annotationsFilter. */ @java.lang.Deprecated @@ -438,7 +438,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @return The orderBy. */ @java.lang.Deprecated @@ -454,7 +454,7 @@ public interface SearchDataItemsRequestOrBuilder * string order_by = 9 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.order_by is deprecated. See - * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=518 + * google/cloud/aiplatform/v1beta1/dataset_service.proto;l=681 * @return The bytes for orderBy. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpec.java index ed0f65dc39d9..27cbaa492bcd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpec.java @@ -69,9 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. If true, custom user-managed service account is enforced to run
-   * any workloads (e.g. Vertex Jobs) on the resource; Otherwise, will always
-   * use [Vertex AI Custom Code Service
-   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses
+   * the [Vertex AI Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
    * 
* * bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -93,16 +93,16 @@ public boolean getEnableCustomServiceAccount() { *
    * Optional. Default service account that this PersistentResource's workloads
    * run as. The workloads include:
+   *
    *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-   *  e.g. Ray;
+   *    for example, Ray.
    *  * Jobs submitted to PersistentResource, if no other service account
-   *  specified in the job specs.
-   *
+   *    specified in the job specs.
    *
    * Only works when custom service account is enabled and users have the
    * `iam.serviceAccounts.actAs` permission on this service account.
    *
-   * Required if any containers specified in `ResourceRuntimeSpec`.
+   * Required if any containers are specified in `ResourceRuntimeSpec`.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -127,16 +127,16 @@ public java.lang.String getServiceAccount() { *
    * Optional. Default service account that this PersistentResource's workloads
    * run as. The workloads include:
+   *
    *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-   *  e.g. Ray;
+   *    for example, Ray.
    *  * Jobs submitted to PersistentResource, if no other service account
-   *  specified in the job specs.
-   *
+   *    specified in the job specs.
    *
    * Only works when custom service account is enabled and users have the
    * `iam.serviceAccounts.actAs` permission on this service account.
    *
-   * Required if any containers specified in `ResourceRuntimeSpec`.
+   * Required if any containers are specified in `ResourceRuntimeSpec`.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -527,9 +527,9 @@ public Builder mergeFrom( * *
      * Required. If true, custom user-managed service account is enforced to run
-     * any workloads (e.g. Vertex Jobs) on the resource; Otherwise, will always
-     * use [Vertex AI Custom Code Service
-     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses
+     * the [Vertex AI Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
      * 
* * bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -546,9 +546,9 @@ public boolean getEnableCustomServiceAccount() { * *
      * Required. If true, custom user-managed service account is enforced to run
-     * any workloads (e.g. Vertex Jobs) on the resource; Otherwise, will always
-     * use [Vertex AI Custom Code Service
-     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses
+     * the [Vertex AI Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
      * 
* * bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -569,9 +569,9 @@ public Builder setEnableCustomServiceAccount(boolean value) { * *
      * Required. If true, custom user-managed service account is enforced to run
-     * any workloads (e.g. Vertex Jobs) on the resource; Otherwise, will always
-     * use [Vertex AI Custom Code Service
-     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses
+     * the [Vertex AI Custom Code Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
      * 
* * bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -593,16 +593,16 @@ public Builder clearEnableCustomServiceAccount() { *
      * Optional. Default service account that this PersistentResource's workloads
      * run as. The workloads include:
+     *
      *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-     *  e.g. Ray;
+     *    for example, Ray.
      *  * Jobs submitted to PersistentResource, if no other service account
-     *  specified in the job specs.
-     *
+     *    specified in the job specs.
      *
      * Only works when custom service account is enabled and users have the
      * `iam.serviceAccounts.actAs` permission on this service account.
      *
-     * Required if any containers specified in `ResourceRuntimeSpec`.
+     * Required if any containers are specified in `ResourceRuntimeSpec`.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -626,16 +626,16 @@ public java.lang.String getServiceAccount() { *
      * Optional. Default service account that this PersistentResource's workloads
      * run as. The workloads include:
+     *
      *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-     *  e.g. Ray;
+     *    for example, Ray.
      *  * Jobs submitted to PersistentResource, if no other service account
-     *  specified in the job specs.
-     *
+     *    specified in the job specs.
      *
      * Only works when custom service account is enabled and users have the
      * `iam.serviceAccounts.actAs` permission on this service account.
      *
-     * Required if any containers specified in `ResourceRuntimeSpec`.
+     * Required if any containers are specified in `ResourceRuntimeSpec`.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -659,16 +659,16 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { *
      * Optional. Default service account that this PersistentResource's workloads
      * run as. The workloads include:
+     *
      *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-     *  e.g. Ray;
+     *    for example, Ray.
      *  * Jobs submitted to PersistentResource, if no other service account
-     *  specified in the job specs.
-     *
+     *    specified in the job specs.
      *
      * Only works when custom service account is enabled and users have the
      * `iam.serviceAccounts.actAs` permission on this service account.
      *
-     * Required if any containers specified in `ResourceRuntimeSpec`.
+     * Required if any containers are specified in `ResourceRuntimeSpec`.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -691,16 +691,16 @@ public Builder setServiceAccount(java.lang.String value) { *
      * Optional. Default service account that this PersistentResource's workloads
      * run as. The workloads include:
+     *
      *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-     *  e.g. Ray;
+     *    for example, Ray.
      *  * Jobs submitted to PersistentResource, if no other service account
-     *  specified in the job specs.
-     *
+     *    specified in the job specs.
      *
      * Only works when custom service account is enabled and users have the
      * `iam.serviceAccounts.actAs` permission on this service account.
      *
-     * Required if any containers specified in `ResourceRuntimeSpec`.
+     * Required if any containers are specified in `ResourceRuntimeSpec`.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -719,16 +719,16 @@ public Builder clearServiceAccount() { *
      * Optional. Default service account that this PersistentResource's workloads
      * run as. The workloads include:
+     *
      *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-     *  e.g. Ray;
+     *    for example, Ray.
      *  * Jobs submitted to PersistentResource, if no other service account
-     *  specified in the job specs.
-     *
+     *    specified in the job specs.
      *
      * Only works when custom service account is enabled and users have the
      * `iam.serviceAccounts.actAs` permission on this service account.
      *
-     * Required if any containers specified in `ResourceRuntimeSpec`.
+     * Required if any containers are specified in `ResourceRuntimeSpec`.
      * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpecOrBuilder.java index 5202a94d7e19..49a5b849da52 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ServiceAccountSpecOrBuilder.java @@ -28,9 +28,9 @@ public interface ServiceAccountSpecOrBuilder * *
    * Required. If true, custom user-managed service account is enforced to run
-   * any workloads (e.g. Vertex Jobs) on the resource; Otherwise, will always
-   * use [Vertex AI Custom Code Service
-   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses
+   * the [Vertex AI Custom Code Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
    * 
* * bool enable_custom_service_account = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -45,16 +45,16 @@ public interface ServiceAccountSpecOrBuilder *
    * Optional. Default service account that this PersistentResource's workloads
    * run as. The workloads include:
+   *
    *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-   *  e.g. Ray;
+   *    for example, Ray.
    *  * Jobs submitted to PersistentResource, if no other service account
-   *  specified in the job specs.
-   *
+   *    specified in the job specs.
    *
    * Only works when custom service account is enabled and users have the
    * `iam.serviceAccounts.actAs` permission on this service account.
    *
-   * Required if any containers specified in `ResourceRuntimeSpec`.
+   * Required if any containers are specified in `ResourceRuntimeSpec`.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -68,16 +68,16 @@ public interface ServiceAccountSpecOrBuilder *
    * Optional. Default service account that this PersistentResource's workloads
    * run as. The workloads include:
+   *
    *  * Any runtime specified via `ResourceRuntimeSpec` on creation time,
-   *  e.g. Ray;
+   *    for example, Ray.
    *  * Jobs submitted to PersistentResource, if no other service account
-   *  specified in the job specs.
-   *
+   *    specified in the job specs.
    *
    * Only works when custom service account is enabled and users have the
    * `iam.serviceAccounts.actAs` permission on this service account.
    *
-   * Required if any containers specified in `ResourceRuntimeSpec`.
+   * Required if any containers are specified in `ResourceRuntimeSpec`.
    * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto index 07dd6c05a6f2..7822743c4ce2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -24,6 +24,7 @@ import "google/cloud/aiplatform/v1beta1/annotation.proto"; import "google/cloud/aiplatform/v1beta1/annotation_spec.proto"; import "google/cloud/aiplatform/v1beta1/data_item.proto"; import "google/cloud/aiplatform/v1beta1/dataset.proto"; +import "google/cloud/aiplatform/v1beta1/dataset_version.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/cloud/aiplatform/v1beta1/saved_query.proto"; import "google/longrunning/operations.proto"; @@ -122,6 +123,63 @@ service DatasetService { }; } + // Create a version from a Dataset. + rpc CreateDatasetVersion(CreateDatasetVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + body: "dataset_version" + }; + option (google.api.method_signature) = "parent,dataset_version"; + option (google.longrunning.operation_info) = { + response_type: "DatasetVersion" + metadata_type: "CreateDatasetVersionOperationMetadata" + }; + } + + // Deletes a Dataset version. + rpc DeleteDatasetVersion(DeleteDatasetVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Gets a Dataset version. + rpc GetDatasetVersion(GetDatasetVersionRequest) returns (DatasetVersion) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists DatasetVersions in a Dataset. + rpc ListDatasetVersions(ListDatasetVersionsRequest) + returns (ListDatasetVersionsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/datasetVersions" + }; + option (google.api.method_signature) = "parent"; + } + + // Restores a dataset version. + rpc RestoreDatasetVersion(RestoreDatasetVersionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/datasets/*/datasetVersions/*}:restore" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "DatasetVersion" + metadata_type: "RestoreDatasetVersionOperationMetadata" + }; + } + // Lists DataItems in a Dataset. rpc ListDataItems(ListDataItemsRequest) returns (ListDataItemsResponse) { option (google.api.http) = { @@ -369,6 +427,25 @@ message ExportDataOperationMetadata { string gcs_output_directory = 2; } +// Request message for +// [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion]. +message CreateDatasetVersionRequest { + // Required. The name of the Dataset resource. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Required. The version to be created. The same CMEK policies with the + // original Dataset will be applied the dataset version. So here we don't need + // to specify the EncryptionSpecType here. + DatasetVersion dataset_version = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Runtime operation information for // [DatasetService.CreateDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion]. message CreateDatasetVersionOperationMetadata { @@ -376,6 +453,92 @@ message CreateDatasetVersionOperationMetadata { GenericOperationMetadata generic_metadata = 1; } +// Request message for +// [DatasetService.DeleteDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetVersion]. +message DeleteDatasetVersionRequest { + // Required. The resource name of the Dataset version to delete. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } + ]; +} + +// Request message for +// [DatasetService.GetDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetVersion]. +message GetDatasetVersionRequest { + // Required. The resource name of the Dataset version to delete. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } + ]; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 2; +} + +// Request message for +// [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions]. +message ListDatasetVersionsRequest { + // Required. The resource name of the Dataset to list DatasetVersions from. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Optional. The standard list filter. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page size. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. + string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [DatasetService.ListDatasetVersions][google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions]. +message ListDatasetVersionsResponse { + // A list of DatasetVersions that matches the specified filter in the request. + repeated DatasetVersion dataset_versions = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + +// Request message for +// [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion]. +message RestoreDatasetVersionRequest { + // Required. The name of the DatasetVersion resource. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DatasetVersion" + } + ]; +} + // Runtime operation information for // [DatasetService.RestoreDatasetVersion][google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion]. message RestoreDatasetVersionOperationMetadata { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto new file mode 100644 index 000000000000..7bac1f0deedc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto @@ -0,0 +1,55 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "DatasetVersionProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Describes the dataset version. +message DatasetVersion { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/DatasetVersion" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}" + }; + + // Output only. The resource name of the DatasetVersion. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DatasetVersion was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DatasetVersion was last updated. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 3; + + // Output only. Name of the associated BigQuery dataset. + string big_query_dataset_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index 7b787eb9efb9..c8023626a918 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -171,7 +171,7 @@ message DeployedModel { // Immutable. The ID of the DeployedModel. If not provided upon deployment, // Vertex AI will generate a value for this ID. // - // This value should be 1-10 characters, and valid characters are /[0-9]/. + // This value should be 1-10 characters, and valid characters are `/[0-9]/`. string id = 1 [(google.api.field_behavior) = IMMUTABLE]; // Required. The resource name of the Model that this is the deployment of. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto index d1e80ad85bde..b8b45a25b9b7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto @@ -60,6 +60,14 @@ message FeatureOnlineStore { AutoScaling auto_scaling = 1 [(google.api.field_behavior) = REQUIRED]; } + // The dedicated serving endpoint for this FeatureOnlineStore. + message DedicatedServingEndpoint { + // Output only. This field will be populated with the domain name to use for + // this FeatureOnlineStore + string public_endpoint_domain_name = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Contains settings for embedding management. message EmbeddingManagement { // Optional. Immutable. Whether to enable embedding management in this @@ -127,6 +135,11 @@ message FeatureOnlineStore { // Output only. State of the featureOnlineStore. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. The dedicated serving endpoint for this FeatureOnlineStore, which + // is different from common Vertex service endpoint. + DedicatedServingEndpoint dedicated_serving_endpoint = 10 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The settings for embedding management in FeatureOnlineStore. EmbeddingManagement embedding_management = 11 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto index bdc528903d93..465669984e99 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -953,10 +953,6 @@ message DeleteEntityTypeRequest { // Request message for // [FeatureRegistryService.CreateFeature][google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeature]. message CreateFeatureRequest { - // The resource name of the EntityType or FeatureGroup to create a Feature. - // Format: - // `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` - // `projects/{project}/locations/{location}/featureGroups/{feature_group}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto index 5799c03e662a..15345a7c615e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto @@ -45,7 +45,7 @@ message Index { INDEX_UPDATE_METHOD_UNSPECIFIED = 0; // BatchUpdate: user can call UpdateIndex with files on Cloud Storage of - // datapoints to update. + // Datapoints to update. BATCH_UPDATE = 1; // StreamUpdate: user can call UpsertDatapoints/DeleteDatapoints to update @@ -132,13 +132,13 @@ message IndexDatapoint { // Restriction of a datapoint which describe its attributes(tokens) from each // of several attribute categories(namespaces). message Restriction { - // The namespace of this restriction. eg: color. + // The namespace of this restriction. e.g.: color. string namespace = 1; - // The attributes to allow in this namespace. eg: 'red' + // The attributes to allow in this namespace. e.g.: 'red' repeated string allow_list = 2; - // The attributes to deny in this namespace. eg: 'blue' + // The attributes to deny in this namespace. e.g.: 'blue' repeated string deny_list = 3; } @@ -163,7 +163,7 @@ message IndexDatapoint { // Optional. List of Restrict of the datapoint, used to perform "restricted // searches" where boolean rule are used to filter the subset of the database - // eligible for matching. See: + // eligible for matching. This uses categorical tokens. See: // https://cloud.google.com/vertex-ai/docs/matching-engine/filtering repeated Restriction restricts = 4 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto index dbc652abf323..7c55142eacc1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -234,7 +234,10 @@ message DeployedIndex { // // The value should be the name of the address // (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) - // Example: 'vertex-ai-ip-range'. + // Example: ['vertex-ai-ip-range']. + // + // For more information about subnets and network IP ranges, please see + // https://cloud.google.com/vpc/docs/subnets#manually_created_subnet_ip_ranges. repeated string reserved_ip_ranges = 10 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto index 37a4eb33fe7a..9ff41b9d5501 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_garden_service.proto @@ -43,6 +43,15 @@ service ModelGardenService { }; option (google.api.method_signature) = "name"; } + + // Lists publisher models in Model Garden. + rpc ListPublisherModels(ListPublisherModelsRequest) + returns (ListPublisherModelsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=publishers/*}/models" + }; + option (google.api.method_signature) = "parent"; + } } // View enumeration of PublisherModel. @@ -81,3 +90,48 @@ message GetPublisherModelRequest { // Optional. PublisherModel view specifying which fields to read. PublisherModelView view = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Request message for +// [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]. +message ListPublisherModelsRequest { + // Required. The name of the Publisher from which to list the PublisherModels. + // Format: `publishers/{publisher}` + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The standard list filter. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page size. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [ListPublisherModelsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse.next_page_token] + // of the previous + // [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels] + // call. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. PublisherModel view specifying which fields to read. + PublisherModelView view = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by, sorted in ascending + // order. Use "desc" after a field name for descending. + string order_by = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The IETF BCP-47 language code representing the language in which + // the publisher models' text information should be written in (see go/bcp47). + // If not set, by default English (en). + string language_code = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [ModelGardenService.ListPublisherModels][google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels]. +message ListPublisherModelsResponse { + // List of PublisherModels in the requested page. + repeated PublisherModel publisher_models = 1; + + // A token to retrieve next page of results. + // Pass to [ListPublisherModels.page_token][] to obtain that page. + string next_page_token = 2; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto index 5cc2b3bf61d5..fd6e19fb1857 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource.proto @@ -117,7 +117,7 @@ message PersistentResource { // Peering for Vertex // AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). // - // If this field is left unspecified, the resources is not peered with any + // If this field is left unspecified, the resources aren't peered with any // network. string network = 11 [ (google.api.field_behavior) = OPTIONAL, @@ -130,7 +130,7 @@ message PersistentResource { EncryptionSpec encryption_spec = 12 [(google.api.field_behavior) = OPTIONAL]; // Optional. Persistent Resource runtime spec. - // Used for e.g. Ray cluster configuration. + // For example, used for Ray cluster configuration. ResourceRuntimeSpec resource_runtime_spec = 13 [(google.api.field_behavior) = OPTIONAL]; @@ -138,11 +138,11 @@ message PersistentResource { ResourceRuntime resource_runtime = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. A list of names for the reserved ip ranges under the VPC network + // Optional. A list of names for the reserved IP ranges under the VPC network // that can be used for this persistent resource. // - // If set, we will deploy the persistent resource within the provided ip - // ranges. Otherwise, the persistent resource will be deployed to any ip + // If set, we will deploy the persistent resource within the provided IP + // ranges. Otherwise, the persistent resource is deployed to any IP // ranges under the provided VPC network. // // Example: ['vertex-ai-ip-range']. @@ -150,8 +150,8 @@ message PersistentResource { [(google.api.field_behavior) = OPTIONAL]; } -// Represents the spec a group of resources of same type, e.g. machine, disk -// and accelerators, in a PersistentResource. +// Represents the spec of a group of resources of the same type, +// for example machine type, disk, and accelerators, in a PersistentResource. message ResourcePool { // The min/max number of replicas allowed if enabling autoscaling message AutoscalingSpec { @@ -166,8 +166,8 @@ message ResourcePool { [(google.api.field_behavior) = OPTIONAL]; } - // Immutable. The unique ID in a PersistentResource to refer the this resource - // pool. User can specify it if need to use it, otherwise we will generate it + // Immutable. The unique ID in a PersistentResource for referring to this + // resource pool. User can specify it if necessary. Otherwise, it's generated // automatically. string id = 1 [(google.api.field_behavior) = IMMUTABLE]; @@ -191,10 +191,11 @@ message ResourcePool { AutoscalingSpec autoscaling_spec = 7 [(google.api.field_behavior) = OPTIONAL]; } -// Configure runtime on a PersistentResource instance, including but may not -// limited to: -// * Service accounts used to run the workloads; -// * Whether make it a dedicated Ray Cluster; +// Configuration for the runtime on a PersistentResource instance, including +// but not limited to: +// +// * Service accounts used to run the workloads. +// * Whether to make it a dedicated Ray Cluster. message ResourceRuntimeSpec { // Optional. Configure the use of workload identity on the PersistentResource ServiceAccountSpec service_account_spec = 2 @@ -210,15 +211,15 @@ message ResourceRuntimeSpec { // cluster creation are 1:1 mapping: We will provision all the nodes within the // Persistent cluster as Ray nodes. message RaySpec { - // Optional. Default image for user to choose a preferred ML framework(e.g. - // tensorflow or Pytorch) by choosing from Vertex prebuild - // images(https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). + // Optional. Default image for user to choose a preferred ML framework + // (for example, TensorFlow or Pytorch) by choosing from [Vertex prebuilt + // images](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). // Either this or the resource_pool_images is required. Use this field if - // you need all the resource pools to have the same Ray image, Otherwise, use + // you need all the resource pools to have the same Ray image. Otherwise, use // the {@code resource_pool_images} field. string image_uri = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Required if image_uri is not set. A map of resource_pool_id to + // Optional. Required if image_uri isn't set. A map of resource_pool_id to // prebuild Ray image if user need to use different images for different // head/worker pools. This map needs to cover all the resource pool ids. // Example: @@ -232,7 +233,7 @@ message RaySpec { // Optional. This will be used to indicate which resource pool will serve as // the Ray head node(the first node within that pool). Will use the machine - // from the first workerpool as the head node by default if this field is not + // from the first workerpool as the head node by default if this field isn't // set. string head_node_resource_pool_id = 7 [(google.api.field_behavior) = OPTIONAL]; @@ -253,23 +254,23 @@ message ResourceRuntime { // Configuration for the use of custom service account to run the workloads. message ServiceAccountSpec { // Required. If true, custom user-managed service account is enforced to run - // any workloads (e.g. Vertex Jobs) on the resource; Otherwise, will always - // use [Vertex AI Custom Code Service - // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses + // the [Vertex AI Custom Code Service + // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents). bool enable_custom_service_account = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. Default service account that this PersistentResource's workloads // run as. The workloads include: + // // * Any runtime specified via `ResourceRuntimeSpec` on creation time, - // e.g. Ray; + // for example, Ray. // * Jobs submitted to PersistentResource, if no other service account - // specified in the job specs. - // + // specified in the job specs. // // Only works when custom service account is enabled and users have the // `iam.serviceAccounts.actAs` permission on this service account. // - // Required if any containers specified in `ResourceRuntimeSpec`. + // Required if any containers are specified in `ResourceRuntimeSpec`. string service_account = 2 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto index 0da3cb87783f..2213921ccbbe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto @@ -121,7 +121,7 @@ message CreatePersistentResourceRequest { // component of the PersistentResource's resource name. // // The maximum length is 63 characters, and valid characters - // are /^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/. + // are `/^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$/`. string persistent_resource_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index af06a61a4ccb..b97931f7b084 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -199,7 +199,9 @@ message PipelineJob { // A template uri from where the // [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], - // if empty, will be downloaded. + // if empty, will be downloaded. Currently, only uri from Vertex Template + // Registry & Gallery is supported. Reference to + // https://cloud.google.com/vertex-ai/docs/pipelines/create-pipeline-template. string template_uri = 19; // Output only. Pipeline template metadata. Will fill up fields if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto index ef695f43b93a..3b6d819d7bb1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -312,7 +312,7 @@ message CreatePipelineJobRequest { // generated. // // This value should be less than 128 characters, and valid characters - // are /[a-z][0-9]-/. + // are `/[a-z][0-9]-/`. string pipeline_job_id = 3; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto index 92dd2d1331f3..5f1943ba37d9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tensorboard_service.proto @@ -559,7 +559,7 @@ message CreateTensorboardExperimentRequest { // final component of the Tensorboard experiment's resource name. // // This value should be 1-128 characters, and valid characters - // are /[a-z][0-9]-/. + // are `/[a-z][0-9]-/`. string tensorboard_experiment_id = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -709,7 +709,7 @@ message CreateTensorboardRunRequest { // component of the Tensorboard run's resource name. // // This value should be 1-128 characters, and valid characters - // are /[a-z][0-9]-/. + // are `/[a-z][0-9]-/`. string tensorboard_run_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/AsyncCreateDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/AsyncCreateDatasetVersion.java new file mode 100644 index 000000000000..aeb3c7e25f52 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/AsyncCreateDatasetVersion.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_CreateDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.longrunning.Operation; + +public class AsyncCreateDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncCreateDatasetVersion(); + } + + public static void asyncCreateDatasetVersion() throws Exception { + // 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()) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setDatasetVersion(DatasetVersion.newBuilder().build()) + .build(); + ApiFuture future = + datasetServiceClient.createDatasetVersionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_CreateDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/AsyncCreateDatasetVersionLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/AsyncCreateDatasetVersionLRO.java new file mode 100644 index 000000000000..60ca43b96f5a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/AsyncCreateDatasetVersionLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_CreateDatasetVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; + +public class AsyncCreateDatasetVersionLRO { + + public static void main(String[] args) throws Exception { + asyncCreateDatasetVersionLRO(); + } + + public static void asyncCreateDatasetVersionLRO() throws Exception { + // 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()) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setDatasetVersion(DatasetVersion.newBuilder().build()) + .build(); + OperationFuture future = + datasetServiceClient.createDatasetVersionOperationCallable().futureCall(request); + // Do something. + DatasetVersion response = future.get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_CreateDatasetVersion_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersion.java new file mode 100644 index 000000000000..7a9fb7e97faf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersion.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_CreateDatasetVersion_sync] +import com.google.cloud.aiplatform.v1.CreateDatasetVersionRequest; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; + +public class SyncCreateDatasetVersion { + + public static void main(String[] args) throws Exception { + syncCreateDatasetVersion(); + } + + public static void syncCreateDatasetVersion() throws Exception { + // 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()) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setDatasetVersion(DatasetVersion.newBuilder().build()) + .build(); + DatasetVersion response = datasetServiceClient.createDatasetVersionAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_CreateDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersionDatasetnameDatasetversion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersionDatasetnameDatasetversion.java new file mode 100644 index 000000000000..058b2a6eef41 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersionDatasetnameDatasetversion.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_CreateDatasetVersion_DatasetnameDatasetversion_sync] +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; + +public class SyncCreateDatasetVersionDatasetnameDatasetversion { + + public static void main(String[] args) throws Exception { + syncCreateDatasetVersionDatasetnameDatasetversion(); + } + + public static void syncCreateDatasetVersionDatasetnameDatasetversion() throws Exception { + // 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()) { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + DatasetVersion response = + datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_CreateDatasetVersion_DatasetnameDatasetversion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersionStringDatasetversion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersionStringDatasetversion.java new file mode 100644 index 000000000000..4519997a84de --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/createdatasetversion/SyncCreateDatasetVersionStringDatasetversion.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_CreateDatasetVersion_StringDatasetversion_sync] +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; + +public class SyncCreateDatasetVersionStringDatasetversion { + + public static void main(String[] args) throws Exception { + syncCreateDatasetVersionStringDatasetversion(); + } + + public static void syncCreateDatasetVersionStringDatasetversion() throws Exception { + // 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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString(); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + DatasetVersion response = + datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_CreateDatasetVersion_StringDatasetversion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersion.java new file mode 100644 index 000000000000..11df6c850ed9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersion.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncDeleteDatasetVersion(); + } + + public static void asyncDeleteDatasetVersion() throws Exception { + // 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()) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + ApiFuture future = + datasetServiceClient.deleteDatasetVersionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersionLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersionLRO.java new file mode 100644 index 000000000000..20f13bebe567 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteDatasetVersionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteDatasetVersionLRO(); + } + + public static void asyncDeleteDatasetVersionLRO() throws Exception { + // 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()) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + OperationFuture future = + datasetServiceClient.deleteDatasetVersionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersion.java new file mode 100644 index 000000000000..29a62e72d76a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersion.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.DeleteDatasetVersionRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteDatasetVersion { + + public static void main(String[] args) throws Exception { + syncDeleteDatasetVersion(); + } + + public static void syncDeleteDatasetVersion() throws Exception { + // 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()) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + datasetServiceClient.deleteDatasetVersionAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionDatasetversionname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionDatasetversionname.java new file mode 100644 index 000000000000..41eae509990d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionDatasetversionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_Datasetversionname_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.protobuf.Empty; + +public class SyncDeleteDatasetVersionDatasetversionname { + + public static void main(String[] args) throws Exception { + syncDeleteDatasetVersionDatasetversionname(); + } + + public static void syncDeleteDatasetVersionDatasetversionname() throws Exception { + // 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()) { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + datasetServiceClient.deleteDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_Datasetversionname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionString.java new file mode 100644 index 000000000000..f3d4bb03ab07 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_String_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.protobuf.Empty; + +public class SyncDeleteDatasetVersionString { + + public static void main(String[] args) throws Exception { + syncDeleteDatasetVersionString(); + } + + public static void syncDeleteDatasetVersionString() throws Exception { + // 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 = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString(); + datasetServiceClient.deleteDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/AsyncGetDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/AsyncGetDatasetVersion.java new file mode 100644 index 000000000000..c523d01a3c65 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/AsyncGetDatasetVersion.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_GetDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.GetDatasetVersionRequest; +import com.google.protobuf.FieldMask; + +public class AsyncGetDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncGetDatasetVersion(); + } + + public static void asyncGetDatasetVersion() throws Exception { + // 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()) { + GetDatasetVersionRequest request = + GetDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + datasetServiceClient.getDatasetVersionCallable().futureCall(request); + // Do something. + DatasetVersion response = future.get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_GetDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersion.java new file mode 100644 index 000000000000..3e20a0186aac --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersion.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_GetDatasetVersion_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.GetDatasetVersionRequest; +import com.google.protobuf.FieldMask; + +public class SyncGetDatasetVersion { + + public static void main(String[] args) throws Exception { + syncGetDatasetVersion(); + } + + public static void syncGetDatasetVersion() throws Exception { + // 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()) { + GetDatasetVersionRequest request = + GetDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + DatasetVersion response = datasetServiceClient.getDatasetVersion(request); + } + } +} +// [END aiplatform_v1_generated_DatasetService_GetDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersionDatasetversionname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersionDatasetversionname.java new file mode 100644 index 000000000000..449fa9f5cc5b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersionDatasetversionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_GetDatasetVersion_Datasetversionname_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; + +public class SyncGetDatasetVersionDatasetversionname { + + public static void main(String[] args) throws Exception { + syncGetDatasetVersionDatasetversionname(); + } + + public static void syncGetDatasetVersionDatasetversionname() throws Exception { + // 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()) { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + DatasetVersion response = datasetServiceClient.getDatasetVersion(name); + } + } +} +// [END aiplatform_v1_generated_DatasetService_GetDatasetVersion_Datasetversionname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersionString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersionString.java new file mode 100644 index 000000000000..b154bbfba900 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/getdatasetversion/SyncGetDatasetVersionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_GetDatasetVersion_String_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; + +public class SyncGetDatasetVersionString { + + public static void main(String[] args) throws Exception { + syncGetDatasetVersionString(); + } + + public static void syncGetDatasetVersionString() throws Exception { + // 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 = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString(); + DatasetVersion response = datasetServiceClient.getDatasetVersion(name); + } + } +} +// [END aiplatform_v1_generated_DatasetService_GetDatasetVersion_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/AsyncListDatasetVersions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/AsyncListDatasetVersions.java new file mode 100644 index 000000000000..5d1b0b861af6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/AsyncListDatasetVersions.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_ListDatasetVersions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest; +import com.google.protobuf.FieldMask; + +public class AsyncListDatasetVersions { + + public static void main(String[] args) throws Exception { + asyncListDatasetVersions(); + } + + public static void asyncListDatasetVersions() throws Exception { + // 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()) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + datasetServiceClient.listDatasetVersionsPagedCallable().futureCall(request); + // Do something. + for (DatasetVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_DatasetService_ListDatasetVersions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/AsyncListDatasetVersionsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/AsyncListDatasetVersionsPaged.java new file mode 100644 index 000000000000..7a437e4a0698 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/AsyncListDatasetVersionsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_ListDatasetVersions_Paged_async] +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsResponse; +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; + +public class AsyncListDatasetVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListDatasetVersionsPaged(); + } + + public static void asyncListDatasetVersionsPaged() throws Exception { + // 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()) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDatasetVersionsResponse response = + datasetServiceClient.listDatasetVersionsCallable().call(request); + for (DatasetVersion element : response.getDatasetVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1_generated_DatasetService_ListDatasetVersions_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersions.java new file mode 100644 index 000000000000..f6b4ce0b9de0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_ListDatasetVersions_sync] +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.ListDatasetVersionsRequest; +import com.google.protobuf.FieldMask; + +public class SyncListDatasetVersions { + + public static void main(String[] args) throws Exception { + syncListDatasetVersions(); + } + + public static void syncListDatasetVersions() throws Exception { + // 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()) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .setOrderBy("orderBy-1207110587") + .build(); + for (DatasetVersion element : + datasetServiceClient.listDatasetVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_DatasetService_ListDatasetVersions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersionsDatasetname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersionsDatasetname.java new file mode 100644 index 000000000000..ffbf5e879e45 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersionsDatasetname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_ListDatasetVersions_Datasetname_sync] +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; + +public class SyncListDatasetVersionsDatasetname { + + public static void main(String[] args) throws Exception { + syncListDatasetVersionsDatasetname(); + } + + public static void syncListDatasetVersionsDatasetname() throws Exception { + // 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()) { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_DatasetService_ListDatasetVersions_Datasetname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersionsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersionsString.java new file mode 100644 index 000000000000..561a12b39eb6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/listdatasetversions/SyncListDatasetVersionsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_ListDatasetVersions_String_sync] +import com.google.cloud.aiplatform.v1.DatasetName; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; + +public class SyncListDatasetVersionsString { + + public static void main(String[] args) throws Exception { + syncListDatasetVersionsString(); + } + + public static void syncListDatasetVersionsString() throws Exception { + // 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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString(); + for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1_generated_DatasetService_ListDatasetVersions_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersion.java new file mode 100644 index 000000000000..b3e8500407eb --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersion.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest; +import com.google.longrunning.Operation; + +public class AsyncRestoreDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncRestoreDatasetVersion(); + } + + public static void asyncRestoreDatasetVersion() throws Exception { + // 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()) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + ApiFuture future = + datasetServiceClient.restoreDatasetVersionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersionLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersionLRO.java new file mode 100644 index 000000000000..56cd518da10b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest; + +public class AsyncRestoreDatasetVersionLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreDatasetVersionLRO(); + } + + public static void asyncRestoreDatasetVersionLRO() throws Exception { + // 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()) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + OperationFuture future = + datasetServiceClient.restoreDatasetVersionOperationCallable().futureCall(request); + // Do something. + DatasetVersion response = future.get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersion.java new file mode 100644 index 000000000000..5d77581f4e7a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersion.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; +import com.google.cloud.aiplatform.v1.RestoreDatasetVersionRequest; + +public class SyncRestoreDatasetVersion { + + public static void main(String[] args) throws Exception { + syncRestoreDatasetVersion(); + } + + public static void syncRestoreDatasetVersion() throws Exception { + // 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()) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionDatasetversionname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionDatasetversionname.java new file mode 100644 index 000000000000..cf8f9b1663d0 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionDatasetversionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_Datasetversionname_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; + +public class SyncRestoreDatasetVersionDatasetversionname { + + public static void main(String[] args) throws Exception { + syncRestoreDatasetVersionDatasetversionname(); + } + + public static void syncRestoreDatasetVersionDatasetversionname() throws Exception { + // 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()) { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_Datasetversionname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionString.java new file mode 100644 index 000000000000..c95567d64efa --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_String_sync] +import com.google.cloud.aiplatform.v1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1.DatasetVersion; +import com.google.cloud.aiplatform.v1.DatasetVersionName; + +public class SyncRestoreDatasetVersionString { + + public static void main(String[] args) throws Exception { + syncRestoreDatasetVersionString(); + } + + public static void syncRestoreDatasetVersionString() throws Exception { + // 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 = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString(); + DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/AsyncCreateDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/AsyncCreateDatasetVersion.java new file mode 100644 index 000000000000..108743239846 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/AsyncCreateDatasetVersion.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest; +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.longrunning.Operation; + +public class AsyncCreateDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncCreateDatasetVersion(); + } + + public static void asyncCreateDatasetVersion() throws Exception { + // 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()) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setDatasetVersion(DatasetVersion.newBuilder().build()) + .build(); + ApiFuture future = + datasetServiceClient.createDatasetVersionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/AsyncCreateDatasetVersionLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/AsyncCreateDatasetVersionLRO.java new file mode 100644 index 000000000000..539356714058 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/AsyncCreateDatasetVersionLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest; +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; + +public class AsyncCreateDatasetVersionLRO { + + public static void main(String[] args) throws Exception { + asyncCreateDatasetVersionLRO(); + } + + public static void asyncCreateDatasetVersionLRO() throws Exception { + // 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()) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setDatasetVersion(DatasetVersion.newBuilder().build()) + .build(); + OperationFuture future = + datasetServiceClient.createDatasetVersionOperationCallable().futureCall(request); + // Do something. + DatasetVersion response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersion.java new file mode 100644 index 000000000000..302bac95fbaa --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersion.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_sync] +import com.google.cloud.aiplatform.v1beta1.CreateDatasetVersionRequest; +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; + +public class SyncCreateDatasetVersion { + + public static void main(String[] args) throws Exception { + syncCreateDatasetVersion(); + } + + public static void syncCreateDatasetVersion() throws Exception { + // 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()) { + CreateDatasetVersionRequest request = + CreateDatasetVersionRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setDatasetVersion(DatasetVersion.newBuilder().build()) + .build(); + DatasetVersion response = datasetServiceClient.createDatasetVersionAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersionDatasetnameDatasetversion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersionDatasetnameDatasetversion.java new file mode 100644 index 000000000000..1312133de8ec --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersionDatasetnameDatasetversion.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_DatasetnameDatasetversion_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; + +public class SyncCreateDatasetVersionDatasetnameDatasetversion { + + public static void main(String[] args) throws Exception { + syncCreateDatasetVersionDatasetnameDatasetversion(); + } + + public static void syncCreateDatasetVersionDatasetnameDatasetversion() throws Exception { + // 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()) { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + DatasetVersion response = + datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_DatasetnameDatasetversion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersionStringDatasetversion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersionStringDatasetversion.java new file mode 100644 index 000000000000..c7cb49fb6e1f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/createdatasetversion/SyncCreateDatasetVersionStringDatasetversion.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_StringDatasetversion_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; + +public class SyncCreateDatasetVersionStringDatasetversion { + + public static void main(String[] args) throws Exception { + syncCreateDatasetVersionStringDatasetversion(); + } + + public static void syncCreateDatasetVersionStringDatasetversion() throws Exception { + // 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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString(); + DatasetVersion datasetVersion = DatasetVersion.newBuilder().build(); + DatasetVersion response = + datasetServiceClient.createDatasetVersionAsync(parent, datasetVersion).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_StringDatasetversion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersion.java new file mode 100644 index 000000000000..d8ababab9156 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersion.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncDeleteDatasetVersion(); + } + + public static void asyncDeleteDatasetVersion() throws Exception { + // 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()) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + ApiFuture future = + datasetServiceClient.deleteDatasetVersionCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersionLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersionLRO.java new file mode 100644 index 000000000000..06b9031f3721 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/AsyncDeleteDatasetVersionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteDatasetVersionLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteDatasetVersionLRO(); + } + + public static void asyncDeleteDatasetVersionLRO() throws Exception { + // 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()) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + OperationFuture future = + datasetServiceClient.deleteDatasetVersionOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersion.java new file mode 100644 index 000000000000..9fe3a979a3bd --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersion.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.DeleteDatasetVersionRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteDatasetVersion { + + public static void main(String[] args) throws Exception { + syncDeleteDatasetVersion(); + } + + public static void syncDeleteDatasetVersion() throws Exception { + // 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()) { + DeleteDatasetVersionRequest request = + DeleteDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + datasetServiceClient.deleteDatasetVersionAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionDatasetversionname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionDatasetversionname.java new file mode 100644 index 000000000000..b6d025480e48 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionDatasetversionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_Datasetversionname_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.protobuf.Empty; + +public class SyncDeleteDatasetVersionDatasetversionname { + + public static void main(String[] args) throws Exception { + syncDeleteDatasetVersionDatasetversionname(); + } + + public static void syncDeleteDatasetVersionDatasetversionname() throws Exception { + // 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()) { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + datasetServiceClient.deleteDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_Datasetversionname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionString.java new file mode 100644 index 000000000000..f1ee3f890d0c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/deletedatasetversion/SyncDeleteDatasetVersionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_String_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.protobuf.Empty; + +public class SyncDeleteDatasetVersionString { + + public static void main(String[] args) throws Exception { + syncDeleteDatasetVersionString(); + } + + public static void syncDeleteDatasetVersionString() throws Exception { + // 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 = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString(); + datasetServiceClient.deleteDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/AsyncGetDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/AsyncGetDatasetVersion.java new file mode 100644 index 000000000000..2c76833a7e5b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/AsyncGetDatasetVersion.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest; +import com.google.protobuf.FieldMask; + +public class AsyncGetDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncGetDatasetVersion(); + } + + public static void asyncGetDatasetVersion() throws Exception { + // 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()) { + GetDatasetVersionRequest request = + GetDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + datasetServiceClient.getDatasetVersionCallable().futureCall(request); + // Do something. + DatasetVersion response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersion.java new file mode 100644 index 000000000000..ab9682cce3ab --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersion.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.GetDatasetVersionRequest; +import com.google.protobuf.FieldMask; + +public class SyncGetDatasetVersion { + + public static void main(String[] args) throws Exception { + syncGetDatasetVersion(); + } + + public static void syncGetDatasetVersion() throws Exception { + // 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()) { + GetDatasetVersionRequest request = + GetDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + DatasetVersion response = datasetServiceClient.getDatasetVersion(request); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersionDatasetversionname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersionDatasetversionname.java new file mode 100644 index 000000000000..9b22244aed3f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersionDatasetversionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_Datasetversionname_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; + +public class SyncGetDatasetVersionDatasetversionname { + + public static void main(String[] args) throws Exception { + syncGetDatasetVersionDatasetversionname(); + } + + public static void syncGetDatasetVersionDatasetversionname() throws Exception { + // 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()) { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + DatasetVersion response = datasetServiceClient.getDatasetVersion(name); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_Datasetversionname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersionString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersionString.java new file mode 100644 index 000000000000..011781c71193 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/getdatasetversion/SyncGetDatasetVersionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_String_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; + +public class SyncGetDatasetVersionString { + + public static void main(String[] args) throws Exception { + syncGetDatasetVersionString(); + } + + public static void syncGetDatasetVersionString() throws Exception { + // 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 = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString(); + DatasetVersion response = datasetServiceClient.getDatasetVersion(name); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/AsyncListDatasetVersions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/AsyncListDatasetVersions.java new file mode 100644 index 000000000000..01e1ee5f41c5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/AsyncListDatasetVersions.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest; +import com.google.protobuf.FieldMask; + +public class AsyncListDatasetVersions { + + public static void main(String[] args) throws Exception { + asyncListDatasetVersions(); + } + + public static void asyncListDatasetVersions() throws Exception { + // 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()) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + datasetServiceClient.listDatasetVersionsPagedCallable().futureCall(request); + // Do something. + for (DatasetVersion element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/AsyncListDatasetVersionsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/AsyncListDatasetVersionsPaged.java new file mode 100644 index 000000000000..3dbda6383e17 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/AsyncListDatasetVersionsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_Paged_async] +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse; +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; + +public class AsyncListDatasetVersionsPaged { + + public static void main(String[] args) throws Exception { + asyncListDatasetVersionsPaged(); + } + + public static void asyncListDatasetVersionsPaged() throws Exception { + // 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()) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListDatasetVersionsResponse response = + datasetServiceClient.listDatasetVersionsCallable().call(request); + for (DatasetVersion element : response.getDatasetVersionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersions.java new file mode 100644 index 000000000000..2e6aeaf3905b --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersions.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.ListDatasetVersionsRequest; +import com.google.protobuf.FieldMask; + +public class SyncListDatasetVersions { + + public static void main(String[] args) throws Exception { + syncListDatasetVersions(); + } + + public static void syncListDatasetVersions() throws Exception { + // 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()) { + ListDatasetVersionsRequest request = + ListDatasetVersionsRequest.newBuilder() + .setParent(DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .setOrderBy("orderBy-1207110587") + .build(); + for (DatasetVersion element : + datasetServiceClient.listDatasetVersions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersionsDatasetname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersionsDatasetname.java new file mode 100644 index 000000000000..918f3e95dd5a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersionsDatasetname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_Datasetname_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; + +public class SyncListDatasetVersionsDatasetname { + + public static void main(String[] args) throws Exception { + syncListDatasetVersionsDatasetname(); + } + + public static void syncListDatasetVersionsDatasetname() throws Exception { + // 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()) { + DatasetName parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]"); + for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_Datasetname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersionsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersionsString.java new file mode 100644 index 000000000000..fc3f5b138601 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/listdatasetversions/SyncListDatasetVersionsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_String_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetName; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; + +public class SyncListDatasetVersionsString { + + public static void main(String[] args) throws Exception { + syncListDatasetVersionsString(); + } + + public static void syncListDatasetVersionsString() throws Exception { + // 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 parent = DatasetName.of("[PROJECT]", "[LOCATION]", "[DATASET]").toString(); + for (DatasetVersion element : datasetServiceClient.listDatasetVersions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersion.java new file mode 100644 index 000000000000..b65e63e91304 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersion.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest; +import com.google.longrunning.Operation; + +public class AsyncRestoreDatasetVersion { + + public static void main(String[] args) throws Exception { + asyncRestoreDatasetVersion(); + } + + public static void asyncRestoreDatasetVersion() throws Exception { + // 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()) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + ApiFuture future = + datasetServiceClient.restoreDatasetVersionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersionLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersionLRO.java new file mode 100644 index 000000000000..327853bdb78a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/AsyncRestoreDatasetVersionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest; + +public class AsyncRestoreDatasetVersionLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreDatasetVersionLRO(); + } + + public static void asyncRestoreDatasetVersionLRO() throws Exception { + // 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()) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + OperationFuture future = + datasetServiceClient.restoreDatasetVersionOperationCallable().futureCall(request); + // Do something. + DatasetVersion response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersion.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersion.java new file mode 100644 index 000000000000..dfc83d9623c9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersion.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; +import com.google.cloud.aiplatform.v1beta1.RestoreDatasetVersionRequest; + +public class SyncRestoreDatasetVersion { + + public static void main(String[] args) throws Exception { + syncRestoreDatasetVersion(); + } + + public static void syncRestoreDatasetVersion() throws Exception { + // 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()) { + RestoreDatasetVersionRequest request = + RestoreDatasetVersionRequest.newBuilder() + .setName( + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString()) + .build(); + DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionDatasetversionname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionDatasetversionname.java new file mode 100644 index 000000000000..1b8755c6b192 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionDatasetversionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_Datasetversionname_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; + +public class SyncRestoreDatasetVersionDatasetversionname { + + public static void main(String[] args) throws Exception { + syncRestoreDatasetVersionDatasetversionname(); + } + + public static void syncRestoreDatasetVersionDatasetversionname() throws Exception { + // 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()) { + DatasetVersionName name = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]"); + DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_Datasetversionname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionString.java new file mode 100644 index 000000000000..e31bb11ffed6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/datasetservice/restoredatasetversion/SyncRestoreDatasetVersionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_String_sync] +import com.google.cloud.aiplatform.v1beta1.DatasetServiceClient; +import com.google.cloud.aiplatform.v1beta1.DatasetVersion; +import com.google.cloud.aiplatform.v1beta1.DatasetVersionName; + +public class SyncRestoreDatasetVersionString { + + public static void main(String[] args) throws Exception { + syncRestoreDatasetVersionString(); + } + + public static void syncRestoreDatasetVersionString() throws Exception { + // 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 = + DatasetVersionName.of("[PROJECT]", "[LOCATION]", "[DATASET]", "[DATASET_VERSION]") + .toString(); + DatasetVersion response = datasetServiceClient.restoreDatasetVersionAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModels.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModels.java new file mode 100644 index 000000000000..94d0e8527a18 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModels.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; +import com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient; +import com.google.cloud.aiplatform.v1beta1.PublisherModel; +import com.google.cloud.aiplatform.v1beta1.PublisherModelView; + +public class AsyncListPublisherModels { + + public static void main(String[] args) throws Exception { + asyncListPublisherModels(); + } + + public static void asyncListPublisherModels() throws Exception { + // 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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) { + ListPublisherModelsRequest request = + ListPublisherModelsRequest.newBuilder() + .setParent("parent-995424086") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setView(PublisherModelView.forNumber(0)) + .setOrderBy("orderBy-1207110587") + .setLanguageCode("languageCode-2092349083") + .build(); + ApiFuture future = + modelGardenServiceClient.listPublisherModelsPagedCallable().futureCall(request); + // Do something. + for (PublisherModel element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModelsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModelsPaged.java new file mode 100644 index 000000000000..91f149ba3095 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/AsyncListPublisherModelsPaged.java @@ -0,0 +1,66 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_Paged_async] +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse; +import com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient; +import com.google.cloud.aiplatform.v1beta1.PublisherModel; +import com.google.cloud.aiplatform.v1beta1.PublisherModelView; +import com.google.common.base.Strings; + +public class AsyncListPublisherModelsPaged { + + public static void main(String[] args) throws Exception { + asyncListPublisherModelsPaged(); + } + + public static void asyncListPublisherModelsPaged() throws Exception { + // 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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) { + ListPublisherModelsRequest request = + ListPublisherModelsRequest.newBuilder() + .setParent("parent-995424086") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setView(PublisherModelView.forNumber(0)) + .setOrderBy("orderBy-1207110587") + .setLanguageCode("languageCode-2092349083") + .build(); + while (true) { + ListPublisherModelsResponse response = + modelGardenServiceClient.listPublisherModelsCallable().call(request); + for (PublisherModel element : response.getPublisherModelsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModels.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModels.java new file mode 100644 index 000000000000..16da9b43332c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModels.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_sync] +import com.google.cloud.aiplatform.v1beta1.ListPublisherModelsRequest; +import com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient; +import com.google.cloud.aiplatform.v1beta1.PublisherModel; +import com.google.cloud.aiplatform.v1beta1.PublisherModelView; + +public class SyncListPublisherModels { + + public static void main(String[] args) throws Exception { + syncListPublisherModels(); + } + + public static void syncListPublisherModels() throws Exception { + // 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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) { + ListPublisherModelsRequest request = + ListPublisherModelsRequest.newBuilder() + .setParent("parent-995424086") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setView(PublisherModelView.forNumber(0)) + .setOrderBy("orderBy-1207110587") + .setLanguageCode("languageCode-2092349083") + .build(); + for (PublisherModel element : + modelGardenServiceClient.listPublisherModels(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModelsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModelsString.java new file mode 100644 index 000000000000..d737cf1c68a6 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/modelgardenservice/listpublishermodels/SyncListPublisherModelsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_String_sync] +import com.google.cloud.aiplatform.v1beta1.ModelGardenServiceClient; +import com.google.cloud.aiplatform.v1beta1.PublisherModel; + +public class SyncListPublisherModelsString { + + public static void main(String[] args) throws Exception { + syncListPublisherModelsString(); + } + + public static void syncListPublisherModelsString() throws Exception { + // 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 (ModelGardenServiceClient modelGardenServiceClient = ModelGardenServiceClient.create()) { + String parent = "parent-995424086"; + for (PublisherModel element : + modelGardenServiceClient.listPublisherModels(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_String_sync]