diff --git a/java-notebooks/README.md b/java-notebooks/README.md
index c42cbe04acb1..0dbf31e45549 100644
--- a/java-notebooks/README.md
+++ b/java-notebooks/README.md
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
+ * API v1 service for Managed Notebooks. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/notebooks/v1/managed_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ManagedNotebookServiceGrpc { + + private ManagedNotebookServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.notebooks.v1.ManagedNotebookService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListRuntimesRequest, + com.google.cloud.notebooks.v1.ListRuntimesResponse> + getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.notebooks.v1.ListRuntimesRequest.class, + responseType = com.google.cloud.notebooks.v1.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListRuntimesRequest, + com.google.cloud.notebooks.v1.ListRuntimesResponse> + getListRuntimesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListRuntimesRequest, + com.google.cloud.notebooks.v1.ListRuntimesResponse> + getListRuntimesMethod; + if ((getListRuntimesMethod = ManagedNotebookServiceGrpc.getListRuntimesMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getListRuntimesMethod = ManagedNotebookServiceGrpc.getListRuntimesMethod) == null) { + ManagedNotebookServiceGrpc.getListRuntimesMethod = + getListRuntimesMethod = + io.grpc.MethodDescriptor + .
+ * API v1 service for Managed Notebooks. + *+ */ + public abstract static class ManagedNotebookServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists Runtimes in a given project and location. + *+ */ + public void listRuntimes( + com.google.cloud.notebooks.v1.ListRuntimesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Runtime. The location must be a regional endpoint + * rather than zonal. + *+ */ + public void getRuntime( + com.google.cloud.notebooks.v1.GetRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Runtime in a given project and location. + *+ */ + public void createRuntime( + com.google.cloud.notebooks.v1.CreateRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Update Notebook Runtime configuration. + *+ */ + public void updateRuntime( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Runtime. + *+ */ + public void deleteRuntime( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Starts a Managed Notebook Runtime. + * Perform "Start" on GPU instances; "Resume" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public void startRuntime( + com.google.cloud.notebooks.v1.StartRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Stops a Managed Notebook Runtime. + * Perform "Stop" on GPU instances; "Suspend" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public void stopRuntime( + com.google.cloud.notebooks.v1.StopRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Switch a Managed Notebook Runtime. + *+ */ + public void switchRuntime( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Resets a Managed Notebook Runtime. + *+ */ + public void resetRuntime( + com.google.cloud.notebooks.v1.ResetRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Upgrades a Managed Notebook Runtime to the latest version. + *+ */ + public void upgradeRuntime( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Report and process a runtime event. + *+ */ + public void reportRuntimeEvent( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, + io.grpc.stub.StreamObserver
+ * Gets an access token for the consumer service account that the customer + * attached to the runtime. Only accessible from the tenant instance. + *+ */ + public void refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRefreshRuntimeTokenInternalMethod(), responseObserver); + } + + /** + * + * + *
+ * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime. + *+ */ + public void diagnoseRuntime( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * API v1 service for Managed Notebooks. + *+ */ + public static final class ManagedNotebookServiceStub + extends io.grpc.stub.AbstractAsyncStub
+ * Lists Runtimes in a given project and location. + *+ */ + public void listRuntimes( + com.google.cloud.notebooks.v1.ListRuntimesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Runtime. The location must be a regional endpoint + * rather than zonal. + *+ */ + public void getRuntime( + com.google.cloud.notebooks.v1.GetRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Runtime in a given project and location. + *+ */ + public void createRuntime( + com.google.cloud.notebooks.v1.CreateRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Update Notebook Runtime configuration. + *+ */ + public void updateRuntime( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Runtime. + *+ */ + public void deleteRuntime( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Starts a Managed Notebook Runtime. + * Perform "Start" on GPU instances; "Resume" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public void startRuntime( + com.google.cloud.notebooks.v1.StartRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Stops a Managed Notebook Runtime. + * Perform "Stop" on GPU instances; "Suspend" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public void stopRuntime( + com.google.cloud.notebooks.v1.StopRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Switch a Managed Notebook Runtime. + *+ */ + public void switchRuntime( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Resets a Managed Notebook Runtime. + *+ */ + public void resetRuntime( + com.google.cloud.notebooks.v1.ResetRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Upgrades a Managed Notebook Runtime to the latest version. + *+ */ + public void upgradeRuntime( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * Report and process a runtime event. + *+ */ + public void reportRuntimeEvent( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, + io.grpc.stub.StreamObserver
+ * Gets an access token for the consumer service account that the customer + * attached to the runtime. Only accessible from the tenant instance. + *+ */ + public void refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRefreshRuntimeTokenInternalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+ * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime. + *+ */ + public void diagnoseRuntime( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request, + io.grpc.stub.StreamObserver
+ * API v1 service for Managed Notebooks. + *+ */ + public static final class ManagedNotebookServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * Lists Runtimes in a given project and location. + *+ */ + public com.google.cloud.notebooks.v1.ListRuntimesResponse listRuntimes( + com.google.cloud.notebooks.v1.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single Runtime. The location must be a regional endpoint + * rather than zonal. + *+ */ + public com.google.cloud.notebooks.v1.Runtime getRuntime( + com.google.cloud.notebooks.v1.GetRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new Runtime in a given project and location. + *+ */ + public com.google.longrunning.Operation createRuntime( + com.google.cloud.notebooks.v1.CreateRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Update Notebook Runtime configuration. + *+ */ + public com.google.longrunning.Operation updateRuntime( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single Runtime. + *+ */ + public com.google.longrunning.Operation deleteRuntime( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Starts a Managed Notebook Runtime. + * Perform "Start" on GPU instances; "Resume" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public com.google.longrunning.Operation startRuntime( + com.google.cloud.notebooks.v1.StartRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Stops a Managed Notebook Runtime. + * Perform "Stop" on GPU instances; "Suspend" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public com.google.longrunning.Operation stopRuntime( + com.google.cloud.notebooks.v1.StopRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Switch a Managed Notebook Runtime. + *+ */ + public com.google.longrunning.Operation switchRuntime( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSwitchRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Resets a Managed Notebook Runtime. + *+ */ + public com.google.longrunning.Operation resetRuntime( + com.google.cloud.notebooks.v1.ResetRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Upgrades a Managed Notebook Runtime to the latest version. + *+ */ + public com.google.longrunning.Operation upgradeRuntime( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Report and process a runtime event. + *+ */ + public com.google.longrunning.Operation reportRuntimeEvent( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportRuntimeEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets an access token for the consumer service account that the customer + * attached to the runtime. Only accessible from the tenant instance. + *+ */ + public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRefreshRuntimeTokenInternalMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime. + *+ */ + public com.google.longrunning.Operation diagnoseRuntime( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiagnoseRuntimeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * API v1 service for Managed Notebooks. + *+ */ + public static final class ManagedNotebookServiceFutureStub + extends io.grpc.stub.AbstractFutureStub
+ * Lists Runtimes in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListRuntimesResponse> + listRuntimes(com.google.cloud.notebooks.v1.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single Runtime. The location must be a regional endpoint + * rather than zonal. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Runtime in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Update Notebook Runtime configuration. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single Runtime. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Starts a Managed Notebook Runtime. + * Perform "Start" on GPU instances; "Resume" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Stops a Managed Notebook Runtime. + * Perform "Stop" on GPU instances; "Suspend" on CPU instances + * See: + * https://cloud.google.com/compute/docs/instances/stop-start-instance + * https://cloud.google.com/compute/docs/instances/suspend-resume-instance + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Switch a Managed Notebook Runtime. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Resets a Managed Notebook Runtime. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Upgrades a Managed Notebook Runtime to the latest version. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Report and process a runtime event. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets an access token for the consumer service account that the customer + * attached to the runtime. Only accessible from the tenant instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRefreshRuntimeTokenInternalMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * API v1 service for Cloud AI Platform Notebooks. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/notebooks/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NotebookServiceGrpc { + + private NotebookServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.notebooks.v1.NotebookService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListInstancesRequest, + com.google.cloud.notebooks.v1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.notebooks.v1.ListInstancesRequest.class, + responseType = com.google.cloud.notebooks.v1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListInstancesRequest, + com.google.cloud.notebooks.v1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListInstancesRequest, + com.google.cloud.notebooks.v1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + NotebookServiceGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + .
+ * API v1 service for Cloud AI Platform Notebooks. + *+ */ + public abstract static class NotebookServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+ * Lists instances in a given project and location. + *+ */ + public void listInstances( + com.google.cloud.notebooks.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Instance. + *+ */ + public void getInstance( + com.google.cloud.notebooks.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Instance in a given project and location. + *+ */ + public void createInstance( + com.google.cloud.notebooks.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Registers an existing legacy notebook instance to the Notebooks API server. + * Legacy instances are instances created with the legacy Compute Engine + * calls. They are not manageable by the Notebooks API out of the box. This + * call makes these instances manageable by the Notebooks API. + *+ */ + public void registerInstance( + com.google.cloud.notebooks.v1.RegisterInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Updates the guest accelerators of a single Instance. + *+ */ + public void setInstanceAccelerator( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request, + io.grpc.stub.StreamObserver
+ * Updates the machine type of a single Instance. + *+ */ + public void setInstanceMachineType( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request, + io.grpc.stub.StreamObserver
+ * Update Notebook Instance configurations. + *+ */ + public void updateInstanceConfig( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request, + io.grpc.stub.StreamObserver
+ * Updates the Shielded instance configuration of a single Instance. + *+ */ + public void updateShieldedInstanceConfig( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request, + io.grpc.stub.StreamObserver
+ * Replaces all the labels of an Instance. + *+ */ + public void setInstanceLabels( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request, + io.grpc.stub.StreamObserver
+ * Add/update metadata items for an instance. + *+ */ + public void updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMetadataItemsMethod(), responseObserver); + } + + /** + * + * + *
+ * Deletes a single Instance. + *+ */ + public void deleteInstance( + com.google.cloud.notebooks.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Starts a notebook instance. + *+ */ + public void startInstance( + com.google.cloud.notebooks.v1.StartInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Stops a notebook instance. + *+ */ + public void stopInstance( + com.google.cloud.notebooks.v1.StopInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Resets a notebook instance. + *+ */ + public void resetInstance( + com.google.cloud.notebooks.v1.ResetInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Allows notebook instances to + * report their latest instance information to the Notebooks + * API server. The server will merge the reported information to + * the instance metadata store. Do not use this method directly. + *+ */ + public void reportInstanceInfo( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request, + io.grpc.stub.StreamObserver
+ * Check if a notebook instance is upgradable. + *+ */ + public void isInstanceUpgradeable( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request, + io.grpc.stub.StreamObserver
+ * Check if a notebook instance is healthy. + *+ */ + public void getInstanceHealth( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest request, + io.grpc.stub.StreamObserver
+ * Upgrades a notebook instance to the latest version. + *+ */ + public void upgradeInstance( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Rollbacks a notebook instance to the previous version. + *+ */ + public void rollbackInstance( + com.google.cloud.notebooks.v1.RollbackInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a Diagnostic File and runs Diagnostic Tool given an Instance. + *+ */ + public void diagnoseInstance( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Allows notebook instances to + * call this endpoint to upgrade themselves. Do not use this method directly. + *+ */ + public void upgradeInstanceInternal( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request, + io.grpc.stub.StreamObserver
+ * Lists environments in a project. + *+ */ + public void listEnvironments( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Environment. + *+ */ + public void getEnvironment( + com.google.cloud.notebooks.v1.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Environment. + *+ */ + public void createEnvironment( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Environment. + *+ */ + public void deleteEnvironment( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver
+ * Lists schedules in a given project and location. + *+ */ + public void listSchedules( + com.google.cloud.notebooks.v1.ListSchedulesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of schedule + *+ */ + public void getSchedule( + com.google.cloud.notebooks.v1.GetScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Deletes schedule and all underlying jobs + *+ */ + public void deleteSchedule( + com.google.cloud.notebooks.v1.DeleteScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Scheduled Notebook in a given project and location. + *+ */ + public void createSchedule( + com.google.cloud.notebooks.v1.CreateScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Triggers execution of an existing schedule. + *+ */ + public void triggerSchedule( + com.google.cloud.notebooks.v1.TriggerScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Lists executions in a given project and location + *+ */ + public void listExecutions( + com.google.cloud.notebooks.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of executions + *+ */ + public void getExecution( + com.google.cloud.notebooks.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver
+ * Deletes execution + *+ */ + public void deleteExecution( + com.google.cloud.notebooks.v1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Execution in a given project and location. + *+ */ + public void createExecution( + com.google.cloud.notebooks.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver
+ * API v1 service for Cloud AI Platform Notebooks. + *+ */ + public static final class NotebookServiceStub + extends io.grpc.stub.AbstractAsyncStub
+ * Lists instances in a given project and location. + *+ */ + public void listInstances( + com.google.cloud.notebooks.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Instance. + *+ */ + public void getInstance( + com.google.cloud.notebooks.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Instance in a given project and location. + *+ */ + public void createInstance( + com.google.cloud.notebooks.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Registers an existing legacy notebook instance to the Notebooks API server. + * Legacy instances are instances created with the legacy Compute Engine + * calls. They are not manageable by the Notebooks API out of the box. This + * call makes these instances manageable by the Notebooks API. + *+ */ + public void registerInstance( + com.google.cloud.notebooks.v1.RegisterInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Updates the guest accelerators of a single Instance. + *+ */ + public void setInstanceAccelerator( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request, + io.grpc.stub.StreamObserver
+ * Updates the machine type of a single Instance. + *+ */ + public void setInstanceMachineType( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request, + io.grpc.stub.StreamObserver
+ * Update Notebook Instance configurations. + *+ */ + public void updateInstanceConfig( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request, + io.grpc.stub.StreamObserver
+ * Updates the Shielded instance configuration of a single Instance. + *+ */ + public void updateShieldedInstanceConfig( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request, + io.grpc.stub.StreamObserver
+ * Replaces all the labels of an Instance. + *+ */ + public void setInstanceLabels( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request, + io.grpc.stub.StreamObserver
+ * Add/update metadata items for an instance. + *+ */ + public void updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMetadataItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+ * Deletes a single Instance. + *+ */ + public void deleteInstance( + com.google.cloud.notebooks.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Starts a notebook instance. + *+ */ + public void startInstance( + com.google.cloud.notebooks.v1.StartInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Stops a notebook instance. + *+ */ + public void stopInstance( + com.google.cloud.notebooks.v1.StopInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Resets a notebook instance. + *+ */ + public void resetInstance( + com.google.cloud.notebooks.v1.ResetInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Allows notebook instances to + * report their latest instance information to the Notebooks + * API server. The server will merge the reported information to + * the instance metadata store. Do not use this method directly. + *+ */ + public void reportInstanceInfo( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request, + io.grpc.stub.StreamObserver
+ * Check if a notebook instance is upgradable. + *+ */ + public void isInstanceUpgradeable( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request, + io.grpc.stub.StreamObserver
+ * Check if a notebook instance is healthy. + *+ */ + public void getInstanceHealth( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest request, + io.grpc.stub.StreamObserver
+ * Upgrades a notebook instance to the latest version. + *+ */ + public void upgradeInstance( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Rollbacks a notebook instance to the previous version. + *+ */ + public void rollbackInstance( + com.google.cloud.notebooks.v1.RollbackInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a Diagnostic File and runs Diagnostic Tool given an Instance. + *+ */ + public void diagnoseInstance( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Allows notebook instances to + * call this endpoint to upgrade themselves. Do not use this method directly. + *+ */ + public void upgradeInstanceInternal( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request, + io.grpc.stub.StreamObserver
+ * Lists environments in a project. + *+ */ + public void listEnvironments( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Environment. + *+ */ + public void getEnvironment( + com.google.cloud.notebooks.v1.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Environment. + *+ */ + public void createEnvironment( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Environment. + *+ */ + public void deleteEnvironment( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver
+ * Lists schedules in a given project and location. + *+ */ + public void listSchedules( + com.google.cloud.notebooks.v1.ListSchedulesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of schedule + *+ */ + public void getSchedule( + com.google.cloud.notebooks.v1.GetScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Deletes schedule and all underlying jobs + *+ */ + public void deleteSchedule( + com.google.cloud.notebooks.v1.DeleteScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Scheduled Notebook in a given project and location. + *+ */ + public void createSchedule( + com.google.cloud.notebooks.v1.CreateScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Triggers execution of an existing schedule. + *+ */ + public void triggerSchedule( + com.google.cloud.notebooks.v1.TriggerScheduleRequest request, + io.grpc.stub.StreamObserver
+ * Lists executions in a given project and location + *+ */ + public void listExecutions( + com.google.cloud.notebooks.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of executions + *+ */ + public void getExecution( + com.google.cloud.notebooks.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver
+ * Deletes execution + *+ */ + public void deleteExecution( + com.google.cloud.notebooks.v1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Execution in a given project and location. + *+ */ + public void createExecution( + com.google.cloud.notebooks.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver
+ * API v1 service for Cloud AI Platform Notebooks. + *+ */ + public static final class NotebookServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * Lists instances in a given project and location. + *+ */ + public com.google.cloud.notebooks.v1.ListInstancesResponse listInstances( + com.google.cloud.notebooks.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single Instance. + *+ */ + public com.google.cloud.notebooks.v1.Instance getInstance( + com.google.cloud.notebooks.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new Instance in a given project and location. + *+ */ + public com.google.longrunning.Operation createInstance( + com.google.cloud.notebooks.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Registers an existing legacy notebook instance to the Notebooks API server. + * Legacy instances are instances created with the legacy Compute Engine + * calls. They are not manageable by the Notebooks API out of the box. This + * call makes these instances manageable by the Notebooks API. + *+ */ + public com.google.longrunning.Operation registerInstance( + com.google.cloud.notebooks.v1.RegisterInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates the guest accelerators of a single Instance. + *+ */ + public com.google.longrunning.Operation setInstanceAccelerator( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceAcceleratorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates the machine type of a single Instance. + *+ */ + public com.google.longrunning.Operation setInstanceMachineType( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceMachineTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Update Notebook Instance configurations. + *+ */ + public com.google.longrunning.Operation updateInstanceConfig( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates the Shielded instance configuration of a single Instance. + *+ */ + public com.google.longrunning.Operation updateShieldedInstanceConfig( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateShieldedInstanceConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Replaces all the labels of an Instance. + *+ */ + public com.google.longrunning.Operation setInstanceLabels( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceLabelsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Add/update metadata items for an instance. + *+ */ + public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMetadataItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single Instance. + *+ */ + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.notebooks.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Starts a notebook instance. + *+ */ + public com.google.longrunning.Operation startInstance( + com.google.cloud.notebooks.v1.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Stops a notebook instance. + *+ */ + public com.google.longrunning.Operation stopInstance( + com.google.cloud.notebooks.v1.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Resets a notebook instance. + *+ */ + public com.google.longrunning.Operation resetInstance( + com.google.cloud.notebooks.v1.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Allows notebook instances to + * report their latest instance information to the Notebooks + * API server. The server will merge the reported information to + * the instance metadata store. Do not use this method directly. + *+ */ + public com.google.longrunning.Operation reportInstanceInfo( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportInstanceInfoMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Check if a notebook instance is upgradable. + *+ */ + public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse isInstanceUpgradeable( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIsInstanceUpgradeableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Check if a notebook instance is healthy. + *+ */ + public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getInstanceHealth( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceHealthMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Upgrades a notebook instance to the latest version. + *+ */ + public com.google.longrunning.Operation upgradeInstance( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Rollbacks a notebook instance to the previous version. + *+ */ + public com.google.longrunning.Operation rollbackInstance( + com.google.cloud.notebooks.v1.RollbackInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a Diagnostic File and runs Diagnostic Tool given an Instance. + *+ */ + public com.google.longrunning.Operation diagnoseInstance( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiagnoseInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Allows notebook instances to + * call this endpoint to upgrade themselves. Do not use this method directly. + *+ */ + public com.google.longrunning.Operation upgradeInstanceInternal( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeInstanceInternalMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists environments in a project. + *+ */ + public com.google.cloud.notebooks.v1.ListEnvironmentsResponse listEnvironments( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single Environment. + *+ */ + public com.google.cloud.notebooks.v1.Environment getEnvironment( + com.google.cloud.notebooks.v1.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new Environment. + *+ */ + public com.google.longrunning.Operation createEnvironment( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single Environment. + *+ */ + public com.google.longrunning.Operation deleteEnvironment( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists schedules in a given project and location. + *+ */ + public com.google.cloud.notebooks.v1.ListSchedulesResponse listSchedules( + com.google.cloud.notebooks.v1.ListSchedulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchedulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of schedule + *+ */ + public com.google.cloud.notebooks.v1.Schedule getSchedule( + com.google.cloud.notebooks.v1.GetScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes schedule and all underlying jobs + *+ */ + public com.google.longrunning.Operation deleteSchedule( + com.google.cloud.notebooks.v1.DeleteScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new Scheduled Notebook in a given project and location. + *+ */ + public com.google.longrunning.Operation createSchedule( + com.google.cloud.notebooks.v1.CreateScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Triggers execution of an existing schedule. + *+ */ + public com.google.longrunning.Operation triggerSchedule( + com.google.cloud.notebooks.v1.TriggerScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTriggerScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists executions in a given project and location + *+ */ + public com.google.cloud.notebooks.v1.ListExecutionsResponse listExecutions( + com.google.cloud.notebooks.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of executions + *+ */ + public com.google.cloud.notebooks.v1.Execution getExecution( + com.google.cloud.notebooks.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes execution + *+ */ + public com.google.longrunning.Operation deleteExecution( + com.google.cloud.notebooks.v1.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new Execution in a given project and location. + *+ */ + public com.google.longrunning.Operation createExecution( + com.google.cloud.notebooks.v1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExecutionMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+ * API v1 service for Cloud AI Platform Notebooks. + *+ */ + public static final class NotebookServiceFutureStub + extends io.grpc.stub.AbstractFutureStub
+ * Lists instances in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListInstancesResponse> + listInstances(com.google.cloud.notebooks.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single Instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Instance> + getInstance(com.google.cloud.notebooks.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a new Instance in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Registers an existing legacy notebook instance to the Notebooks API server. + * Legacy instances are instances created with the legacy Compute Engine + * calls. They are not manageable by the Notebooks API out of the box. This + * call makes these instances manageable by the Notebooks API. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the guest accelerators of a single Instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the machine type of a single Instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Update Notebook Instance configurations. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the Shielded instance configuration of a single Instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Replaces all the labels of an Instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Add/update metadata items for an instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMetadataItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Deletes a single Instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Starts a notebook instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Stops a notebook instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Resets a notebook instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Allows notebook instances to + * report their latest instance information to the Notebooks + * API server. The server will merge the reported information to + * the instance metadata store. Do not use this method directly. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Check if a notebook instance is upgradable. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse> + isInstanceUpgradeable(com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Check if a notebook instance is healthy. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.GetInstanceHealthResponse> + getInstanceHealth(com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceHealthMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Upgrades a notebook instance to the latest version. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Rollbacks a notebook instance to the previous version. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a Diagnostic File and runs Diagnostic Tool given an Instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Allows notebook instances to + * call this endpoint to upgrade themselves. Do not use this method directly. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists environments in a project. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListEnvironmentsResponse> + listEnvironments(com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single Environment. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Environment> + getEnvironment(com.google.cloud.notebooks.v1.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a new Environment. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single Environment. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists schedules in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListSchedulesResponse> + listSchedules(com.google.cloud.notebooks.v1.ListSchedulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchedulesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of schedule + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Schedule> + getSchedule(com.google.cloud.notebooks.v1.GetScheduleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScheduleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Deletes schedule and all underlying jobs + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Scheduled Notebook in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Triggers execution of an existing schedule. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists executions in a given project and location + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListExecutionsResponse> + listExecutions(com.google.cloud.notebooks.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of executions + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Execution> + getExecution(com.google.cloud.notebooks.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Deletes execution + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Execution in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * API v1beta1 service for Cloud AI Platform Notebooks. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/notebooks/v1beta1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NotebookServiceGrpc { + + private NotebookServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.notebooks.v1beta1.NotebookService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListInstancesRequest, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.notebooks.v1beta1.ListInstancesRequest.class, + responseType = com.google.cloud.notebooks.v1beta1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListInstancesRequest, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListInstancesRequest, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + NotebookServiceGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + .