diff --git a/generation_config.yaml b/generation_config.yaml index d7e9ab6cb938..06a659f3cb7f 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.39.0 protobuf_version: '25.3' -googleapis_commitish: 0179dcc4d2b4d7376e7f0292b15c72aab3100dd6 +googleapis_commitish: 5a0ae652df1ef39b7849bf2bd6ba417376ce3204 libraries_bom_version: 26.38.0 owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 synthtool_commitish: 63cc541da2c45fcfca2136c43e638da1fbae174d diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index e680672c0f40..099b9aa403e3 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -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.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.43.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/FeatureRegistryServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java index 1b17f4a12b37..490e469f76d6 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureRegistryServiceClient.java @@ -479,7 +479,7 @@ public final OperationsClient getOperationsClient() { * } * * @param parent Required. The resource name of the Location to create FeatureGroups. Format: - * `projects/{project}/locations/{location}'` + * `projects/{project}/locations/{location}` * @param featureGroup Required. The FeatureGroup to create. * @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the * final component of the FeatureGroup's resource name. @@ -525,7 +525,7 @@ public final OperationsClient getOperationsClient() { * } * * @param parent Required. The resource name of the Location to create FeatureGroups. Format: - * `projects/{project}/locations/{location}'` + * `projects/{project}/locations/{location}` * @param featureGroup Required. The FeatureGroup to create. * @param featureGroupId Required. The ID to use for this FeatureGroup, which will become the * final component of the FeatureGroup's resource name. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java index 85abdb964e3c..54169034805c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceClient.java @@ -279,6 +279,65 @@ * * *
GetNotebookExecutionJob
Gets a NotebookExecutionJob.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *getNotebookExecutionJob(GetNotebookExecutionJobRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *getNotebookExecutionJob(NotebookExecutionJobName name) + *
getNotebookExecutionJob(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *getNotebookExecutionJobCallable() + *
ListNotebookExecutionJobs
Lists NotebookExecutionJobs in a Location.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *listNotebookExecutionJobs(ListNotebookExecutionJobsRequest request) + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *listNotebookExecutionJobs(LocationName parent) + *
listNotebookExecutionJobs(String parent) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *listNotebookExecutionJobsPagedCallable() + *
listNotebookExecutionJobsCallable() + *
DeleteNotebookExecutionJob
Deletes a NotebookExecutionJob.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *deleteNotebookExecutionJobAsync(DeleteNotebookExecutionJobRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *deleteNotebookExecutionJobAsync(NotebookExecutionJobName name) + *
deleteNotebookExecutionJobAsync(String name) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *deleteNotebookExecutionJobOperationCallable() + *
deleteNotebookExecutionJobCallable() + *
ListLocations
Lists information about the supported locations for this service.
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * NotebookExecutionJobName name = + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]"); + * NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name); + * } + * }+ * + * @param name Required. The name of the NotebookExecutionJob resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NotebookExecutionJob getNotebookExecutionJob(NotebookExecutionJobName name) { + GetNotebookExecutionJobRequest request = + GetNotebookExecutionJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getNotebookExecutionJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a NotebookExecutionJob. + * + *
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * String name = + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + * .toString(); + * NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name); + * } + * }+ * + * @param name Required. The name of the NotebookExecutionJob resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final NotebookExecutionJob getNotebookExecutionJob(String name) { + GetNotebookExecutionJobRequest request = + GetNotebookExecutionJobRequest.newBuilder().setName(name).build(); + return getNotebookExecutionJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a NotebookExecutionJob. + * + *
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * GetNotebookExecutionJobRequest request = + * GetNotebookExecutionJobRequest.newBuilder() + * .setName( + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + * .toString()) + * .setView(NotebookExecutionJobView.forNumber(0)) + * .build(); + * NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(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 NotebookExecutionJob getNotebookExecutionJob( + GetNotebookExecutionJobRequest request) { + return getNotebookExecutionJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a NotebookExecutionJob. + * + *
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * GetNotebookExecutionJobRequest request = + * GetNotebookExecutionJobRequest.newBuilder() + * .setName( + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + * .toString()) + * .setView(NotebookExecutionJobView.forNumber(0)) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * notebookServiceClient.getNotebookExecutionJobCallable().futureCall(request); + * // Do something. + * NotebookExecutionJob response = future.get(); + * } + * }
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (NotebookExecutionJob element : + * notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The resource name of the Location from which to list the + * NotebookExecutionJobs. Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs( + LocationName parent) { + ListNotebookExecutionJobsRequest request = + ListNotebookExecutionJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listNotebookExecutionJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists NotebookExecutionJobs in a Location. + * + *
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * for (NotebookExecutionJob element : + * notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param parent Required. The resource name of the Location from which to list the + * NotebookExecutionJobs. Format: `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs(String parent) { + ListNotebookExecutionJobsRequest request = + ListNotebookExecutionJobsRequest.newBuilder().setParent(parent).build(); + return listNotebookExecutionJobs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists NotebookExecutionJobs in a Location. + * + *
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * ListNotebookExecutionJobsRequest request = + * ListNotebookExecutionJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setView(NotebookExecutionJobView.forNumber(0)) + * .build(); + * for (NotebookExecutionJob element : + * notebookServiceClient.listNotebookExecutionJobs(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 ListNotebookExecutionJobsPagedResponse listNotebookExecutionJobs( + ListNotebookExecutionJobsRequest request) { + return listNotebookExecutionJobsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists NotebookExecutionJobs in a Location. + * + *
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * ListNotebookExecutionJobsRequest request = + * ListNotebookExecutionJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setView(NotebookExecutionJobView.forNumber(0)) + * .build(); + * ApiFuture+ */ + public final UnaryCallable< + ListNotebookExecutionJobsRequest, ListNotebookExecutionJobsPagedResponse> + listNotebookExecutionJobsPagedCallable() { + return stub.listNotebookExecutionJobsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists NotebookExecutionJobs in a Location. + * + *future = + * notebookServiceClient.listNotebookExecutionJobsPagedCallable().futureCall(request); + * // Do something. + * for (NotebookExecutionJob element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * ListNotebookExecutionJobsRequest request = + * ListNotebookExecutionJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setOrderBy("orderBy-1207110587") + * .setView(NotebookExecutionJobView.forNumber(0)) + * .build(); + * while (true) { + * ListNotebookExecutionJobsResponse response = + * notebookServiceClient.listNotebookExecutionJobsCallable().call(request); + * for (NotebookExecutionJob element : response.getNotebookExecutionJobsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * NotebookExecutionJobName name = + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]"); + * notebookServiceClient.deleteNotebookExecutionJobAsync(name).get(); + * } + * }+ * + * @param name Required. The name of the NotebookExecutionJob resource to be deleted. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * String name = + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + * .toString(); + * notebookServiceClient.deleteNotebookExecutionJobAsync(name).get(); + * } + * }+ * + * @param name Required. The name of the NotebookExecutionJob resource to be deleted. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * DeleteNotebookExecutionJobRequest request = + * DeleteNotebookExecutionJobRequest.newBuilder() + * .setName( + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + * .toString()) + * .build(); + * notebookServiceClient.deleteNotebookExecutionJobAsync(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
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * DeleteNotebookExecutionJobRequest request = + * DeleteNotebookExecutionJobRequest.newBuilder() + * .setName( + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + * .toString()) + * .build(); + * OperationFuture+ */ + public final OperationCallablefuture = + * notebookServiceClient.deleteNotebookExecutionJobOperationCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) { + * DeleteNotebookExecutionJobRequest request = + * DeleteNotebookExecutionJobRequest.newBuilder() + * .setName( + * NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]") + * .toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * notebookServiceClient.deleteNotebookExecutionJobCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
+ * Gets a NotebookExecutionJob. + *+ */ + default void getNotebookExecutionJob( + com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest request, + io.grpc.stub.StreamObserver
+ * Lists NotebookExecutionJobs in a Location. + *+ */ + default void listNotebookExecutionJobs( + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNotebookExecutionJobsMethod(), responseObserver); + } + + /** + * + * + *
+ * Deletes a NotebookExecutionJob. + *+ */ + default void deleteNotebookExecutionJob( + com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest request, + io.grpc.stub.StreamObserver
+ * Gets a NotebookExecutionJob. + *+ */ + public void getNotebookExecutionJob( + com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest request, + io.grpc.stub.StreamObserver
+ * Lists NotebookExecutionJobs in a Location. + *+ */ + public void listNotebookExecutionJobs( + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotebookExecutionJobsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+ * Deletes a NotebookExecutionJob. + *+ */ + public void deleteNotebookExecutionJob( + com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest request, + io.grpc.stub.StreamObserver
+ * Gets a NotebookExecutionJob. + *+ */ + public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getNotebookExecutionJob( + com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotebookExecutionJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists NotebookExecutionJobs in a Location. + *+ */ + public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse + listNotebookExecutionJobs( + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotebookExecutionJobsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a NotebookExecutionJob. + *+ */ + public com.google.longrunning.Operation deleteNotebookExecutionJob( + com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNotebookExecutionJobMethod(), getCallOptions(), request); + } } /** @@ -1255,6 +1545,50 @@ protected NotebookServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStartNotebookRuntimeMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Gets a NotebookExecutionJob. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob> + getNotebookExecutionJob( + com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotebookExecutionJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Lists NotebookExecutionJobs in a Location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse> + listNotebookExecutionJobs( + com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotebookExecutionJobsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Deletes a NotebookExecutionJob. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
TPU_V4_POD = 10;
*/
TPU_V4_POD(10),
+ /**
+ *
+ *
+ * + * TPU v5. + *+ * + *
TPU_V5_LITEPOD = 12;
+ */
+ TPU_V5_LITEPOD(12),
UNRECOGNIZED(-1),
;
@@ -292,6 +302,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
* TPU_V4_POD = 10;
*/
public static final int TPU_V4_POD_VALUE = 10;
+ /**
+ *
+ *
+ * + * TPU v5. + *+ * + *
TPU_V5_LITEPOD = 12;
+ */
+ public static final int TPU_V5_LITEPOD_VALUE = 12;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -343,6 +363,8 @@ public static AcceleratorType forNumber(int value) {
return TPU_V3;
case 10:
return TPU_V4_POD;
+ case 12:
+ return TPU_V5_LITEPOD;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
index cf1883a11714..29b845366a65 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorTypeProto.java
@@ -38,19 +38,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\n1google/cloud/aiplatform/v1/accelerator"
+ "_type.proto\022\032google.cloud.aiplatform.v1*"
- + "\233\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
+ + "\257\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TYPE_"
+ "UNSPECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021N"
+ "VIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020"
+ "\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T"
+ "4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA_A10"
+ "0_80GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H100_8"
+ "0GB\020\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_"
- + "POD\020\nB\322\001\n\036com.google.cloud.aiplatform.v1"
- + "B\024AcceleratorTypeProtoP\001Z>cloud.google.c"
- + "om/go/aiplatform/apiv1/aiplatformpb;aipl"
- + "atformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032"
- + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Clo"
- + "ud::AIPlatform::V1b\006proto3"
+ + "POD\020\n\022\022\n\016TPU_V5_LITEPOD\020\014B\322\001\n\036com.google"
+ + ".cloud.aiplatform.v1B\024AcceleratorTypePro"
+ + "toP\001Z>cloud.google.com/go/aiplatform/api"
+ + "v1/aiplatformpb;aiplatformpb\252\002\032Google.Cl"
+ + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf"
+ + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006"
+ + "proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
index b45a2791af5b..433c5001fb1a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java
@@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -188,20 +192,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "tB\003\340A\003\022%\n\020confidence_score\030\002 \001(\002B\006\340A\001\340A\003"
+ "H\001\210\001\001\032+\n\003Web\022\020\n\003uri\030\001 \001(\tB\003\340A\003\022\022\n\005title\030"
+ "\002 \001(\tB\003\340A\003B\013\n\treferenceB\023\n\021_confidence_s"
- + "core\"\213\001\n\021GroundingMetadata\022\037\n\022web_search"
+ + "core\"\366\001\n\021GroundingMetadata\022\037\n\022web_search"
+ "_queries\030\001 \003(\tB\003\340A\001\022U\n\026grounding_attribu"
+ "tions\030\002 \003(\01320.google.cloud.aiplatform.v1"
- + ".GroundingAttributionB\003\340A\001*\264\001\n\014HarmCateg"
- + "ory\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HA"
- + "RM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGO"
- + "RY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_"
- + "HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_E"
- + "XPLICIT\020\004B\312\001\n\036com.google.cloud.aiplatfor"
- + "m.v1B\014ContentProtoP\001Z>cloud.google.com/g"
- + "o/aiplatform/apiv1/aiplatformpb;aiplatfo"
- + "rmpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Goog"
- + "le\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::"
- + "AIPlatform::V1b\006proto3"
+ + ".GroundingAttributionB\003\340A\001\022R\n\022search_ent"
+ + "ry_point\030\004 \001(\0132,.google.cloud.aiplatform"
+ + ".v1.SearchEntryPointB\003\340A\001H\000\210\001\001B\025\n\023_searc"
+ + "h_entry_point\"H\n\020SearchEntryPoint\022\035\n\020ren"
+ + "dered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001"
+ + "(\014B\003\340A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGOR"
+ + "Y_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SP"
+ + "EECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTEN"
+ + "T\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HAR"
+ + "M_CATEGORY_SEXUALLY_EXPLICIT\020\004B\312\001\n\036com.g"
+ + "oogle.cloud.aiplatform.v1B\014ContentProtoP"
+ + "\001Z>cloud.google.com/go/aiplatform/apiv1/"
+ + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud"
+ + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform"
+ + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro"
+ + "to3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -353,7 +362,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1_GroundingMetadata_descriptor,
new java.lang.String[] {
- "WebSearchQueries", "GroundingAttributions",
+ "WebSearchQueries", "GroundingAttributions", "SearchEntryPoint",
+ });
+ internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor,
+ new java.lang.String[] {
+ "RenderedContent", "SdkBlob",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequest.java
index b60098cfbf41..64751eb4d1eb 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequest.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequest.java
@@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* * Required. The resource name of the Location to create FeatureGroups. * Format: - * `projects/{project}/locations/{location}'` + * `projects/{project}/locations/{location}` ** *
@@ -103,7 +103,7 @@ public java.lang.String getParent() {
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
@@ -663,7 +663,7 @@ public Builder mergeFrom(
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
@@ -689,7 +689,7 @@ public java.lang.String getParent() {
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
@@ -715,7 +715,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
@@ -740,7 +740,7 @@ public Builder setParent(java.lang.String value) {
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
@@ -761,7 +761,7 @@ public Builder clearParent() {
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequestOrBuilder.java
index 1d4cb5cde1d4..832117c15633 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequestOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/CreateFeatureGroupRequestOrBuilder.java
@@ -30,7 +30,7 @@ public interface CreateFeatureGroupRequestOrBuilder
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
@@ -46,7 +46,7 @@ public interface CreateFeatureGroupRequestOrBuilder
*
* Required. The resource name of the Location to create FeatureGroups.
* Format:
- * `projects/{project}/locations/{location}'`
+ * `projects/{project}/locations/{location}`
*
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java
index a98f80d435bb..6fb7d061a0c9 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Endpoint.java
@@ -913,7 +913,7 @@ public com.google.protobuf.ByteString getNetworkBytes() {
* bool enable_private_service_connect = 17 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
- * See google/cloud/aiplatform/v1/endpoint.proto;l=126
+ * See google/cloud/aiplatform/v1/endpoint.proto;l=127
* @return The enablePrivateServiceConnect.
*/
@java.lang.Override
@@ -922,6 +922,76 @@ public boolean getEnablePrivateServiceConnect() {
return enablePrivateServiceConnect_;
}
+ public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER = 21;
+ private com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig privateServiceConnectConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the privateServiceConnectConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasPrivateServiceConnectConfig() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The privateServiceConnectConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig
+ getPrivateServiceConnectConfig() {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.PrivateServiceConnectConfigOrBuilder
+ getPrivateServiceConnectConfigOrBuilder() {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ }
+
public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
@@ -1003,7 +1073,7 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() {
*/
@java.lang.Override
public boolean hasPredictRequestResponseLoggingConfig() {
- return ((bitField0_ & 0x00000008) != 0);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
*
@@ -1095,9 +1165,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (enablePrivateServiceConnect_ != false) {
output.writeBool(17, enablePrivateServiceConnect_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(18, getPredictRequestResponseLoggingConfig());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(21, getPrivateServiceConnectConfig());
+ }
getUnknownFields().writeTo(output);
}
@@ -1163,11 +1236,16 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeBoolSize(17, enablePrivateServiceConnect_);
}
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
18, getPredictRequestResponseLoggingConfig());
}
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 21, getPrivateServiceConnectConfig());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1204,6 +1282,11 @@ public boolean equals(final java.lang.Object obj) {
}
if (!getNetwork().equals(other.getNetwork())) return false;
if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false;
+ if (hasPrivateServiceConnectConfig() != other.hasPrivateServiceConnectConfig()) return false;
+ if (hasPrivateServiceConnectConfig()) {
+ if (!getPrivateServiceConnectConfig().equals(other.getPrivateServiceConnectConfig()))
+ return false;
+ }
if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob()))
return false;
if (hasPredictRequestResponseLoggingConfig() != other.hasPredictRequestResponseLoggingConfig())
@@ -1259,6 +1342,10 @@ public int hashCode() {
hash = (53 * hash) + getNetwork().hashCode();
hash = (37 * hash) + ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect());
+ if (hasPrivateServiceConnectConfig()) {
+ hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPrivateServiceConnectConfig().hashCode();
+ }
hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER;
hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode();
if (hasPredictRequestResponseLoggingConfig()) {
@@ -1436,6 +1523,7 @@ private void maybeForceBuilderInitialization() {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getEncryptionSpecFieldBuilder();
+ getPrivateServiceConnectConfigFieldBuilder();
getPredictRequestResponseLoggingConfigFieldBuilder();
}
}
@@ -1474,6 +1562,11 @@ public Builder clear() {
}
network_ = "";
enablePrivateServiceConnect_ = false;
+ privateServiceConnectConfig_ = null;
+ if (privateServiceConnectConfigBuilder_ != null) {
+ privateServiceConnectConfigBuilder_.dispose();
+ privateServiceConnectConfigBuilder_ = null;
+ }
modelDeploymentMonitoringJob_ = "";
predictRequestResponseLoggingConfig_ = null;
if (predictRequestResponseLoggingConfigBuilder_ != null) {
@@ -1570,14 +1663,21 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.Endpoint result) {
result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
- result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_;
+ result.privateServiceConnectConfig_ =
+ privateServiceConnectConfigBuilder_ == null
+ ? privateServiceConnectConfig_
+ : privateServiceConnectConfigBuilder_.build();
+ to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_;
+ }
+ if (((from_bitField0_ & 0x00004000) != 0)) {
result.predictRequestResponseLoggingConfig_ =
predictRequestResponseLoggingConfigBuilder_ == null
? predictRequestResponseLoggingConfig_
: predictRequestResponseLoggingConfigBuilder_.build();
- to_bitField0_ |= 0x00000008;
+ to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@@ -1695,9 +1795,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.Endpoint other) {
if (other.getEnablePrivateServiceConnect() != false) {
setEnablePrivateServiceConnect(other.getEnablePrivateServiceConnect());
}
+ if (other.hasPrivateServiceConnectConfig()) {
+ mergePrivateServiceConnectConfig(other.getPrivateServiceConnectConfig());
+ }
if (!other.getModelDeploymentMonitoringJob().isEmpty()) {
modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
}
if (other.hasPredictRequestResponseLoggingConfig()) {
@@ -1817,7 +1920,7 @@ public Builder mergeFrom(
case 114:
{
modelDeploymentMonitoringJob_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
break;
} // case 114
case 136:
@@ -1831,9 +1934,16 @@ public Builder mergeFrom(
input.readMessage(
getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(),
extensionRegistry);
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
break;
} // case 146
+ case 170:
+ {
+ input.readMessage(
+ getPrivateServiceConnectConfigFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 170
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -4010,7 +4120,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
* bool enable_private_service_connect = 17 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
- * See google/cloud/aiplatform/v1/endpoint.proto;l=126
+ * See google/cloud/aiplatform/v1/endpoint.proto;l=127
* @return The enablePrivateServiceConnect.
*/
@java.lang.Override
@@ -4033,7 +4143,7 @@ public boolean getEnablePrivateServiceConnect() {
* bool enable_private_service_connect = 17 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
- * See google/cloud/aiplatform/v1/endpoint.proto;l=126
+ * See google/cloud/aiplatform/v1/endpoint.proto;l=127
* @param value The enablePrivateServiceConnect to set.
* @return This builder for chaining.
*/
@@ -4060,7 +4170,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) {
* bool enable_private_service_connect = 17 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
- * See google/cloud/aiplatform/v1/endpoint.proto;l=126
+ * See google/cloud/aiplatform/v1/endpoint.proto;l=127
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -4071,6 +4181,253 @@ public Builder clearEnablePrivateServiceConnect() {
return this;
}
+ private com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig privateServiceConnectConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig,
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfigOrBuilder>
+ privateServiceConnectConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the privateServiceConnectConfig field is set.
+ */
+ public boolean hasPrivateServiceConnectConfig() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The privateServiceConnectConfig.
+ */
+ public com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig
+ getPrivateServiceConnectConfig() {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ } else {
+ return privateServiceConnectConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPrivateServiceConnectConfig(
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig value) {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ privateServiceConnectConfig_ = value;
+ } else {
+ privateServiceConnectConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPrivateServiceConnectConfig(
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.Builder builderForValue) {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ privateServiceConnectConfig_ = builderForValue.build();
+ } else {
+ privateServiceConnectConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePrivateServiceConnectConfig(
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig value) {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00001000) != 0)
+ && privateServiceConnectConfig_ != null
+ && privateServiceConnectConfig_
+ != com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig
+ .getDefaultInstance()) {
+ getPrivateServiceConnectConfigBuilder().mergeFrom(value);
+ } else {
+ privateServiceConnectConfig_ = value;
+ }
+ } else {
+ privateServiceConnectConfigBuilder_.mergeFrom(value);
+ }
+ if (privateServiceConnectConfig_ != null) {
+ bitField0_ |= 0x00001000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPrivateServiceConnectConfig() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ privateServiceConnectConfig_ = null;
+ if (privateServiceConnectConfigBuilder_ != null) {
+ privateServiceConnectConfigBuilder_.dispose();
+ privateServiceConnectConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.Builder
+ getPrivateServiceConnectConfigBuilder() {
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return getPrivateServiceConnectConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.PrivateServiceConnectConfigOrBuilder
+ getPrivateServiceConnectConfigOrBuilder() {
+ if (privateServiceConnectConfigBuilder_ != null) {
+ return privateServiceConnectConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return privateServiceConnectConfig_ == null
+ ? com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.getDefaultInstance()
+ : privateServiceConnectConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig,
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfigOrBuilder>
+ getPrivateServiceConnectConfigFieldBuilder() {
+ if (privateServiceConnectConfigBuilder_ == null) {
+ privateServiceConnectConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig,
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.Builder,
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfigOrBuilder>(
+ getPrivateServiceConnectConfig(), getParentForChildren(), isClean());
+ privateServiceConnectConfig_ = null;
+ }
+ return privateServiceConnectConfigBuilder_;
+ }
+
private java.lang.Object modelDeploymentMonitoringJob_ = "";
/**
*
@@ -4151,7 +4508,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) {
throw new NullPointerException();
}
modelDeploymentMonitoringJob_ = value;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -4174,7 +4531,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) {
*/
public Builder clearModelDeploymentMonitoringJob() {
modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob();
- bitField0_ = (bitField0_ & ~0x00001000);
+ bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
@@ -4202,7 +4559,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri
}
checkByteStringIsUtf8(value);
modelDeploymentMonitoringJob_ = value;
- bitField0_ |= 0x00001000;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -4228,7 +4585,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri
* @return Whether the predictRequestResponseLoggingConfig field is set.
*/
public boolean hasPredictRequestResponseLoggingConfig() {
- return ((bitField0_ & 0x00002000) != 0);
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
*
@@ -4275,7 +4632,7 @@ public Builder setPredictRequestResponseLoggingConfig(
} else {
predictRequestResponseLoggingConfigBuilder_.setMessage(value);
}
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4298,7 +4655,7 @@ public Builder setPredictRequestResponseLoggingConfig(
} else {
predictRequestResponseLoggingConfigBuilder_.setMessage(builderForValue.build());
}
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return this;
}
@@ -4316,7 +4673,7 @@ public Builder setPredictRequestResponseLoggingConfig(
public Builder mergePredictRequestResponseLoggingConfig(
com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig value) {
if (predictRequestResponseLoggingConfigBuilder_ == null) {
- if (((bitField0_ & 0x00002000) != 0)
+ if (((bitField0_ & 0x00004000) != 0)
&& predictRequestResponseLoggingConfig_ != null
&& predictRequestResponseLoggingConfig_
!= com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig
@@ -4329,7 +4686,7 @@ public Builder mergePredictRequestResponseLoggingConfig(
predictRequestResponseLoggingConfigBuilder_.mergeFrom(value);
}
if (predictRequestResponseLoggingConfig_ != null) {
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
}
return this;
@@ -4346,7 +4703,7 @@ public Builder mergePredictRequestResponseLoggingConfig(
*
*/
public Builder clearPredictRequestResponseLoggingConfig() {
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00004000);
predictRequestResponseLoggingConfig_ = null;
if (predictRequestResponseLoggingConfigBuilder_ != null) {
predictRequestResponseLoggingConfigBuilder_.dispose();
@@ -4368,7 +4725,7 @@ public Builder clearPredictRequestResponseLoggingConfig() {
*/
public com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig.Builder
getPredictRequestResponseLoggingConfigBuilder() {
- bitField0_ |= 0x00002000;
+ bitField0_ |= 0x00004000;
onChanged();
return getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java
index 1bcea1e12338..077494b9a30d 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointOrBuilder.java
@@ -585,12 +585,66 @@ java.lang.String getLabelsOrDefault(
* bool enable_private_service_connect = 17 [deprecated = true];
*
* @deprecated google.cloud.aiplatform.v1.Endpoint.enable_private_service_connect is deprecated.
- * See google/cloud/aiplatform/v1/endpoint.proto;l=126
+ * See google/cloud/aiplatform/v1/endpoint.proto;l=127
* @return The enablePrivateServiceConnect.
*/
@java.lang.Deprecated
boolean getEnablePrivateServiceConnect();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the privateServiceConnectConfig field is set.
+ */
+ boolean hasPrivateServiceConnectConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The privateServiceConnectConfig.
+ */
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfig getPrivateServiceConnectConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Configuration for private service connect.
+ *
+ * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ * are mutually exclusive.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.PrivateServiceConnectConfigOrBuilder
+ getPrivateServiceConnectConfigOrBuilder();
+
/**
*
*
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java
index 33c29c965593..44a4ee6f3a1a 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/EndpointProto.java
@@ -68,67 +68,71 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "encryption_spec.proto\032,google/cloud/aipl"
+ "atform/v1/explanation.proto\032#google/clou"
+ "d/aiplatform/v1/io.proto\0322google/cloud/a"
- + "iplatform/v1/machine_resources.proto\032\037go"
- + "ogle/protobuf/timestamp.proto\"\302\010\n\010Endpoi"
- + "nt\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 "
- + "\001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022G\n\017deploye"
- + "d_models\030\004 \003(\0132).google.cloud.aiplatform"
- + ".v1.DeployedModelB\003\340A\003\022M\n\rtraffic_split\030"
- + "\005 \003(\01326.google.cloud.aiplatform.v1.Endpo"
- + "int.TrafficSplitEntry\022\014\n\004etag\030\006 \001(\t\022@\n\006l"
- + "abels\030\007 \003(\01320.google.cloud.aiplatform.v1"
- + ".Endpoint.LabelsEntry\0224\n\013create_time\030\010 \001"
- + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u"
- + "pdate_time\030\t \001(\0132\032.google.protobuf.Times"
- + "tampB\003\340A\003\022C\n\017encryption_spec\030\n \001(\0132*.goo"
- + "gle.cloud.aiplatform.v1.EncryptionSpec\0227"
- + "\n\007network\030\r \001(\tB&\340A\001\372A \n\036compute.googlea"
- + "pis.com/Network\022*\n\036enable_private_servic"
- + "e_connect\030\021 \001(\010B\002\030\001\022g\n\037model_deployment_"
- + "monitoring_job\030\016 \001(\tB>\340A\003\372A8\n6aiplatform"
- + ".googleapis.com/ModelDeploymentMonitorin"
- + "gJob\022p\n\'predict_request_response_logging"
- + "_config\030\022 \001(\0132?.google.cloud.aiplatform."
- + "v1.PredictRequestResponseLoggingConfig\0323"
- + "\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
- + "e\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022"
- + "\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatform.go"
- + "ogleapis.com/Endpoint\022cloud.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::V1b\006proto3"
+ + "iplatform/v1/machine_resources.proto\0323go"
+ + "ogle/cloud/aiplatform/v1/service_network"
+ + "ing.proto\032\037google/protobuf/timestamp.pro"
+ + "to\"\250\t\n\010Endpoint\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014di"
+ + "splay_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001"
+ + "(\t\022G\n\017deployed_models\030\004 \003(\0132).google.clo"
+ + "ud.aiplatform.v1.DeployedModelB\003\340A\003\022M\n\rt"
+ + "raffic_split\030\005 \003(\01326.google.cloud.aiplat"
+ + "form.v1.Endpoint.TrafficSplitEntry\022\014\n\004et"
+ + "ag\030\006 \001(\t\022@\n\006labels\030\007 \003(\01320.google.cloud."
+ + "aiplatform.v1.Endpoint.LabelsEntry\0224\n\013cr"
+ + "eate_time\030\010 \001(\0132\032.google.protobuf.Timest"
+ + "ampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google.p"
+ + "rotobuf.TimestampB\003\340A\003\022C\n\017encryption_spe"
+ + "c\030\n \001(\0132*.google.cloud.aiplatform.v1.Enc"
+ + "ryptionSpec\0227\n\007network\030\r \001(\tB&\340A\001\372A \n\036co"
+ + "mpute.googleapis.com/Network\022*\n\036enable_p"
+ + "rivate_service_connect\030\021 \001(\010B\002\030\001\022d\n\036priv"
+ + "ate_service_connect_config\030\025 \001(\01327.googl"
+ + "e.cloud.aiplatform.v1.PrivateServiceConn"
+ + "ectConfigB\003\340A\001\022g\n\037model_deployment_monit"
+ + "oring_job\030\016 \001(\tB>\340A\003\372A8\n6aiplatform.goog"
+ + "leapis.com/ModelDeploymentMonitoringJob\022"
+ + "p\n\'predict_request_response_logging_conf"
+ + "ig\030\022 \001(\0132?.google.cloud.aiplatform.v1.Pr"
+ + "edictRequestResponseLoggingConfig\0323\n\021Tra"
+ + "fficSplitEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
+ + "(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
+ + "lue\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aiplatform.googlea"
+ + "pis.com/Endpoint\022cloud.google.com/go/aiplatform/"
+ + "apiv1/aiplatformpb;aiplatformpb\252\002\032Google"
+ + ".Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPl"
+ + "atform\\V1\352\002\035Google::Cloud::AIPlatform::V"
+ + "1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -140,6 +144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.aiplatform.v1.ExplanationProto.getDescriptor(),
com.google.cloud.aiplatform.v1.IoProto.getDescriptor(),
com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor(),
+ com.google.cloud.aiplatform.v1.ServiceNetworkingProto.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_google_cloud_aiplatform_v1_Endpoint_descriptor =
@@ -160,6 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"EncryptionSpec",
"Network",
"EnablePrivateServiceConnect",
+ "PrivateServiceConnectConfig",
"ModelDeploymentMonitoringJob",
"PredictRequestResponseLoggingConfig",
});
@@ -230,6 +236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.cloud.aiplatform.v1.ExplanationProto.getDescriptor();
com.google.cloud.aiplatform.v1.IoProto.getDescriptor();
com.google.cloud.aiplatform.v1.MachineResourcesProto.getDescriptor();
+ com.google.cloud.aiplatform.v1.ServiceNetworkingProto.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
index 1b7585dfcde4..4ba70320c608 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadata.java
@@ -64,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.aiplatform.v1.GroundingMetadata.Builder.class);
}
+ private int bitField0_;
public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
@@ -212,6 +213,62 @@ public com.google.cloud.aiplatform.v1.GroundingAttribution getGroundingAttributi
return groundingAttributions_.get(index);
}
+ public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4;
+ private com.google.cloud.aiplatform.v1.SearchEntryPoint searchEntryPoint_;
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the searchEntryPoint field is set.
+ */
+ @java.lang.Override
+ public boolean hasSearchEntryPoint() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The searchEntryPoint.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint getSearchEntryPoint() {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -232,6 +289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < groundingAttributions_.size(); i++) {
output.writeMessage(2, groundingAttributions_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(4, getSearchEntryPoint());
+ }
getUnknownFields().writeTo(output);
}
@@ -254,6 +314,9 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, groundingAttributions_.get(i));
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -272,6 +335,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false;
if (!getGroundingAttributionsList().equals(other.getGroundingAttributionsList())) return false;
+ if (hasSearchEntryPoint() != other.hasSearchEntryPoint()) return false;
+ if (hasSearchEntryPoint()) {
+ if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false;
+ }
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -291,6 +358,10 @@ public int hashCode() {
hash = (37 * hash) + GROUNDING_ATTRIBUTIONS_FIELD_NUMBER;
hash = (53 * hash) + getGroundingAttributionsList().hashCode();
}
+ if (hasSearchEntryPoint()) {
+ hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER;
+ hash = (53 * hash) + getSearchEntryPoint().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -420,10 +491,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
}
// Construct using com.google.cloud.aiplatform.v1.GroundingMetadata.newBuilder()
- private Builder() {}
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getGroundingAttributionsFieldBuilder();
+ getSearchEntryPointFieldBuilder();
+ }
}
@java.lang.Override
@@ -438,6 +519,11 @@ public Builder clear() {
groundingAttributionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
+ searchEntryPoint_ = null;
+ if (searchEntryPointBuilder_ != null) {
+ searchEntryPointBuilder_.dispose();
+ searchEntryPointBuilder_ = null;
+ }
return this;
}
@@ -492,6 +578,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GroundingMetadata resu
webSearchQueries_.makeImmutable();
result.webSearchQueries_ = webSearchQueries_;
}
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.searchEntryPoint_ =
+ searchEntryPointBuilder_ == null ? searchEntryPoint_ : searchEntryPointBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
@@ -577,6 +670,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GroundingMetadata other)
}
}
}
+ if (other.hasSearchEntryPoint()) {
+ mergeSearchEntryPoint(other.getSearchEntryPoint());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -624,6 +720,13 @@ public Builder mergeFrom(
}
break;
} // case 18
+ case 34:
+ {
+ input.readMessage(
+ getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1226,6 +1329,211 @@ public Builder removeGroundingAttributions(int index) {
return groundingAttributionsBuilder_;
}
+ private com.google.cloud.aiplatform.v1.SearchEntryPoint searchEntryPoint_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>
+ searchEntryPointBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the searchEntryPoint field is set.
+ */
+ public boolean hasSearchEntryPoint() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The searchEntryPoint.
+ */
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint getSearchEntryPoint() {
+ if (searchEntryPointBuilder_ == null) {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ } else {
+ return searchEntryPointBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSearchEntryPoint(com.google.cloud.aiplatform.v1.SearchEntryPoint value) {
+ if (searchEntryPointBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ searchEntryPoint_ = value;
+ } else {
+ searchEntryPointBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setSearchEntryPoint(
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder builderForValue) {
+ if (searchEntryPointBuilder_ == null) {
+ searchEntryPoint_ = builderForValue.build();
+ } else {
+ searchEntryPointBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergeSearchEntryPoint(com.google.cloud.aiplatform.v1.SearchEntryPoint value) {
+ if (searchEntryPointBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && searchEntryPoint_ != null
+ && searchEntryPoint_
+ != com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()) {
+ getSearchEntryPointBuilder().mergeFrom(value);
+ } else {
+ searchEntryPoint_ = value;
+ }
+ } else {
+ searchEntryPointBuilder_.mergeFrom(value);
+ }
+ if (searchEntryPoint_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearSearchEntryPoint() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ searchEntryPoint_ = null;
+ if (searchEntryPointBuilder_ != null) {
+ searchEntryPointBuilder_.dispose();
+ searchEntryPointBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder getSearchEntryPointBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getSearchEntryPointFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() {
+ if (searchEntryPointBuilder_ != null) {
+ return searchEntryPointBuilder_.getMessageOrBuilder();
+ } else {
+ return searchEntryPoint_ == null
+ ? com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance()
+ : searchEntryPoint_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>
+ getSearchEntryPointFieldBuilder() {
+ if (searchEntryPointBuilder_ == null) {
+ searchEntryPointBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1.SearchEntryPoint,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder,
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder>(
+ getSearchEntryPoint(), getParentForChildren(), isClean());
+ searchEntryPoint_ = null;
+ }
+ return searchEntryPointBuilder_;
+ }
+
@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/GroundingMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
index ba7f5bb5274f..6d54366b4f42 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GroundingMetadataOrBuilder.java
@@ -138,4 +138,45 @@ public interface GroundingMetadataOrBuilder
*/
com.google.cloud.aiplatform.v1.GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder(
int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the searchEntryPoint field is set.
+ */
+ boolean hasSearchEntryPoint();
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The searchEntryPoint.
+ */
+ com.google.cloud.aiplatform.v1.SearchEntryPoint getSearchEntryPoint();
+ /**
+ *
+ *
+ *
+ * Optional. Google search entry for the following-up web searches.
+ *
+ *
+ *
+ * optional .google.cloud.aiplatform.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder();
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java
index a60b36d475ce..ec457b2f5241 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/IndexServiceProto.java
@@ -144,17 +144,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "sResponse\"h\n\027RemoveDatapointsRequest\0226\n\005"
+ "index\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleap"
+ "is.com/Index\022\025\n\rdatapoint_ids\030\002 \003(\t\"\032\n\030R"
- + "emoveDatapointsResponse\"\320\007\n&NearestNeigh"
+ + "emoveDatapointsResponse\"\351\007\n&NearestNeigh"
+ "borSearchOperationMetadata\022{\n\030content_va"
+ "lidation_stats\030\001 \003(\0132Y.google.cloud.aipl"
+ "atform.v1.NearestNeighborSearchOperation"
+ "Metadata.ContentValidationStats\022\030\n\020data_"
- + "bytes_count\030\002 \001(\003\032\271\004\n\013RecordError\022r\n\nerr"
+ + "bytes_count\030\002 \001(\003\032\322\004\n\013RecordError\022r\n\nerr"
+ "or_type\030\001 \001(\0162^.google.cloud.aiplatform."
+ "v1.NearestNeighborSearchOperationMetadat"
+ "a.RecordError.RecordErrorType\022\025\n\rerror_m"
+ "essage\030\002 \001(\t\022\026\n\016source_gcs_uri\030\003 \001(\t\022\024\n\014"
- + "embedding_id\030\004 \001(\t\022\022\n\nraw_record\030\005 \001(\t\"\334"
+ + "embedding_id\030\004 \001(\t\022\022\n\nraw_record\030\005 \001(\t\"\365"
+ "\002\n\017RecordErrorType\022\032\n\026ERROR_TYPE_UNSPECI"
+ "FIED\020\000\022\016\n\nEMPTY_LINE\020\001\022\027\n\023INVALID_JSON_S"
+ "YNTAX\020\002\022\026\n\022INVALID_CSV_SYNTAX\020\003\022\027\n\023INVAL"
@@ -163,55 +163,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "PACE_MISSING\020\007\022\021\n\rPARSING_ERROR\020\010\022\027\n\023DUP"
+ "LICATE_NAMESPACE\020\t\022\023\n\017OP_IN_DATAPOINT\020\n\022"
+ "\023\n\017MULTIPLE_VALUES\020\013\022\031\n\025INVALID_NUMERIC_"
- + "VALUE\020\014\022\024\n\020INVALID_ENCODING\020\r\032\322\001\n\026Conten"
- + "tValidationStats\022\026\n\016source_gcs_uri\030\001 \001(\t"
- + "\022\032\n\022valid_record_count\030\002 \001(\003\022\034\n\024invalid_"
- + "record_count\030\003 \001(\003\022f\n\016partial_errors\030\004 \003"
- + "(\0132N.google.cloud.aiplatform.v1.NearestN"
- + "eighborSearchOperationMetadata.RecordErr"
- + "or2\266\013\n\014IndexService\022\317\001\n\013CreateIndex\022..go"
- + "ogle.cloud.aiplatform.v1.CreateIndexRequ"
- + "est\032\035.google.longrunning.Operation\"q\312A%\n"
- + "\005Index\022\034CreateIndexOperationMetadata\332A\014p"
- + "arent,index\202\323\344\223\0024\"+/v1/{parent=projects/"
- + "*/locations/*}/indexes:\005index\022\226\001\n\010GetInd"
- + "ex\022+.google.cloud.aiplatform.v1.GetIndex"
- + "Request\032!.google.cloud.aiplatform.v1.Ind"
- + "ex\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/"
- + "locations/*/indexes/*}\022\254\001\n\013ListIndexes\022."
- + ".google.cloud.aiplatform.v1.ListIndexesR"
- + "equest\032/.google.cloud.aiplatform.v1.List"
- + "IndexesResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{p"
- + "arent=projects/*/locations/*}/indexes\022\332\001"
- + "\n\013UpdateIndex\022..google.cloud.aiplatform."
- + "v1.UpdateIndexRequest\032\035.google.longrunni"
- + "ng.Operation\"|\312A%\n\005Index\022\034UpdateIndexOpe"
- + "rationMetadata\332A\021index,update_mask\202\323\344\223\002:"
- + "21/v1/{index.name=projects/*/locations/*"
- + "/indexes/*}:\005index\022\313\001\n\013DeleteIndex\022..goo"
- + "gle.cloud.aiplatform.v1.DeleteIndexReque"
- + "st\032\035.google.longrunning.Operation\"m\312A0\n\025"
- + "google.protobuf.Empty\022\027DeleteOperationMe"
- + "tadata\332A\004name\202\323\344\223\002-*+/v1/{name=projects/"
- + "*/locations/*/indexes/*}\022\307\001\n\020UpsertDatap"
- + "oints\0223.google.cloud.aiplatform.v1.Upser"
- + "tDatapointsRequest\0324.google.cloud.aiplat"
- + "form.v1.UpsertDatapointsResponse\"H\202\323\344\223\002B"
- + "\"=/v1/{index=projects/*/locations/*/inde"
- + "xes/*}:upsertDatapoints:\001*\022\307\001\n\020RemoveDat"
- + "apoints\0223.google.cloud.aiplatform.v1.Rem"
- + "oveDatapointsRequest\0324.google.cloud.aipl"
- + "atform.v1.RemoveDatapointsResponse\"H\202\323\344\223"
- + "\002B\"=/v1/{index=projects/*/locations/*/in"
- + "dexes/*}:removeDatapoints:\001*\032M\312A\031aiplatf"
- + "orm.googleapis.com\322A.https://www.googlea"
- + "pis.com/auth/cloud-platformB\317\001\n\036com.goog"
- + "le.cloud.aiplatform.v1B\021IndexServiceProt"
- + "oP\001Z>cloud.google.com/go/aiplatform/apiv"
- + "1/aiplatformpb;aiplatformpb\252\002\032Google.Clo"
- + "ud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatfo"
- + "rm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006p"
- + "roto3"
+ + "VALUE\020\014\022\024\n\020INVALID_ENCODING\020\r\022\027\n\023INVALID"
+ + "_TOKEN_VALUE\020\017\032\322\001\n\026ContentValidationStat"
+ + "s\022\026\n\016source_gcs_uri\030\001 \001(\t\022\032\n\022valid_recor"
+ + "d_count\030\002 \001(\003\022\034\n\024invalid_record_count\030\003 "
+ + "\001(\003\022f\n\016partial_errors\030\004 \003(\0132N.google.clo"
+ + "ud.aiplatform.v1.NearestNeighborSearchOp"
+ + "erationMetadata.RecordError2\266\013\n\014IndexSer"
+ + "vice\022\317\001\n\013CreateIndex\022..google.cloud.aipl"
+ + "atform.v1.CreateIndexRequest\032\035.google.lo"
+ + "ngrunning.Operation\"q\312A%\n\005Index\022\034CreateI"
+ + "ndexOperationMetadata\332A\014parent,index\202\323\344\223"
+ + "\0024\"+/v1/{parent=projects/*/locations/*}/"
+ + "indexes:\005index\022\226\001\n\010GetIndex\022+.google.clo"
+ + "ud.aiplatform.v1.GetIndexRequest\032!.googl"
+ + "e.cloud.aiplatform.v1.Index\":\332A\004name\202\323\344\223"
+ + "\002-\022+/v1/{name=projects/*/locations/*/ind"
+ + "exes/*}\022\254\001\n\013ListIndexes\022..google.cloud.a"
+ + "iplatform.v1.ListIndexesRequest\032/.google"
+ + ".cloud.aiplatform.v1.ListIndexesResponse"
+ + "\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=projects/"
+ + "*/locations/*}/indexes\022\332\001\n\013UpdateIndex\022."
+ + ".google.cloud.aiplatform.v1.UpdateIndexR"
+ + "equest\032\035.google.longrunning.Operation\"|\312"
+ + "A%\n\005Index\022\034UpdateIndexOperationMetadata\332"
+ + "A\021index,update_mask\202\323\344\223\002:21/v1/{index.na"
+ + "me=projects/*/locations/*/indexes/*}:\005in"
+ + "dex\022\313\001\n\013DeleteIndex\022..google.cloud.aipla"
+ + "tform.v1.DeleteIndexRequest\032\035.google.lon"
+ + "grunning.Operation\"m\312A0\n\025google.protobuf"
+ + ".Empty\022\027DeleteOperationMetadata\332A\004name\202\323"
+ + "\344\223\002-*+/v1/{name=projects/*/locations/*/i"
+ + "ndexes/*}\022\307\001\n\020UpsertDatapoints\0223.google."
+ + "cloud.aiplatform.v1.UpsertDatapointsRequ"
+ + "est\0324.google.cloud.aiplatform.v1.UpsertD"
+ + "atapointsResponse\"H\202\323\344\223\002B\"=/v1/{index=pr"
+ + "ojects/*/locations/*/indexes/*}:upsertDa"
+ + "tapoints:\001*\022\307\001\n\020RemoveDatapoints\0223.googl"
+ + "e.cloud.aiplatform.v1.RemoveDatapointsRe"
+ + "quest\0324.google.cloud.aiplatform.v1.Remov"
+ + "eDatapointsResponse\"H\202\323\344\223\002B\"=/v1/{index="
+ + "projects/*/locations/*/indexes/*}:remove"
+ + "Datapoints:\001*\032M\312A\031aiplatform.googleapis."
+ + "com\322A.https://www.googleapis.com/auth/cl"
+ + "oud-platformB\317\001\n\036com.google.cloud.aiplat"
+ + "form.v1B\021IndexServiceProtoP\001Z>cloud.goog"
+ + "le.com/go/aiplatform/apiv1/aiplatformpb;"
+ + "aiplatformpb\252\002\032Google.Cloud.AIPlatform.V"
+ + "1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google:"
+ + ":Cloud::AIPlatform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java
index 798ace0ca7d0..2eba236f6330 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NearestNeighborSearchOperationMetadata.java
@@ -397,6 +397,16 @@ public enum RecordErrorType implements com.google.protobuf.ProtocolMessageEnum {
* INVALID_ENCODING = 13;
*/
INVALID_ENCODING(13),
+ /**
+ *
+ *
+ *
+ * Token restrict value is invalid.
+ *
+ *
+ * INVALID_TOKEN_VALUE = 15;
+ */
+ INVALID_TOKEN_VALUE(15),
UNRECOGNIZED(-1),
;
@@ -542,6 +552,16 @@ public enum RecordErrorType implements com.google.protobuf.ProtocolMessageEnum {
* INVALID_ENCODING = 13;
*/
public static final int INVALID_ENCODING_VALUE = 13;
+ /**
+ *
+ *
+ *
+ * Token restrict value is invalid.
+ *
+ *
+ * INVALID_TOKEN_VALUE = 15;
+ */
+ public static final int INVALID_TOKEN_VALUE_VALUE = 15;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -595,6 +615,8 @@ public static RecordErrorType forNumber(int value) {
return INVALID_NUMERIC_VALUE;
case 13:
return INVALID_ENCODING;
+ case 15:
+ return INVALID_TOKEN_VALUE;
default:
return null;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java
index b36d0fc5ae71..df9888e70924 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeProto.java
@@ -64,74 +64,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "/notebook_idle_shutdown_config.proto\032>go"
+ "ogle/cloud/aiplatform/v1/notebook_runtim"
+ "e_template_ref.proto\032\037google/protobuf/ti"
- + "mestamp.proto\"\341\010\n\027NotebookRuntimeTemplat"
- + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001"
- + "(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022\027\n\nis_defau"
- + "lt\030\004 \001(\010B\003\340A\003\022E\n\014machine_spec\030\005 \001(\0132\'.go"
- + "ogle.cloud.aiplatform.v1.MachineSpecB\006\340A"
- + "\001\340A\005\022V\n\031data_persistent_disk_spec\030\010 \001(\0132"
- + "..google.cloud.aiplatform.v1.PersistentD"
- + "iskSpecB\003\340A\001\022B\n\014network_spec\030\014 \001(\0132\'.goo"
- + "gle.cloud.aiplatform.v1.NetworkSpecB\003\340A\001"
- + "\022\027\n\017service_account\030\r \001(\t\022\014\n\004etag\030\016 \001(\t\022"
- + "O\n\006labels\030\017 \003(\0132?.google.cloud.aiplatfor"
- + "m.v1.NotebookRuntimeTemplate.LabelsEntry"
- + "\022T\n\024idle_shutdown_config\030\021 \001(\01326.google."
- + "cloud.aiplatform.v1.NotebookIdleShutdown"
- + "Config\022A\n\neuc_config\030\022 \001(\0132-.google.clou"
- + "d.aiplatform.v1.NotebookEucConfig\0224\n\013cre"
- + "ate_time\030\n \001(\0132\032.google.protobuf.Timesta"
- + "mpB\003\340A\003\0224\n\013update_time\030\013 \001(\0132\032.google.pr"
- + "otobuf.TimestampB\003\340A\003\022V\n\025notebook_runtim"
- + "e_type\030\023 \001(\0162/.google.cloud.aiplatform.v"
- + "1.NotebookRuntimeTypeB\006\340A\001\340A\005\022P\n\022shielde"
- + "d_vm_config\030\024 \001(\0132,.google.cloud.aiplatf"
- + "orm.v1.ShieldedVmConfigB\006\340A\001\340A\005\022\031\n\014netwo"
- + "rk_tags\030\025 \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key"
- + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n1aiplat"
- + "form.googleapis.com/NotebookRuntimeTempl"
- + "ate\022\\projects/{project}/locations/{locat"
- + "ion}/notebookRuntimeTemplates/{notebook_"
- + "runtime_template}\"\325\t\n\017NotebookRuntime\022\021\n"
- + "\004name\030\001 \001(\tB\003\340A\003\022\031\n\014runtime_user\030\002 \001(\tB\003"
- + "\340A\002\022b\n\035notebook_runtime_template_ref\030\003 \001"
- + "(\01326.google.cloud.aiplatform.v1.Notebook"
- + "RuntimeTemplateRefB\003\340A\003\022\026\n\tproxy_uri\030\005 \001"
- + "(\tB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pr"
- + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001"
- + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022R\n\014h"
- + "ealth_state\030\010 \001(\01627.google.cloud.aiplatf"
- + "orm.v1.NotebookRuntime.HealthStateB\003\340A\003\022"
- + "\031\n\014display_name\030\n \001(\tB\003\340A\002\022\023\n\013descriptio"
- + "n\030\013 \001(\t\022\034\n\017service_account\030\r \001(\tB\003\340A\003\022T\n"
- + "\rruntime_state\030\016 \001(\01628.google.cloud.aipl"
- + "atform.v1.NotebookRuntime.RuntimeStateB\003"
- + "\340A\003\022\032\n\ris_upgradable\030\017 \001(\010B\003\340A\003\022G\n\006label"
- + "s\030\020 \003(\01327.google.cloud.aiplatform.v1.Not"
- + "ebookRuntime.LabelsEntry\0228\n\017expiration_t"
- + "ime\030\021 \001(\0132\032.google.protobuf.TimestampB\003\340"
- + "A\003\022\024\n\007version\030\022 \001(\tB\003\340A\003\022S\n\025notebook_run"
- + "time_type\030\023 \001(\0162/.google.cloud.aiplatfor"
- + "m.v1.NotebookRuntimeTypeB\003\340A\003\022\031\n\014network"
- + "_tags\030\031 \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001"
- + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"G\n\013HealthState\022\034"
- + "\n\030HEALTH_STATE_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020"
- + "\001\022\r\n\tUNHEALTHY\020\002\"\231\001\n\014RuntimeState\022\035\n\031RUN"
- + "TIME_STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\021\n"
- + "\rBEING_STARTED\020\002\022\021\n\rBEING_STOPPED\020\003\022\013\n\007S"
- + "TOPPED\020\004\022\022\n\016BEING_UPGRADED\020\005\022\t\n\005ERROR\020d\022"
- + "\013\n\007INVALID\020e:{\352Ax\n)aiplatform.googleapis"
- + ".com/NotebookRuntime\022Kprojects/{project}"
- + "/locations/{location}/notebookRuntimes/{"
- + "notebook_runtime}*]\n\023NotebookRuntimeType"
- + "\022%\n!NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED\020\000\022"
- + "\020\n\014USER_DEFINED\020\001\022\r\n\tONE_CLICK\020\002B\322\001\n\036com"
- + ".google.cloud.aiplatform.v1B\024NotebookRun"
- + "timeProtoP\001Z>cloud.google.com/go/aiplatf"
- + "orm/apiv1/aiplatformpb;aiplatformpb\252\002\032Go"
- + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\"
- + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor"
- + "m::V1b\006proto3"
+ + "mestamp.proto\"\334\010\n\027NotebookRuntimeTemplat"
+ + "e\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340"
+ + "A\002\022\023\n\013description\030\003 \001(\t\022\027\n\nis_default\030\004 "
+ + "\001(\010B\003\340A\003\022E\n\014machine_spec\030\005 \001(\0132\'.google."
+ + "cloud.aiplatform.v1.MachineSpecB\006\340A\001\340A\005\022"
+ + "V\n\031data_persistent_disk_spec\030\010 \001(\0132..goo"
+ + "gle.cloud.aiplatform.v1.PersistentDiskSp"
+ + "ecB\003\340A\001\022B\n\014network_spec\030\014 \001(\0132\'.google.c"
+ + "loud.aiplatform.v1.NetworkSpecB\003\340A\001\022\027\n\017s"
+ + "ervice_account\030\r \001(\t\022\014\n\004etag\030\016 \001(\t\022O\n\006la"
+ + "bels\030\017 \003(\0132?.google.cloud.aiplatform.v1."
+ + "NotebookRuntimeTemplate.LabelsEntry\022T\n\024i"
+ + "dle_shutdown_config\030\021 \001(\01326.google.cloud"
+ + ".aiplatform.v1.NotebookIdleShutdownConfi"
+ + "g\022A\n\neuc_config\030\022 \001(\0132-.google.cloud.aip"
+ + "latform.v1.NotebookEucConfig\0224\n\013create_t"
+ + "ime\030\n \001(\0132\032.google.protobuf.TimestampB\003\340"
+ + "A\003\0224\n\013update_time\030\013 \001(\0132\032.google.protobu"
+ + "f.TimestampB\003\340A\003\022V\n\025notebook_runtime_typ"
+ + "e\030\023 \001(\0162/.google.cloud.aiplatform.v1.Not"
+ + "ebookRuntimeTypeB\006\340A\001\340A\005\022P\n\022shielded_vm_"
+ + "config\030\024 \001(\0132,.google.cloud.aiplatform.v"
+ + "1.ShieldedVmConfigB\006\340A\001\340A\005\022\031\n\014network_ta"
+ + "gs\030\025 \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001("
+ + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:\225\001\352A\221\001\n1aiplatform."
+ + "googleapis.com/NotebookRuntimeTemplate\022\\"
+ + "projects/{project}/locations/{location}/"
+ + "notebookRuntimeTemplates/{notebook_runti"
+ + "me_template}\"\325\t\n\017NotebookRuntime\022\021\n\004name"
+ + "\030\001 \001(\tB\003\340A\003\022\031\n\014runtime_user\030\002 \001(\tB\003\340A\002\022b"
+ + "\n\035notebook_runtime_template_ref\030\003 \001(\01326."
+ + "google.cloud.aiplatform.v1.NotebookRunti"
+ + "meTemplateRefB\003\340A\003\022\026\n\tproxy_uri\030\005 \001(\tB\003\340"
+ + "A\003\0224\n\013create_time\030\006 \001(\0132\032.google.protobu"
+ + "f.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032."
+ + "google.protobuf.TimestampB\003\340A\003\022R\n\014health"
+ + "_state\030\010 \001(\01627.google.cloud.aiplatform.v"
+ + "1.NotebookRuntime.HealthStateB\003\340A\003\022\031\n\014di"
+ + "splay_name\030\n \001(\tB\003\340A\002\022\023\n\013description\030\013 \001"
+ + "(\t\022\034\n\017service_account\030\r \001(\tB\003\340A\003\022T\n\rrunt"
+ + "ime_state\030\016 \001(\01628.google.cloud.aiplatfor"
+ + "m.v1.NotebookRuntime.RuntimeStateB\003\340A\003\022\032"
+ + "\n\ris_upgradable\030\017 \001(\010B\003\340A\003\022G\n\006labels\030\020 \003"
+ + "(\01327.google.cloud.aiplatform.v1.Notebook"
+ + "Runtime.LabelsEntry\0228\n\017expiration_time\030\021"
+ + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\024\n"
+ + "\007version\030\022 \001(\tB\003\340A\003\022S\n\025notebook_runtime_"
+ + "type\030\023 \001(\0162/.google.cloud.aiplatform.v1."
+ + "NotebookRuntimeTypeB\003\340A\003\022\031\n\014network_tags"
+ + "\030\031 \003(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022"
+ + "\r\n\005value\030\002 \001(\t:\0028\001\"G\n\013HealthState\022\034\n\030HEA"
+ + "LTH_STATE_UNSPECIFIED\020\000\022\013\n\007HEALTHY\020\001\022\r\n\t"
+ + "UNHEALTHY\020\002\"\231\001\n\014RuntimeState\022\035\n\031RUNTIME_"
+ + "STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\021\n\rBEIN"
+ + "G_STARTED\020\002\022\021\n\rBEING_STOPPED\020\003\022\013\n\007STOPPE"
+ + "D\020\004\022\022\n\016BEING_UPGRADED\020\005\022\t\n\005ERROR\020d\022\013\n\007IN"
+ + "VALID\020e:{\352Ax\n)aiplatform.googleapis.com/"
+ + "NotebookRuntime\022Kprojects/{project}/loca"
+ + "tions/{location}/notebookRuntimes/{noteb"
+ + "ook_runtime}*]\n\023NotebookRuntimeType\022%\n!N"
+ + "OTEBOOK_RUNTIME_TYPE_UNSPECIFIED\020\000\022\020\n\014US"
+ + "ER_DEFINED\020\001\022\r\n\tONE_CLICK\020\002B\322\001\n\036com.goog"
+ + "le.cloud.aiplatform.v1B\024NotebookRuntimeP"
+ + "rotoP\001Z>cloud.google.com/go/aiplatform/a"
+ + "piv1/aiplatformpb;aiplatformpb\252\002\032Google."
+ + "Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPla"
+ + "tform\\V1\352\002\035Google::Cloud::AIPlatform::V1"
+ + "b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java
index 9dcd2dca144b..caa23cdc87d3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplate.java
@@ -92,10 +92,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @return The name.
*/
@@ -115,10 +115,10 @@ public java.lang.String getName() {
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @return The bytes for name.
*/
@@ -1930,10 +1930,10 @@ public Builder mergeFrom(
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @return The name.
*/
@@ -1952,10 +1952,10 @@ public java.lang.String getName() {
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @return The bytes for name.
*/
@@ -1974,10 +1974,10 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @param value The name to set.
* @return This builder for chaining.
@@ -1995,10 +1995,10 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @return This builder for chaining.
*/
@@ -2012,10 +2012,10 @@ public Builder clearName() {
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @param value The bytes for name 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/NotebookRuntimeTemplateOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateOrBuilder.java
index f1f96dd0c1d0..3a820dfbe1e3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/NotebookRuntimeTemplateOrBuilder.java
@@ -28,10 +28,10 @@ public interface NotebookRuntimeTemplateOrBuilder
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @return The name.
*/
@@ -40,10 +40,10 @@ public interface NotebookRuntimeTemplateOrBuilder
*
*
*
- * Output only. The resource name of the NotebookRuntimeTemplate.
+ * The resource name of the NotebookRuntimeTemplate.
*
*
- * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string name = 1;
*
* @return The bytes for name.
*/
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java
index d15aa0af85bb..f74b0d6f0c05 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModel.java
@@ -9754,6 +9754,49 @@ public interface DeployOrBuilder
*/
com.google.protobuf.ByteString getArtifactUriBytes();
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deployTaskName field is set.
+ */
+ boolean hasDeployTaskName();
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deployTaskName.
+ */
+ java.lang.String getDeployTaskName();
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for deployTaskName.
+ */
+ com.google.protobuf.ByteString getDeployTaskNameBytes();
+
/**
*
*
@@ -9832,6 +9875,7 @@ private Deploy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
private Deploy() {
modelDisplayName_ = "";
artifactUri_ = "";
+ deployTaskName_ = "";
title_ = "";
publicArtifactUri_ = "";
}
@@ -10320,6 +10364,78 @@ public com.google.protobuf.ByteString getArtifactUriBytes() {
}
}
+ public static final int DEPLOY_TASK_NAME_FIELD_NUMBER = 10;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object deployTaskName_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deployTaskName field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeployTaskName() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deployTaskName.
+ */
+ @java.lang.Override
+ public java.lang.String getDeployTaskName() {
+ java.lang.Object ref = deployTaskName_;
+ 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();
+ deployTaskName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for deployTaskName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDeployTaskNameBytes() {
+ java.lang.Object ref = deployTaskName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ deployTaskName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int TITLE_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
@@ -10467,6 +10583,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicArtifactUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, publicArtifactUri_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, deployTaskName_);
+ }
getUnknownFields().writeTo(output);
}
@@ -10508,6 +10627,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicArtifactUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, publicArtifactUri_);
}
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, deployTaskName_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -10534,6 +10656,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getContainerSpec().equals(other.getContainerSpec())) return false;
}
if (!getArtifactUri().equals(other.getArtifactUri())) return false;
+ if (hasDeployTaskName() != other.hasDeployTaskName()) return false;
+ if (hasDeployTaskName()) {
+ if (!getDeployTaskName().equals(other.getDeployTaskName())) return false;
+ }
if (!getTitle().equals(other.getTitle())) return false;
if (!getPublicArtifactUri().equals(other.getPublicArtifactUri())) return false;
if (!getPredictionResourcesCase().equals(other.getPredictionResourcesCase())) return false;
@@ -10573,6 +10699,10 @@ public int hashCode() {
}
hash = (37 * hash) + ARTIFACT_URI_FIELD_NUMBER;
hash = (53 * hash) + getArtifactUri().hashCode();
+ if (hasDeployTaskName()) {
+ hash = (37 * hash) + DEPLOY_TASK_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDeployTaskName().hashCode();
+ }
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
hash = (37 * hash) + PUBLIC_ARTIFACT_URI_FIELD_NUMBER;
@@ -10767,6 +10897,7 @@ public Builder clear() {
containerSpecBuilder_ = null;
}
artifactUri_ = "";
+ deployTaskName_ = "";
title_ = "";
publicArtifactUri_ = "";
predictionResourcesCase_ = 0;
@@ -10831,9 +10962,13 @@ private void buildPartial0(
result.artifactUri_ = artifactUri_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
- result.title_ = title_;
+ result.deployTaskName_ = deployTaskName_;
+ to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.title_ = title_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
result.publicArtifactUri_ = publicArtifactUri_;
}
result.bitField0_ |= to_bitField0_;
@@ -10918,14 +11053,19 @@ public Builder mergeFrom(
bitField0_ |= 0x00000040;
onChanged();
}
+ if (other.hasDeployTaskName()) {
+ deployTaskName_ = other.deployTaskName_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
if (!other.getTitle().isEmpty()) {
title_ = other.title_;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getPublicArtifactUri().isEmpty()) {
publicArtifactUri_ = other.publicArtifactUri_;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
}
switch (other.getPredictionResourcesCase()) {
@@ -11027,15 +11167,21 @@ public Builder mergeFrom(
case 66:
{
title_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
break;
} // case 66
case 74:
{
publicArtifactUri_ = input.readStringRequireUtf8();
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
break;
} // case 74
+ case 82:
+ {
+ deployTaskName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 82
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -12313,6 +12459,138 @@ public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private java.lang.Object deployTaskName_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the deployTaskName field is set.
+ */
+ public boolean hasDeployTaskName() {
+ return ((bitField0_ & 0x00000080) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The deployTaskName.
+ */
+ public java.lang.String getDeployTaskName() {
+ java.lang.Object ref = deployTaskName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ deployTaskName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The bytes for deployTaskName.
+ */
+ public com.google.protobuf.ByteString getDeployTaskNameBytes() {
+ java.lang.Object ref = deployTaskName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ deployTaskName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The deployTaskName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeployTaskName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ deployTaskName_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDeployTaskName() {
+ deployTaskName_ = getDefaultInstance().getDeployTaskName();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The name of the deploy task (e.g., "text to image
+ * generation").
+ *
+ *
+ * optional string deploy_task_name = 10 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The bytes for deployTaskName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeployTaskNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ deployTaskName_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
private java.lang.Object title_ = "";
/**
*
@@ -12375,7 +12653,7 @@ public Builder setTitle(java.lang.String value) {
throw new NullPointerException();
}
title_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -12392,7 +12670,7 @@ public Builder setTitle(java.lang.String value) {
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
- bitField0_ = (bitField0_ & ~0x00000080);
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
@@ -12414,7 +12692,7 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
title_ = value;
- bitField0_ |= 0x00000080;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -12484,7 +12762,7 @@ public Builder setPublicArtifactUri(java.lang.String value) {
throw new NullPointerException();
}
publicArtifactUri_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -12502,7 +12780,7 @@ public Builder setPublicArtifactUri(java.lang.String value) {
*/
public Builder clearPublicArtifactUri() {
publicArtifactUri_ = getDefaultInstance().getPublicArtifactUri();
- bitField0_ = (bitField0_ & ~0x00000100);
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
@@ -12525,7 +12803,7 @@ public Builder setPublicArtifactUriBytes(com.google.protobuf.ByteString value) {
}
checkByteStringIsUtf8(value);
publicArtifactUri_ = value;
- bitField0_ |= 0x00000100;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java
index a9653e2e12a3..2c91027ae12b 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PublisherModelProto.java
@@ -86,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "google/api/field_behavior.proto\032\031google/"
+ "api/resource.proto\0322google/cloud/aiplatf"
+ "orm/v1/machine_resources.proto\032&google/c"
- + "loud/aiplatform/v1/model.proto\"\335 \n\016Publi"
+ + "loud/aiplatform/v1/model.proto\"\226!\n\016Publi"
+ "sherModel\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\nversion_"
+ "id\030\002 \001(\tB\006\340A\005\340A\003\022`\n\024open_source_category"
+ "\030\007 \001(\0162=.google.cloud.aiplatform.v1.Publ"
@@ -105,7 +105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ce_name\030\002 \001(\tH\000\022\026\n\010use_case\030\003 \001(\tB\002\030\001H\000\022"
+ "\031\n\013description\030\004 \001(\tB\002\030\001H\000B\013\n\treference\032"
+ "9\n\rDocumentation\022\022\n\005title\030\001 \001(\tB\003\340A\002\022\024\n\007"
- + "content\030\002 \001(\tB\003\340A\002\032\350\026\n\014CallToAction\022_\n\rv"
+ + "content\030\002 \001(\tB\003\340A\002\032\241\027\n\014CallToAction\022_\n\rv"
+ "iew_rest_api\030\001 \001(\0132C.google.cloud.aiplat"
+ "form.v1.PublisherModel.CallToAction.View"
+ "RestApiB\003\340A\001\022n\n\ropen_notebook\030\002 \001(\0132R.go"
@@ -163,7 +163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "A\002\032\221\001\n\027OpenFineTuningPipelines\022v\n\025fine_t"
+ "uning_pipelines\030\001 \003(\0132R.google.cloud.aip"
+ "latform.v1.PublisherModel.CallToAction.R"
- + "egionalResourceReferencesB\003\340A\002\032\356\003\n\006Deplo"
+ + "egionalResourceReferencesB\003\340A\002\032\247\004\n\006Deplo"
+ "y\022M\n\023dedicated_resources\030\005 \001(\0132..google."
+ "cloud.aiplatform.v1.DedicatedResourcesH\000"
+ "\022M\n\023automatic_resources\030\006 \001(\0132..google.c"
@@ -174,30 +174,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ ".LargeModelReferenceB\003\340A\001\022K\n\016container_s"
+ "pec\030\003 \001(\0132..google.cloud.aiplatform.v1.M"
+ "odelContainerSpecB\003\340A\001\022\031\n\014artifact_uri\030\004"
- + " \001(\tB\003\340A\001\022\022\n\005title\030\010 \001(\tB\003\340A\002\022 \n\023public_"
- + "artifact_uri\030\t \001(\tB\003\340A\001B\026\n\024prediction_re"
- + "sources\032*\n\tDeployGke\022\035\n\020gke_yaml_configs"
- + "\030\001 \003(\tB\003\340A\001B\021\n\017_open_notebooksB\035\n\033_open_"
- + "fine_tuning_pipelines\"\333\001\n\022OpenSourceCate"
- + "gory\022$\n OPEN_SOURCE_CATEGORY_UNSPECIFIED"
- + "\020\000\022\017\n\013PROPRIETARY\020\001\022+\n\'GOOGLE_OWNED_OSS_"
- + "WITH_GOOGLE_CHECKPOINT\020\002\0220\n,THIRD_PARTY_"
- + "OWNED_OSS_WITH_GOOGLE_CHECKPOINT\020\003\022\024\n\020GO"
- + "OGLE_OWNED_OSS\020\004\022\031\n\025THIRD_PARTY_OWNED_OS"
- + "S\020\005\"n\n\013LaunchStage\022\034\n\030LAUNCH_STAGE_UNSPE"
- + "CIFIED\020\000\022\020\n\014EXPERIMENTAL\020\001\022\023\n\017PRIVATE_PR"
- + "EVIEW\020\002\022\022\n\016PUBLIC_PREVIEW\020\003\022\006\n\002GA\020\004\"c\n\014V"
- + "ersionState\022\035\n\031VERSION_STATE_UNSPECIFIED"
- + "\020\000\022\030\n\024VERSION_STATE_STABLE\020\001\022\032\n\026VERSION_"
- + "STATE_UNSTABLE\020\002:T\352AQ\n(aiplatform.google"
- + "apis.com/PublisherModel\022%publishers/{pub"
- + "lisher}/models/{model}B\321\001\n\036com.google.cl"
- + "oud.aiplatform.v1B\023PublisherModelProtoP\001"
- + "Z>cloud.google.com/go/aiplatform/apiv1/a"
- + "iplatformpb;aiplatformpb\252\002\032Google.Cloud."
- + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\"
- + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot"
- + "o3"
+ + " \001(\tB\003\340A\001\022\"\n\020deploy_task_name\030\n \001(\tB\003\340A\001"
+ + "H\001\210\001\001\022\022\n\005title\030\010 \001(\tB\003\340A\002\022 \n\023public_arti"
+ + "fact_uri\030\t \001(\tB\003\340A\001B\026\n\024prediction_resour"
+ + "cesB\023\n\021_deploy_task_name\032*\n\tDeployGke\022\035\n"
+ + "\020gke_yaml_configs\030\001 \003(\tB\003\340A\001B\021\n\017_open_no"
+ + "tebooksB\035\n\033_open_fine_tuning_pipelines\"\333"
+ + "\001\n\022OpenSourceCategory\022$\n OPEN_SOURCE_CAT"
+ + "EGORY_UNSPECIFIED\020\000\022\017\n\013PROPRIETARY\020\001\022+\n\'"
+ + "GOOGLE_OWNED_OSS_WITH_GOOGLE_CHECKPOINT\020"
+ + "\002\0220\n,THIRD_PARTY_OWNED_OSS_WITH_GOOGLE_C"
+ + "HECKPOINT\020\003\022\024\n\020GOOGLE_OWNED_OSS\020\004\022\031\n\025THI"
+ + "RD_PARTY_OWNED_OSS\020\005\"n\n\013LaunchStage\022\034\n\030L"
+ + "AUNCH_STAGE_UNSPECIFIED\020\000\022\020\n\014EXPERIMENTA"
+ + "L\020\001\022\023\n\017PRIVATE_PREVIEW\020\002\022\022\n\016PUBLIC_PREVI"
+ + "EW\020\003\022\006\n\002GA\020\004\"c\n\014VersionState\022\035\n\031VERSION_"
+ + "STATE_UNSPECIFIED\020\000\022\030\n\024VERSION_STATE_STA"
+ + "BLE\020\001\022\032\n\026VERSION_STATE_UNSTABLE\020\002:T\352AQ\n("
+ + "aiplatform.googleapis.com/PublisherModel"
+ + "\022%publishers/{publisher}/models/{model}B"
+ + "\321\001\n\036com.google.cloud.aiplatform.v1B\023Publ"
+ + "isherModelProtoP\001Z>cloud.google.com/go/a"
+ + "iplatform/apiv1/aiplatformpb;aiplatformp"
+ + "b\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\"
+ + "Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIP"
+ + "latform::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -331,6 +332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"LargeModelReference",
"ContainerSpec",
"ArtifactUri",
+ "DeployTaskName",
"Title",
"PublicArtifactUri",
"PredictionResources",
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchEntryPoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchEntryPoint.java
new file mode 100644
index 000000000000..0a49c1c20426
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchEntryPoint.java
@@ -0,0 +1,732 @@
+/*
+ * Copyright 2024 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/content.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1;
+
+/**
+ *
+ *
+ *
+ * Google search entry point.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.SearchEntryPoint}
+ */
+public final class SearchEntryPoint extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SearchEntryPoint)
+ SearchEntryPointOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SearchEntryPoint.newBuilder() to construct.
+ private SearchEntryPoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private SearchEntryPoint() {
+ renderedContent_ = "";
+ sdkBlob_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new SearchEntryPoint();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.class,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder.class);
+ }
+
+ public static final int RENDERED_CONTENT_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object renderedContent_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The renderedContent.
+ */
+ @java.lang.Override
+ public java.lang.String getRenderedContent() {
+ java.lang.Object ref = renderedContent_;
+ 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();
+ renderedContent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for renderedContent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRenderedContentBytes() {
+ java.lang.Object ref = renderedContent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ renderedContent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SDK_BLOB_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ *
+ * Optional. Base64 encoded JSON representing array of <search term, search
+ * url> tuple.
+ *
+ *
+ * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The sdkBlob.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSdkBlob() {
+ return sdkBlob_;
+ }
+
+ 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(renderedContent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderedContent_);
+ }
+ if (!sdkBlob_.isEmpty()) {
+ output.writeBytes(2, sdkBlob_);
+ }
+ 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(renderedContent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderedContent_);
+ }
+ if (!sdkBlob_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sdkBlob_);
+ }
+ 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.SearchEntryPoint)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1.SearchEntryPoint other =
+ (com.google.cloud.aiplatform.v1.SearchEntryPoint) obj;
+
+ if (!getRenderedContent().equals(other.getRenderedContent())) return false;
+ if (!getSdkBlob().equals(other.getSdkBlob())) 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) + RENDERED_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getRenderedContent().hashCode();
+ hash = (37 * hash) + SDK_BLOB_FIELD_NUMBER;
+ hash = (53 * hash) + getSdkBlob().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1.SearchEntryPoint parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SearchEntryPoint 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.SearchEntryPoint parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SearchEntryPoint 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.SearchEntryPoint parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SearchEntryPoint 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.SearchEntryPoint parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SearchEntryPoint 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.SearchEntryPoint parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1.SearchEntryPoint 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.SearchEntryPoint 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.SearchEntryPoint 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.SearchEntryPoint 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;
+ }
+ /**
+ *
+ *
+ *
+ * Google search entry point.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1.SearchEntryPoint}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SearchEntryPoint)
+ com.google.cloud.aiplatform.v1.SearchEntryPointOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.class,
+ com.google.cloud.aiplatform.v1.SearchEntryPoint.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1.SearchEntryPoint.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ renderedContent_ = "";
+ sdkBlob_ = com.google.protobuf.ByteString.EMPTY;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1.ContentProto
+ .internal_static_google_cloud_aiplatform_v1_SearchEntryPoint_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint build() {
+ com.google.cloud.aiplatform.v1.SearchEntryPoint result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1.SearchEntryPoint buildPartial() {
+ com.google.cloud.aiplatform.v1.SearchEntryPoint result =
+ new com.google.cloud.aiplatform.v1.SearchEntryPoint(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1.SearchEntryPoint result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.renderedContent_ = renderedContent_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.sdkBlob_ = sdkBlob_;
+ }
+ }
+
+ @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.SearchEntryPoint) {
+ return mergeFrom((com.google.cloud.aiplatform.v1.SearchEntryPoint) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1.SearchEntryPoint other) {
+ if (other == com.google.cloud.aiplatform.v1.SearchEntryPoint.getDefaultInstance())
+ return this;
+ if (!other.getRenderedContent().isEmpty()) {
+ renderedContent_ = other.renderedContent_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getSdkBlob() != com.google.protobuf.ByteString.EMPTY) {
+ setSdkBlob(other.getSdkBlob());
+ }
+ 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:
+ {
+ renderedContent_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ sdkBlob_ = input.readBytes();
+ 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 renderedContent_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The renderedContent.
+ */
+ public java.lang.String getRenderedContent() {
+ java.lang.Object ref = renderedContent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ renderedContent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for renderedContent.
+ */
+ public com.google.protobuf.ByteString getRenderedContentBytes() {
+ java.lang.Object ref = renderedContent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ renderedContent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The renderedContent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRenderedContent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ renderedContent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRenderedContent() {
+ renderedContent_ = getDefaultInstance().getRenderedContent();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for renderedContent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRenderedContentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ renderedContent_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ *
+ * Optional. Base64 encoded JSON representing array of <search term, search
+ * url> tuple.
+ *
+ *
+ * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The sdkBlob.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSdkBlob() {
+ return sdkBlob_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Base64 encoded JSON representing array of <search term, search
+ * url> tuple.
+ *
+ *
+ * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The sdkBlob to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSdkBlob(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sdkBlob_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Base64 encoded JSON representing array of <search term, search
+ * url> tuple.
+ *
+ *
+ * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSdkBlob() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ sdkBlob_ = getDefaultInstance().getSdkBlob();
+ 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.SearchEntryPoint)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SearchEntryPoint)
+ private static final com.google.cloud.aiplatform.v1.SearchEntryPoint DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SearchEntryPoint();
+ }
+
+ public static com.google.cloud.aiplatform.v1.SearchEntryPoint getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SearchEntryPoint 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.SearchEntryPoint getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchEntryPointOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchEntryPointOrBuilder.java
new file mode 100644
index 000000000000..13c4c42c0194
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SearchEntryPointOrBuilder.java
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2024 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/content.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1;
+
+public interface SearchEntryPointOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SearchEntryPoint)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The renderedContent.
+ */
+ java.lang.String getRenderedContent();
+ /**
+ *
+ *
+ *
+ * Optional. Web content snippet that can be embedded in a web page or an app
+ * webview.
+ *
+ *
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for renderedContent.
+ */
+ com.google.protobuf.ByteString getRenderedContentBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Base64 encoded JSON representing array of <search term, search
+ * url> tuple.
+ *
+ *
+ * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The sdkBlob.
+ */
+ com.google.protobuf.ByteString getSdkBlob();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java
index f0c0f2a73281..c5d82940e6bc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParameters.java
@@ -272,7 +272,8 @@ private AdapterSize(int value) {
*
*
*
- * Optional. Number of training epoches for this tuning job.
+ * Optional. Number of complete passes the model makes over the entire
+ * training dataset during training.
*
*
* int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -290,7 +291,7 @@ public long getEpochCount() {
*
*
*
- * Optional. Learning rate multiplier for tuning.
+ * Optional. Multiplier for adjusting the default learning rate.
*
*
* double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -744,7 +745,8 @@ public Builder mergeFrom(
*
*
*
- * Optional. Number of training epoches for this tuning job.
+ * Optional. Number of complete passes the model makes over the entire
+ * training dataset during training.
*
*
* int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -759,7 +761,8 @@ public long getEpochCount() {
*
*
*
- * Optional. Number of training epoches for this tuning job.
+ * Optional. Number of complete passes the model makes over the entire
+ * training dataset during training.
*
*
* int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -778,7 +781,8 @@ public Builder setEpochCount(long value) {
*
*
*
- * Optional. Number of training epoches for this tuning job.
+ * Optional. Number of complete passes the model makes over the entire
+ * training dataset during training.
*
*
* int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -797,7 +801,7 @@ public Builder clearEpochCount() {
*
*
*
- * Optional. Learning rate multiplier for tuning.
+ * Optional. Multiplier for adjusting the default learning rate.
*
*
* double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -812,7 +816,7 @@ public double getLearningRateMultiplier() {
*
*
*
- * Optional. Learning rate multiplier for tuning.
+ * Optional. Multiplier for adjusting the default learning rate.
*
*
* double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -831,7 +835,7 @@ public Builder setLearningRateMultiplier(double value) {
*
*
*
- * Optional. Learning rate multiplier for tuning.
+ * Optional. Multiplier for adjusting the default learning rate.
*
*
* double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParametersOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParametersOrBuilder.java
index 3497e4f5ec7d..a965ea235a7e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParametersOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedHyperParametersOrBuilder.java
@@ -28,7 +28,8 @@ public interface SupervisedHyperParametersOrBuilder
*
*
*
- * Optional. Number of training epoches for this tuning job.
+ * Optional. Number of complete passes the model makes over the entire
+ * training dataset during training.
*
*
* int64 epoch_count = 1 [(.google.api.field_behavior) = OPTIONAL];
@@ -41,7 +42,7 @@ public interface SupervisedHyperParametersOrBuilder
*
*
*
- * Optional. Learning rate multiplier for tuning.
+ * Optional. Multiplier for adjusting the default learning rate.
*
*
* double learning_rate_multiplier = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java
index 9119901e0f93..48bd1cd959bc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpec.java
@@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -98,7 +98,7 @@ public java.lang.String getTrainingDatasetUri() {
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -127,7 +127,7 @@ public com.google.protobuf.ByteString getTrainingDatasetUriBytes() {
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -151,7 +151,7 @@ public java.lang.String getValidationDatasetUri() {
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -644,7 +644,7 @@ public Builder mergeFrom(
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -667,7 +667,7 @@ public java.lang.String getTrainingDatasetUri() {
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -690,7 +690,7 @@ public com.google.protobuf.ByteString getTrainingDatasetUriBytes() {
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -712,7 +712,7 @@ public Builder setTrainingDatasetUri(java.lang.String value) {
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -730,7 +730,7 @@ public Builder clearTrainingDatasetUri() {
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -755,7 +755,7 @@ public Builder setTrainingDatasetUriBytes(com.google.protobuf.ByteString value)
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -778,7 +778,7 @@ public java.lang.String getValidationDatasetUri() {
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -801,7 +801,7 @@ public com.google.protobuf.ByteString getValidationDatasetUriBytes() {
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -823,7 +823,7 @@ public Builder setValidationDatasetUri(java.lang.String value) {
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -841,7 +841,7 @@ public Builder clearValidationDatasetUri() {
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java
index d4a17fd5287b..8196f26dd1e2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SupervisedTuningSpecOrBuilder.java
@@ -29,7 +29,7 @@ public interface SupervisedTuningSpecOrBuilder
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -42,7 +42,7 @@ public interface SupervisedTuningSpecOrBuilder
*
*
* Required. Cloud Storage path to file containing training dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -56,7 +56,7 @@ public interface SupervisedTuningSpecOrBuilder
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -69,7 +69,7 @@ public interface SupervisedTuningSpecOrBuilder
*
*
* Optional. Cloud Storage path to file containing validation dataset for
- * tuning.
+ * tuning. The dataset must be formatted as a JSONL file.
*
*
* string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java
index 1678a18fc2fb..01856565b9fc 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java
@@ -177,7 +177,7 @@ public TuningSpecCase getTuningSpecCase() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -191,7 +191,7 @@ public boolean hasBaseModel() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -218,7 +218,7 @@ public java.lang.String getBaseModel() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -360,8 +360,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -385,8 +385,8 @@ public java.lang.String getTunedModelDisplayName() {
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -1945,7 +1945,7 @@ public Builder clearTuningSpec() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -1960,7 +1960,7 @@ public boolean hasBaseModel() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -1988,7 +1988,7 @@ public java.lang.String getBaseModel() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -2016,7 +2016,7 @@ public com.google.protobuf.ByteString getBaseModelBytes() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -2037,7 +2037,7 @@ public Builder setBaseModel(java.lang.String value) {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -2056,7 +2056,7 @@ public Builder clearBaseModel() {
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -2416,8 +2416,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2440,8 +2440,8 @@ public java.lang.String getTunedModelDisplayName() {
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2464,8 +2464,8 @@ public com.google.protobuf.ByteString getTunedModelDisplayNameBytes() {
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2487,8 +2487,8 @@ public Builder setTunedModelDisplayName(java.lang.String value) {
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -2506,8 +2506,8 @@ public Builder clearTunedModelDisplayName() {
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java
index 62c7a9cb3a41..5be352c7ffb4 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java
@@ -28,7 +28,7 @@ public interface TuningJobOrBuilder
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -40,7 +40,7 @@ public interface TuningJobOrBuilder
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -52,7 +52,7 @@ public interface TuningJobOrBuilder
*
*
*
- * Model name for tuning, e.g., "gemini-1.0-pro-002".
+ * The base model that is being tuned, e.g., "gemini-1.0-pro-002".
*
*
* string base_model = 4;
@@ -132,8 +132,8 @@ public interface TuningJobOrBuilder
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
@@ -146,8 +146,8 @@ public interface TuningJobOrBuilder
*
*
* Optional. The display name of the
- * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- * 128 characters long and can consist of any UTF-8 characters.
+ * [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
*
*
* string tuned_model_display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto
index 1df5516e33d1..63c0d71db9b2 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto
@@ -64,4 +64,7 @@ enum AcceleratorType {
// TPU v4.
TPU_V4_POD = 10;
+
+ // TPU v5.
+ TPU_V5_LITEPOD = 12;
}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
index e98cc9a8260c..86017f2b6bc3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto
@@ -418,4 +418,19 @@ message GroundingMetadata {
// Optional. List of grounding attributions.
repeated GroundingAttribution grounding_attributions = 2
[(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Google search entry for the following-up web searches.
+ optional SearchEntryPoint search_entry_point = 4
+ [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Google search entry point.
+message SearchEntryPoint {
+ // Optional. Web content snippet that can be embedded in a web page or an app
+ // webview.
+ string rendered_content = 1 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. Base64 encoded JSON representing array of tuple.
+ bytes sdk_blob = 2 [(google.api.field_behavior) = OPTIONAL];
}
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 dc4ee59efdbd..3aa889b9026a 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
@@ -22,6 +22,7 @@ import "google/cloud/aiplatform/v1/encryption_spec.proto";
import "google/cloud/aiplatform/v1/explanation.proto";
import "google/cloud/aiplatform/v1/io.proto";
import "google/cloud/aiplatform/v1/machine_resources.proto";
+import "google/cloud/aiplatform/v1/service_networking.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
@@ -126,6 +127,14 @@ message Endpoint {
// can be set.
bool enable_private_service_connect = 17 [deprecated = true];
+ // Optional. Configuration for private service connect.
+ //
+ // [network][google.cloud.aiplatform.v1.Endpoint.network] and
+ // [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+ // are mutually exclusive.
+ PrivateServiceConnectConfig private_service_connect_config = 21
+ [(google.api.field_behavior) = OPTIONAL];
+
// Output only. Resource name of the Model Monitoring job associated with this
// Endpoint if monitoring is enabled by
// [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob].
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto
index e02ca56c1966..a0357d651e68 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_registry_service.proto
@@ -165,7 +165,7 @@ service FeatureRegistryService {
message CreateFeatureGroupRequest {
// Required. The resource name of the Location to create FeatureGroups.
// Format:
- // `projects/{project}/locations/{location}'`
+ // `projects/{project}/locations/{location}`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/genai_tuning_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/genai_tuning_service.proto
index d0c369d3b4e5..5f096ec12a88 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/genai_tuning_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/genai_tuning_service.proto
@@ -1,4 +1,4 @@
-// Copyright 2024 Google LLC
+// 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.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_service.proto
index aef257993565..11cb11aa7c7c 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index_service.proto
@@ -336,6 +336,9 @@ message NearestNeighborSearchOperationMetadata {
// File is not in UTF_8 format.
INVALID_ENCODING = 13;
+
+ // Token restrict value is invalid.
+ INVALID_TOKEN_VALUE = 15;
}
// The error type of this record.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto
index 31bb98fdb924..0fc637d661a3 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/notebook_runtime.proto
@@ -55,8 +55,8 @@ message NotebookRuntimeTemplate {
pattern: "projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}"
};
- // Output only. The resource name of the NotebookRuntimeTemplate.
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // The resource name of the NotebookRuntimeTemplate.
+ string name = 1;
// Required. The display name of the NotebookRuntimeTemplate.
// The name can be up to 128 characters long and can consist of any UTF-8
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto
index 0f2b57a4e202..70086d04913e 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto
@@ -149,6 +149,11 @@ message PublisherModel {
// any of its supporting files.
string artifact_uri = 4 [(google.api.field_behavior) = OPTIONAL];
+ // Optional. The name of the deploy task (e.g., "text to image
+ // generation").
+ optional string deploy_task_name = 10
+ [(google.api.field_behavior) = OPTIONAL];
+
// Required. The title of the regional resource reference.
string title = 8 [(google.api.field_behavior) = REQUIRED];
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto
index adb54a79e2b3..8393fa5435c1 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto
@@ -121,6 +121,7 @@ message FunctionResponse {
// Defines a retrieval tool that model can call to access external knowledge.
message Retrieval {
+ // The source of the retrieval.
oneof source {
// Set to use data source powered by Vertex AI Search.
VertexAISearch vertex_ai_search = 2;
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto
index 466276a80553..6f060e1bfbef 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto
@@ -1,4 +1,4 @@
-// Copyright 2024 Google LLC
+// 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.
@@ -41,7 +41,7 @@ message TuningJob {
};
oneof source_model {
- // Model name for tuning, e.g., "gemini-1.0-pro-002".
+ // The base model that is being tuned, e.g., "gemini-1.0-pro-002".
string base_model = 4;
}
@@ -58,8 +58,8 @@ message TuningJob {
];
// Optional. The display name of the
- // [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
- // 128 characters long and can consist of any UTF-8 characters.
+ // [TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to 128
+ // characters long and can consist of any UTF-8 characters.
string tuned_model_display_name = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. The description of the
@@ -253,10 +253,11 @@ message SupervisedHyperParameters {
ADAPTER_SIZE_SIXTEEN = 4;
}
- // Optional. Number of training epoches for this tuning job.
+ // Optional. Number of complete passes the model makes over the entire
+ // training dataset during training.
int64 epoch_count = 1 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Learning rate multiplier for tuning.
+ // Optional. Multiplier for adjusting the default learning rate.
double learning_rate_multiplier = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. Adapter size for tuning.
@@ -266,11 +267,11 @@ message SupervisedHyperParameters {
// Tuning Spec for Supervised Tuning.
message SupervisedTuningSpec {
// Required. Cloud Storage path to file containing training dataset for
- // tuning.
+ // tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(google.api.field_behavior) = REQUIRED];
// Optional. Cloud Storage path to file containing validation dataset for
- // tuning.
+ // tuning. The dataset must be formatted as a JSONL file.
string validation_dataset_uri = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. Hyperparameters for SFT.
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteNotebookExecutionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteNotebookExecutionJobRequest.java
new file mode 100644
index 000000000000..204e09acc631
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteNotebookExecutionJobRequest.java
@@ -0,0 +1,652 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * Request message for [NotebookService.DeleteNotebookExecutionJob]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest}
+ */
+public final class DeleteNotebookExecutionJobRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest)
+ DeleteNotebookExecutionJobRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DeleteNotebookExecutionJobRequest.newBuilder() to construct.
+ private DeleteNotebookExecutionJobRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DeleteNotebookExecutionJobRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DeleteNotebookExecutionJobRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest.class,
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The name of the NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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.DeleteNotebookExecutionJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest other =
+ (com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest) 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.DeleteNotebookExecutionJobRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest
+ 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.DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest 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 [NotebookService.DeleteNotebookExecutionJob]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest)
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest.class,
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest.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.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest build() {
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest result =
+ new com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest
+ .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 NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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.DeleteNotebookExecutionJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest)
+ private static final com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeleteNotebookExecutionJobRequest 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.DeleteNotebookExecutionJobRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteNotebookExecutionJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteNotebookExecutionJobRequestOrBuilder.java
new file mode 100644
index 000000000000..ff244178f4ba
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteNotebookExecutionJobRequestOrBuilder.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface DeleteNotebookExecutionJobRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The name of the NotebookExecutionJob resource to be deleted.
+ *
+ *
+ *
+ * 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/GetNotebookExecutionJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetNotebookExecutionJobRequest.java
new file mode 100644
index 000000000000..87223995cb12
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetNotebookExecutionJobRequest.java
@@ -0,0 +1,824 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * Request message for [NotebookService.GetNotebookExecutionJob]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest}
+ */
+public final class GetNotebookExecutionJobRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest)
+ GetNotebookExecutionJobRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetNotebookExecutionJobRequest.newBuilder() to construct.
+ private GetNotebookExecutionJobRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GetNotebookExecutionJobRequest() {
+ name_ = "";
+ view_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GetNotebookExecutionJobRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest.class,
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The name of the NotebookExecutionJob resource.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource.
+ *
+ *
+ *
+ * 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 VIEW_FIELD_NUMBER = 6;
+ private int view_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for view.
+ */
+ @java.lang.Override
+ public int getViewValue() {
+ return view_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The view.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView getView() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView result =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.forNumber(view_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.UNRECOGNIZED
+ : result;
+ }
+
+ 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 (view_
+ != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView
+ .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(6, view_);
+ }
+ 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 (view_
+ != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView
+ .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_);
+ }
+ 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.GetNotebookExecutionJobRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest other =
+ (com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (view_ != other.view_) 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 = (37 * hash) + VIEW_FIELD_NUMBER;
+ hash = (53 * hash) + view_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest 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.GetNotebookExecutionJobRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest 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.GetNotebookExecutionJobRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest 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.GetNotebookExecutionJobRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest 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.GetNotebookExecutionJobRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest
+ 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.GetNotebookExecutionJobRequest 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.GetNotebookExecutionJobRequest 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.GetNotebookExecutionJobRequest 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 [NotebookService.GetNotebookExecutionJob]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest)
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest.class,
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ view_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest build() {
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest result =
+ new com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.view_ = view_;
+ }
+ }
+
+ @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.GetNotebookExecutionJobRequest) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest
+ .getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.view_ != 0) {
+ setViewValue(other.getViewValue());
+ }
+ 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 48:
+ {
+ view_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 48
+ 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 NotebookExecutionJob resource.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource.
+ *
+ *
+ *
+ * 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 NotebookExecutionJob resource.
+ *
+ *
+ *
+ * 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 int view_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for view.
+ */
+ @java.lang.Override
+ public int getViewValue() {
+ return view_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.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_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The view.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView getView() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView result =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.forNumber(view_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The view to set.
+ * @return This builder for chaining.
+ */
+ public Builder setView(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ view_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearView() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ view_ = 0;
+ 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.GetNotebookExecutionJobRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest)
+ private static final com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetNotebookExecutionJobRequest 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.GetNotebookExecutionJobRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetNotebookExecutionJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetNotebookExecutionJobRequestOrBuilder.java
new file mode 100644
index 000000000000..28a1e89bb80b
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetNotebookExecutionJobRequestOrBuilder.java
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface GetNotebookExecutionJobRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the NotebookExecutionJob resource.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The name of the NotebookExecutionJob resource.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for view.
+ */
+ int getViewValue();
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The view.
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView getView();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsRequest.java
new file mode 100644
index 000000000000..5b2e183bf6fb
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsRequest.java
@@ -0,0 +1,1631 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * Request message for [NotebookService.ListNotebookExecutionJobs]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest}
+ */
+public final class ListNotebookExecutionJobsRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest)
+ ListNotebookExecutionJobsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListNotebookExecutionJobsRequest.newBuilder() to construct.
+ private ListNotebookExecutionJobsRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListNotebookExecutionJobsRequest() {
+ parent_ = "";
+ filter_ = "";
+ pageToken_ = "";
+ orderBy_ = "";
+ view_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ListNotebookExecutionJobsRequest();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest.class,
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest.Builder.class);
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object parent_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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 Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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 ORDER_BY_FIELD_NUMBER = 5;
+
+ @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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.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 VIEW_FIELD_NUMBER = 6;
+ private int view_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for view.
+ */
+ @java.lang.Override
+ public int getViewValue() {
+ return view_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The view.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView getView() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView result =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.forNumber(view_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.UNRECOGNIZED
+ : result;
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_);
+ }
+ if (view_
+ != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView
+ .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(6, view_);
+ }
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_);
+ }
+ if (view_
+ != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView
+ .NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, view_);
+ }
+ 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.ListNotebookExecutionJobsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest other =
+ (com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false;
+ if (view_ != other.view_) 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) + ORDER_BY_FIELD_NUMBER;
+ hash = (53 * hash) + getOrderBy().hashCode();
+ hash = (37 * hash) + VIEW_FIELD_NUMBER;
+ hash = (53 * hash) + view_;
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest 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.ListNotebookExecutionJobsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest 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.ListNotebookExecutionJobsRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest 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.ListNotebookExecutionJobsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest 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.ListNotebookExecutionJobsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest
+ 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.ListNotebookExecutionJobsRequest 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.ListNotebookExecutionJobsRequest 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.ListNotebookExecutionJobsRequest 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 [NotebookService.ListNotebookExecutionJobs]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest)
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest.class,
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest.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_ = "";
+ orderBy_ = "";
+ view_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest build() {
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest result =
+ new com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest 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.orderBy_ = orderBy_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.view_ = view_;
+ }
+ }
+
+ @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.ListNotebookExecutionJobsRequest) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest
+ .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.getOrderBy().isEmpty()) {
+ orderBy_ = other.orderBy_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (other.view_ != 0) {
+ setViewValue(other.getViewValue());
+ }
+ 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:
+ {
+ orderBy_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 48:
+ {
+ view_ = input.readEnum();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 48
+ 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 Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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 Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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 Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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 Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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 Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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 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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.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_ |= 0x00000010;
+ 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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOrderBy() {
+ orderBy_ = getDefaultInstance().getOrderBy();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ 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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.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_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private int view_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for view.
+ */
+ @java.lang.Override
+ public int getViewValue() {
+ return view_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.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_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The view.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView getView() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView result =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.forNumber(view_);
+ return result == null
+ ? com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The view to set.
+ * @return This builder for chaining.
+ */
+ public Builder setView(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ view_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearView() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ view_ = 0;
+ 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.ListNotebookExecutionJobsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest)
+ private static final com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListNotebookExecutionJobsRequest 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.ListNotebookExecutionJobsRequest
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsRequestOrBuilder.java
new file mode 100644
index 000000000000..4deb33827dbc
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsRequestOrBuilder.java
@@ -0,0 +1,220 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface ListNotebookExecutionJobsRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The resource name of the Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * 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 Location from which to list the
+ * NotebookExecutionJobs.
+ * Format: `projects/{project}/locations/{location}`
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * string filter = 2 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ *
+ * Optional. An expression for filtering the results of the request. For field
+ * names both snake_case and camelCase are supported.
+ *
+ * * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ * represents the NotebookExecutionJob ID.
+ * * `displayName` supports = and != and regex.
+ * * `schedule` supports = and != and regex.
+ *
+ * Some examples:
+ * * `notebookExecutionJob="123"`
+ * * `notebookExecutionJob="my-execution-job"`
+ * * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ *
+ *
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * 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
+ * [ListNotebookExecutionJobs.next_page_token][] of the previous
+ * [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ * call.
+ *
+ *
+ * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for pageToken.
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. A comma-separated list of fields to order by, sorted in ascending
+ * order. Use "desc" after a field name for descending. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.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. Supported fields:
+ *
+ * * `display_name`
+ * * `create_time`
+ * * `update_time`
+ *
+ * Example: `display_name, create_time desc`.
+ *
+ *
+ * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for orderBy.
+ */
+ com.google.protobuf.ByteString getOrderByBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for view.
+ */
+ int getViewValue();
+ /**
+ *
+ *
+ *
+ * Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJobView view = 6 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The view.
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView getView();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsResponse.java
new file mode 100644
index 000000000000..477c26526e0a
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsResponse.java
@@ -0,0 +1,1219 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * Response message for [NotebookService.CreateNotebookExecutionJob]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse}
+ */
+public final class ListNotebookExecutionJobsResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse)
+ ListNotebookExecutionJobsResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListNotebookExecutionJobsResponse.newBuilder() to construct.
+ private ListNotebookExecutionJobsResponse(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListNotebookExecutionJobsResponse() {
+ notebookExecutionJobs_ = java.util.Collections.emptyList();
+ nextPageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ListNotebookExecutionJobsResponse();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse.class,
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse.Builder.class);
+ }
+
+ public static final int NOTEBOOK_EXECUTION_JOBS_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ notebookExecutionJobs_;
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getNotebookExecutionJobsList() {
+ return notebookExecutionJobs_;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder>
+ getNotebookExecutionJobsOrBuilderList() {
+ return notebookExecutionJobs_;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ @java.lang.Override
+ public int getNotebookExecutionJobsCount() {
+ return notebookExecutionJobs_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getNotebookExecutionJobs(
+ int index) {
+ return notebookExecutionJobs_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder
+ getNotebookExecutionJobsOrBuilder(int index) {
+ return notebookExecutionJobs_.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 [ListNotebookExecutionJobs.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 [ListNotebookExecutionJobs.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 < notebookExecutionJobs_.size(); i++) {
+ output.writeMessage(1, notebookExecutionJobs_.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 < notebookExecutionJobs_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, notebookExecutionJobs_.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.ListNotebookExecutionJobsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse other =
+ (com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse) obj;
+
+ if (!getNotebookExecutionJobsList().equals(other.getNotebookExecutionJobsList())) 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 (getNotebookExecutionJobsCount() > 0) {
+ hash = (37 * hash) + NOTEBOOK_EXECUTION_JOBS_FIELD_NUMBER;
+ hash = (53 * hash) + getNotebookExecutionJobsList().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.ListNotebookExecutionJobsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse
+ 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.ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse 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 [NotebookService.CreateNotebookExecutionJob]
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse)
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse.class,
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse.Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (notebookExecutionJobsBuilder_ == null) {
+ notebookExecutionJobs_ = java.util.Collections.emptyList();
+ } else {
+ notebookExecutionJobs_ = null;
+ notebookExecutionJobsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ nextPageToken_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto
+ .internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse build() {
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse result =
+ new com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse result) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ notebookExecutionJobs_ = java.util.Collections.unmodifiableList(notebookExecutionJobs_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.notebookExecutionJobs_ = notebookExecutionJobs_;
+ } else {
+ result.notebookExecutionJobs_ = notebookExecutionJobsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse
+ .getDefaultInstance()) return this;
+ if (notebookExecutionJobsBuilder_ == null) {
+ if (!other.notebookExecutionJobs_.isEmpty()) {
+ if (notebookExecutionJobs_.isEmpty()) {
+ notebookExecutionJobs_ = other.notebookExecutionJobs_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.addAll(other.notebookExecutionJobs_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.notebookExecutionJobs_.isEmpty()) {
+ if (notebookExecutionJobsBuilder_.isEmpty()) {
+ notebookExecutionJobsBuilder_.dispose();
+ notebookExecutionJobsBuilder_ = null;
+ notebookExecutionJobs_ = other.notebookExecutionJobs_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ notebookExecutionJobsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getNotebookExecutionJobsFieldBuilder()
+ : null;
+ } else {
+ notebookExecutionJobsBuilder_.addAllMessages(other.notebookExecutionJobs_);
+ }
+ }
+ }
+ 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.NotebookExecutionJob m =
+ input.readMessage(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.parser(),
+ extensionRegistry);
+ if (notebookExecutionJobsBuilder_ == null) {
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.add(m);
+ } else {
+ notebookExecutionJobsBuilder_.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
+ notebookExecutionJobs_ = java.util.Collections.emptyList();
+
+ private void ensureNotebookExecutionJobsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ notebookExecutionJobs_ =
+ new java.util.ArrayList(
+ notebookExecutionJobs_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder>
+ notebookExecutionJobsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public java.util.List
+ getNotebookExecutionJobsList() {
+ if (notebookExecutionJobsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(notebookExecutionJobs_);
+ } else {
+ return notebookExecutionJobsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public int getNotebookExecutionJobsCount() {
+ if (notebookExecutionJobsBuilder_ == null) {
+ return notebookExecutionJobs_.size();
+ } else {
+ return notebookExecutionJobsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getNotebookExecutionJobs(
+ int index) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ return notebookExecutionJobs_.get(index);
+ } else {
+ return notebookExecutionJobsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder setNotebookExecutionJobs(
+ int index, com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob value) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.set(index, value);
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder setNotebookExecutionJobs(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder builderForValue) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder addNotebookExecutionJobs(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob value) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.add(value);
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder addNotebookExecutionJobs(
+ int index, com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob value) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.add(index, value);
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder addNotebookExecutionJobs(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder builderForValue) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder addNotebookExecutionJobs(
+ int index,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder builderForValue) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder addAllNotebookExecutionJobs(
+ java.lang.Iterable extends com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob>
+ values) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ ensureNotebookExecutionJobsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notebookExecutionJobs_);
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder clearNotebookExecutionJobs() {
+ if (notebookExecutionJobsBuilder_ == null) {
+ notebookExecutionJobs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public Builder removeNotebookExecutionJobs(int index) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ ensureNotebookExecutionJobsIsMutable();
+ notebookExecutionJobs_.remove(index);
+ onChanged();
+ } else {
+ notebookExecutionJobsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder
+ getNotebookExecutionJobsBuilder(int index) {
+ return getNotebookExecutionJobsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder
+ getNotebookExecutionJobsOrBuilder(int index) {
+ if (notebookExecutionJobsBuilder_ == null) {
+ return notebookExecutionJobs_.get(index);
+ } else {
+ return notebookExecutionJobsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder>
+ getNotebookExecutionJobsOrBuilderList() {
+ if (notebookExecutionJobsBuilder_ != null) {
+ return notebookExecutionJobsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(notebookExecutionJobs_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder
+ addNotebookExecutionJobsBuilder() {
+ return getNotebookExecutionJobsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder
+ addNotebookExecutionJobsBuilder(int index) {
+ return getNotebookExecutionJobsFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public java.util.List
+ getNotebookExecutionJobsBuilderList() {
+ return getNotebookExecutionJobsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder>
+ getNotebookExecutionJobsFieldBuilder() {
+ if (notebookExecutionJobsBuilder_ == null) {
+ notebookExecutionJobsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder>(
+ notebookExecutionJobs_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ notebookExecutionJobs_ = null;
+ }
+ return notebookExecutionJobsBuilder_;
+ }
+
+ private java.lang.Object nextPageToken_ = "";
+ /**
+ *
+ *
+ *
+ * A token to retrieve next page of results.
+ * Pass to [ListNotebookExecutionJobs.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 [ListNotebookExecutionJobs.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 [ListNotebookExecutionJobs.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 [ListNotebookExecutionJobs.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 [ListNotebookExecutionJobs.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.ListNotebookExecutionJobsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse)
+ private static final com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ListNotebookExecutionJobsResponse 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.ListNotebookExecutionJobsResponse
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsResponseOrBuilder.java
new file mode 100644
index 000000000000..bc36e33aa313
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListNotebookExecutionJobsResponseOrBuilder.java
@@ -0,0 +1,119 @@
+/*
+ * Copyright 2024 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/notebook_service.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface ListNotebookExecutionJobsResponseOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ java.util.List
+ getNotebookExecutionJobsList();
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getNotebookExecutionJobs(int index);
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ int getNotebookExecutionJobsCount();
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder>
+ getNotebookExecutionJobsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * List of NotebookExecutionJobs in the requested page.
+ *
+ *
+ *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder
+ getNotebookExecutionJobsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * A token to retrieve next page of results.
+ * Pass to [ListNotebookExecutionJobs.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 [ListNotebookExecutionJobs.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/NotebookExecutionJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java
new file mode 100644
index 000000000000..b697b2c338f2
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJob.java
@@ -0,0 +1,6136 @@
+/*
+ * Copyright 2024 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/notebook_execution_job.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+/**
+ *
+ *
+ *
+ * NotebookExecutionJob represents an instance of a notebook execution.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookExecutionJob}
+ */
+public final class NotebookExecutionJob extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob)
+ NotebookExecutionJobOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NotebookExecutionJob.newBuilder() to construct.
+ private NotebookExecutionJob(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private NotebookExecutionJob() {
+ name_ = "";
+ displayName_ = "";
+ scheduleResourceName_ = "";
+ jobState_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new NotebookExecutionJob();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.class,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder.class);
+ }
+
+ public interface DataformRepositorySourceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @return The dataformRepositoryResourceName.
+ */
+ java.lang.String getDataformRepositoryResourceName();
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @return The bytes for dataformRepositoryResourceName.
+ */
+ com.google.protobuf.ByteString getDataformRepositoryResourceNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @return The commitSha.
+ */
+ java.lang.String getCommitSha();
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @return The bytes for commitSha.
+ */
+ com.google.protobuf.ByteString getCommitShaBytes();
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository containing the input notebook.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource}
+ */
+ public static final class DataformRepositorySource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ DataformRepositorySourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DataformRepositorySource.newBuilder() to construct.
+ private DataformRepositorySource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private DataformRepositorySource() {
+ dataformRepositoryResourceName_ = "";
+ commitSha_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new DataformRepositorySource();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .class,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .Builder.class);
+ }
+
+ public static final int DATAFORM_REPOSITORY_RESOURCE_NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object dataformRepositoryResourceName_ = "";
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @return The dataformRepositoryResourceName.
+ */
+ @java.lang.Override
+ public java.lang.String getDataformRepositoryResourceName() {
+ java.lang.Object ref = dataformRepositoryResourceName_;
+ 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();
+ dataformRepositoryResourceName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @return The bytes for dataformRepositoryResourceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDataformRepositoryResourceNameBytes() {
+ java.lang.Object ref = dataformRepositoryResourceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dataformRepositoryResourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COMMIT_SHA_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object commitSha_ = "";
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @return The commitSha.
+ */
+ @java.lang.Override
+ public java.lang.String getCommitSha() {
+ java.lang.Object ref = commitSha_;
+ 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();
+ commitSha_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @return The bytes for commitSha.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCommitShaBytes() {
+ java.lang.Object ref = commitSha_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ commitSha_ = 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(dataformRepositoryResourceName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(
+ output, 1, dataformRepositoryResourceName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitSha_);
+ }
+ 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(dataformRepositoryResourceName_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(
+ 1, dataformRepositoryResourceName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitSha_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitSha_);
+ }
+ 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.NotebookExecutionJob.DataformRepositorySource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource other =
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource) obj;
+
+ if (!getDataformRepositoryResourceName().equals(other.getDataformRepositoryResourceName()))
+ return false;
+ if (!getCommitSha().equals(other.getCommitSha())) 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) + DATAFORM_REPOSITORY_RESOURCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDataformRepositoryResourceName().hashCode();
+ hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER;
+ hash = (53 * hash) + getCommitSha().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ 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.NotebookExecutionJob.DataformRepositorySource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ 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.NotebookExecutionJob.DataformRepositorySource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ 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.NotebookExecutionJob.DataformRepositorySource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ 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.NotebookExecutionJob.DataformRepositorySource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ 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.NotebookExecutionJob.DataformRepositorySource
+ 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.NotebookExecutionJob.DataformRepositorySource
+ 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.NotebookExecutionJob.DataformRepositorySource
+ 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 Dataform Repository containing the input notebook.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .class,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .Builder.class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ dataformRepositoryResourceName_ = "";
+ commitSha_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ build() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource result =
+ new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource(
+ this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.dataformRepositoryResourceName_ = dataformRepositoryResourceName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.commitSha_ = commitSha_;
+ }
+ }
+
+ @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.NotebookExecutionJob.DataformRepositorySource) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance()) return this;
+ if (!other.getDataformRepositoryResourceName().isEmpty()) {
+ dataformRepositoryResourceName_ = other.dataformRepositoryResourceName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getCommitSha().isEmpty()) {
+ commitSha_ = other.commitSha_;
+ 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:
+ {
+ dataformRepositoryResourceName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ commitSha_ = 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.lang.Object dataformRepositoryResourceName_ = "";
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @return The dataformRepositoryResourceName.
+ */
+ public java.lang.String getDataformRepositoryResourceName() {
+ java.lang.Object ref = dataformRepositoryResourceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataformRepositoryResourceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @return The bytes for dataformRepositoryResourceName.
+ */
+ public com.google.protobuf.ByteString getDataformRepositoryResourceNameBytes() {
+ java.lang.Object ref = dataformRepositoryResourceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dataformRepositoryResourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @param value The dataformRepositoryResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataformRepositoryResourceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dataformRepositoryResourceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDataformRepositoryResourceName() {
+ dataformRepositoryResourceName_ = getDefaultInstance().getDataformRepositoryResourceName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The resource name of the Dataform Repository. Format:
+ * `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ *
+ *
+ * string dataform_repository_resource_name = 1;
+ *
+ * @param value The bytes for dataformRepositoryResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataformRepositoryResourceNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ dataformRepositoryResourceName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object commitSha_ = "";
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @return The commitSha.
+ */
+ public java.lang.String getCommitSha() {
+ java.lang.Object ref = commitSha_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ commitSha_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @return The bytes for commitSha.
+ */
+ public com.google.protobuf.ByteString getCommitShaBytes() {
+ java.lang.Object ref = commitSha_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ commitSha_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @param value The commitSha to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCommitSha(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ commitSha_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCommitSha() {
+ commitSha_ = getDefaultInstance().getCommitSha();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The commit SHA to read repository with. If unset, the file will be read
+ * at HEAD.
+ *
+ *
+ * string commit_sha = 2;
+ *
+ * @param value The bytes for commitSha to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCommitShaBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ commitSha_ = 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.NotebookExecutionJob.DataformRepositorySource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ private static final com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob
+ .DataformRepositorySource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DataformRepositorySource 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.NotebookExecutionJob.DataformRepositorySource
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ public interface GcsNotebookSourceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @return The uri.
+ */
+ java.lang.String getUri();
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ com.google.protobuf.ByteString getUriBytes();
+
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @return The generation.
+ */
+ java.lang.String getGeneration();
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @return The bytes for generation.
+ */
+ com.google.protobuf.ByteString getGenerationBytes();
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri for the input notebook.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource}
+ */
+ public static final class GcsNotebookSource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ GcsNotebookSourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GcsNotebookSource.newBuilder() to construct.
+ private GcsNotebookSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GcsNotebookSource() {
+ uri_ = "";
+ generation_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GcsNotebookSource();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_GcsNotebookSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_GcsNotebookSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.class,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.Builder
+ .class);
+ }
+
+ public static final int URI_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @return The uri.
+ */
+ @java.lang.Override
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ 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();
+ uri_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GENERATION_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object generation_ = "";
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @return The generation.
+ */
+ @java.lang.Override
+ public java.lang.String getGeneration() {
+ java.lang.Object ref = generation_;
+ 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();
+ generation_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @return The bytes for generation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGenerationBytes() {
+ java.lang.Object ref = generation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ generation_ = 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(uri_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generation_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, generation_);
+ }
+ 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(uri_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generation_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, generation_);
+ }
+ 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.NotebookExecutionJob.GcsNotebookSource)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource other =
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource) obj;
+
+ if (!getUri().equals(other.getUri())) return false;
+ if (!getGeneration().equals(other.getGeneration())) 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) + URI_FIELD_NUMBER;
+ hash = (53 * hash) + getUri().hashCode();
+ hash = (37 * hash) + GENERATION_FIELD_NUMBER;
+ hash = (53 * hash) + getGeneration().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ 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.NotebookExecutionJob.GcsNotebookSource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ 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.NotebookExecutionJob.GcsNotebookSource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ 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.NotebookExecutionJob.GcsNotebookSource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ 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.NotebookExecutionJob.GcsNotebookSource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ 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.NotebookExecutionJob.GcsNotebookSource
+ 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.NotebookExecutionJob.GcsNotebookSource
+ 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.NotebookExecutionJob.GcsNotebookSource 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 Cloud Storage uri for the input notebook.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSourceOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_GcsNotebookSource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_GcsNotebookSource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.class,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.Builder
+ .class);
+ }
+
+ // Construct using
+ // com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.newBuilder()
+ private Builder() {}
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ uri_ = "";
+ generation_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_GcsNotebookSource_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource build() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource result =
+ buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource result =
+ new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.uri_ = uri_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.generation_ = generation_;
+ }
+ }
+
+ @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.NotebookExecutionJob.GcsNotebookSource) {
+ return mergeFrom(
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource other) {
+ if (other
+ == com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance()) return this;
+ if (!other.getUri().isEmpty()) {
+ uri_ = other.uri_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getGeneration().isEmpty()) {
+ generation_ = other.generation_;
+ 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:
+ {
+ uri_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18:
+ {
+ generation_ = 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.lang.Object uri_ = "";
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @return The uri.
+ */
+ public java.lang.String getUri() {
+ java.lang.Object ref = uri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @return The bytes for uri.
+ */
+ public com.google.protobuf.ByteString getUriBytes() {
+ java.lang.Object ref = uri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @param value The uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUri() {
+ uri_ = getDefaultInstance().getUri();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Cloud Storage uri pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ * string uri = 1;
+ *
+ * @param value The bytes for uri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ uri_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object generation_ = "";
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @return The generation.
+ */
+ public java.lang.String getGeneration() {
+ java.lang.Object ref = generation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ generation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @return The bytes for generation.
+ */
+ public com.google.protobuf.ByteString getGenerationBytes() {
+ java.lang.Object ref = generation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ generation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @param value The generation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGeneration(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ generation_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGeneration() {
+ generation_ = getDefaultInstance().getGeneration();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The version of the Cloud Storage object to read. If unset, the current
+ * version of the object is read. See
+ * https://cloud.google.com/storage/docs/metadata#generation-number.
+ *
+ *
+ * string generation = 2;
+ *
+ * @param value The bytes for generation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGenerationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ generation_ = 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.NotebookExecutionJob.GcsNotebookSource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ private static final com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GcsNotebookSource 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.NotebookExecutionJob.GcsNotebookSource
+ getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+ }
+
+ private int bitField0_;
+ private int notebookSourceCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object notebookSource_;
+
+ public enum NotebookSourceCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ DATAFORM_REPOSITORY_SOURCE(3),
+ GCS_NOTEBOOK_SOURCE(4),
+ NOTEBOOKSOURCE_NOT_SET(0);
+ private final int value;
+
+ private NotebookSourceCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static NotebookSourceCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static NotebookSourceCase forNumber(int value) {
+ switch (value) {
+ case 3:
+ return DATAFORM_REPOSITORY_SOURCE;
+ case 4:
+ return GCS_NOTEBOOK_SOURCE;
+ case 0:
+ return NOTEBOOKSOURCE_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public NotebookSourceCase getNotebookSourceCase() {
+ return NotebookSourceCase.forNumber(notebookSourceCase_);
+ }
+
+ private int environmentSpecCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object environmentSpec_;
+
+ public enum EnvironmentSpecCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME(14),
+ ENVIRONMENTSPEC_NOT_SET(0);
+ private final int value;
+
+ private EnvironmentSpecCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EnvironmentSpecCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static EnvironmentSpecCase forNumber(int value) {
+ switch (value) {
+ case 14:
+ return NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME;
+ case 0:
+ return ENVIRONMENTSPEC_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public EnvironmentSpecCase getEnvironmentSpecCase() {
+ return EnvironmentSpecCase.forNumber(environmentSpecCase_);
+ }
+
+ private int executionSinkCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object executionSink_;
+
+ public enum ExecutionSinkCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ GCS_OUTPUT_URI(8),
+ EXECUTIONSINK_NOT_SET(0);
+ private final int value;
+
+ private ExecutionSinkCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ExecutionSinkCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ExecutionSinkCase forNumber(int value) {
+ switch (value) {
+ case 8:
+ return GCS_OUTPUT_URI;
+ case 0:
+ return EXECUTIONSINK_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public ExecutionSinkCase getExecutionSinkCase() {
+ return ExecutionSinkCase.forNumber(executionSinkCase_);
+ }
+
+ private int executionIdentityCase_ = 0;
+
+ @SuppressWarnings("serial")
+ private java.lang.Object executionIdentity_;
+
+ public enum ExecutionIdentityCase
+ implements
+ com.google.protobuf.Internal.EnumLite,
+ com.google.protobuf.AbstractMessage.InternalOneOfEnum {
+ EXECUTION_USER(9),
+ SERVICE_ACCOUNT(18),
+ EXECUTIONIDENTITY_NOT_SET(0);
+ private final int value;
+
+ private ExecutionIdentityCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @param value The number of the enum to look for.
+ * @return The enum associated with the given number.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ExecutionIdentityCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static ExecutionIdentityCase forNumber(int value) {
+ switch (value) {
+ case 9:
+ return EXECUTION_USER;
+ case 18:
+ return SERVICE_ACCOUNT;
+ case 0:
+ return EXECUTIONIDENTITY_NOT_SET;
+ default:
+ return null;
+ }
+ }
+
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public ExecutionIdentityCase getExecutionIdentityCase() {
+ return ExecutionIdentityCase.forNumber(executionIdentityCase_);
+ }
+
+ public static final int DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ *
+ * @return Whether the dataformRepositorySource field is set.
+ */
+ @java.lang.Override
+ public boolean hasDataformRepositorySource() {
+ return notebookSourceCase_ == 3;
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ *
+ * @return The dataformRepositorySource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ getDataformRepositorySource() {
+ if (notebookSourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySourceOrBuilder
+ getDataformRepositorySourceOrBuilder() {
+ if (notebookSourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance();
+ }
+
+ public static final int GCS_NOTEBOOK_SOURCE_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ *
+ * @return Whether the gcsNotebookSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsNotebookSource() {
+ return notebookSourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ *
+ * @return The gcsNotebookSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ getGcsNotebookSource() {
+ if (notebookSourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSourceOrBuilder
+ getGcsNotebookSourceOrBuilder() {
+ if (notebookSourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance();
+ }
+
+ public static final int NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER = 14;
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the notebookRuntimeTemplateResourceName field is set.
+ */
+ public boolean hasNotebookRuntimeTemplateResourceName() {
+ return environmentSpecCase_ == 14;
+ }
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The notebookRuntimeTemplateResourceName.
+ */
+ public java.lang.String getNotebookRuntimeTemplateResourceName() {
+ java.lang.Object ref = "";
+ if (environmentSpecCase_ == 14) {
+ ref = environmentSpec_;
+ }
+ 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();
+ if (environmentSpecCase_ == 14) {
+ environmentSpec_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for notebookRuntimeTemplateResourceName.
+ */
+ public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() {
+ java.lang.Object ref = "";
+ if (environmentSpecCase_ == 14) {
+ ref = environmentSpec_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (environmentSpecCase_ == 14) {
+ environmentSpec_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GCS_OUTPUT_URI_FIELD_NUMBER = 8;
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return Whether the gcsOutputUri field is set.
+ */
+ public boolean hasGcsOutputUri() {
+ return executionSinkCase_ == 8;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return The gcsOutputUri.
+ */
+ public java.lang.String getGcsOutputUri() {
+ java.lang.Object ref = "";
+ if (executionSinkCase_ == 8) {
+ ref = executionSink_;
+ }
+ 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();
+ if (executionSinkCase_ == 8) {
+ executionSink_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return The bytes for gcsOutputUri.
+ */
+ public com.google.protobuf.ByteString getGcsOutputUriBytes() {
+ java.lang.Object ref = "";
+ if (executionSinkCase_ == 8) {
+ ref = executionSink_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (executionSinkCase_ == 8) {
+ executionSink_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXECUTION_USER_FIELD_NUMBER = 9;
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return Whether the executionUser field is set.
+ */
+ public boolean hasExecutionUser() {
+ return executionIdentityCase_ == 9;
+ }
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return The executionUser.
+ */
+ public java.lang.String getExecutionUser() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 9) {
+ ref = executionIdentity_;
+ }
+ 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();
+ if (executionIdentityCase_ == 9) {
+ executionIdentity_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return The bytes for executionUser.
+ */
+ public com.google.protobuf.ByteString getExecutionUserBytes() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 9) {
+ ref = executionIdentity_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (executionIdentityCase_ == 9) {
+ executionIdentity_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 18;
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return Whether the serviceAccount field is set.
+ */
+ public boolean hasServiceAccount() {
+ return executionIdentityCase_ == 18;
+ }
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return The serviceAccount.
+ */
+ public java.lang.String getServiceAccount() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 18) {
+ ref = executionIdentity_;
+ }
+ 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();
+ if (executionIdentityCase_ == 18) {
+ executionIdentity_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return The bytes for serviceAccount.
+ */
+ public com.google.protobuf.ByteString getServiceAccountBytes() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 18) {
+ ref = executionIdentity_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (executionIdentityCase_ == 18) {
+ executionIdentity_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * 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 this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * 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 DISPLAY_NAME_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ @java.lang.Override
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 5;
+ private com.google.protobuf.Duration executionTimeout_;
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ *
+ * @return Whether the executionTimeout field is set.
+ */
+ @java.lang.Override
+ public boolean hasExecutionTimeout() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ *
+ * @return The executionTimeout.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getExecutionTimeout() {
+ return executionTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executionTimeout_;
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
+ return executionTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executionTimeout_;
+ }
+
+ public static final int SCHEDULE_RESOURCE_NAME_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object scheduleResourceName_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The scheduleResourceName.
+ */
+ @java.lang.Override
+ public java.lang.String getScheduleResourceName() {
+ java.lang.Object ref = scheduleResourceName_;
+ 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();
+ scheduleResourceName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for scheduleResourceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getScheduleResourceNameBytes() {
+ java.lang.Object ref = scheduleResourceName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ scheduleResourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int JOB_STATE_FIELD_NUMBER = 10;
+ private int jobState_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for jobState.
+ */
+ @java.lang.Override
+ public int getJobStateValue() {
+ return jobState_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The jobState.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.JobState getJobState() {
+ com.google.cloud.aiplatform.v1beta1.JobState result =
+ com.google.cloud.aiplatform.v1beta1.JobState.forNumber(jobState_);
+ return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result;
+ }
+
+ public static final int STATUS_FIELD_NUMBER = 11;
+ private com.google.rpc.Status status_;
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the status field is set.
+ */
+ @java.lang.Override
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The status.
+ */
+ @java.lang.Override
+ public com.google.rpc.Status getStatus() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ @java.lang.Override
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 12;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.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 NotebookExecutionJob was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.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 = 13;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.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 NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
+ }
+ if (notebookSourceCase_ == 3) {
+ output.writeMessage(
+ 3,
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ notebookSource_);
+ }
+ if (notebookSourceCase_ == 4) {
+ output.writeMessage(
+ 4,
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(5, getExecutionTimeout());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleResourceName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, scheduleResourceName_);
+ }
+ if (executionSinkCase_ == 8) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, executionSink_);
+ }
+ if (executionIdentityCase_ == 9) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, executionIdentity_);
+ }
+ if (jobState_
+ != com.google.cloud.aiplatform.v1beta1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(10, jobState_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(11, getStatus());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(12, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(13, getUpdateTime());
+ }
+ if (environmentSpecCase_ == 14) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, environmentSpec_);
+ }
+ if (executionIdentityCase_ == 18) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 18, executionIdentity_);
+ }
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
+ }
+ if (notebookSourceCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3,
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ notebookSource_);
+ }
+ if (notebookSourceCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4,
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExecutionTimeout());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleResourceName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, scheduleResourceName_);
+ }
+ if (executionSinkCase_ == 8) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, executionSink_);
+ }
+ if (executionIdentityCase_ == 9) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, executionIdentity_);
+ }
+ if (jobState_
+ != com.google.cloud.aiplatform.v1beta1.JobState.JOB_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, jobState_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStatus());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCreateTime());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUpdateTime());
+ }
+ if (environmentSpecCase_ == 14) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, environmentSpec_);
+ }
+ if (executionIdentityCase_ == 18) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, executionIdentity_);
+ }
+ 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.NotebookExecutionJob)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob other =
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getDisplayName().equals(other.getDisplayName())) return false;
+ if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false;
+ if (hasExecutionTimeout()) {
+ if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false;
+ }
+ if (!getScheduleResourceName().equals(other.getScheduleResourceName())) return false;
+ if (jobState_ != other.jobState_) return false;
+ if (hasStatus() != other.hasStatus()) return false;
+ if (hasStatus()) {
+ if (!getStatus().equals(other.getStatus())) 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 (!getNotebookSourceCase().equals(other.getNotebookSourceCase())) return false;
+ switch (notebookSourceCase_) {
+ case 3:
+ if (!getDataformRepositorySource().equals(other.getDataformRepositorySource()))
+ return false;
+ break;
+ case 4:
+ if (!getGcsNotebookSource().equals(other.getGcsNotebookSource())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getEnvironmentSpecCase().equals(other.getEnvironmentSpecCase())) return false;
+ switch (environmentSpecCase_) {
+ case 14:
+ if (!getNotebookRuntimeTemplateResourceName()
+ .equals(other.getNotebookRuntimeTemplateResourceName())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getExecutionSinkCase().equals(other.getExecutionSinkCase())) return false;
+ switch (executionSinkCase_) {
+ case 8:
+ if (!getGcsOutputUri().equals(other.getGcsOutputUri())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getExecutionIdentityCase().equals(other.getExecutionIdentityCase())) return false;
+ switch (executionIdentityCase_) {
+ case 9:
+ if (!getExecutionUser().equals(other.getExecutionUser())) return false;
+ break;
+ case 18:
+ if (!getServiceAccount().equals(other.getServiceAccount())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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 = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDisplayName().hashCode();
+ if (hasExecutionTimeout()) {
+ hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER;
+ hash = (53 * hash) + getExecutionTimeout().hashCode();
+ }
+ hash = (37 * hash) + SCHEDULE_RESOURCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getScheduleResourceName().hashCode();
+ hash = (37 * hash) + JOB_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + jobState_;
+ if (hasStatus()) {
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + getStatus().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();
+ }
+ switch (notebookSourceCase_) {
+ case 3:
+ hash = (37 * hash) + DATAFORM_REPOSITORY_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getDataformRepositorySource().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + GCS_NOTEBOOK_SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsNotebookSource().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (environmentSpecCase_) {
+ case 14:
+ hash = (37 * hash) + NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getNotebookRuntimeTemplateResourceName().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (executionSinkCase_) {
+ case 8:
+ hash = (37 * hash) + GCS_OUTPUT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getGcsOutputUri().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (executionIdentityCase_) {
+ case 9:
+ hash = (37 * hash) + EXECUTION_USER_FIELD_NUMBER;
+ hash = (53 * hash) + getExecutionUser().hashCode();
+ break;
+ case 18:
+ hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceAccount().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob 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.NotebookExecutionJob parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob 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.NotebookExecutionJob parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob 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.NotebookExecutionJob parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob 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.NotebookExecutionJob parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob 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.NotebookExecutionJob 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.NotebookExecutionJob 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.NotebookExecutionJob 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;
+ }
+ /**
+ *
+ *
+ *
+ * NotebookExecutionJob represents an instance of a notebook execution.
+ *
+ *
+ * Protobuf type {@code google.cloud.aiplatform.v1beta1.NotebookExecutionJob}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.NotebookExecutionJob)
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.class,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.Builder.class);
+ }
+
+ // Construct using com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getExecutionTimeoutFieldBuilder();
+ getStatusFieldBuilder();
+ getCreateTimeFieldBuilder();
+ getUpdateTimeFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (dataformRepositorySourceBuilder_ != null) {
+ dataformRepositorySourceBuilder_.clear();
+ }
+ if (gcsNotebookSourceBuilder_ != null) {
+ gcsNotebookSourceBuilder_.clear();
+ }
+ name_ = "";
+ displayName_ = "";
+ executionTimeout_ = null;
+ if (executionTimeoutBuilder_ != null) {
+ executionTimeoutBuilder_.dispose();
+ executionTimeoutBuilder_ = null;
+ }
+ scheduleResourceName_ = "";
+ jobState_ = 0;
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
+ statusBuilder_ = null;
+ }
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
+ }
+ notebookSourceCase_ = 0;
+ notebookSource_ = null;
+ environmentSpecCase_ = 0;
+ environmentSpec_ = null;
+ executionSinkCase_ = 0;
+ executionSink_ = null;
+ executionIdentityCase_ = 0;
+ executionIdentity_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto
+ .internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getDefaultInstanceForType() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob build() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob buildPartial() {
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob result =
+ new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob(this);
+ if (bitField0_ != 0) {
+ buildPartial0(result);
+ }
+ buildPartialOneofs(result);
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.displayName_ = displayName_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.executionTimeout_ =
+ executionTimeoutBuilder_ == null ? executionTimeout_ : executionTimeoutBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.scheduleResourceName_ = scheduleResourceName_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.jobState_ = jobState_;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ private void buildPartialOneofs(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob result) {
+ result.notebookSourceCase_ = notebookSourceCase_;
+ result.notebookSource_ = this.notebookSource_;
+ if (notebookSourceCase_ == 3 && dataformRepositorySourceBuilder_ != null) {
+ result.notebookSource_ = dataformRepositorySourceBuilder_.build();
+ }
+ if (notebookSourceCase_ == 4 && gcsNotebookSourceBuilder_ != null) {
+ result.notebookSource_ = gcsNotebookSourceBuilder_.build();
+ }
+ result.environmentSpecCase_ = environmentSpecCase_;
+ result.environmentSpec_ = this.environmentSpec_;
+ result.executionSinkCase_ = executionSinkCase_;
+ result.executionSink_ = this.executionSink_;
+ result.executionIdentityCase_ = executionIdentityCase_;
+ result.executionIdentity_ = this.executionIdentity_;
+ }
+
+ @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.NotebookExecutionJob) {
+ return mergeFrom((com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob other) {
+ if (other == com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.getDefaultInstance())
+ return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ if (!other.getDisplayName().isEmpty()) {
+ displayName_ = other.displayName_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ if (other.hasExecutionTimeout()) {
+ mergeExecutionTimeout(other.getExecutionTimeout());
+ }
+ if (!other.getScheduleResourceName().isEmpty()) {
+ scheduleResourceName_ = other.scheduleResourceName_;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ if (other.jobState_ != 0) {
+ setJobStateValue(other.getJobStateValue());
+ }
+ if (other.hasStatus()) {
+ mergeStatus(other.getStatus());
+ }
+ if (other.hasCreateTime()) {
+ mergeCreateTime(other.getCreateTime());
+ }
+ if (other.hasUpdateTime()) {
+ mergeUpdateTime(other.getUpdateTime());
+ }
+ switch (other.getNotebookSourceCase()) {
+ case DATAFORM_REPOSITORY_SOURCE:
+ {
+ mergeDataformRepositorySource(other.getDataformRepositorySource());
+ break;
+ }
+ case GCS_NOTEBOOK_SOURCE:
+ {
+ mergeGcsNotebookSource(other.getGcsNotebookSource());
+ break;
+ }
+ case NOTEBOOKSOURCE_NOT_SET:
+ {
+ break;
+ }
+ }
+ switch (other.getEnvironmentSpecCase()) {
+ case NOTEBOOK_RUNTIME_TEMPLATE_RESOURCE_NAME:
+ {
+ environmentSpecCase_ = 14;
+ environmentSpec_ = other.environmentSpec_;
+ onChanged();
+ break;
+ }
+ case ENVIRONMENTSPEC_NOT_SET:
+ {
+ break;
+ }
+ }
+ switch (other.getExecutionSinkCase()) {
+ case GCS_OUTPUT_URI:
+ {
+ executionSinkCase_ = 8;
+ executionSink_ = other.executionSink_;
+ onChanged();
+ break;
+ }
+ case EXECUTIONSINK_NOT_SET:
+ {
+ break;
+ }
+ }
+ switch (other.getExecutionIdentityCase()) {
+ case EXECUTION_USER:
+ {
+ executionIdentityCase_ = 9;
+ executionIdentity_ = other.executionIdentity_;
+ onChanged();
+ break;
+ }
+ case SERVICE_ACCOUNT:
+ {
+ executionIdentityCase_ = 18;
+ executionIdentity_ = other.executionIdentity_;
+ onChanged();
+ break;
+ }
+ case EXECUTIONIDENTITY_NOT_SET:
+ {
+ break;
+ }
+ }
+ 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_ |= 0x00000040;
+ break;
+ } // case 10
+ case 18:
+ {
+ displayName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 18
+ case 26:
+ {
+ input.readMessage(
+ getDataformRepositorySourceFieldBuilder().getBuilder(), extensionRegistry);
+ notebookSourceCase_ = 3;
+ break;
+ } // case 26
+ case 34:
+ {
+ input.readMessage(
+ getGcsNotebookSourceFieldBuilder().getBuilder(), extensionRegistry);
+ notebookSourceCase_ = 4;
+ break;
+ } // case 34
+ case 42:
+ {
+ input.readMessage(
+ getExecutionTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 42
+ case 50:
+ {
+ scheduleResourceName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 50
+ case 66:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ executionSinkCase_ = 8;
+ executionSink_ = s;
+ break;
+ } // case 66
+ case 74:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ executionIdentityCase_ = 9;
+ executionIdentity_ = s;
+ break;
+ } // case 74
+ case 80:
+ {
+ jobState_ = input.readEnum();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 80
+ case 90:
+ {
+ input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 90
+ case 98:
+ {
+ input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 98
+ case 106:
+ {
+ input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 106
+ case 114:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ environmentSpecCase_ = 14;
+ environmentSpec_ = s;
+ break;
+ } // case 114
+ case 146:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ executionIdentityCase_ = 18;
+ executionIdentity_ = s;
+ break;
+ } // case 146
+ 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 notebookSourceCase_ = 0;
+ private java.lang.Object notebookSource_;
+
+ public NotebookSourceCase getNotebookSourceCase() {
+ return NotebookSourceCase.forNumber(notebookSourceCase_);
+ }
+
+ public Builder clearNotebookSource() {
+ notebookSourceCase_ = 0;
+ notebookSource_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int environmentSpecCase_ = 0;
+ private java.lang.Object environmentSpec_;
+
+ public EnvironmentSpecCase getEnvironmentSpecCase() {
+ return EnvironmentSpecCase.forNumber(environmentSpecCase_);
+ }
+
+ public Builder clearEnvironmentSpec() {
+ environmentSpecCase_ = 0;
+ environmentSpec_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int executionSinkCase_ = 0;
+ private java.lang.Object executionSink_;
+
+ public ExecutionSinkCase getExecutionSinkCase() {
+ return ExecutionSinkCase.forNumber(executionSinkCase_);
+ }
+
+ public Builder clearExecutionSink() {
+ executionSinkCase_ = 0;
+ executionSink_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int executionIdentityCase_ = 0;
+ private java.lang.Object executionIdentity_;
+
+ public ExecutionIdentityCase getExecutionIdentityCase() {
+ return ExecutionIdentityCase.forNumber(executionIdentityCase_);
+ }
+
+ public Builder clearExecutionIdentity() {
+ executionIdentityCase_ = 0;
+ executionIdentity_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob
+ .DataformRepositorySourceOrBuilder>
+ dataformRepositorySourceBuilder_;
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ *
+ * @return Whether the dataformRepositorySource field is set.
+ */
+ @java.lang.Override
+ public boolean hasDataformRepositorySource() {
+ return notebookSourceCase_ == 3;
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ *
+ * @return The dataformRepositorySource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ getDataformRepositorySource() {
+ if (dataformRepositorySourceBuilder_ == null) {
+ if (notebookSourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance();
+ } else {
+ if (notebookSourceCase_ == 3) {
+ return dataformRepositorySourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ public Builder setDataformRepositorySource(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource value) {
+ if (dataformRepositorySourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ notebookSource_ = value;
+ onChanged();
+ } else {
+ dataformRepositorySourceBuilder_.setMessage(value);
+ }
+ notebookSourceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ public Builder setDataformRepositorySource(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource.Builder
+ builderForValue) {
+ if (dataformRepositorySourceBuilder_ == null) {
+ notebookSource_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataformRepositorySourceBuilder_.setMessage(builderForValue.build());
+ }
+ notebookSourceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ public Builder mergeDataformRepositorySource(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource value) {
+ if (dataformRepositorySourceBuilder_ == null) {
+ if (notebookSourceCase_ == 3
+ && notebookSource_
+ != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance()) {
+ notebookSource_ =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob
+ .DataformRepositorySource)
+ notebookSource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ notebookSource_ = value;
+ }
+ onChanged();
+ } else {
+ if (notebookSourceCase_ == 3) {
+ dataformRepositorySourceBuilder_.mergeFrom(value);
+ } else {
+ dataformRepositorySourceBuilder_.setMessage(value);
+ }
+ }
+ notebookSourceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ public Builder clearDataformRepositorySource() {
+ if (dataformRepositorySourceBuilder_ == null) {
+ if (notebookSourceCase_ == 3) {
+ notebookSourceCase_ = 0;
+ notebookSource_ = null;
+ onChanged();
+ }
+ } else {
+ if (notebookSourceCase_ == 3) {
+ notebookSourceCase_ = 0;
+ notebookSource_ = null;
+ }
+ dataformRepositorySourceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource.Builder
+ getDataformRepositorySourceBuilder() {
+ return getDataformRepositorySourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob
+ .DataformRepositorySourceOrBuilder
+ getDataformRepositorySourceOrBuilder() {
+ if ((notebookSourceCase_ == 3) && (dataformRepositorySourceBuilder_ != null)) {
+ return dataformRepositorySourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (notebookSourceCase_ == 3) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob
+ .DataformRepositorySourceOrBuilder>
+ getDataformRepositorySourceFieldBuilder() {
+ if (dataformRepositorySourceBuilder_ == null) {
+ if (!(notebookSourceCase_ == 3)) {
+ notebookSource_ =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .getDefaultInstance();
+ }
+ dataformRepositorySourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ .Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob
+ .DataformRepositorySourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource)
+ notebookSource_,
+ getParentForChildren(),
+ isClean());
+ notebookSource_ = null;
+ }
+ notebookSourceCase_ = 3;
+ onChanged();
+ return dataformRepositorySourceBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSourceOrBuilder>
+ gcsNotebookSourceBuilder_;
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ *
+ * @return Whether the gcsNotebookSource field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsNotebookSource() {
+ return notebookSourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ *
+ * @return The gcsNotebookSource.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ getGcsNotebookSource() {
+ if (gcsNotebookSourceBuilder_ == null) {
+ if (notebookSourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance();
+ } else {
+ if (notebookSourceCase_ == 4) {
+ return gcsNotebookSourceBuilder_.getMessage();
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ public Builder setGcsNotebookSource(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource value) {
+ if (gcsNotebookSourceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ notebookSource_ = value;
+ onChanged();
+ } else {
+ gcsNotebookSourceBuilder_.setMessage(value);
+ }
+ notebookSourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ public Builder setGcsNotebookSource(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.Builder
+ builderForValue) {
+ if (gcsNotebookSourceBuilder_ == null) {
+ notebookSource_ = builderForValue.build();
+ onChanged();
+ } else {
+ gcsNotebookSourceBuilder_.setMessage(builderForValue.build());
+ }
+ notebookSourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ public Builder mergeGcsNotebookSource(
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource value) {
+ if (gcsNotebookSourceBuilder_ == null) {
+ if (notebookSourceCase_ == 4
+ && notebookSource_
+ != com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance()) {
+ notebookSource_ =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.newBuilder(
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ notebookSource_ = value;
+ }
+ onChanged();
+ } else {
+ if (notebookSourceCase_ == 4) {
+ gcsNotebookSourceBuilder_.mergeFrom(value);
+ } else {
+ gcsNotebookSourceBuilder_.setMessage(value);
+ }
+ }
+ notebookSourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ public Builder clearGcsNotebookSource() {
+ if (gcsNotebookSourceBuilder_ == null) {
+ if (notebookSourceCase_ == 4) {
+ notebookSourceCase_ = 0;
+ notebookSource_ = null;
+ onChanged();
+ }
+ } else {
+ if (notebookSourceCase_ == 4) {
+ notebookSourceCase_ = 0;
+ notebookSource_ = null;
+ }
+ gcsNotebookSourceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.Builder
+ getGcsNotebookSourceBuilder() {
+ return getGcsNotebookSourceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSourceOrBuilder
+ getGcsNotebookSourceOrBuilder() {
+ if ((notebookSourceCase_ == 4) && (gcsNotebookSourceBuilder_ != null)) {
+ return gcsNotebookSourceBuilder_.getMessageOrBuilder();
+ } else {
+ if (notebookSourceCase_ == 4) {
+ return (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_;
+ }
+ return com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSourceOrBuilder>
+ getGcsNotebookSourceFieldBuilder() {
+ if (gcsNotebookSourceBuilder_ == null) {
+ if (!(notebookSourceCase_ == 4)) {
+ notebookSource_ =
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource
+ .getDefaultInstance();
+ }
+ gcsNotebookSourceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource.Builder,
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob
+ .GcsNotebookSourceOrBuilder>(
+ (com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource)
+ notebookSource_,
+ getParentForChildren(),
+ isClean());
+ notebookSource_ = null;
+ }
+ notebookSourceCase_ = 4;
+ onChanged();
+ return gcsNotebookSourceBuilder_;
+ }
+
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the notebookRuntimeTemplateResourceName field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotebookRuntimeTemplateResourceName() {
+ return environmentSpecCase_ == 14;
+ }
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The notebookRuntimeTemplateResourceName.
+ */
+ @java.lang.Override
+ public java.lang.String getNotebookRuntimeTemplateResourceName() {
+ java.lang.Object ref = "";
+ if (environmentSpecCase_ == 14) {
+ ref = environmentSpec_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (environmentSpecCase_ == 14) {
+ environmentSpec_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for notebookRuntimeTemplateResourceName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes() {
+ java.lang.Object ref = "";
+ if (environmentSpecCase_ == 14) {
+ ref = environmentSpec_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (environmentSpecCase_ == 14) {
+ environmentSpec_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The notebookRuntimeTemplateResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNotebookRuntimeTemplateResourceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ environmentSpecCase_ = 14;
+ environmentSpec_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNotebookRuntimeTemplateResourceName() {
+ if (environmentSpecCase_ == 14) {
+ environmentSpecCase_ = 0;
+ environmentSpec_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for notebookRuntimeTemplateResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNotebookRuntimeTemplateResourceNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ environmentSpecCase_ = 14;
+ environmentSpec_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return Whether the gcsOutputUri field is set.
+ */
+ @java.lang.Override
+ public boolean hasGcsOutputUri() {
+ return executionSinkCase_ == 8;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return The gcsOutputUri.
+ */
+ @java.lang.Override
+ public java.lang.String getGcsOutputUri() {
+ java.lang.Object ref = "";
+ if (executionSinkCase_ == 8) {
+ ref = executionSink_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (executionSinkCase_ == 8) {
+ executionSink_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return The bytes for gcsOutputUri.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getGcsOutputUriBytes() {
+ java.lang.Object ref = "";
+ if (executionSinkCase_ == 8) {
+ ref = executionSink_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (executionSinkCase_ == 8) {
+ executionSink_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @param value The gcsOutputUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsOutputUri(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ executionSinkCase_ = 8;
+ executionSink_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearGcsOutputUri() {
+ if (executionSinkCase_ == 8) {
+ executionSinkCase_ = 0;
+ executionSink_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @param value The bytes for gcsOutputUri to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGcsOutputUriBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ executionSinkCase_ = 8;
+ executionSink_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return Whether the executionUser field is set.
+ */
+ @java.lang.Override
+ public boolean hasExecutionUser() {
+ return executionIdentityCase_ == 9;
+ }
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return The executionUser.
+ */
+ @java.lang.Override
+ public java.lang.String getExecutionUser() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 9) {
+ ref = executionIdentity_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (executionIdentityCase_ == 9) {
+ executionIdentity_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return The bytes for executionUser.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getExecutionUserBytes() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 9) {
+ ref = executionIdentity_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (executionIdentityCase_ == 9) {
+ executionIdentity_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @param value The executionUser to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExecutionUser(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ executionIdentityCase_ = 9;
+ executionIdentity_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExecutionUser() {
+ if (executionIdentityCase_ == 9) {
+ executionIdentityCase_ = 0;
+ executionIdentity_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @param value The bytes for executionUser to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExecutionUserBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ executionIdentityCase_ = 9;
+ executionIdentity_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return Whether the serviceAccount field is set.
+ */
+ @java.lang.Override
+ public boolean hasServiceAccount() {
+ return executionIdentityCase_ == 18;
+ }
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return The serviceAccount.
+ */
+ @java.lang.Override
+ public java.lang.String getServiceAccount() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 18) {
+ ref = executionIdentity_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (executionIdentityCase_ == 18) {
+ executionIdentity_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return The bytes for serviceAccount.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getServiceAccountBytes() {
+ java.lang.Object ref = "";
+ if (executionIdentityCase_ == 18) {
+ ref = executionIdentity_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (executionIdentityCase_ == 18) {
+ executionIdentity_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @param value The serviceAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceAccount(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ executionIdentityCase_ = 18;
+ executionIdentity_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceAccount() {
+ if (executionIdentityCase_ == 18) {
+ executionIdentityCase_ = 0;
+ executionIdentity_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @param value The bytes for serviceAccount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ executionIdentityCase_ = 18;
+ executionIdentity_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * 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 this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * 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 this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * 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_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * 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_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ displayName_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+ displayName_ = getDefaultInstance().getDisplayName();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ displayName_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration executionTimeout_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ executionTimeoutBuilder_;
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ *
+ * @return Whether the executionTimeout field is set.
+ */
+ public boolean hasExecutionTimeout() {
+ return ((bitField0_ & 0x00000100) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ *
+ * @return The executionTimeout.
+ */
+ public com.google.protobuf.Duration getExecutionTimeout() {
+ if (executionTimeoutBuilder_ == null) {
+ return executionTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executionTimeout_;
+ } else {
+ return executionTimeoutBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ public Builder setExecutionTimeout(com.google.protobuf.Duration value) {
+ if (executionTimeoutBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ executionTimeout_ = value;
+ } else {
+ executionTimeoutBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) {
+ if (executionTimeoutBuilder_ == null) {
+ executionTimeout_ = builderForValue.build();
+ } else {
+ executionTimeoutBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) {
+ if (executionTimeoutBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)
+ && executionTimeout_ != null
+ && executionTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ getExecutionTimeoutBuilder().mergeFrom(value);
+ } else {
+ executionTimeout_ = value;
+ }
+ } else {
+ executionTimeoutBuilder_.mergeFrom(value);
+ }
+ if (executionTimeout_ != null) {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ public Builder clearExecutionTimeout() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ executionTimeout_ = null;
+ if (executionTimeoutBuilder_ != null) {
+ executionTimeoutBuilder_.dispose();
+ executionTimeoutBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getExecutionTimeoutFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() {
+ if (executionTimeoutBuilder_ != null) {
+ return executionTimeoutBuilder_.getMessageOrBuilder();
+ } else {
+ return executionTimeout_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : executionTimeout_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getExecutionTimeoutFieldBuilder() {
+ if (executionTimeoutBuilder_ == null) {
+ executionTimeoutBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getExecutionTimeout(), getParentForChildren(), isClean());
+ executionTimeout_ = null;
+ }
+ return executionTimeoutBuilder_;
+ }
+
+ private java.lang.Object scheduleResourceName_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The scheduleResourceName.
+ */
+ public java.lang.String getScheduleResourceName() {
+ java.lang.Object ref = scheduleResourceName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ scheduleResourceName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for scheduleResourceName.
+ */
+ public com.google.protobuf.ByteString getScheduleResourceNameBytes() {
+ java.lang.Object ref = scheduleResourceName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ scheduleResourceName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The scheduleResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScheduleResourceName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ scheduleResourceName_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearScheduleResourceName() {
+ scheduleResourceName_ = getDefaultInstance().getScheduleResourceName();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for scheduleResourceName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScheduleResourceNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ scheduleResourceName_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ private int jobState_ = 0;
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for jobState.
+ */
+ @java.lang.Override
+ public int getJobStateValue() {
+ return jobState_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for jobState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setJobStateValue(int value) {
+ jobState_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The jobState.
+ */
+ @java.lang.Override
+ public com.google.cloud.aiplatform.v1beta1.JobState getJobState() {
+ com.google.cloud.aiplatform.v1beta1.JobState result =
+ com.google.cloud.aiplatform.v1beta1.JobState.forNumber(jobState_);
+ return result == null ? com.google.cloud.aiplatform.v1beta1.JobState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The jobState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setJobState(com.google.cloud.aiplatform.v1beta1.JobState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
+ jobState_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearJobState() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ jobState_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.rpc.Status status_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ statusBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the status field is set.
+ */
+ public boolean hasStatus() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The status.
+ */
+ public com.google.rpc.Status getStatus() {
+ if (statusBuilder_ == null) {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ } else {
+ return statusBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder setStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ status_ = value;
+ } else {
+ statusBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
+ if (statusBuilder_ == null) {
+ status_ = builderForValue.build();
+ } else {
+ statusBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder mergeStatus(com.google.rpc.Status value) {
+ if (statusBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0)
+ && status_ != null
+ && status_ != com.google.rpc.Status.getDefaultInstance()) {
+ getStatusBuilder().mergeFrom(value);
+ } else {
+ status_ = value;
+ }
+ } else {
+ statusBuilder_.mergeFrom(value);
+ }
+ if (status_ != null) {
+ bitField0_ |= 0x00000800;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public Builder clearStatus() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ status_ = null;
+ if (statusBuilder_ != null) {
+ statusBuilder_.dispose();
+ statusBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public com.google.rpc.Status.Builder getStatusBuilder() {
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return getStatusFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
+ if (statusBuilder_ != null) {
+ return statusBuilder_.getMessageOrBuilder();
+ } else {
+ return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+ getStatusFieldBuilder() {
+ if (statusBuilder_ == null) {
+ statusBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.rpc.Status,
+ com.google.rpc.Status.Builder,
+ com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
+ status_ = null;
+ }
+ return statusBuilder_;
+ }
+
+ 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 NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00001000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.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 NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.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_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.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_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00001000) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+ if (createTime_ != null) {
+ bitField0_ |= 0x00001000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.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 NotebookExecutionJob was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.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 NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return ((bitField0_ & 0x00002000) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.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 NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.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_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.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_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00002000) != 0)
+ && updateTime_ != null
+ && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getUpdateTimeBuilder().mergeFrom(value);
+ } else {
+ updateTime_ = value;
+ }
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+ if (updateTime_ != null) {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearUpdateTime() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ updateTime_ = null;
+ if (updateTimeBuilder_ != null) {
+ updateTimeBuilder_.dispose();
+ updateTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.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 NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.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_;
+ }
+
+ @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.NotebookExecutionJob)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJob)
+ private static final com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob();
+ }
+
+ public static com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public NotebookExecutionJob 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.NotebookExecutionJob getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobName.java
new file mode 100644
index 000000000000..505a2ebfb2f7
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobName.java
@@ -0,0 +1,232 @@
+/*
+ * Copyright 2024 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 NotebookExecutionJobName implements ResourceName {
+ private static final PathTemplate PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB =
+ PathTemplate.createWithoutUrlEncoding(
+ "projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}");
+ private volatile Map fieldValuesMap;
+ private final String project;
+ private final String location;
+ private final String notebookExecutionJob;
+
+ @Deprecated
+ protected NotebookExecutionJobName() {
+ project = null;
+ location = null;
+ notebookExecutionJob = null;
+ }
+
+ private NotebookExecutionJobName(Builder builder) {
+ project = Preconditions.checkNotNull(builder.getProject());
+ location = Preconditions.checkNotNull(builder.getLocation());
+ notebookExecutionJob = Preconditions.checkNotNull(builder.getNotebookExecutionJob());
+ }
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public String getNotebookExecutionJob() {
+ return notebookExecutionJob;
+ }
+
+ public static Builder newBuilder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ public static NotebookExecutionJobName of(
+ String project, String location, String notebookExecutionJob) {
+ return newBuilder()
+ .setProject(project)
+ .setLocation(location)
+ .setNotebookExecutionJob(notebookExecutionJob)
+ .build();
+ }
+
+ public static String format(String project, String location, String notebookExecutionJob) {
+ return newBuilder()
+ .setProject(project)
+ .setLocation(location)
+ .setNotebookExecutionJob(notebookExecutionJob)
+ .build()
+ .toString();
+ }
+
+ public static NotebookExecutionJobName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ Map matchMap =
+ PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB.validatedMatch(
+ formattedString, "NotebookExecutionJobName.parse: formattedString not in valid format");
+ return of(
+ matchMap.get("project"), matchMap.get("location"), matchMap.get("notebook_execution_job"));
+ }
+
+ 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 (NotebookExecutionJobName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB.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 (notebookExecutionJob != null) {
+ fieldMapBuilder.put("notebook_execution_job", notebookExecutionJob);
+ }
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return PROJECT_LOCATION_NOTEBOOK_EXECUTION_JOB.instantiate(
+ "project", project, "location", location, "notebook_execution_job", notebookExecutionJob);
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o != null && getClass() == o.getClass()) {
+ NotebookExecutionJobName that = ((NotebookExecutionJobName) o);
+ return Objects.equals(this.project, that.project)
+ && Objects.equals(this.location, that.location)
+ && Objects.equals(this.notebookExecutionJob, that.notebookExecutionJob);
+ }
+ 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(notebookExecutionJob);
+ return h;
+ }
+
+ /**
+ * Builder for
+ * projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}.
+ */
+ public static class Builder {
+ private String project;
+ private String location;
+ private String notebookExecutionJob;
+
+ protected Builder() {}
+
+ public String getProject() {
+ return project;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public String getNotebookExecutionJob() {
+ return notebookExecutionJob;
+ }
+
+ public Builder setProject(String project) {
+ this.project = project;
+ return this;
+ }
+
+ public Builder setLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ public Builder setNotebookExecutionJob(String notebookExecutionJob) {
+ this.notebookExecutionJob = notebookExecutionJob;
+ return this;
+ }
+
+ private Builder(NotebookExecutionJobName notebookExecutionJobName) {
+ this.project = notebookExecutionJobName.project;
+ this.location = notebookExecutionJobName.location;
+ this.notebookExecutionJob = notebookExecutionJobName.notebookExecutionJob;
+ }
+
+ public NotebookExecutionJobName build() {
+ return new NotebookExecutionJobName(this);
+ }
+ }
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java
new file mode 100644
index 000000000000..d9fc85b32f77
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobOrBuilder.java
@@ -0,0 +1,553 @@
+/*
+ * Copyright 2024 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/notebook_execution_job.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+public interface NotebookExecutionJobOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.NotebookExecutionJob)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ *
+ * @return Whether the dataformRepositorySource field is set.
+ */
+ boolean hasDataformRepositorySource();
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ *
+ * @return The dataformRepositorySource.
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource
+ getDataformRepositorySource();
+ /**
+ *
+ *
+ *
+ * The Dataform Repository pointing to a single file notebook repository.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySource dataform_repository_source = 3;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.DataformRepositorySourceOrBuilder
+ getDataformRepositorySourceOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ *
+ * @return Whether the gcsNotebookSource field is set.
+ */
+ boolean hasGcsNotebookSource();
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ *
+ * @return The gcsNotebookSource.
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource getGcsNotebookSource();
+ /**
+ *
+ *
+ *
+ * The GCS url pointing to the ipynb file. Format:
+ * `gs://bucket/notebook_file.ipynb`
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSource gcs_notebook_source = 4;
+ *
+ */
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.GcsNotebookSourceOrBuilder
+ getGcsNotebookSourceOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return Whether the notebookRuntimeTemplateResourceName field is set.
+ */
+ boolean hasNotebookRuntimeTemplateResourceName();
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The notebookRuntimeTemplateResourceName.
+ */
+ java.lang.String getNotebookRuntimeTemplateResourceName();
+ /**
+ *
+ *
+ *
+ * The NotebookRuntimeTemplate to source compute configuration from.
+ *
+ *
+ *
+ * string notebook_runtime_template_resource_name = 14 [(.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for notebookRuntimeTemplateResourceName.
+ */
+ com.google.protobuf.ByteString getNotebookRuntimeTemplateResourceNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return Whether the gcsOutputUri field is set.
+ */
+ boolean hasGcsOutputUri();
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return The gcsOutputUri.
+ */
+ java.lang.String getGcsOutputUri();
+ /**
+ *
+ *
+ *
+ * The GCS location to upload the result to. Format:
+ * `gs://bucket-name`
+ *
+ *
+ * string gcs_output_uri = 8;
+ *
+ * @return The bytes for gcsOutputUri.
+ */
+ com.google.protobuf.ByteString getGcsOutputUriBytes();
+
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return Whether the executionUser field is set.
+ */
+ boolean hasExecutionUser();
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return The executionUser.
+ */
+ java.lang.String getExecutionUser();
+ /**
+ *
+ *
+ *
+ * The user email to run the execution as. Only supported by Colab runtimes.
+ *
+ *
+ * string execution_user = 9;
+ *
+ * @return The bytes for executionUser.
+ */
+ com.google.protobuf.ByteString getExecutionUserBytes();
+
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return Whether the serviceAccount field is set.
+ */
+ boolean hasServiceAccount();
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return The serviceAccount.
+ */
+ java.lang.String getServiceAccount();
+ /**
+ *
+ *
+ *
+ * The service account to run the execution as.
+ *
+ *
+ * string service_account = 18;
+ *
+ * @return The bytes for serviceAccount.
+ */
+ com.google.protobuf.ByteString getServiceAccountBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Output only. The resource name of this NotebookExecutionJob. Format:
+ * `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ java.lang.String getDisplayName();
+ /**
+ *
+ *
+ *
+ * The display name of the NotebookExecutionJob. The name can be up to 128
+ * characters long and can consist of any UTF-8 characters.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ com.google.protobuf.ByteString getDisplayNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ *
+ * @return Whether the executionTimeout field is set.
+ */
+ boolean hasExecutionTimeout();
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ *
+ * @return The executionTimeout.
+ */
+ com.google.protobuf.Duration getExecutionTimeout();
+ /**
+ *
+ *
+ *
+ * Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ *
+ *
+ * .google.protobuf.Duration execution_timeout = 5;
+ */
+ com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The scheduleResourceName.
+ */
+ java.lang.String getScheduleResourceName();
+ /**
+ *
+ *
+ *
+ * Output only. The Schedule resource name if this job is triggered by one.
+ * Format:
+ * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ *
+ *
+ *
+ * string schedule_resource_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for scheduleResourceName.
+ */
+ com.google.protobuf.ByteString getScheduleResourceNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for jobState.
+ */
+ int getJobStateValue();
+ /**
+ *
+ *
+ *
+ * Output only. The state of the NotebookExecutionJob.
+ *
+ *
+ *
+ * .google.cloud.aiplatform.v1beta1.JobState job_state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The jobState.
+ */
+ com.google.cloud.aiplatform.v1beta1.JobState getJobState();
+
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return Whether the status field is set.
+ */
+ boolean hasStatus();
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The status.
+ */
+ com.google.rpc.Status getStatus();
+ /**
+ *
+ *
+ *
+ * Output only. Populated when the NotebookExecutionJob is completed. When
+ * there is an error during notebook execution, the error details are
+ * populated.
+ *
+ *
+ * .google.rpc.Status status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ com.google.rpc.StatusOrBuilder getStatusOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ boolean hasCreateTime();
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ boolean hasUpdateTime();
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The updateTime.
+ */
+ com.google.protobuf.Timestamp getUpdateTime();
+ /**
+ *
+ *
+ *
+ * Output only. Timestamp when this NotebookExecutionJob was most recently
+ * updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.NotebookSourceCase
+ getNotebookSourceCase();
+
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.EnvironmentSpecCase
+ getEnvironmentSpecCase();
+
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.ExecutionSinkCase getExecutionSinkCase();
+
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob.ExecutionIdentityCase
+ getExecutionIdentityCase();
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java
new file mode 100644
index 000000000000..1dacab5ab0b7
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookExecutionJobProto.java
@@ -0,0 +1,170 @@
+/*
+ * Copyright 2024 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/notebook_execution_job.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.aiplatform.v1beta1;
+
+public final class NotebookExecutionJobProto {
+ private NotebookExecutionJobProto() {}
+
+ 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_NotebookExecutionJob_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_DataformRepositorySource_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_GcsNotebookSource_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_NotebookExecutionJob_GcsNotebookSource_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n
+ * Views for Get/List NotebookExecutionJob
+ *
+ *
+ * Protobuf enum {@code google.cloud.aiplatform.v1beta1.NotebookExecutionJobView}
+ */
+public enum NotebookExecutionJobView implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * When unspecified, the API defaults to the BASIC view.
+ *
+ *
+ * NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED = 0;
+ */
+ NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Includes all fields except for direct notebook inputs.
+ *
+ *
+ * NOTEBOOK_EXECUTION_JOB_VIEW_BASIC = 1;
+ */
+ NOTEBOOK_EXECUTION_JOB_VIEW_BASIC(1),
+ /**
+ *
+ *
+ *
+ * Includes all fields.
+ *
+ *
+ * NOTEBOOK_EXECUTION_JOB_VIEW_FULL = 2;
+ */
+ NOTEBOOK_EXECUTION_JOB_VIEW_FULL(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * When unspecified, the API defaults to the BASIC view.
+ *
+ *
+ * NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED = 0;
+ */
+ public static final int NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Includes all fields except for direct notebook inputs.
+ *
+ *
+ * NOTEBOOK_EXECUTION_JOB_VIEW_BASIC = 1;
+ */
+ public static final int NOTEBOOK_EXECUTION_JOB_VIEW_BASIC_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Includes all fields.
+ *
+ *
+ * NOTEBOOK_EXECUTION_JOB_VIEW_FULL = 2;
+ */
+ public static final int NOTEBOOK_EXECUTION_JOB_VIEW_FULL_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static NotebookExecutionJobView valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static NotebookExecutionJobView forNumber(int value) {
+ switch (value) {
+ case 0:
+ return NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED;
+ case 1:
+ return NOTEBOOK_EXECUTION_JOB_VIEW_BASIC;
+ case 2:
+ return NOTEBOOK_EXECUTION_JOB_VIEW_FULL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+
+ private static final com.google.protobuf.Internal.EnumLiteMap
+ internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public NotebookExecutionJobView findValueByNumber(int number) {
+ return NotebookExecutionJobView.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+
+ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+ return getDescriptor();
+ }
+
+ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+ return com.google.cloud.aiplatform.v1beta1.NotebookServiceProto.getDescriptor()
+ .getEnumTypes()
+ .get(0);
+ }
+
+ private static final NotebookExecutionJobView[] VALUES = values();
+
+ public static NotebookExecutionJobView valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private NotebookExecutionJobView(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.NotebookExecutionJobView)
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceProto.java
index 12ea4f6a4182..4393ed75d0c6 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceProto.java
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/NotebookServiceProto.java
@@ -100,6 +100,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_aiplatform_v1beta1_StartNotebookRuntimeResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_aiplatform_v1beta1_StartNotebookRuntimeResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -114,153 +130,194 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "m.v1beta1\032\034google/api/annotations.proto\032"
+ "\027google/api/client.proto\032\037google/api/fie"
+ "ld_behavior.proto\032\031google/api/resource.p"
- + "roto\0326google/cloud/aiplatform/v1beta1/no"
- + "tebook_runtime.proto\032/google/cloud/aipla"
- + "tform/v1beta1/operation.proto\032#google/lo"
- + "ngrunning/operations.proto\032\033google/proto"
- + "buf/empty.proto\032 google/protobuf/field_m"
- + "ask.proto\"\356\001\n$CreateNotebookRuntimeTempl"
- + "ateRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loca"
- + "tions.googleapis.com/Location\022`\n\031noteboo"
- + "k_runtime_template\030\002 \001(\01328.google.cloud."
- + "aiplatform.v1beta1.NotebookRuntimeTempla"
- + "teB\003\340A\002\022)\n\034notebook_runtime_template_id\030"
- + "\003 \001(\tB\003\340A\001\"\205\001\n.CreateNotebookRuntimeTemp"
- + "lateOperationMetadata\022S\n\020generic_metadat"
- + "a\030\001 \001(\01329.google.cloud.aiplatform.v1beta"
- + "1.GenericOperationMetadata\"l\n!GetNoteboo"
- + "kRuntimeTemplateRequest\022G\n\004name\030\001 \001(\tB9\340"
- + "A\002\372A3\n1aiplatform.googleapis.com/Noteboo"
- + "kRuntimeTemplate\"\361\001\n#ListNotebookRuntime"
- + "TemplatesRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#"
+ + "roto\032.google.cloud.aiplatform.v1beta1.Upgrad"
- + "eNotebookRuntimeRequest\032\035.google.longrun"
- + "ning.Operation\"\237\001\312AI\n\036UpgradeNotebookRun"
- + "timeResponse\022\'UpgradeNotebookRuntimeOper"
- + "ationMetadata\332A\004name\202\323\344\223\002F\"A/v1beta1/{na"
- + "me=projects/*/locations/*/notebookRuntim"
- + "es/*}:upgrade:\001*\022\217\002\n\024StartNotebookRuntim"
- + "e\022<.google.cloud.aiplatform.v1beta1.Star"
- + "tNotebookRuntimeRequest\032\035.google.longrun"
- + "ning.Operation\"\231\001\312AE\n\034StartNotebookRunti"
- + "meResponse\022%StartNotebookRuntimeOperatio"
- + "nMetadata\332A\004name\202\323\344\223\002D\"?/v1beta1/{name=p"
- + "rojects/*/locations/*/notebookRuntimes/*"
- + "}:start:\001*\032M\312A\031aiplatform.googleapis.com"
- + "\322A.https://www.googleapis.com/auth/cloud"
- + "-platformB\353\001\n#com.google.cloud.aiplatfor"
- + "m.v1beta1B\024NotebookServiceProtoP\001ZCcloud"
- + ".google.com/go/aiplatform/apiv1beta1/aip"
- + "latformpb;aiplatformpb\252\002\037Google.Cloud.AI"
- + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo"
- + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::"
- + "V1beta1b\006proto3"
+ + "untimeTemplates\022\213\002\n\035DeleteNotebookRuntim"
+ + "eTemplate\022E.google.cloud.aiplatform.v1be"
+ + "ta1.DeleteNotebookRuntimeTemplateRequest"
+ + "\032\035.google.longrunning.Operation\"\203\001\312A0\n\025g"
+ + "oogle.protobuf.Empty\022\027DeleteOperationMet"
+ + "adata\332A\004name\202\323\344\223\002C*A/v1beta1/{name=proje"
+ + "cts/*/locations/*/notebookRuntimeTemplat"
+ + "es/*}\022\307\002\n\025AssignNotebookRuntime\022=.google"
+ + ".cloud.aiplatform.v1beta1.AssignNotebook"
+ + "RuntimeRequest\032\035.google.longrunning.Oper"
+ + "ation\"\317\001\312A9\n\017NotebookRuntime\022&AssignNote"
+ + "bookRuntimeOperationMetadata\332AEparent,no"
+ + "tebook_runtime_template,notebook_runtime"
+ + ",notebook_runtime_id\202\323\344\223\002E\"@/v1beta1/{pa"
+ + "rent=projects/*/locations/*}/notebookRun"
+ + "times:assign:\001*\022\314\001\n\022GetNotebookRuntime\022:"
+ + ".google.cloud.aiplatform.v1beta1.GetNote"
+ + "bookRuntimeRequest\0320.google.cloud.aiplat"
+ + "form.v1beta1.NotebookRuntime\"H\332A\004name\202\323\344"
+ + "\223\002;\0229/v1beta1/{name=projects/*/locations"
+ + "/*/notebookRuntimes/*}\022\337\001\n\024ListNotebookR"
+ + "untimes\022<.google.cloud.aiplatform.v1beta"
+ + "1.ListNotebookRuntimesRequest\032=.google.c"
+ + "loud.aiplatform.v1beta1.ListNotebookRunt"
+ + "imesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1beta1/"
+ + "{parent=projects/*/locations/*}/notebook"
+ + "Runtimes\022\362\001\n\025DeleteNotebookRuntime\022=.goo"
+ + "gle.cloud.aiplatform.v1beta1.DeleteNoteb"
+ + "ookRuntimeRequest\032\035.google.longrunning.O"
+ + "peration\"{\312A0\n\025google.protobuf.Empty\022\027De"
+ + "leteOperationMetadata\332A\004name\202\323\344\223\002;*9/v1b"
+ + "eta1/{name=projects/*/locations/*/notebo"
+ + "okRuntimes/*}\022\231\002\n\026UpgradeNotebookRuntime"
+ + "\022>.google.cloud.aiplatform.v1beta1.Upgra"
+ + "deNotebookRuntimeRequest\032\035.google.longru"
+ + "nning.Operation\"\237\001\312AI\n\036UpgradeNotebookRu"
+ + "ntimeResponse\022\'UpgradeNotebookRuntimeOpe"
+ + "rationMetadata\332A\004name\202\323\344\223\002F\"A/v1beta1/{n"
+ + "ame=projects/*/locations/*/notebookRunti"
+ + "mes/*}:upgrade:\001*\022\217\002\n\024StartNotebookRunti"
+ + "me\022<.google.cloud.aiplatform.v1beta1.Sta"
+ + "rtNotebookRuntimeRequest\032\035.google.longru"
+ + "nning.Operation\"\231\001\312AE\n\034StartNotebookRunt"
+ + "imeResponse\022%StartNotebookRuntimeOperati"
+ + "onMetadata\332A\004name\202\323\344\223\002D\"?/v1beta1/{name="
+ + "projects/*/locations/*/notebookRuntimes/"
+ + "*}:start:\001*\022\340\001\n\027GetNotebookExecutionJob\022"
+ + "?.google.cloud.aiplatform.v1beta1.GetNot"
+ + "ebookExecutionJobRequest\0325.google.cloud."
+ + "aiplatform.v1beta1.NotebookExecutionJob\""
+ + "M\332A\004name\202\323\344\223\002@\022>/v1beta1/{name=projects/"
+ + "*/locations/*/notebookExecutionJobs/*}\022\363"
+ + "\001\n\031ListNotebookExecutionJobs\022A.google.cl"
+ + "oud.aiplatform.v1beta1.ListNotebookExecu"
+ + "tionJobsRequest\032B.google.cloud.aiplatfor"
+ + "m.v1beta1.ListNotebookExecutionJobsRespo"
+ + "nse\"O\332A\006parent\202\323\344\223\002@\022>/v1beta1/{parent=p"
+ + "rojects/*/locations/*}/notebookExecution"
+ + "Jobs\022\202\002\n\032DeleteNotebookExecutionJob\022B.go"
+ + "ogle.cloud.aiplatform.v1beta1.DeleteNote"
+ + "bookExecutionJobRequest\032\035.google.longrun"
+ + "ning.Operation\"\200\001\312A0\n\025google.protobuf.Em"
+ + "pty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002"
+ + "@*>/v1beta1/{name=projects/*/locations/*"
+ + "/notebookExecutionJobs/*}\032M\312A\031aiplatform"
+ + ".googleapis.com\322A.https://www.googleapis"
+ + ".com/auth/cloud-platformB\353\001\n#com.google."
+ + "cloud.aiplatform.v1beta1B\024NotebookServic"
+ + "eProtoP\001ZCcloud.google.com/go/aiplatform"
+ + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037"
+ + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google"
+ + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou"
+ + "d::AIPlatform::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -270,6 +327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.ClientProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.NotebookRuntimeProto.getDescriptor(),
com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(),
com.google.longrunning.OperationsProto.getDescriptor(),
@@ -416,6 +474,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_aiplatform_v1beta1_StartNotebookRuntimeResponse_descriptor,
new java.lang.String[] {});
+ internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_GetNotebookExecutionJobRequest_descriptor,
+ new java.lang.String[] {
+ "Name", "View",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsRequest_descriptor,
+ new java.lang.String[] {
+ "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "View",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_ListNotebookExecutionJobsResponse_descriptor,
+ new java.lang.String[] {
+ "NotebookExecutionJobs", "NextPageToken",
+ });
+ internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_descriptor =
+ getDescriptor().getMessageTypes().get(21);
+ internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_cloud_aiplatform_v1beta1_DeleteNotebookExecutionJobRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
@@ -431,6 +521,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.api.ClientProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
+ com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.NotebookRuntimeProto.getDescriptor();
com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor();
com.google.longrunning.OperationsProto.getDescriptor();
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto
new file mode 100644
index 000000000000..5113ceedc3eb
--- /dev/null
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_execution_job.proto
@@ -0,0 +1,138 @@
+// 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/cloud/aiplatform/v1beta1/job_state.proto";
+import "google/protobuf/duration.proto";
+import "google/protobuf/timestamp.proto";
+import "google/rpc/status.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 = "NotebookExecutionJobProto";
+option java_package = "com.google.cloud.aiplatform.v1beta1";
+option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
+option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
+
+// NotebookExecutionJob represents an instance of a notebook execution.
+message NotebookExecutionJob {
+ option (google.api.resource) = {
+ type: "aiplatform.googleapis.com/NotebookExecutionJob"
+ pattern: "projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}"
+ plural: "notebookExecutionJobs"
+ singular: "notebookExecutionJob"
+ };
+
+ // The Dataform Repository containing the input notebook.
+ message DataformRepositorySource {
+ // The resource name of the Dataform Repository. Format:
+ // `projects/{project_id}/locations/{location}/repositories/{repository_id}`
+ string dataform_repository_resource_name = 1;
+
+ // The commit SHA to read repository with. If unset, the file will be read
+ // at HEAD.
+ string commit_sha = 2;
+ }
+
+ // The Cloud Storage uri for the input notebook.
+ message GcsNotebookSource {
+ // The Cloud Storage uri pointing to the ipynb file. Format:
+ // `gs://bucket/notebook_file.ipynb`
+ string uri = 1;
+
+ // The version of the Cloud Storage object to read. If unset, the current
+ // version of the object is read. See
+ // https://cloud.google.com/storage/docs/metadata#generation-number.
+ string generation = 2;
+ }
+
+ // The input notebook.
+ oneof notebook_source {
+ // The Dataform Repository pointing to a single file notebook repository.
+ DataformRepositorySource dataform_repository_source = 3;
+
+ // The GCS url pointing to the ipynb file. Format:
+ // `gs://bucket/notebook_file.ipynb`
+ GcsNotebookSource gcs_notebook_source = 4;
+ }
+
+ // The compute config to use for an execution job.
+ oneof environment_spec {
+ // The NotebookRuntimeTemplate to source compute configuration from.
+ string notebook_runtime_template_resource_name = 14
+ [(google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/NotebookRuntimeTemplate"
+ }];
+ }
+
+ // The location to store the notebook execution result.
+ oneof execution_sink {
+ // The GCS location to upload the result to. Format:
+ // `gs://bucket-name`
+ string gcs_output_uri = 8;
+ }
+
+ // The identity to run the execution as.
+ oneof execution_identity {
+ // The user email to run the execution as. Only supported by Colab runtimes.
+ string execution_user = 9;
+
+ // The service account to run the execution as.
+ string service_account = 18;
+ }
+
+ // Output only. The resource name of this NotebookExecutionJob. Format:
+ // `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
+ string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The display name of the NotebookExecutionJob. The name can be up to 128
+ // characters long and can consist of any UTF-8 characters.
+ string display_name = 2;
+
+ // Max running time of the execution job in seconds (default 86400s / 24 hrs).
+ google.protobuf.Duration execution_timeout = 5;
+
+ // Output only. The Schedule resource name if this job is triggered by one.
+ // Format:
+ // `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+ string schedule_resource_name = 6 [
+ (google.api.field_behavior) = OUTPUT_ONLY,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/Schedule"
+ }
+ ];
+
+ // Output only. The state of the NotebookExecutionJob.
+ JobState job_state = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Populated when the NotebookExecutionJob is completed. When
+ // there is an error during notebook execution, the error details are
+ // populated.
+ google.rpc.Status status = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Timestamp when this NotebookExecutionJob was created.
+ google.protobuf.Timestamp create_time = 12
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Timestamp when this NotebookExecutionJob was most recently
+ // updated.
+ google.protobuf.Timestamp update_time = 13
+ [(google.api.field_behavior) = OUTPUT_ONLY];
+}
diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_service.proto
index 50cf6bd7d0cd..f35b83017efa 100644
--- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_service.proto
+++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/notebook_service.proto
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
+import "google/cloud/aiplatform/v1beta1/notebook_execution_job.proto";
import "google/cloud/aiplatform/v1beta1/notebook_runtime.proto";
import "google/cloud/aiplatform/v1beta1/operation.proto";
import "google/longrunning/operations.proto";
@@ -159,6 +160,49 @@ service NotebookService {
metadata_type: "StartNotebookRuntimeOperationMetadata"
};
}
+
+ // Gets a NotebookExecutionJob.
+ rpc GetNotebookExecutionJob(GetNotebookExecutionJobRequest)
+ returns (NotebookExecutionJob) {
+ option (google.api.http) = {
+ get: "/v1beta1/{name=projects/*/locations/*/notebookExecutionJobs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ }
+
+ // Lists NotebookExecutionJobs in a Location.
+ rpc ListNotebookExecutionJobs(ListNotebookExecutionJobsRequest)
+ returns (ListNotebookExecutionJobsResponse) {
+ option (google.api.http) = {
+ get: "/v1beta1/{parent=projects/*/locations/*}/notebookExecutionJobs"
+ };
+ option (google.api.method_signature) = "parent";
+ }
+
+ // Deletes a NotebookExecutionJob.
+ rpc DeleteNotebookExecutionJob(DeleteNotebookExecutionJobRequest)
+ returns (google.longrunning.Operation) {
+ option (google.api.http) = {
+ delete: "/v1beta1/{name=projects/*/locations/*/notebookExecutionJobs/*}"
+ };
+ option (google.api.method_signature) = "name";
+ option (google.longrunning.operation_info) = {
+ response_type: "google.protobuf.Empty"
+ metadata_type: "DeleteOperationMetadata"
+ };
+ }
+}
+
+// Views for Get/List NotebookExecutionJob
+enum NotebookExecutionJobView {
+ // When unspecified, the API defaults to the BASIC view.
+ NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED = 0;
+
+ // Includes all fields except for direct notebook inputs.
+ NOTEBOOK_EXECUTION_JOB_VIEW_BASIC = 1;
+
+ // Includes all fields.
+ NOTEBOOK_EXECUTION_JOB_VIEW_FULL = 2;
}
// Request message for
@@ -510,3 +554,89 @@ message StartNotebookRuntimeOperationMetadata {
// Response message for
// [NotebookService.StartNotebookRuntime][google.cloud.aiplatform.v1beta1.NotebookService.StartNotebookRuntime].
message StartNotebookRuntimeResponse {}
+
+// Request message for [NotebookService.GetNotebookExecutionJob]
+message GetNotebookExecutionJobRequest {
+ // Required. The name of the NotebookExecutionJob resource.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/NotebookExecutionJob"
+ }
+ ];
+
+ // Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ NotebookExecutionJobView view = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Request message for [NotebookService.ListNotebookExecutionJobs]
+message ListNotebookExecutionJobsRequest {
+ // Required. The resource name of the Location from which to list the
+ // NotebookExecutionJobs.
+ // Format: `projects/{project}/locations/{location}`
+ string parent = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "locations.googleapis.com/Location"
+ }
+ ];
+
+ // Optional. An expression for filtering the results of the request. For field
+ // names both snake_case and camelCase are supported.
+ //
+ // * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
+ // represents the NotebookExecutionJob ID.
+ // * `displayName` supports = and != and regex.
+ // * `schedule` supports = and != and regex.
+ //
+ // Some examples:
+ // * `notebookExecutionJob="123"`
+ // * `notebookExecutionJob="my-execution-job"`
+ // * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
+ 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
+ // [ListNotebookExecutionJobs.next_page_token][] of the previous
+ // [NotebookService.ListNotebookExecutionJobs][google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs]
+ // call.
+ string page_token = 4 [(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. Supported fields:
+ //
+ // * `display_name`
+ // * `create_time`
+ // * `update_time`
+ //
+ // Example: `display_name, create_time desc`.
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
+
+ // Optional. The NotebookExecutionJob view. Defaults to BASIC.
+ NotebookExecutionJobView view = 6 [(google.api.field_behavior) = OPTIONAL];
+}
+
+// Response message for [NotebookService.CreateNotebookExecutionJob]
+message ListNotebookExecutionJobsResponse {
+ // List of NotebookExecutionJobs in the requested page.
+ repeated NotebookExecutionJob notebook_execution_jobs = 1;
+
+ // A token to retrieve next page of results.
+ // Pass to [ListNotebookExecutionJobs.page_token][] to obtain that
+ // page.
+ string next_page_token = 2;
+}
+
+// Request message for [NotebookService.DeleteNotebookExecutionJob]
+message DeleteNotebookExecutionJobRequest {
+ // Required. The name of the NotebookExecutionJob resource to be deleted.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "aiplatform.googleapis.com/NotebookExecutionJob"
+ }
+ ];
+}
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJob.java
new file mode 100644
index 000000000000..49598bb18661
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJob.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2024 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_NotebookService_DeleteNotebookExecutionJob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+import com.google.longrunning.Operation;
+
+public class AsyncDeleteNotebookExecutionJob {
+
+ public static void main(String[] args) throws Exception {
+ asyncDeleteNotebookExecutionJob();
+ }
+
+ public static void asyncDeleteNotebookExecutionJob() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ DeleteNotebookExecutionJobRequest request =
+ DeleteNotebookExecutionJobRequest.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .build();
+ ApiFuture future =
+ notebookServiceClient.deleteNotebookExecutionJobCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_DeleteNotebookExecutionJob_async]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJobLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJobLRO.java
new file mode 100644
index 000000000000..c799e9737ef8
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/AsyncDeleteNotebookExecutionJobLRO.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2024 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_NotebookService_DeleteNotebookExecutionJob_LRO_async]
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest;
+import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteNotebookExecutionJobLRO {
+
+ public static void main(String[] args) throws Exception {
+ asyncDeleteNotebookExecutionJobLRO();
+ }
+
+ public static void asyncDeleteNotebookExecutionJobLRO() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ DeleteNotebookExecutionJobRequest request =
+ DeleteNotebookExecutionJobRequest.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .build();
+ OperationFuture future =
+ notebookServiceClient.deleteNotebookExecutionJobOperationCallable().futureCall(request);
+ // Do something.
+ future.get();
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_DeleteNotebookExecutionJob_LRO_async]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJob.java
new file mode 100644
index 000000000000..c0b7c32ef3ba
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJob.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2024 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_NotebookService_DeleteNotebookExecutionJob_sync]
+import com.google.cloud.aiplatform.v1beta1.DeleteNotebookExecutionJobRequest;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotebookExecutionJob {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteNotebookExecutionJob();
+ }
+
+ public static void syncDeleteNotebookExecutionJob() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ DeleteNotebookExecutionJobRequest request =
+ DeleteNotebookExecutionJobRequest.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .build();
+ notebookServiceClient.deleteNotebookExecutionJobAsync(request).get();
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_DeleteNotebookExecutionJob_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobNotebookexecutionjobname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobNotebookexecutionjobname.java
new file mode 100644
index 000000000000..12502ff2d801
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobNotebookexecutionjobname.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2024 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_NotebookService_DeleteNotebookExecutionJob_Notebookexecutionjobname_sync]
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotebookExecutionJobNotebookexecutionjobname {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteNotebookExecutionJobNotebookexecutionjobname();
+ }
+
+ public static void syncDeleteNotebookExecutionJobNotebookexecutionjobname() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ NotebookExecutionJobName name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+ notebookServiceClient.deleteNotebookExecutionJobAsync(name).get();
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_DeleteNotebookExecutionJob_Notebookexecutionjobname_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobString.java
new file mode 100644
index 000000000000..77f62f782d64
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/deletenotebookexecutionjob/SyncDeleteNotebookExecutionJobString.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2024 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_NotebookService_DeleteNotebookExecutionJob_String_sync]
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteNotebookExecutionJobString {
+
+ public static void main(String[] args) throws Exception {
+ syncDeleteNotebookExecutionJobString();
+ }
+
+ public static void syncDeleteNotebookExecutionJobString() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ String name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString();
+ notebookServiceClient.deleteNotebookExecutionJobAsync(name).get();
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_DeleteNotebookExecutionJob_String_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/AsyncGetNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/AsyncGetNotebookExecutionJob.java
new file mode 100644
index 000000000000..3bde08f23453
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/AsyncGetNotebookExecutionJob.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2024 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_NotebookService_GetNotebookExecutionJob_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class AsyncGetNotebookExecutionJob {
+
+ public static void main(String[] args) throws Exception {
+ asyncGetNotebookExecutionJob();
+ }
+
+ public static void asyncGetNotebookExecutionJob() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ GetNotebookExecutionJobRequest request =
+ GetNotebookExecutionJobRequest.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .setView(NotebookExecutionJobView.forNumber(0))
+ .build();
+ ApiFuture future =
+ notebookServiceClient.getNotebookExecutionJobCallable().futureCall(request);
+ // Do something.
+ NotebookExecutionJob response = future.get();
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_GetNotebookExecutionJob_async]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJob.java
new file mode 100644
index 000000000000..0d29bdebc185
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJob.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2024 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_NotebookService_GetNotebookExecutionJob_sync]
+import com.google.cloud.aiplatform.v1beta1.GetNotebookExecutionJobRequest;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class SyncGetNotebookExecutionJob {
+
+ public static void main(String[] args) throws Exception {
+ syncGetNotebookExecutionJob();
+ }
+
+ public static void syncGetNotebookExecutionJob() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ GetNotebookExecutionJobRequest request =
+ GetNotebookExecutionJobRequest.newBuilder()
+ .setName(
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString())
+ .setView(NotebookExecutionJobView.forNumber(0))
+ .build();
+ NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(request);
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_GetNotebookExecutionJob_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobNotebookexecutionjobname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobNotebookexecutionjobname.java
new file mode 100644
index 000000000000..b00624650e38
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobNotebookexecutionjobname.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2024 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_NotebookService_GetNotebookExecutionJob_Notebookexecutionjobname_sync]
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class SyncGetNotebookExecutionJobNotebookexecutionjobname {
+
+ public static void main(String[] args) throws Exception {
+ syncGetNotebookExecutionJobNotebookexecutionjobname();
+ }
+
+ public static void syncGetNotebookExecutionJobNotebookexecutionjobname() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ NotebookExecutionJobName name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]");
+ NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name);
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_GetNotebookExecutionJob_Notebookexecutionjobname_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobString.java
new file mode 100644
index 000000000000..c4a894ddacf5
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/getnotebookexecutionjob/SyncGetNotebookExecutionJobString.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2024 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_NotebookService_GetNotebookExecutionJob_String_sync]
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobName;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class SyncGetNotebookExecutionJobString {
+
+ public static void main(String[] args) throws Exception {
+ syncGetNotebookExecutionJobString();
+ }
+
+ public static void syncGetNotebookExecutionJobString() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ String name =
+ NotebookExecutionJobName.of("[PROJECT]", "[LOCATION]", "[NOTEBOOK_EXECUTION_JOB]")
+ .toString();
+ NotebookExecutionJob response = notebookServiceClient.getNotebookExecutionJob(name);
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_GetNotebookExecutionJob_String_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobs.java
new file mode 100644
index 000000000000..24e532339ab2
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobs.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2024 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_NotebookService_ListNotebookExecutionJobs_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest;
+import com.google.cloud.aiplatform.v1beta1.LocationName;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class AsyncListNotebookExecutionJobs {
+
+ public static void main(String[] args) throws Exception {
+ asyncListNotebookExecutionJobs();
+ }
+
+ public static void asyncListNotebookExecutionJobs() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ ListNotebookExecutionJobsRequest request =
+ ListNotebookExecutionJobsRequest.newBuilder()
+ .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .setOrderBy("orderBy-1207110587")
+ .setView(NotebookExecutionJobView.forNumber(0))
+ .build();
+ ApiFuture future =
+ notebookServiceClient.listNotebookExecutionJobsPagedCallable().futureCall(request);
+ // Do something.
+ for (NotebookExecutionJob element : future.get().iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_ListNotebookExecutionJobs_async]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobsPaged.java
new file mode 100644
index 000000000000..9b2a26b50fc0
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/AsyncListNotebookExecutionJobsPaged.java
@@ -0,0 +1,66 @@
+/*
+ * Copyright 2024 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_NotebookService_ListNotebookExecutionJobs_Paged_async]
+import com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest;
+import com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse;
+import com.google.cloud.aiplatform.v1beta1.LocationName;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+import com.google.common.base.Strings;
+
+public class AsyncListNotebookExecutionJobsPaged {
+
+ public static void main(String[] args) throws Exception {
+ asyncListNotebookExecutionJobsPaged();
+ }
+
+ public static void asyncListNotebookExecutionJobsPaged() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ ListNotebookExecutionJobsRequest request =
+ ListNotebookExecutionJobsRequest.newBuilder()
+ .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .setOrderBy("orderBy-1207110587")
+ .setView(NotebookExecutionJobView.forNumber(0))
+ .build();
+ while (true) {
+ ListNotebookExecutionJobsResponse response =
+ notebookServiceClient.listNotebookExecutionJobsCallable().call(request);
+ for (NotebookExecutionJob element : response.getNotebookExecutionJobsList()) {
+ // doThingsWith(element);
+ }
+ String nextPageToken = response.getNextPageToken();
+ if (!Strings.isNullOrEmpty(nextPageToken)) {
+ request = request.toBuilder().setPageToken(nextPageToken).build();
+ } else {
+ break;
+ }
+ }
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_ListNotebookExecutionJobs_Paged_async]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobs.java
new file mode 100644
index 000000000000..4dd39690ff55
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobs.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2024 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_NotebookService_ListNotebookExecutionJobs_sync]
+import com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest;
+import com.google.cloud.aiplatform.v1beta1.LocationName;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class SyncListNotebookExecutionJobs {
+
+ public static void main(String[] args) throws Exception {
+ syncListNotebookExecutionJobs();
+ }
+
+ public static void syncListNotebookExecutionJobs() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ ListNotebookExecutionJobsRequest request =
+ ListNotebookExecutionJobsRequest.newBuilder()
+ .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ .setFilter("filter-1274492040")
+ .setPageSize(883849137)
+ .setPageToken("pageToken873572522")
+ .setOrderBy("orderBy-1207110587")
+ .setView(NotebookExecutionJobView.forNumber(0))
+ .build();
+ for (NotebookExecutionJob element :
+ notebookServiceClient.listNotebookExecutionJobs(request).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_ListNotebookExecutionJobs_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsLocationname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsLocationname.java
new file mode 100644
index 000000000000..71b648d75e91
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsLocationname.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2024 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_NotebookService_ListNotebookExecutionJobs_Locationname_sync]
+import com.google.cloud.aiplatform.v1beta1.LocationName;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class SyncListNotebookExecutionJobsLocationname {
+
+ public static void main(String[] args) throws Exception {
+ syncListNotebookExecutionJobsLocationname();
+ }
+
+ public static void syncListNotebookExecutionJobsLocationname() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ for (NotebookExecutionJob element :
+ notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_ListNotebookExecutionJobs_Locationname_sync]
diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsString.java
new file mode 100644
index 000000000000..6143bd8bac40
--- /dev/null
+++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/notebookservice/listnotebookexecutionjobs/SyncListNotebookExecutionJobsString.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2024 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_NotebookService_ListNotebookExecutionJobs_String_sync]
+import com.google.cloud.aiplatform.v1beta1.LocationName;
+import com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob;
+import com.google.cloud.aiplatform.v1beta1.NotebookServiceClient;
+
+public class SyncListNotebookExecutionJobsString {
+
+ public static void main(String[] args) throws Exception {
+ syncListNotebookExecutionJobsString();
+ }
+
+ public static void syncListNotebookExecutionJobsString() 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 (NotebookServiceClient notebookServiceClient = NotebookServiceClient.create()) {
+ String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ for (NotebookExecutionJob element :
+ notebookServiceClient.listNotebookExecutionJobs(parent).iterateAll()) {
+ // doThingsWith(element);
+ }
+ }
+ }
+}
+// [END aiplatform_v1beta1_generated_NotebookService_ListNotebookExecutionJobs_String_sync]
diff --git a/java-batch/README.md b/java-batch/README.md
index 45e1af37f597..dedd07277013 100644
--- a/java-batch/README.md
+++ b/java-batch/README.md
@@ -201,7 +201,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-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.41.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.42.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-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java
index 32c2ed4c7839..d51c91a201c7 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java
@@ -287,11 +287,11 @@ public interface LocationPolicyOrBuilder
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -312,11 +312,11 @@ public interface LocationPolicyOrBuilder
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -337,11 +337,11 @@ public interface LocationPolicyOrBuilder
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -363,11 +363,11 @@ public interface LocationPolicyOrBuilder
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -431,11 +431,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -458,11 +458,11 @@ public com.google.protobuf.ProtocolStringList getAllowedLocationsList() {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -485,11 +485,11 @@ public int getAllowedLocationsCount() {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -513,11 +513,11 @@ public java.lang.String getAllowedLocations(int index) {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -904,11 +904,11 @@ private void ensureAllowedLocationsIsMutable() {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -932,11 +932,11 @@ public com.google.protobuf.ProtocolStringList getAllowedLocationsList() {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -959,11 +959,11 @@ public int getAllowedLocationsCount() {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -987,11 +987,11 @@ public java.lang.String getAllowedLocations(int index) {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -1015,11 +1015,11 @@ public com.google.protobuf.ByteString getAllowedLocationsBytes(int index) {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -1051,11 +1051,11 @@ public Builder setAllowedLocations(int index, java.lang.String value) {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -1086,11 +1086,11 @@ public Builder addAllowedLocations(java.lang.String value) {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -1118,11 +1118,11 @@ public Builder addAllAllowedLocations(java.lang.Iterable value
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
@@ -1149,11 +1149,11 @@ public Builder clearAllowedLocations() {
* ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
* in zones us-central1-a and us-central1-c.
*
- * All locations end up in different regions would cause errors.
+ * Mixing locations from different regions would cause errors.
* For example,
* ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- * "zones/us-west1-a"] contains 2 regions "us-central1" and
- * "us-west1". An error is expected in this case.
+ * "zones/us-west1-a"] contains locations from two distinct regions:
+ * us-central1 and us-west1. This combination will trigger an error.
*
*
* repeated string allowed_locations = 1;
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto
index 56224852c9b3..391fd75fafa7 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto
@@ -258,11 +258,11 @@ message AllocationPolicy {
// ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
// in zones us-central1-a and us-central1-c.
//
- // All locations end up in different regions would cause errors.
+ // Mixing locations from different regions would cause errors.
// For example,
// ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
- // "zones/us-west1-a"] contains 2 regions "us-central1" and
- // "us-west1". An error is expected in this case.
+ // "zones/us-west1-a"] contains locations from two distinct regions:
+ // us-central1 and us-west1. This combination will trigger an error.
repeated string allowed_locations = 1;
}
diff --git a/java-compute/README.md b/java-compute/README.md
index 31f05bdb894f..01793093379e 100644
--- a/java-compute/README.md
+++ b/java-compute/README.md
@@ -258,7 +258,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-compute.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.51.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.52.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-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClient.java
new file mode 100644
index 000000000000..de77f02bde80
--- /dev/null
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsClient.java
@@ -0,0 +1,1134 @@
+/*
+ * Copyright 2024 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.compute.v1;
+
+import com.google.api.core.ApiFuture;
+import com.google.api.core.ApiFutures;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.api.gax.paging.AbstractFixedSizeCollection;
+import com.google.api.gax.paging.AbstractPage;
+import com.google.api.gax.paging.AbstractPagedListResponse;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PageContext;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.stub.InstanceGroupManagerResizeRequestsStub;
+import com.google.cloud.compute.v1.stub.InstanceGroupManagerResizeRequestsStubSettings;
+import com.google.common.util.concurrent.MoreExecutors;
+import java.io.IOException;
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: The InstanceGroupManagerResizeRequests API.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ *
{@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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String instanceGroupManager = "instanceGroupManager-388242077";
+ * String resizeRequest = "resizeRequest-1656358085";
+ * InstanceGroupManagerResizeRequest response =
+ * instanceGroupManagerResizeRequestsClient.get(
+ * project, zone, instanceGroupManager, resizeRequest);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the InstanceGroupManagerResizeRequestsClient object to
+ * clean up resources such as threads. In the example above, try-with-resources is used, which
+ * automatically calls close().
+ *
+ *
+ * Methods
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ * Cancel
+ * Cancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * cancelAsync(CancelInstanceGroupManagerResizeRequestRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * cancelAsync(String project, String zone, String instanceGroupManager, String resizeRequest)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * cancelOperationCallable()
+ *
cancelCallable()
+ *
+ *
+ *
+ *
+ * Delete
+ * Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * deleteAsync(DeleteInstanceGroupManagerResizeRequestRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * deleteAsync(String project, String zone, String instanceGroupManager, String resizeRequest)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * deleteOperationCallable()
+ *
deleteCallable()
+ *
+ *
+ *
+ *
+ * Get
+ * Returns all of the details about the specified resize request.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * get(GetInstanceGroupManagerResizeRequestRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * get(String project, String zone, String instanceGroupManager, String resizeRequest)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getCallable()
+ *
+ *
+ *
+ *
+ * Insert
+ * Creates a new resize request that starts provisioning VMs immediately or queues VM creation.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * insertAsync(InsertInstanceGroupManagerResizeRequestRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * insertAsync(String project, String zone, String instanceGroupManager, InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * insertOperationCallable()
+ *
insertCallable()
+ *
+ *
+ *
+ *
+ * List
+ * Retrieves a list of resize requests that are contained in the managed instance group.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * list(ListInstanceGroupManagerResizeRequestsRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * list(String project, String zone, String instanceGroupManager)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * listPagedCallable()
+ *
listCallable()
+ *
+ *
+ *
+ *
+ *
+ * See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of
+ * InstanceGroupManagerResizeRequestsSettings to create(). For example:
+ *
+ *
To customize credentials:
+ *
+ *
{@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
+ * InstanceGroupManagerResizeRequestsSettings instanceGroupManagerResizeRequestsSettings =
+ * InstanceGroupManagerResizeRequestsSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create(instanceGroupManagerResizeRequestsSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@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
+ * InstanceGroupManagerResizeRequestsSettings instanceGroupManagerResizeRequestsSettings =
+ * InstanceGroupManagerResizeRequestsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create(instanceGroupManagerResizeRequestsSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class InstanceGroupManagerResizeRequestsClient implements BackgroundResource {
+ private final InstanceGroupManagerResizeRequestsSettings settings;
+ private final InstanceGroupManagerResizeRequestsStub stub;
+
+ /** Constructs an instance of InstanceGroupManagerResizeRequestsClient with default settings. */
+ public static final InstanceGroupManagerResizeRequestsClient create() throws IOException {
+ return create(InstanceGroupManagerResizeRequestsSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of InstanceGroupManagerResizeRequestsClient, using the given settings.
+ * The channels are created based on the settings passed in, or defaults for any settings that are
+ * not set.
+ */
+ public static final InstanceGroupManagerResizeRequestsClient create(
+ InstanceGroupManagerResizeRequestsSettings settings) throws IOException {
+ return new InstanceGroupManagerResizeRequestsClient(settings);
+ }
+
+ /**
+ * Constructs an instance of InstanceGroupManagerResizeRequestsClient, using the given stub for
+ * making calls. This is for advanced usage - prefer using
+ * create(InstanceGroupManagerResizeRequestsSettings).
+ */
+ public static final InstanceGroupManagerResizeRequestsClient create(
+ InstanceGroupManagerResizeRequestsStub stub) {
+ return new InstanceGroupManagerResizeRequestsClient(stub);
+ }
+
+ /**
+ * Constructs an instance of InstanceGroupManagerResizeRequestsClient, using the given settings.
+ * This is protected so that it is easy to make a subclass, but otherwise, the static factory
+ * methods should be preferred.
+ */
+ protected InstanceGroupManagerResizeRequestsClient(
+ InstanceGroupManagerResizeRequestsSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub =
+ ((InstanceGroupManagerResizeRequestsStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected InstanceGroupManagerResizeRequestsClient(InstanceGroupManagerResizeRequestsStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final InstanceGroupManagerResizeRequestsSettings getSettings() {
+ return settings;
+ }
+
+ public InstanceGroupManagerResizeRequestsStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels the specified resize request and removes it from the queue. Cancelled resize request
+ * does no longer wait for the resources to be provisioned. Cancel is only possible for requests
+ * that are accepted in the queue.
+ *
+ *
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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String instanceGroupManager = "instanceGroupManager-388242077";
+ * String resizeRequest = "resizeRequest-1656358085";
+ * Operation response =
+ * instanceGroupManagerResizeRequestsClient
+ * .cancelAsync(project, zone, instanceGroupManager, resizeRequest)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone where the managed instance group is located. The name should
+ * conform to RFC1035.
+ * @param instanceGroupManager The name of the managed instance group. The name should conform to
+ * RFC1035 or be a resource ID.
+ * @param resizeRequest The name of the resize request to cancel. The name should conform to
+ * RFC1035 or be a resource ID.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture cancelAsync(
+ String project, String zone, String instanceGroupManager, String resizeRequest) {
+ CancelInstanceGroupManagerResizeRequestRequest request =
+ CancelInstanceGroupManagerResizeRequestRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setInstanceGroupManager(instanceGroupManager)
+ .setResizeRequest(resizeRequest)
+ .build();
+ return cancelAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels the specified resize request and removes it from the queue. Cancelled resize request
+ * does no longer wait for the resources to be provisioned. Cancel is only possible for requests
+ * that are accepted in the queue.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * CancelInstanceGroupManagerResizeRequestRequest request =
+ * CancelInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = instanceGroupManagerResizeRequestsClient.cancelAsync(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 cancelAsync(
+ CancelInstanceGroupManagerResizeRequestRequest request) {
+ return cancelOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels the specified resize request and removes it from the queue. Cancelled resize request
+ * does no longer wait for the resources to be provisioned. Cancel is only possible for requests
+ * that are accepted in the queue.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * CancelInstanceGroupManagerResizeRequestRequest request =
+ * CancelInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * instanceGroupManagerResizeRequestsClient.cancelOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CancelInstanceGroupManagerResizeRequestRequest, Operation, Operation>
+ cancelOperationCallable() {
+ return stub.cancelOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Cancels the specified resize request and removes it from the queue. Cancelled resize request
+ * does no longer wait for the resources to be provisioned. Cancel is only possible for requests
+ * that are accepted in the queue.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * CancelInstanceGroupManagerResizeRequestRequest request =
+ * CancelInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * instanceGroupManagerResizeRequestsClient.cancelCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ cancelCallable() {
+ return stub.cancelCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified, inactive resize request. Requests that are still active cannot be
+ * deleted. Deleting request does not delete instances that were provisioned previously.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String instanceGroupManager = "instanceGroupManager-388242077";
+ * String resizeRequest = "resizeRequest-1656358085";
+ * Operation response =
+ * instanceGroupManagerResizeRequestsClient
+ * .deleteAsync(project, zone, instanceGroupManager, resizeRequest)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone where the managed instance group is located. The name should
+ * conform to RFC1035.
+ * @param instanceGroupManager The name of the managed instance group. The name should conform to
+ * RFC1035 or be a resource ID.
+ * @param resizeRequest The name of the resize request to delete. The name should conform to
+ * RFC1035 or be a resource ID.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deleteAsync(
+ String project, String zone, String instanceGroupManager, String resizeRequest) {
+ DeleteInstanceGroupManagerResizeRequestRequest request =
+ DeleteInstanceGroupManagerResizeRequestRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setInstanceGroupManager(instanceGroupManager)
+ .setResizeRequest(resizeRequest)
+ .build();
+ return deleteAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified, inactive resize request. Requests that are still active cannot be
+ * deleted. Deleting request does not delete instances that were provisioned previously.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * DeleteInstanceGroupManagerResizeRequestRequest request =
+ * DeleteInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = instanceGroupManagerResizeRequestsClient.deleteAsync(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 deleteAsync(
+ DeleteInstanceGroupManagerResizeRequestRequest request) {
+ return deleteOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified, inactive resize request. Requests that are still active cannot be
+ * deleted. Deleting request does not delete instances that were provisioned previously.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * DeleteInstanceGroupManagerResizeRequestRequest request =
+ * DeleteInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * instanceGroupManagerResizeRequestsClient.deleteOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ DeleteInstanceGroupManagerResizeRequestRequest, Operation, Operation>
+ deleteOperationCallable() {
+ return stub.deleteOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes the specified, inactive resize request. Requests that are still active cannot be
+ * deleted. Deleting request does not delete instances that were provisioned previously.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * DeleteInstanceGroupManagerResizeRequestRequest request =
+ * DeleteInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * instanceGroupManagerResizeRequestsClient.deleteCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteCallable() {
+ return stub.deleteCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all of the details about the specified resize request.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String instanceGroupManager = "instanceGroupManager-388242077";
+ * String resizeRequest = "resizeRequest-1656358085";
+ * InstanceGroupManagerResizeRequest response =
+ * instanceGroupManagerResizeRequestsClient.get(
+ * project, zone, instanceGroupManager, resizeRequest);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone Name of the href="/compute/docs/regions-zones/#available">zone scoping this
+ * request. Name should conform to RFC1035.
+ * @param instanceGroupManager The name of the managed instance group. Name should conform to
+ * RFC1035 or be a resource ID.
+ * @param resizeRequest The name of the resize request. Name should conform to RFC1035 or be a
+ * resource ID.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final InstanceGroupManagerResizeRequest get(
+ String project, String zone, String instanceGroupManager, String resizeRequest) {
+ GetInstanceGroupManagerResizeRequestRequest request =
+ GetInstanceGroupManagerResizeRequestRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setInstanceGroupManager(instanceGroupManager)
+ .setResizeRequest(resizeRequest)
+ .build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all of the details about the specified resize request.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * GetInstanceGroupManagerResizeRequestRequest request =
+ * GetInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * InstanceGroupManagerResizeRequest response =
+ * instanceGroupManagerResizeRequestsClient.get(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 InstanceGroupManagerResizeRequest get(
+ GetInstanceGroupManagerResizeRequestRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns all of the details about the specified resize request.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * GetInstanceGroupManagerResizeRequestRequest request =
+ * GetInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setProject("project-309310695")
+ * .setResizeRequest("resizeRequest-1656358085")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * instanceGroupManagerResizeRequestsClient.getCallable().futureCall(request);
+ * // Do something.
+ * InstanceGroupManagerResizeRequest response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ GetInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest>
+ getCallable() {
+ return stub.getCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new resize request that starts provisioning VMs immediately or queues VM creation.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String instanceGroupManager = "instanceGroupManager-388242077";
+ * InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource =
+ * InstanceGroupManagerResizeRequest.newBuilder().build();
+ * Operation response =
+ * instanceGroupManagerResizeRequestsClient
+ * .insertAsync(
+ * project, zone, instanceGroupManager, instanceGroupManagerResizeRequestResource)
+ * .get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone where the managed instance group is located and where the
+ * resize request will be created. Name should conform to RFC1035.
+ * @param instanceGroupManager The name of the managed instance group to which the resize request
+ * will be added. Name should conform to RFC1035 or be a resource ID.
+ * @param instanceGroupManagerResizeRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture insertAsync(
+ String project,
+ String zone,
+ String instanceGroupManager,
+ InstanceGroupManagerResizeRequest instanceGroupManagerResizeRequestResource) {
+ InsertInstanceGroupManagerResizeRequestRequest request =
+ InsertInstanceGroupManagerResizeRequestRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setInstanceGroupManager(instanceGroupManager)
+ .setInstanceGroupManagerResizeRequestResource(instanceGroupManagerResizeRequestResource)
+ .build();
+ return insertAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new resize request that starts provisioning VMs immediately or queues VM creation.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * InsertInstanceGroupManagerResizeRequestRequest request =
+ * InsertInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setInstanceGroupManagerResizeRequestResource(
+ * InstanceGroupManagerResizeRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = instanceGroupManagerResizeRequestsClient.insertAsync(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 insertAsync(
+ InsertInstanceGroupManagerResizeRequestRequest request) {
+ return insertOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new resize request that starts provisioning VMs immediately or queues VM creation.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * InsertInstanceGroupManagerResizeRequestRequest request =
+ * InsertInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setInstanceGroupManagerResizeRequestResource(
+ * InstanceGroupManagerResizeRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * instanceGroupManagerResizeRequestsClient.insertOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ InsertInstanceGroupManagerResizeRequestRequest, Operation, Operation>
+ insertOperationCallable() {
+ return stub.insertOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new resize request that starts provisioning VMs immediately or queues VM creation.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * InsertInstanceGroupManagerResizeRequestRequest request =
+ * InsertInstanceGroupManagerResizeRequestRequest.newBuilder()
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setInstanceGroupManagerResizeRequestResource(
+ * InstanceGroupManagerResizeRequest.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * instanceGroupManagerResizeRequestsClient.insertCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ insertCallable() {
+ return stub.insertCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a list of resize requests that are contained in the managed instance group.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String instanceGroupManager = "instanceGroupManager-388242077";
+ * for (InstanceGroupManagerResizeRequest element :
+ * instanceGroupManagerResizeRequestsClient
+ * .list(project, zone, instanceGroupManager)
+ * .iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone where the managed instance group is located. The name should
+ * conform to RFC1035.
+ * @param instanceGroupManager The name of the managed instance group. The name should conform to
+ * RFC1035.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project, String zone, String instanceGroupManager) {
+ ListInstanceGroupManagerResizeRequestsRequest request =
+ ListInstanceGroupManagerResizeRequestsRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setInstanceGroupManager(instanceGroupManager)
+ .build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a list of resize requests that are contained in the managed instance group.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * ListInstanceGroupManagerResizeRequestsRequest request =
+ * ListInstanceGroupManagerResizeRequestsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setZone("zone3744684")
+ * .build();
+ * for (InstanceGroupManagerResizeRequest element :
+ * instanceGroupManagerResizeRequestsClient.list(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 ListPagedResponse list(ListInstanceGroupManagerResizeRequestsRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a list of resize requests that are contained in the managed instance group.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * ListInstanceGroupManagerResizeRequestsRequest request =
+ * ListInstanceGroupManagerResizeRequestsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * instanceGroupManagerResizeRequestsClient.listPagedCallable().futureCall(request);
+ * // Do something.
+ * for (InstanceGroupManagerResizeRequest element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPagedCallable() {
+ return stub.listPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a list of resize requests that are contained in the managed instance group.
+ *
+ * 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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * ListInstanceGroupManagerResizeRequestsRequest request =
+ * ListInstanceGroupManagerResizeRequestsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setInstanceGroupManager("instanceGroupManager-388242077")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setZone("zone3744684")
+ * .build();
+ * while (true) {
+ * InstanceGroupManagerResizeRequestsListResponse response =
+ * instanceGroupManagerResizeRequestsClient.listCallable().call(request);
+ * for (InstanceGroupManagerResizeRequest element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse>
+ listCallable() {
+ return stub.listCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+
+ public static class ListPagedResponse
+ extends AbstractPagedListResponse<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ InstanceGroupManagerResizeRequest,
+ ListPage,
+ ListFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ InstanceGroupManagerResizeRequest>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage, input -> new ListPagedResponse(input), MoreExecutors.directExecutor());
+ }
+
+ private ListPagedResponse(ListPage page) {
+ super(page, ListFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListPage
+ extends AbstractPage<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ InstanceGroupManagerResizeRequest,
+ ListPage> {
+
+ private ListPage(
+ PageContext<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ InstanceGroupManagerResizeRequest>
+ context,
+ InstanceGroupManagerResizeRequestsListResponse response) {
+ super(context, response);
+ }
+
+ private static ListPage createEmptyPage() {
+ return new ListPage(null, null);
+ }
+
+ @Override
+ protected ListPage createPage(
+ PageContext<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ InstanceGroupManagerResizeRequest>
+ context,
+ InstanceGroupManagerResizeRequestsListResponse response) {
+ return new ListPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ InstanceGroupManagerResizeRequest>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ InstanceGroupManagerResizeRequest,
+ ListPage,
+ ListFixedSizeCollection> {
+
+ private ListFixedSizeCollection(List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListFixedSizeCollection createEmptyCollection() {
+ return new ListFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListFixedSizeCollection createCollection(List pages, int collectionSize) {
+ return new ListFixedSizeCollection(pages, collectionSize);
+ }
+ }
+}
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsSettings.java
new file mode 100644
index 000000000000..e8f5a6f3e3ba
--- /dev/null
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceGroupManagerResizeRequestsSettings.java
@@ -0,0 +1,293 @@
+/*
+ * Copyright 2024 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.compute.v1;
+
+import static com.google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient.ListPagedResponse;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.compute.v1.stub.InstanceGroupManagerResizeRequestsStubSettings;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link InstanceGroupManagerResizeRequestsClient}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (compute.googleapis.com) and default port (443) are used.
+ *
- Credentials are acquired automatically through Application Default Credentials.
+ *
- Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ *
For example, to set the total timeout of get to 30 seconds:
+ *
+ *
{@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
+ * InstanceGroupManagerResizeRequestsSettings.Builder
+ * instanceGroupManagerResizeRequestsSettingsBuilder =
+ * InstanceGroupManagerResizeRequestsSettings.newBuilder();
+ * instanceGroupManagerResizeRequestsSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * instanceGroupManagerResizeRequestsSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * InstanceGroupManagerResizeRequestsSettings instanceGroupManagerResizeRequestsSettings =
+ * instanceGroupManagerResizeRequestsSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class InstanceGroupManagerResizeRequestsSettings
+ extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to cancel. */
+ public UnaryCallSettings
+ cancelSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings()).cancelSettings();
+ }
+
+ /** Returns the object with the settings used for calls to cancel. */
+ public OperationCallSettings
+ cancelOperationSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings())
+ .cancelOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to delete. */
+ public UnaryCallSettings
+ deleteSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings()).deleteSettings();
+ }
+
+ /** Returns the object with the settings used for calls to delete. */
+ public OperationCallSettings
+ deleteOperationSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings())
+ .deleteOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to get. */
+ public UnaryCallSettings<
+ GetInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest>
+ getSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings()).getSettings();
+ }
+
+ /** Returns the object with the settings used for calls to insert. */
+ public UnaryCallSettings
+ insertSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings()).insertSettings();
+ }
+
+ /** Returns the object with the settings used for calls to insert. */
+ public OperationCallSettings
+ insertOperationSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings())
+ .insertOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to list. */
+ public PagedCallSettings<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ ListPagedResponse>
+ listSettings() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings) getStubSettings()).listSettings();
+ }
+
+ public static final InstanceGroupManagerResizeRequestsSettings create(
+ InstanceGroupManagerResizeRequestsStubSettings stub) throws IOException {
+ return new InstanceGroupManagerResizeRequestsSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return InstanceGroupManagerResizeRequestsStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return InstanceGroupManagerResizeRequestsStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return InstanceGroupManagerResizeRequestsStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return InstanceGroupManagerResizeRequestsStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return InstanceGroupManagerResizeRequestsStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return InstanceGroupManagerResizeRequestsStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return InstanceGroupManagerResizeRequestsStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected InstanceGroupManagerResizeRequestsSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for InstanceGroupManagerResizeRequestsSettings. */
+ public static class Builder
+ extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(InstanceGroupManagerResizeRequestsStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(InstanceGroupManagerResizeRequestsSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(InstanceGroupManagerResizeRequestsStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(InstanceGroupManagerResizeRequestsStubSettings.newBuilder());
+ }
+
+ public InstanceGroupManagerResizeRequestsStubSettings.Builder getStubSettingsBuilder() {
+ return ((InstanceGroupManagerResizeRequestsStubSettings.Builder) getStubSettings());
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to cancel. */
+ public UnaryCallSettings.Builder
+ cancelSettings() {
+ return getStubSettingsBuilder().cancelSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to cancel. */
+ public OperationCallSettings.Builder<
+ CancelInstanceGroupManagerResizeRequestRequest, Operation, Operation>
+ cancelOperationSettings() {
+ return getStubSettingsBuilder().cancelOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to delete. */
+ public UnaryCallSettings.Builder
+ deleteSettings() {
+ return getStubSettingsBuilder().deleteSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to delete. */
+ public OperationCallSettings.Builder<
+ DeleteInstanceGroupManagerResizeRequestRequest, Operation, Operation>
+ deleteOperationSettings() {
+ return getStubSettingsBuilder().deleteOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to get. */
+ public UnaryCallSettings.Builder<
+ GetInstanceGroupManagerResizeRequestRequest, InstanceGroupManagerResizeRequest>
+ getSettings() {
+ return getStubSettingsBuilder().getSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to insert. */
+ public UnaryCallSettings.Builder
+ insertSettings() {
+ return getStubSettingsBuilder().insertSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to insert. */
+ public OperationCallSettings.Builder<
+ InsertInstanceGroupManagerResizeRequestRequest, Operation, Operation>
+ insertOperationSettings() {
+ return getStubSettingsBuilder().insertOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to list. */
+ public PagedCallSettings.Builder<
+ ListInstanceGroupManagerResizeRequestsRequest,
+ InstanceGroupManagerResizeRequestsListResponse,
+ ListPagedResponse>
+ listSettings() {
+ return getStubSettingsBuilder().listSettings();
+ }
+
+ @Override
+ public InstanceGroupManagerResizeRequestsSettings build() throws IOException {
+ return new InstanceGroupManagerResizeRequestsSettings(this);
+ }
+ }
+}
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceClient.java
new file mode 100644
index 000000000000..f10e74bf687c
--- /dev/null
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceClient.java
@@ -0,0 +1,450 @@
+/*
+ * Copyright 2024 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.compute.v1;
+
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.longrunning.OperationFuture;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.stub.InstanceSettingsServiceStub;
+import com.google.cloud.compute.v1.stub.InstanceSettingsServiceStubSettings;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Service Description: The InstanceSettings API.
+ *
+ * This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ *
{@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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * InstanceSettings response = instanceSettingsServiceClient.get(project, zone);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the InstanceSettingsServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ *
+ * Methods
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ * Get
+ * Get Instance settings.
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * get(GetInstanceSettingRequest request)
+ *
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
+ *
+ * get(String project, String zone)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * getCallable()
+ *
+ *
+ *
+ *
+ * Patch
+ * Patch Instance settings
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *
+ * patchAsync(PatchInstanceSettingRequest request)
+ *
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *
+ * patchAsync(String project, String zone, InstanceSettings instanceSettingsResource)
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *
+ * patchOperationCallable()
+ *
patchCallable()
+ *
+ *
+ *
+ *
+ *
+ * See the individual methods for example code.
+ *
+ *
Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ *
This class can be customized by passing in a custom instance of
+ * InstanceSettingsServiceSettings to create(). For example:
+ *
+ *
To customize credentials:
+ *
+ *
{@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
+ * InstanceSettingsServiceSettings instanceSettingsServiceSettings =
+ * InstanceSettingsServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create(instanceSettingsServiceSettings);
+ * }
+ *
+ * To customize the endpoint:
+ *
+ *
{@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
+ * InstanceSettingsServiceSettings instanceSettingsServiceSettings =
+ * InstanceSettingsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create(instanceSettingsServiceSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class InstanceSettingsServiceClient implements BackgroundResource {
+ private final InstanceSettingsServiceSettings settings;
+ private final InstanceSettingsServiceStub stub;
+
+ /** Constructs an instance of InstanceSettingsServiceClient with default settings. */
+ public static final InstanceSettingsServiceClient create() throws IOException {
+ return create(InstanceSettingsServiceSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of InstanceSettingsServiceClient, using the given settings. The channels
+ * are created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final InstanceSettingsServiceClient create(InstanceSettingsServiceSettings settings)
+ throws IOException {
+ return new InstanceSettingsServiceClient(settings);
+ }
+
+ /**
+ * Constructs an instance of InstanceSettingsServiceClient, using the given stub for making calls.
+ * This is for advanced usage - prefer using create(InstanceSettingsServiceSettings).
+ */
+ public static final InstanceSettingsServiceClient create(InstanceSettingsServiceStub stub) {
+ return new InstanceSettingsServiceClient(stub);
+ }
+
+ /**
+ * Constructs an instance of InstanceSettingsServiceClient, using the given settings. This is
+ * protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected InstanceSettingsServiceClient(InstanceSettingsServiceSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub = ((InstanceSettingsServiceStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected InstanceSettingsServiceClient(InstanceSettingsServiceStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final InstanceSettingsServiceSettings getSettings() {
+ return settings;
+ }
+
+ public InstanceSettingsServiceStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get Instance settings.
+ *
+ *
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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * InstanceSettings response = instanceSettingsServiceClient.get(project, zone);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone Name of the zone for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final InstanceSettings get(String project, String zone) {
+ GetInstanceSettingRequest request =
+ GetInstanceSettingRequest.newBuilder().setProject(project).setZone(zone).build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get Instance settings.
+ *
+ * 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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * GetInstanceSettingRequest request =
+ * GetInstanceSettingRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setZone("zone3744684")
+ * .build();
+ * InstanceSettings response = instanceSettingsServiceClient.get(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 InstanceSettings get(GetInstanceSettingRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get Instance settings.
+ *
+ * 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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * GetInstanceSettingRequest request =
+ * GetInstanceSettingRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * instanceSettingsServiceClient.getCallable().futureCall(request);
+ * // Do something.
+ * InstanceSettings response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable getCallable() {
+ return stub.getCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Patch Instance settings
+ *
+ * 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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * InstanceSettings instanceSettingsResource = InstanceSettings.newBuilder().build();
+ * Operation response =
+ * instanceSettingsServiceClient.patchAsync(project, zone, instanceSettingsResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The zone scoping this request. It should conform to RFC1035.
+ * @param instanceSettingsResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture patchAsync(
+ String project, String zone, InstanceSettings instanceSettingsResource) {
+ PatchInstanceSettingRequest request =
+ PatchInstanceSettingRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setInstanceSettingsResource(instanceSettingsResource)
+ .build();
+ return patchAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Patch Instance settings
+ *
+ * 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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * PatchInstanceSettingRequest request =
+ * PatchInstanceSettingRequest.newBuilder()
+ * .setInstanceSettingsResource(InstanceSettings.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setUpdateMask("updateMask-296147115")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = instanceSettingsServiceClient.patchAsync(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 patchAsync(
+ PatchInstanceSettingRequest request) {
+ return patchOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Patch Instance settings
+ *
+ * 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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * PatchInstanceSettingRequest request =
+ * PatchInstanceSettingRequest.newBuilder()
+ * .setInstanceSettingsResource(InstanceSettings.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setUpdateMask("updateMask-296147115")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture future =
+ * instanceSettingsServiceClient.patchOperationCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ patchOperationCallable() {
+ return stub.patchOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Patch Instance settings
+ *
+ * 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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * PatchInstanceSettingRequest request =
+ * PatchInstanceSettingRequest.newBuilder()
+ * .setInstanceSettingsResource(InstanceSettings.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setUpdateMask("updateMask-296147115")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture future =
+ * instanceSettingsServiceClient.patchCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable patchCallable() {
+ return stub.patchCallable();
+ }
+
+ @Override
+ public final void close() {
+ stub.close();
+ }
+
+ @Override
+ public void shutdown() {
+ stub.shutdown();
+ }
+
+ @Override
+ public boolean isShutdown() {
+ return stub.isShutdown();
+ }
+
+ @Override
+ public boolean isTerminated() {
+ return stub.isTerminated();
+ }
+
+ @Override
+ public void shutdownNow() {
+ stub.shutdownNow();
+ }
+
+ @Override
+ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
+ return stub.awaitTermination(duration, unit);
+ }
+}
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceSettings.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceSettings.java
new file mode 100644
index 000000000000..c5d5e8d9ba9b
--- /dev/null
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/InstanceSettingsServiceSettings.java
@@ -0,0 +1,211 @@
+/*
+ * Copyright 2024 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.compute.v1;
+
+import com.google.api.core.ApiFunction;
+import com.google.api.gax.core.GoogleCredentialsProvider;
+import com.google.api.gax.core.InstantiatingExecutorProvider;
+import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider;
+import com.google.api.gax.rpc.ApiClientHeaderProvider;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientSettings;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.TransportChannelProvider;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.cloud.compute.v1.stub.InstanceSettingsServiceStubSettings;
+import java.io.IOException;
+import java.util.List;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Settings class to configure an instance of {@link InstanceSettingsServiceClient}.
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ *
+ * - The default service address (compute.googleapis.com) and default port (443) are used.
+ *
- Credentials are acquired automatically through Application Default Credentials.
+ *
- Retries are configured for idempotent methods but not for non-idempotent methods.
+ *
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ *
For example, to set the total timeout of get to 30 seconds:
+ *
+ *
{@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
+ * InstanceSettingsServiceSettings.Builder instanceSettingsServiceSettingsBuilder =
+ * InstanceSettingsServiceSettings.newBuilder();
+ * instanceSettingsServiceSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * instanceSettingsServiceSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * InstanceSettingsServiceSettings instanceSettingsServiceSettings =
+ * instanceSettingsServiceSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class InstanceSettingsServiceSettings
+ extends ClientSettings {
+
+ /** Returns the object with the settings used for calls to get. */
+ public UnaryCallSettings getSettings() {
+ return ((InstanceSettingsServiceStubSettings) getStubSettings()).getSettings();
+ }
+
+ /** Returns the object with the settings used for calls to patch. */
+ public UnaryCallSettings patchSettings() {
+ return ((InstanceSettingsServiceStubSettings) getStubSettings()).patchSettings();
+ }
+
+ /** Returns the object with the settings used for calls to patch. */
+ public OperationCallSettings
+ patchOperationSettings() {
+ return ((InstanceSettingsServiceStubSettings) getStubSettings()).patchOperationSettings();
+ }
+
+ public static final InstanceSettingsServiceSettings create(
+ InstanceSettingsServiceStubSettings stub) throws IOException {
+ return new InstanceSettingsServiceSettings.Builder(stub.toBuilder()).build();
+ }
+
+ /** Returns a builder for the default ExecutorProvider for this service. */
+ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
+ return InstanceSettingsServiceStubSettings.defaultExecutorProviderBuilder();
+ }
+
+ /** Returns the default service endpoint. */
+ public static String getDefaultEndpoint() {
+ return InstanceSettingsServiceStubSettings.getDefaultEndpoint();
+ }
+
+ /** Returns the default service scopes. */
+ public static List getDefaultServiceScopes() {
+ return InstanceSettingsServiceStubSettings.getDefaultServiceScopes();
+ }
+
+ /** Returns a builder for the default credentials for this service. */
+ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
+ return InstanceSettingsServiceStubSettings.defaultCredentialsProviderBuilder();
+ }
+
+ /** Returns a builder for the default ChannelProvider for this service. */
+ public static InstantiatingHttpJsonChannelProvider.Builder
+ defaultHttpJsonTransportProviderBuilder() {
+ return InstanceSettingsServiceStubSettings.defaultHttpJsonTransportProviderBuilder();
+ }
+
+ public static TransportChannelProvider defaultTransportChannelProvider() {
+ return InstanceSettingsServiceStubSettings.defaultTransportChannelProvider();
+ }
+
+ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
+ return InstanceSettingsServiceStubSettings.defaultApiClientHeaderProviderBuilder();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder() {
+ return Builder.createDefault();
+ }
+
+ /** Returns a new builder for this class. */
+ public static Builder newBuilder(ClientContext clientContext) {
+ return new Builder(clientContext);
+ }
+
+ /** Returns a builder containing all the values of this settings class. */
+ public Builder toBuilder() {
+ return new Builder(this);
+ }
+
+ protected InstanceSettingsServiceSettings(Builder settingsBuilder) throws IOException {
+ super(settingsBuilder);
+ }
+
+ /** Builder for InstanceSettingsServiceSettings. */
+ public static class Builder
+ extends ClientSettings.Builder {
+
+ protected Builder() throws IOException {
+ this(((ClientContext) null));
+ }
+
+ protected Builder(ClientContext clientContext) {
+ super(InstanceSettingsServiceStubSettings.newBuilder(clientContext));
+ }
+
+ protected Builder(InstanceSettingsServiceSettings settings) {
+ super(settings.getStubSettings().toBuilder());
+ }
+
+ protected Builder(InstanceSettingsServiceStubSettings.Builder stubSettings) {
+ super(stubSettings);
+ }
+
+ private static Builder createDefault() {
+ return new Builder(InstanceSettingsServiceStubSettings.newBuilder());
+ }
+
+ public InstanceSettingsServiceStubSettings.Builder getStubSettingsBuilder() {
+ return ((InstanceSettingsServiceStubSettings.Builder) getStubSettings());
+ }
+
+ /**
+ * Applies the given settings updater function to all of the unary API methods in this service.
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction, Void> settingsUpdater) {
+ super.applyToAllUnaryMethods(
+ getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
+ return this;
+ }
+
+ /** Returns the builder for the settings used for calls to get. */
+ public UnaryCallSettings.Builder getSettings() {
+ return getStubSettingsBuilder().getSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to patch. */
+ public UnaryCallSettings.Builder patchSettings() {
+ return getStubSettingsBuilder().patchSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to patch. */
+ public OperationCallSettings.Builder
+ patchOperationSettings() {
+ return getStubSettingsBuilder().patchOperationSettings();
+ }
+
+ @Override
+ public InstanceSettingsServiceSettings build() throws IOException {
+ return new InstanceSettingsServiceSettings(this);
+ }
+ }
+}
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java
index 306ffe272027..a4913cd93e5e 100644
--- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/NodeGroupsClient.java
@@ -255,6 +255,25 @@
*
PerformMaintenance
Perform maintenance on a subset of nodes in the node group.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
+ *performMaintenanceAsync(PerformMaintenanceNodeGroupRequest request) + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
+ *performMaintenanceAsync(String project, String zone, String nodeGroup, NodeGroupsPerformMaintenanceRequest nodeGroupsPerformMaintenanceRequestResource) + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
+ *performMaintenanceOperationCallable() + *
performMaintenanceCallable() + *
SetIamPolicy
Sets the access control policy on the specified resource. Replaces any existing policy.
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 (NodeGroupsClient nodeGroupsClient = NodeGroupsClient.create()) { + * String project = "project-309310695"; + * String zone = "zone3744684"; + * String nodeGroup = "nodeGroup443599261"; + * NodeGroupsPerformMaintenanceRequest nodeGroupsPerformMaintenanceRequestResource = + * NodeGroupsPerformMaintenanceRequest.newBuilder().build(); + * Operation response = + * nodeGroupsClient + * .performMaintenanceAsync( + * project, zone, nodeGroup, nodeGroupsPerformMaintenanceRequestResource) + * .get(); + * } + * }+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param nodeGroup Name of the node group scoping this request. + * @param nodeGroupsPerformMaintenanceRequestResource The body resource for this request + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
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 (NodeGroupsClient nodeGroupsClient = NodeGroupsClient.create()) { + * PerformMaintenanceNodeGroupRequest request = + * PerformMaintenanceNodeGroupRequest.newBuilder() + * .setNodeGroup("nodeGroup443599261") + * .setNodeGroupsPerformMaintenanceRequestResource( + * NodeGroupsPerformMaintenanceRequest.newBuilder().build()) + * .setProject("project-309310695") + * .setRequestId("requestId693933066") + * .setZone("zone3744684") + * .build(); + * Operation response = nodeGroupsClient.performMaintenanceAsync(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
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 (NodeGroupsClient nodeGroupsClient = NodeGroupsClient.create()) { + * PerformMaintenanceNodeGroupRequest request = + * PerformMaintenanceNodeGroupRequest.newBuilder() + * .setNodeGroup("nodeGroup443599261") + * .setNodeGroupsPerformMaintenanceRequestResource( + * NodeGroupsPerformMaintenanceRequest.newBuilder().build()) + * .setProject("project-309310695") + * .setRequestId("requestId693933066") + * .setZone("zone3744684") + * .build(); + * OperationFuture+ */ + public final OperationCallablefuture = + * nodeGroupsClient.performMaintenanceOperationCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
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 (NodeGroupsClient nodeGroupsClient = NodeGroupsClient.create()) { + * PerformMaintenanceNodeGroupRequest request = + * PerformMaintenanceNodeGroupRequest.newBuilder() + * .setNodeGroup("nodeGroup443599261") + * .setNodeGroupsPerformMaintenanceRequestResource( + * NodeGroupsPerformMaintenanceRequest.newBuilder().build()) + * .setProject("project-309310695") + * .setRequestId("requestId693933066") + * .setZone("zone3744684") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * nodeGroupsClient.performMaintenanceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * String project = "project-309310695"; + * String zone = "zone3744684"; + * String storagePoolType = "storagePoolType-354080495"; + * StoragePoolType response = storagePoolTypesClient.get(project, zone, storagePoolType); + * } + * }+ * + *
Note: close() needs to be called on the StoragePoolTypesClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
Method | + *Description | + *Method Variants | + *
---|---|---|
AggregatedList |
+ * Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
Get |
+ * Returns the specified storage pool type. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
List |
+ * Retrieves a list of storage pool types available to the specified project. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of StoragePoolTypesSettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@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 + * StoragePoolTypesSettings storagePoolTypesSettings = + * StoragePoolTypesSettings.newBuilder() + * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + * .build(); + * StoragePoolTypesClient storagePoolTypesClient = + * StoragePoolTypesClient.create(storagePoolTypesSettings); + * }+ * + *
To customize the endpoint: + * + *
{@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 + * StoragePoolTypesSettings storagePoolTypesSettings = + * StoragePoolTypesSettings.newBuilder().setEndpoint(myEndpoint).build(); + * StoragePoolTypesClient storagePoolTypesClient = + * StoragePoolTypesClient.create(storagePoolTypesSettings); + * }+ * + *
Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class StoragePoolTypesClient implements BackgroundResource { + private final StoragePoolTypesSettings settings; + private final StoragePoolTypesStub stub; + + /** Constructs an instance of StoragePoolTypesClient with default settings. */ + public static final StoragePoolTypesClient create() throws IOException { + return create(StoragePoolTypesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of StoragePoolTypesClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final StoragePoolTypesClient create(StoragePoolTypesSettings settings) + throws IOException { + return new StoragePoolTypesClient(settings); + } + + /** + * Constructs an instance of StoragePoolTypesClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(StoragePoolTypesSettings). + */ + public static final StoragePoolTypesClient create(StoragePoolTypesStub stub) { + return new StoragePoolTypesClient(stub); + } + + /** + * Constructs an instance of StoragePoolTypesClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected StoragePoolTypesClient(StoragePoolTypesSettings settings) throws IOException { + this.settings = settings; + this.stub = ((StoragePoolTypesStubSettings) settings.getStubSettings()).createStub(); + } + + protected StoragePoolTypesClient(StoragePoolTypesStub stub) { + this.settings = null; + this.stub = stub; + } + + public final StoragePoolTypesSettings getSettings() { + return settings; + } + + public StoragePoolTypesStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that + * you set the `returnPartialSuccess` parameter to `true`. + * + *
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * String project = "project-309310695"; + * for (Map.Entry+ * + * @param project Project ID for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AggregatedListPagedResponse aggregatedList(String project) { + AggregatedListStoragePoolTypesRequest request = + AggregatedListStoragePoolTypesRequest.newBuilder().setProject(project).build(); + return aggregatedList(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that + * you set the `returnPartialSuccess` parameter to `true`. + * + *element : + * storagePoolTypesClient.aggregatedList(project).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * AggregatedListStoragePoolTypesRequest request = + * AggregatedListStoragePoolTypesRequest.newBuilder() + * .setFilter("filter-1274492040") + * .setIncludeAllScopes(true) + * .setMaxResults(1128457243) + * .setOrderBy("orderBy-1207110587") + * .setPageToken("pageToken873572522") + * .setProject("project-309310695") + * .setReturnPartialSuccess(true) + * .setServiceProjectNumber(-1293855239) + * .build(); + * for (Map.Entry+ * + * @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 AggregatedListPagedResponse aggregatedList( + AggregatedListStoragePoolTypesRequest request) { + return aggregatedListPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that + * you set the `returnPartialSuccess` parameter to `true`. + * + *element : + * storagePoolTypesClient.aggregatedList(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * AggregatedListStoragePoolTypesRequest request = + * AggregatedListStoragePoolTypesRequest.newBuilder() + * .setFilter("filter-1274492040") + * .setIncludeAllScopes(true) + * .setMaxResults(1128457243) + * .setOrderBy("orderBy-1207110587") + * .setPageToken("pageToken873572522") + * .setProject("project-309310695") + * .setReturnPartialSuccess(true) + * .setServiceProjectNumber(-1293855239) + * .build(); + * ApiFuture+ */ + public final UnaryCallable> future = + * storagePoolTypesClient.aggregatedListPagedCallable().futureCall(request); + * // Do something. + * for (Map.Entry element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * AggregatedListStoragePoolTypesRequest request = + * AggregatedListStoragePoolTypesRequest.newBuilder() + * .setFilter("filter-1274492040") + * .setIncludeAllScopes(true) + * .setMaxResults(1128457243) + * .setOrderBy("orderBy-1207110587") + * .setPageToken("pageToken873572522") + * .setProject("project-309310695") + * .setReturnPartialSuccess(true) + * .setServiceProjectNumber(-1293855239) + * .build(); + * while (true) { + * StoragePoolTypeAggregatedList response = + * storagePoolTypesClient.aggregatedListCallable().call(request); + * for (Map.Entry+ */ + public final UnaryCallableelement : response.getItemsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * String project = "project-309310695"; + * String zone = "zone3744684"; + * String storagePoolType = "storagePoolType-354080495"; + * StoragePoolType response = storagePoolTypesClient.get(project, zone, storagePoolType); + * } + * }+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @param storagePoolType Name of the storage pool type to return. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StoragePoolType get(String project, String zone, String storagePoolType) { + GetStoragePoolTypeRequest request = + GetStoragePoolTypeRequest.newBuilder() + .setProject(project) + .setZone(zone) + .setStoragePoolType(storagePoolType) + .build(); + return get(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified storage pool type. + * + *
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * GetStoragePoolTypeRequest request = + * GetStoragePoolTypeRequest.newBuilder() + * .setProject("project-309310695") + * .setStoragePoolType("storagePoolType-354080495") + * .setZone("zone3744684") + * .build(); + * StoragePoolType response = storagePoolTypesClient.get(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 StoragePoolType get(GetStoragePoolTypeRequest request) { + return getCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the specified storage pool type. + * + *
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * GetStoragePoolTypeRequest request = + * GetStoragePoolTypeRequest.newBuilder() + * .setProject("project-309310695") + * .setStoragePoolType("storagePoolType-354080495") + * .setZone("zone3744684") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = storagePoolTypesClient.getCallable().futureCall(request); + * // Do something. + * StoragePoolType response = future.get(); + * } + * }
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * String project = "project-309310695"; + * String zone = "zone3744684"; + * for (StoragePoolType element : storagePoolTypesClient.list(project, zone).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }+ * + * @param project Project ID for this request. + * @param zone The name of the zone for this request. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPagedResponse list(String project, String zone) { + ListStoragePoolTypesRequest request = + ListStoragePoolTypesRequest.newBuilder().setProject(project).setZone(zone).build(); + return list(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of storage pool types available to the specified project. + * + *
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * ListStoragePoolTypesRequest request = + * ListStoragePoolTypesRequest.newBuilder() + * .setFilter("filter-1274492040") + * .setMaxResults(1128457243) + * .setOrderBy("orderBy-1207110587") + * .setPageToken("pageToken873572522") + * .setProject("project-309310695") + * .setReturnPartialSuccess(true) + * .setZone("zone3744684") + * .build(); + * for (StoragePoolType element : storagePoolTypesClient.list(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 ListPagedResponse list(ListStoragePoolTypesRequest request) { + return listPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a list of storage pool types available to the specified project. + * + *
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * ListStoragePoolTypesRequest request = + * ListStoragePoolTypesRequest.newBuilder() + * .setFilter("filter-1274492040") + * .setMaxResults(1128457243) + * .setOrderBy("orderBy-1207110587") + * .setPageToken("pageToken873572522") + * .setProject("project-309310695") + * .setReturnPartialSuccess(true) + * .setZone("zone3744684") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * storagePoolTypesClient.listPagedCallable().futureCall(request); + * // Do something. + * for (StoragePoolType element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) { + * ListStoragePoolTypesRequest request = + * ListStoragePoolTypesRequest.newBuilder() + * .setFilter("filter-1274492040") + * .setMaxResults(1128457243) + * .setOrderBy("orderBy-1207110587") + * .setPageToken("pageToken873572522") + * .setProject("project-309310695") + * .setReturnPartialSuccess(true) + * .setZone("zone3744684") + * .build(); + * while (true) { + * StoragePoolTypeList response = storagePoolTypesClient.listCallable().call(request); + * for (StoragePoolType element : response.getItemsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }+ */ + public final UnaryCallable
The default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of get to 30 seconds: + * + *
{@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 + * StoragePoolTypesSettings.Builder storagePoolTypesSettingsBuilder = + * StoragePoolTypesSettings.newBuilder(); + * storagePoolTypesSettingsBuilder + * .getSettings() + * .setRetrySettings( + * storagePoolTypesSettingsBuilder + * .getSettings() + * .getRetrySettings() + * .toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); + * StoragePoolTypesSettings storagePoolTypesSettings = storagePoolTypesSettingsBuilder.build(); + * }+ */ +@Generated("by gapic-generator-java") +public class StoragePoolTypesSettings extends ClientSettings
Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class provides the ability to make remote calls to the backing service through method
+ * calls that map to API methods. Sample code to get started:
+ *
+ * Note: close() needs to be called on the StoragePoolsClient object to clean up resources such
+ * as threads. In the example above, try-with-resources is used, which automatically calls close().
+ *
+ * AggregatedList Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. Request object method variants only take one parameter, a request object, which must be constructed before the call. aggregatedList(AggregatedListStoragePoolsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. aggregatedList(String project)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. aggregatedListPagedCallable()
+ * aggregatedListCallable()
+ * Delete Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots. Request object method variants only take one parameter, a request object, which must be constructed before the call. deleteAsync(DeleteStoragePoolRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. deleteAsync(String project, String zone, String storagePool)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. deleteOperationCallable()
+ * deleteCallable()
+ * Get Returns a specified storage pool. Gets a list of available storage pools by making a list() request. Request object method variants only take one parameter, a request object, which must be constructed before the call. get(GetStoragePoolRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. get(String project, String zone, String storagePool)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getCallable()
+ * GetIamPolicy Gets the access control policy for a resource. May be empty if no such policy or resource exists. Request object method variants only take one parameter, a request object, which must be constructed before the call. getIamPolicy(GetIamPolicyStoragePoolRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. getIamPolicy(String project, String zone, String resource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. getIamPolicyCallable()
+ * Insert Creates a storage pool in the specified project using the data in the request. Request object method variants only take one parameter, a request object, which must be constructed before the call. insertAsync(InsertStoragePoolRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. insertAsync(String project, String zone, StoragePool storagePoolResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. insertOperationCallable()
+ * insertCallable()
+ * List Retrieves a list of storage pools contained within the specified zone. Request object method variants only take one parameter, a request object, which must be constructed before the call. list(ListStoragePoolsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. list(String project, String zone)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listPagedCallable()
+ * listCallable()
+ * ListDisks Lists the disks in a specified storage pool. Request object method variants only take one parameter, a request object, which must be constructed before the call. listDisks(ListDisksStoragePoolsRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. listDisks(String project, String zone, String storagePool)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. listDisksPagedCallable()
+ * listDisksCallable()
+ * SetIamPolicy Sets the access control policy on the specified resource. Replaces any existing policy. Request object method variants only take one parameter, a request object, which must be constructed before the call. setIamPolicy(SetIamPolicyStoragePoolRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. setIamPolicy(String project, String zone, String resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. setIamPolicyCallable()
+ * TestIamPermissions Returns permissions that a caller has on the specified resource. Request object method variants only take one parameter, a request object, which must be constructed before the call. testIamPermissions(TestIamPermissionsStoragePoolRequest request)
+ * "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. testIamPermissions(String project, String zone, String resource, TestPermissionsRequest testPermissionsRequestResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. testIamPermissionsCallable()
+ * Update Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: size_tb and provisioned_iops. Request object method variants only take one parameter, a request object, which must be constructed before the call. updateAsync(UpdateStoragePoolRequest request)
+ * Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. updateAsync(String project, String zone, String storagePool, StoragePool storagePoolResource)
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. updateOperationCallable()
+ * updateCallable()
+ * See the individual methods for example code.
+ *
+ * Many parameters require resource names to be formatted in a particular way. To assist with
+ * these names, this class includes a format method for each type of name, and additionally a parse
+ * method to extract the individual identifiers contained within names that are returned.
+ *
+ * This class can be customized by passing in a custom instance of StoragePoolsSettings to
+ * create(). For example:
+ *
+ * To customize credentials:
+ *
+ * To customize the endpoint:
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets.
+ */
+@Generated("by gapic-generator-java")
+public class StoragePoolsClient implements BackgroundResource {
+ private final StoragePoolsSettings settings;
+ private final StoragePoolsStub stub;
+
+ /** Constructs an instance of StoragePoolsClient with default settings. */
+ public static final StoragePoolsClient create() throws IOException {
+ return create(StoragePoolsSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of StoragePoolsClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final StoragePoolsClient create(StoragePoolsSettings settings) throws IOException {
+ return new StoragePoolsClient(settings);
+ }
+
+ /**
+ * Constructs an instance of StoragePoolsClient, using the given stub for making calls. This is
+ * for advanced usage - prefer using create(StoragePoolsSettings).
+ */
+ public static final StoragePoolsClient create(StoragePoolsStub stub) {
+ return new StoragePoolsClient(stub);
+ }
+
+ /**
+ * Constructs an instance of StoragePoolsClient, using the given settings. This is protected so
+ * that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected StoragePoolsClient(StoragePoolsSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((StoragePoolsStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ protected StoragePoolsClient(StoragePoolsStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final StoragePoolsSettings getSettings() {
+ return settings;
+ }
+
+ public StoragePoolsStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you
+ * set the `returnPartialSuccess` parameter to `true`.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of get to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction ======================= InstanceGroupManagerResizeRequestsClient =======================
+ *
+ * Service Description: The InstanceGroupManagerResizeRequests API.
+ *
+ * Sample for InstanceGroupManagerResizeRequestsClient:
+ *
+ * ======================= InstanceGroupManagersClient =======================
*
* Service Description: The InstanceGroupManagers API.
@@ -455,6 +479,26 @@
* }
* }
*
+ * ======================= InstanceSettingsServiceClient =======================
+ *
+ * Service Description: The InstanceSettings API.
+ *
+ * Sample for InstanceSettingsServiceClient:
+ *
+ * ======================= InstanceTemplatesClient =======================
*
* Service Description: The InstanceTemplates API.
@@ -1639,6 +1683,46 @@
* }
* }
*
+ * ======================= StoragePoolTypesClient =======================
+ *
+ * Service Description: The StoragePoolTypes API.
+ *
+ * Sample for StoragePoolTypesClient:
+ *
+ * ======================= StoragePoolsClient =======================
+ *
+ * Service Description: The StoragePools API.
+ *
+ * Sample for StoragePoolsClient:
+ *
+ * ======================= SubnetworksClient =======================
*
* Service Description: The Subnetworks API.
diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerResizeRequestsCallableFactory.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerResizeRequestsCallableFactory.java
new file mode 100644
index 000000000000..d4a866d8e748
--- /dev/null
+++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/HttpJsonInstanceGroupManagerResizeRequestsCallableFactory.java
@@ -0,0 +1,100 @@
+/*
+ * Copyright 2024 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.compute.v1.stub;
+
+import com.google.api.gax.httpjson.HttpJsonCallSettings;
+import com.google.api.gax.httpjson.HttpJsonCallableFactory;
+import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable;
+import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.compute.v1.Operation;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * REST callable factory implementation for the InstanceGroupManagerResizeRequests service API.
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonInstanceGroupManagerResizeRequestsCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonInstanceGroupManagerResizeRequestsStub
+ extends InstanceGroupManagerResizeRequestsStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder().add(Operation.getDescriptor()).build();
+
+ private static final ApiMethodDescriptor<
+ CancelInstanceGroupManagerResizeRequestRequest, Operation>
+ cancelMethodDescriptor =
+ ApiMethodDescriptor
+ . This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonInstanceSettingsServiceCallableFactory
+ implements HttpJsonStubCallableFactory This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class HttpJsonInstanceSettingsServiceStub extends InstanceSettingsServiceStub {
+ private static final TypeRegistry typeRegistry =
+ TypeRegistry.newBuilder().add(Operation.getDescriptor()).build();
+
+ private static final ApiMethodDescriptor{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String storagePool = "storagePool-525690569";
+ * StoragePool response = storagePoolsClient.get(project, zone, storagePool);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * Method
+ * Description
+ * Method Variants
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * {@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
+ * StoragePoolsSettings storagePoolsSettings =
+ * StoragePoolsSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * StoragePoolsClient storagePoolsClient = StoragePoolsClient.create(storagePoolsSettings);
+ * }
+ *
+ * {@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
+ * StoragePoolsSettings storagePoolsSettings =
+ * StoragePoolsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * StoragePoolsClient storagePoolsClient = StoragePoolsClient.create(storagePoolsSettings);
+ * }
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * for (Map.Entry
+ *
+ * @param project Project ID for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final AggregatedListPagedResponse aggregatedList(String project) {
+ AggregatedListStoragePoolsRequest request =
+ AggregatedListStoragePoolsRequest.newBuilder().setProject(project).build();
+ return aggregatedList(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you
+ * set the `returnPartialSuccess` parameter to `true`.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * AggregatedListStoragePoolsRequest request =
+ * AggregatedListStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * for (Map.Entry
+ *
+ * @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 AggregatedListPagedResponse aggregatedList(
+ AggregatedListStoragePoolsRequest request) {
+ return aggregatedListPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you
+ * set the `returnPartialSuccess` parameter to `true`.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * AggregatedListStoragePoolsRequest request =
+ * AggregatedListStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * AggregatedListStoragePoolsRequest request =
+ * AggregatedListStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setIncludeAllScopes(true)
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setServiceProjectNumber(-1293855239)
+ * .build();
+ * while (true) {
+ * StoragePoolAggregatedList response =
+ * storagePoolsClient.aggregatedListCallable().call(request);
+ * for (Map.Entry
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String storagePool = "storagePool-525690569";
+ * Operation response = storagePoolsClient.deleteAsync(project, zone, storagePool).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param storagePool Name of the storage pool to delete.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * DeleteStoragePoolRequest request =
+ * DeleteStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = storagePoolsClient.deleteAsync(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{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * DeleteStoragePoolRequest request =
+ * DeleteStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * DeleteStoragePoolRequest request =
+ * DeleteStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String storagePool = "storagePool-525690569";
+ * StoragePool response = storagePoolsClient.get(project, zone, storagePool);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param storagePool Name of the storage pool to return.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final StoragePool get(String project, String zone, String storagePool) {
+ GetStoragePoolRequest request =
+ GetStoragePoolRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setStoragePool(storagePool)
+ .build();
+ return get(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a specified storage pool. Gets a list of available storage pools by making a list()
+ * request.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * GetStoragePoolRequest request =
+ * GetStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * StoragePool response = storagePoolsClient.get(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 StoragePool get(GetStoragePoolRequest request) {
+ return getCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a specified storage pool. Gets a list of available storage pools by making a list()
+ * request.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * GetStoragePoolRequest request =
+ * GetStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String resource = "resource-341064690";
+ * Policy response = storagePoolsClient.getIamPolicy(project, zone, resource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param resource Name or id of the resource for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(String project, String zone, String resource) {
+ GetIamPolicyStoragePoolRequest request =
+ GetIamPolicyStoragePoolRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setResource(resource)
+ .build();
+ return getIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy or resource
+ * exists.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * GetIamPolicyStoragePoolRequest request =
+ * GetIamPolicyStoragePoolRequest.newBuilder()
+ * .setOptionsRequestedPolicyVersion(-574521795)
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setZone("zone3744684")
+ * .build();
+ * Policy response = storagePoolsClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyStoragePoolRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the access control policy for a resource. May be empty if no such policy or resource
+ * exists.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * GetIamPolicyStoragePoolRequest request =
+ * GetIamPolicyStoragePoolRequest.newBuilder()
+ * .setOptionsRequestedPolicyVersion(-574521795)
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * StoragePool storagePoolResource = StoragePool.newBuilder().build();
+ * Operation response = storagePoolsClient.insertAsync(project, zone, storagePoolResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param storagePoolResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * InsertStoragePoolRequest request =
+ * InsertStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePoolResource(StoragePool.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = storagePoolsClient.insertAsync(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{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * InsertStoragePoolRequest request =
+ * InsertStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePoolResource(StoragePool.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * InsertStoragePoolRequest request =
+ * InsertStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePoolResource(StoragePool.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * for (StoragePool element : storagePoolsClient.list(project, zone).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPagedResponse list(String project, String zone) {
+ ListStoragePoolsRequest request =
+ ListStoragePoolsRequest.newBuilder().setProject(project).setZone(zone).build();
+ return list(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a list of storage pools contained within the specified zone.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * ListStoragePoolsRequest request =
+ * ListStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setZone("zone3744684")
+ * .build();
+ * for (StoragePool element : storagePoolsClient.list(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 ListPagedResponse list(ListStoragePoolsRequest request) {
+ return listPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a list of storage pools contained within the specified zone.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * ListStoragePoolsRequest request =
+ * ListStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * ListStoragePoolsRequest request =
+ * ListStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setZone("zone3744684")
+ * .build();
+ * while (true) {
+ * StoragePoolList response = storagePoolsClient.listCallable().call(request);
+ * for (StoragePool element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String storagePool = "storagePool-525690569";
+ * for (StoragePoolDisk element :
+ * storagePoolsClient.listDisks(project, zone, storagePool).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param storagePool Name of the storage pool to list disks of.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListDisksPagedResponse listDisks(String project, String zone, String storagePool) {
+ ListDisksStoragePoolsRequest request =
+ ListDisksStoragePoolsRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setStoragePool(storagePool)
+ .build();
+ return listDisks(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the disks in a specified storage pool.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * ListDisksStoragePoolsRequest request =
+ * ListDisksStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * for (StoragePoolDisk element : storagePoolsClient.listDisks(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 ListDisksPagedResponse listDisks(ListDisksStoragePoolsRequest request) {
+ return listDisksPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the disks in a specified storage pool.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * ListDisksStoragePoolsRequest request =
+ * ListDisksStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * ListDisksStoragePoolsRequest request =
+ * ListDisksStoragePoolsRequest.newBuilder()
+ * .setFilter("filter-1274492040")
+ * .setMaxResults(1128457243)
+ * .setOrderBy("orderBy-1207110587")
+ * .setPageToken("pageToken873572522")
+ * .setProject("project-309310695")
+ * .setReturnPartialSuccess(true)
+ * .setStoragePool("storagePool-525690569")
+ * .setZone("zone3744684")
+ * .build();
+ * while (true) {
+ * StoragePoolListDisks response = storagePoolsClient.listDisksCallable().call(request);
+ * for (StoragePoolDisk element : response.getItemsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String resource = "resource-341064690";
+ * ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
+ * Policy response =
+ * storagePoolsClient.setIamPolicy(project, zone, resource, zoneSetPolicyRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param zoneSetPolicyRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(
+ String project,
+ String zone,
+ String resource,
+ ZoneSetPolicyRequest zoneSetPolicyRequestResource) {
+ SetIamPolicyStoragePoolRequest request =
+ SetIamPolicyStoragePoolRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setResource(resource)
+ .setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
+ .build();
+ return setIamPolicy(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replaces any existing policy.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * SetIamPolicyStoragePoolRequest request =
+ * SetIamPolicyStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setZone("zone3744684")
+ * .setZoneSetPolicyRequestResource(ZoneSetPolicyRequest.newBuilder().build())
+ * .build();
+ * Policy response = storagePoolsClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyStoragePoolRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Sets the access control policy on the specified resource. Replaces any existing policy.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * SetIamPolicyStoragePoolRequest request =
+ * SetIamPolicyStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setZone("zone3744684")
+ * .setZoneSetPolicyRequestResource(ZoneSetPolicyRequest.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String resource = "resource-341064690";
+ * TestPermissionsRequest testPermissionsRequestResource =
+ * TestPermissionsRequest.newBuilder().build();
+ * TestPermissionsResponse response =
+ * storagePoolsClient.testIamPermissions(
+ * project, zone, resource, testPermissionsRequestResource);
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param resource Name or id of the resource for this request.
+ * @param testPermissionsRequestResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestPermissionsResponse testIamPermissions(
+ String project,
+ String zone,
+ String resource,
+ TestPermissionsRequest testPermissionsRequestResource) {
+ TestIamPermissionsStoragePoolRequest request =
+ TestIamPermissionsStoragePoolRequest.newBuilder()
+ .setProject(project)
+ .setZone(zone)
+ .setResource(resource)
+ .setTestPermissionsRequestResource(testPermissionsRequestResource)
+ .build();
+ return testIamPermissions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * TestIamPermissionsStoragePoolRequest request =
+ * TestIamPermissionsStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * TestPermissionsResponse response = storagePoolsClient.testIamPermissions(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 TestPermissionsResponse testIamPermissions(
+ TestIamPermissionsStoragePoolRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns permissions that a caller has on the specified resource.
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * TestIamPermissionsStoragePoolRequest request =
+ * TestIamPermissionsStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setResource("resource-341064690")
+ * .setTestPermissionsRequestResource(TestPermissionsRequest.newBuilder().build())
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String storagePool = "storagePool-525690569";
+ * StoragePool storagePoolResource = StoragePool.newBuilder().build();
+ * Operation response =
+ * storagePoolsClient.updateAsync(project, zone, storagePool, storagePoolResource).get();
+ * }
+ * }
+ *
+ * @param project Project ID for this request.
+ * @param zone The name of the zone for this request.
+ * @param storagePool The storagePool name for this request.
+ * @param storagePoolResource The body resource for this request
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * UpdateStoragePoolRequest request =
+ * UpdateStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePool("storagePool-525690569")
+ * .setStoragePoolResource(StoragePool.newBuilder().build())
+ * .setUpdateMask("updateMask-296147115")
+ * .setZone("zone3744684")
+ * .build();
+ * Operation response = storagePoolsClient.updateAsync(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{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * UpdateStoragePoolRequest request =
+ * UpdateStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePool("storagePool-525690569")
+ * .setStoragePoolResource(StoragePool.newBuilder().build())
+ * .setUpdateMask("updateMask-296147115")
+ * .setZone("zone3744684")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable{@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * UpdateStoragePoolRequest request =
+ * UpdateStoragePoolRequest.newBuilder()
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .setStoragePool("storagePool-525690569")
+ * .setStoragePoolResource(StoragePool.newBuilder().build())
+ * .setUpdateMask("updateMask-296147115")
+ * .setZone("zone3744684")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
+ *
+ * {@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
+ * StoragePoolsSettings.Builder storagePoolsSettingsBuilder = StoragePoolsSettings.newBuilder();
+ * storagePoolsSettingsBuilder
+ * .getSettings()
+ * .setRetrySettings(
+ * storagePoolsSettingsBuilder
+ * .getSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * StoragePoolsSettings storagePoolsSettings = storagePoolsSettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class StoragePoolsSettings extends ClientSettings{@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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient =
+ * InstanceGroupManagerResizeRequestsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String instanceGroupManager = "instanceGroupManager-388242077";
+ * String resizeRequest = "resizeRequest-1656358085";
+ * InstanceGroupManagerResizeRequest response =
+ * instanceGroupManagerResizeRequestsClient.get(
+ * project, zone, instanceGroupManager, resizeRequest);
+ * }
+ * }
+ *
* {@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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * InstanceSettings response = instanceSettingsServiceClient.get(project, zone);
+ * }
+ * }
+ *
* {@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 (StoragePoolTypesClient storagePoolTypesClient = StoragePoolTypesClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String storagePoolType = "storagePoolType-354080495";
+ * StoragePoolType response = storagePoolTypesClient.get(project, zone, storagePoolType);
+ * }
+ * }
+ *
+ * {@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 (StoragePoolsClient storagePoolsClient = StoragePoolsClient.create()) {
+ * String project = "project-309310695";
+ * String zone = "zone3744684";
+ * String storagePool = "storagePool-525690569";
+ * StoragePool response = storagePoolsClient.get(project, zone, storagePool);
+ * }
+ * }
+ *
*