diff --git a/generation_config.yaml b/generation_config.yaml index 3e7304774156..9ea6b7808b8c 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: 2b342b8ebf0850ea8df56caa4b44d892d943e35d libraries_bom_version: 26.37.0 owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 synthtool_commitish: 63cc541da2c45fcfca2136c43e638da1fbae174d diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 19fa1d934fd1..192c83199a4b 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/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-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.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-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 3b129022014d..fd38bb1d25e7 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/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-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.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-advisorynotifications/README.md b/java-advisorynotifications/README.md index 26225ce4fc90..e42b71fa17b1 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/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-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.31.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/README.md b/java-aiplatform/README.md index 6642149cbd55..f34307bbbb0e 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/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
+ * 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
+ * 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+ * 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
+ * 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+ * 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
+ * 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+ * 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
+ * List of NotebookExecutionJobs in the requested page. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * 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
+ * List of NotebookExecutionJobs in the requested page. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ public java.util.List+ * 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+ * 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+ * List of NotebookExecutionJobs in the requested page. + *+ * + *
+ * repeated .google.cloud.aiplatform.v1beta1.NotebookExecutionJob notebook_execution_jobs = 1;
+ *
+ */
+ java.util.List+ * 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
+ * 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+ * 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
+ * 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+ * 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
+ * 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+ * 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+ * 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.EnumLiteMaprepeated 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.Iterablerepeated 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-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md
index 7dfaa48978a5..d9774fc88c2b 100644
--- a/java-beyondcorp-appconnections/README.md
+++ b/java-beyondcorp-appconnections/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-beyondcorp-appconnections.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.39.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.40.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-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md
index d7fd74068997..a1b032bca43f 100644
--- a/java-beyondcorp-appconnectors/README.md
+++ b/java-beyondcorp-appconnectors/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-beyondcorp-appconnectors.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.39.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.40.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-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md
index 332bce100edf..c271c1014ab2 100644
--- a/java-beyondcorp-appgateways/README.md
+++ b/java-beyondcorp-appgateways/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-beyondcorp-appgateways.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.39.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.40.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-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md
index 2e47b9220f39..dba170f505e0 100644
--- a/java-beyondcorp-clientconnectorservices/README.md
+++ b/java-beyondcorp-clientconnectorservices/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-beyondcorp-clientconnectorservices.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.39.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.40.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-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md
index da5209443520..f62d247640cc 100644
--- a/java-beyondcorp-clientgateways/README.md
+++ b/java-beyondcorp-clientgateways/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-beyondcorp-clientgateways.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.39.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.40.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-biglake/README.md b/java-biglake/README.md
index 7113d0a78754..ee7e21b93d6d 100644
--- a/java-biglake/README.md
+++ b/java-biglake/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-biglake.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.29.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.30.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-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md
index d1eb03c5b2d1..4eb9b20b9400 100644
--- a/java-bigquery-data-exchange/README.md
+++ b/java-bigquery-data-exchange/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-bigquery-data-exchange.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.36.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.37.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-bigqueryconnection/README.md b/java-bigqueryconnection/README.md
index 46df9fe1b14e..32f76243cfaa 100644
--- a/java-bigqueryconnection/README.md
+++ b/java-bigqueryconnection/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-bigqueryconnection.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.43.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.44.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-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md
index 157712ea7a05..01f939190373 100644
--- a/java-bigquerydatapolicy/README.md
+++ b/java-bigquerydatapolicy/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-bigquerydatapolicy.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.38.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.39.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-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md
index 98c0f592c357..45bbcba86a41 100644
--- a/java-bigquerydatatransfer/README.md
+++ b/java-bigquerydatatransfer/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-bigquerydatatransfer.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.41.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.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-bigquerymigration/README.md b/java-bigquerymigration/README.md
index 804963d0249f..8c6679a31a45 100644
--- a/java-bigquerymigration/README.md
+++ b/java-bigquerymigration/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-bigquerymigration.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.44.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.45.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-bigqueryreservation/README.md b/java-bigqueryreservation/README.md
index fcf96b4f895e..a338caceaa46 100644
--- a/java-bigqueryreservation/README.md
+++ b/java-bigqueryreservation/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-bigqueryreservation.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.42.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.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-billing/README.md b/java-billing/README.md
index d9c61d0c878a..523fb86327c3 100644
--- a/java-billing/README.md
+++ b/java-billing/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-billing.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.41.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.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-billingbudgets/README.md b/java-billingbudgets/README.md
index 6e7d61cf21bc..14ff44dabbfa 100644
--- a/java-billingbudgets/README.md
+++ b/java-billingbudgets/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-billingbudgets.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.41.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.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-binary-authorization/README.md b/java-binary-authorization/README.md
index 863c8f0eb3c6..b141a7f0e434 100644
--- a/java-binary-authorization/README.md
+++ b/java-binary-authorization/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-binary-authorization.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.40.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.41.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-certificate-manager/README.md b/java-certificate-manager/README.md
index 00211312f5d3..240c094f219e 100644
--- a/java-certificate-manager/README.md
+++ b/java-certificate-manager/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-certificate-manager.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.44.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.45.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-channel/README.md b/java-channel/README.md
index 2a90dd0edc9c..3baecbf60e08 100644
--- a/java-channel/README.md
+++ b/java-channel/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-channel.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.45.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.46.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-chat/README.md b/java-chat/README.md
index 5c428100beba..560584900369 100644
--- a/java-chat/README.md
+++ b/java-chat/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-chat.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.5.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.6.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-cloudbuild/README.md b/java-cloudbuild/README.md
index cab1a7bfdf38..3f9b848b3c8f 100644
--- a/java-cloudbuild/README.md
+++ b/java-cloudbuild/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-build.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.43.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.44.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-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md
index 20e4974585d0..3f829ec6e0a9 100644
--- a/java-cloudcommerceconsumerprocurement/README.md
+++ b/java-cloudcommerceconsumerprocurement/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-cloudcommerceconsumerprocurement.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.39.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.40.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-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md
index e3b13862564c..a915196d5886 100644
--- a/java-cloudcontrolspartner/README.md
+++ b/java-cloudcontrolspartner/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-cloudcontrolspartner.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.5.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.6.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-cloudquotas/README.md b/java-cloudquotas/README.md
index d77fe4416a1b..07a0a18f46b2 100644
--- a/java-cloudquotas/README.md
+++ b/java-cloudquotas/README.md
@@ -203,7 +203,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-cloudquotas.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.9.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.10.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-cloudsupport/README.md b/java-cloudsupport/README.md
index 65a22ea2a565..71e4dd76eab8 100644
--- a/java-cloudsupport/README.md
+++ b/java-cloudsupport/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-cloudsupport.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.25.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.26.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/README.md b/java-compute/README.md
index bec1c2198cf8..1cea5453e8af 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(). + * + *
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. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
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. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
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 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. + *
"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. + *
|
+ *
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. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
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 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. + *
"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 + * 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
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
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+ */ + 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. + * + *future = + * instanceGroupManagerResizeRequestsClient.cancelOperationCallable().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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient = + * InstanceGroupManagerResizeRequestsClient.create()) { + * CancelInstanceGroupManagerResizeRequestRequest request = + * CancelInstanceGroupManagerResizeRequestRequest.newBuilder() + * .setInstanceGroupManager("instanceGroupManager-388242077") + * .setProject("project-309310695") + * .setRequestId("requestId693933066") + * .setResizeRequest("resizeRequest-1656358085") + * .setZone("zone3744684") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * instanceGroupManagerResizeRequestsClient.cancelCallable().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 (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
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
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+ */ + 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. + * + *future = + * instanceGroupManagerResizeRequestsClient.deleteOperationCallable().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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient = + * InstanceGroupManagerResizeRequestsClient.create()) { + * DeleteInstanceGroupManagerResizeRequestRequest request = + * DeleteInstanceGroupManagerResizeRequestRequest.newBuilder() + * .setInstanceGroupManager("instanceGroupManager-388242077") + * .setProject("project-309310695") + * .setRequestId("requestId693933066") + * .setResizeRequest("resizeRequest-1656358085") + * .setZone("zone3744684") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * instanceGroupManagerResizeRequestsClient.deleteCallable().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 (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+ */ + 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. + * + *future = + * instanceGroupManagerResizeRequestsClient.getCallable().futureCall(request); + * // Do something. + * InstanceGroupManagerResizeRequest 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 (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
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
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+ */ + 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. + * + *future = + * instanceGroupManagerResizeRequestsClient.insertOperationCallable().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 (InstanceGroupManagerResizeRequestsClient instanceGroupManagerResizeRequestsClient = + * InstanceGroupManagerResizeRequestsClient.create()) { + * InsertInstanceGroupManagerResizeRequestRequest request = + * InsertInstanceGroupManagerResizeRequestRequest.newBuilder() + * .setInstanceGroupManager("instanceGroupManager-388242077") + * .setInstanceGroupManagerResizeRequestResource( + * InstanceGroupManagerResizeRequest.newBuilder().build()) + * .setProject("project-309310695") + * .setRequestId("requestId693933066") + * .setZone("zone3744684") + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * instanceGroupManagerResizeRequestsClient.insertCallable().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 (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+ */ + public final UnaryCallablefuture = + * instanceGroupManagerResizeRequestsClient.listPagedCallable().futureCall(request); + * // Do something. + * for (InstanceGroupManagerResizeRequest 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 (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
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 + * 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
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 InstanceSettingsServiceClient object to clean up
+ * resources such as threads. In the example above, try-with-resources is used, which automatically
+ * calls close().
+ *
+ * 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:
+ *
+ * To customize the endpoint:
+ *
+ * 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:
+ *
+ * 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{@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);
+ * }
+ * }
+ *
+ *
+ *
+ *
+ *
+ *
+ * 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
+ * InstanceSettingsServiceSettings instanceSettingsServiceSettings =
+ * InstanceSettingsServiceSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create(instanceSettingsServiceSettings);
+ * }
+ *
+ * {@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);
+ * }
+ *
+ * {@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.
+ *
+ * {@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.
+ *
+ * {@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
+ */
+ 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 (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{@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{@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
+ */
+ 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 (InstanceSettingsServiceClient instanceSettingsServiceClient =
+ * InstanceSettingsServiceClient.create()) {
+ * PatchInstanceSettingRequest request =
+ * PatchInstanceSettingRequest.newBuilder()
+ * .setInstanceSettingsResource(InstanceSettings.newBuilder().build())
+ * .setProject("project-309310695")
+ * .setRequestId("requestId693933066")
+ * .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
+ * 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
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);
+ * }
+ * }
+ *
*