All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.notebooks.v1.ManagedNotebookServiceGrpc Maven / Gradle / Ivy

The newest version!
/*
 * 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.notebooks.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * 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 java.lang.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 . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.ListRuntimesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.ListRuntimesResponse .getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("ListRuntimes")) .build(); } } } return getListRuntimesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.GetRuntimeRequest, com.google.cloud.notebooks.v1.Runtime> getGetRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetRuntime", requestType = com.google.cloud.notebooks.v1.GetRuntimeRequest.class, responseType = com.google.cloud.notebooks.v1.Runtime.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.GetRuntimeRequest, com.google.cloud.notebooks.v1.Runtime> getGetRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.GetRuntimeRequest, com.google.cloud.notebooks.v1.Runtime> getGetRuntimeMethod; if ((getGetRuntimeMethod = ManagedNotebookServiceGrpc.getGetRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getGetRuntimeMethod = ManagedNotebookServiceGrpc.getGetRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getGetRuntimeMethod = getGetRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.GetRuntimeRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.Runtime.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("GetRuntime")) .build(); } } } return getGetRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.CreateRuntimeRequest, com.google.longrunning.Operation> getCreateRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateRuntime", requestType = com.google.cloud.notebooks.v1.CreateRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.CreateRuntimeRequest, com.google.longrunning.Operation> getCreateRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.CreateRuntimeRequest, com.google.longrunning.Operation> getCreateRuntimeMethod; if ((getCreateRuntimeMethod = ManagedNotebookServiceGrpc.getCreateRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getCreateRuntimeMethod = ManagedNotebookServiceGrpc.getCreateRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getCreateRuntimeMethod = getCreateRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.CreateRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("CreateRuntime")) .build(); } } } return getCreateRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.UpdateRuntimeRequest, com.google.longrunning.Operation> getUpdateRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateRuntime", requestType = com.google.cloud.notebooks.v1.UpdateRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.UpdateRuntimeRequest, com.google.longrunning.Operation> getUpdateRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.UpdateRuntimeRequest, com.google.longrunning.Operation> getUpdateRuntimeMethod; if ((getUpdateRuntimeMethod = ManagedNotebookServiceGrpc.getUpdateRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getUpdateRuntimeMethod = ManagedNotebookServiceGrpc.getUpdateRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getUpdateRuntimeMethod = getUpdateRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.UpdateRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("UpdateRuntime")) .build(); } } } return getUpdateRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.DeleteRuntimeRequest, com.google.longrunning.Operation> getDeleteRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteRuntime", requestType = com.google.cloud.notebooks.v1.DeleteRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.DeleteRuntimeRequest, com.google.longrunning.Operation> getDeleteRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.DeleteRuntimeRequest, com.google.longrunning.Operation> getDeleteRuntimeMethod; if ((getDeleteRuntimeMethod = ManagedNotebookServiceGrpc.getDeleteRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getDeleteRuntimeMethod = ManagedNotebookServiceGrpc.getDeleteRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getDeleteRuntimeMethod = getDeleteRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.DeleteRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("DeleteRuntime")) .build(); } } } return getDeleteRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.StartRuntimeRequest, com.google.longrunning.Operation> getStartRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StartRuntime", requestType = com.google.cloud.notebooks.v1.StartRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.StartRuntimeRequest, com.google.longrunning.Operation> getStartRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.StartRuntimeRequest, com.google.longrunning.Operation> getStartRuntimeMethod; if ((getStartRuntimeMethod = ManagedNotebookServiceGrpc.getStartRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getStartRuntimeMethod = ManagedNotebookServiceGrpc.getStartRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getStartRuntimeMethod = getStartRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.StartRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("StartRuntime")) .build(); } } } return getStartRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.StopRuntimeRequest, com.google.longrunning.Operation> getStopRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StopRuntime", requestType = com.google.cloud.notebooks.v1.StopRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.StopRuntimeRequest, com.google.longrunning.Operation> getStopRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.StopRuntimeRequest, com.google.longrunning.Operation> getStopRuntimeMethod; if ((getStopRuntimeMethod = ManagedNotebookServiceGrpc.getStopRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getStopRuntimeMethod = ManagedNotebookServiceGrpc.getStopRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getStopRuntimeMethod = getStopRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.StopRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("StopRuntime")) .build(); } } } return getStopRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.SwitchRuntimeRequest, com.google.longrunning.Operation> getSwitchRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SwitchRuntime", requestType = com.google.cloud.notebooks.v1.SwitchRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.SwitchRuntimeRequest, com.google.longrunning.Operation> getSwitchRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.SwitchRuntimeRequest, com.google.longrunning.Operation> getSwitchRuntimeMethod; if ((getSwitchRuntimeMethod = ManagedNotebookServiceGrpc.getSwitchRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getSwitchRuntimeMethod = ManagedNotebookServiceGrpc.getSwitchRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getSwitchRuntimeMethod = getSwitchRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SwitchRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.SwitchRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("SwitchRuntime")) .build(); } } } return getSwitchRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.ResetRuntimeRequest, com.google.longrunning.Operation> getResetRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ResetRuntime", requestType = com.google.cloud.notebooks.v1.ResetRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.ResetRuntimeRequest, com.google.longrunning.Operation> getResetRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.ResetRuntimeRequest, com.google.longrunning.Operation> getResetRuntimeMethod; if ((getResetRuntimeMethod = ManagedNotebookServiceGrpc.getResetRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getResetRuntimeMethod = ManagedNotebookServiceGrpc.getResetRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getResetRuntimeMethod = getResetRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.ResetRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("ResetRuntime")) .build(); } } } return getResetRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, com.google.longrunning.Operation> getUpgradeRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpgradeRuntime", requestType = com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, com.google.longrunning.Operation> getUpgradeRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, com.google.longrunning.Operation> getUpgradeRuntimeMethod; if ((getUpgradeRuntimeMethod = ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getUpgradeRuntimeMethod = ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod = getUpgradeRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.UpgradeRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("UpgradeRuntime")) .build(); } } } return getUpgradeRuntimeMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, com.google.longrunning.Operation> getReportRuntimeEventMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ReportRuntimeEvent", requestType = com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, com.google.longrunning.Operation> getReportRuntimeEventMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, com.google.longrunning.Operation> getReportRuntimeEventMethod; if ((getReportRuntimeEventMethod = ManagedNotebookServiceGrpc.getReportRuntimeEventMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getReportRuntimeEventMethod = ManagedNotebookServiceGrpc.getReportRuntimeEventMethod) == null) { ManagedNotebookServiceGrpc.getReportRuntimeEventMethod = getReportRuntimeEventMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportRuntimeEvent")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.ReportRuntimeEventRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("ReportRuntimeEvent")) .build(); } } } return getReportRuntimeEventMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> getRefreshRuntimeTokenInternalMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RefreshRuntimeTokenInternal", requestType = com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.class, responseType = com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> getRefreshRuntimeTokenInternalMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> getRefreshRuntimeTokenInternalMethod; if ((getRefreshRuntimeTokenInternalMethod = ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getRefreshRuntimeTokenInternalMethod = ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod) == null) { ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod = getRefreshRuntimeTokenInternalMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "RefreshRuntimeTokenInternal")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse .getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier( "RefreshRuntimeTokenInternal")) .build(); } } } return getRefreshRuntimeTokenInternalMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, com.google.longrunning.Operation> getDiagnoseRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DiagnoseRuntime", requestType = com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, com.google.longrunning.Operation> getDiagnoseRuntimeMethod() { io.grpc.MethodDescriptor< com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, com.google.longrunning.Operation> getDiagnoseRuntimeMethod; if ((getDiagnoseRuntimeMethod = ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod) == null) { synchronized (ManagedNotebookServiceGrpc.class) { if ((getDiagnoseRuntimeMethod = ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod) == null) { ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod = getDiagnoseRuntimeMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new ManagedNotebookServiceMethodDescriptorSupplier("DiagnoseRuntime")) .build(); } } } return getDiagnoseRuntimeMethod; } /** Creates a new async stub that supports all call types for the service */ public static ManagedNotebookServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ManagedNotebookServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ManagedNotebookServiceStub(channel, callOptions); } }; return ManagedNotebookServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ManagedNotebookServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ManagedNotebookServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ManagedNotebookServiceBlockingStub(channel, callOptions); } }; return ManagedNotebookServiceBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ManagedNotebookServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ManagedNotebookServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ManagedNotebookServiceFutureStub(channel, callOptions); } }; return ManagedNotebookServiceFutureStub.newStub(factory, channel); } /** * * *
   * API v1 service for Managed Notebooks.
   * 
*/ public interface AsyncService { /** * * *
     * Lists Runtimes in a given project and location.
     * 
*/ default void listRuntimes( com.google.cloud.notebooks.v1.ListRuntimesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListRuntimesMethod(), responseObserver); } /** * * *
     * Gets details of a single Runtime. The location must be a regional endpoint
     * rather than zonal.
     * 
*/ default void getRuntime( com.google.cloud.notebooks.v1.GetRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuntimeMethod(), responseObserver); } /** * * *
     * Creates a new Runtime in a given project and location.
     * 
*/ default void createRuntime( com.google.cloud.notebooks.v1.CreateRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateRuntimeMethod(), responseObserver); } /** * * *
     * Update Notebook Runtime configuration.
     * 
*/ default void updateRuntime( com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateRuntimeMethod(), responseObserver); } /** * * *
     * Deletes a single Runtime.
     * 
*/ default void deleteRuntime( com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteRuntimeMethod(), responseObserver); } /** * * *
     * 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
     * 
*/ default void startRuntime( com.google.cloud.notebooks.v1.StartRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStartRuntimeMethod(), responseObserver); } /** * * *
     * 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
     * 
*/ default void stopRuntime( com.google.cloud.notebooks.v1.StopRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStopRuntimeMethod(), responseObserver); } /** * * *
     * Switch a Managed Notebook Runtime.
     * 
*/ default void switchRuntime( com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getSwitchRuntimeMethod(), responseObserver); } /** * * *
     * Resets a Managed Notebook Runtime.
     * 
*/ default void resetRuntime( com.google.cloud.notebooks.v1.ResetRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getResetRuntimeMethod(), responseObserver); } /** * * *
     * Upgrades a Managed Notebook Runtime to the latest version.
     * 
*/ default void upgradeRuntime( com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpgradeRuntimeMethod(), responseObserver); } /** * * *
     * Report and process a runtime event.
     * 
*/ default void reportRuntimeEvent( com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getReportRuntimeEventMethod(), responseObserver); } /** * * *
     * Gets an access token for the consumer service account that the customer
     * attached to the runtime. Only accessible from the tenant instance.
     * 
*/ default 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.
     * 
*/ default void diagnoseRuntime( com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDiagnoseRuntimeMethod(), responseObserver); } } /** * Base class for the server implementation of the service ManagedNotebookService. * *
   * API v1 service for Managed Notebooks.
   * 
*/ public abstract static class ManagedNotebookServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return ManagedNotebookServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ManagedNotebookService. * *
   * API v1 service for Managed Notebooks.
   * 
*/ public static final class ManagedNotebookServiceStub extends io.grpc.stub.AbstractAsyncStub { private ManagedNotebookServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ManagedNotebookServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ManagedNotebookServiceStub(channel, callOptions); } /** * * *
     * Lists Runtimes in a given project and location.
     * 
*/ public void listRuntimes( com.google.cloud.notebooks.v1.ListRuntimesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * 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 responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a new Runtime in a given project and location.
     * 
*/ public void createRuntime( com.google.cloud.notebooks.v1.CreateRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Update Notebook Runtime configuration.
     * 
*/ public void updateRuntime( com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a single Runtime.
     * 
*/ public void deleteRuntime( com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * 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 responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getStartRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * 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 responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getStopRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Switch a Managed Notebook Runtime.
     * 
*/ public void switchRuntime( com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSwitchRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Resets a Managed Notebook Runtime.
     * 
*/ public void resetRuntime( com.google.cloud.notebooks.v1.ResetRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResetRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Upgrades a Managed Notebook Runtime to the latest version.
     * 
*/ public void upgradeRuntime( com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpgradeRuntimeMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Report and process a runtime event.
     * 
*/ public void reportRuntimeEvent( com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReportRuntimeEventMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * 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 responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDiagnoseRuntimeMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service ManagedNotebookService. * *
   * API v1 service for Managed Notebooks.
   * 
*/ public static final class ManagedNotebookServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ManagedNotebookServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ManagedNotebookServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ManagedNotebookServiceBlockingStub(channel, callOptions); } /** * * *
     * 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); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service * ManagedNotebookService. * *
   * API v1 service for Managed Notebooks.
   * 
*/ public static final class ManagedNotebookServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ManagedNotebookServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ManagedNotebookServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ManagedNotebookServiceFutureStub(channel, callOptions); } /** * * *
     * 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 getRuntime(com.google.cloud.notebooks.v1.GetRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetRuntimeMethod(), getCallOptions()), request); } /** * * *
     * Creates a new Runtime in a given project and location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createRuntime(com.google.cloud.notebooks.v1.CreateRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateRuntimeMethod(), getCallOptions()), request); } /** * * *
     * Update Notebook Runtime configuration.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateRuntime(com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateRuntimeMethod(), getCallOptions()), request); } /** * * *
     * Deletes a single Runtime.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteRuntime(com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(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.common.util.concurrent.ListenableFuture startRuntime(com.google.cloud.notebooks.v1.StartRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(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.common.util.concurrent.ListenableFuture stopRuntime(com.google.cloud.notebooks.v1.StopRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStopRuntimeMethod(), getCallOptions()), request); } /** * * *
     * Switch a Managed Notebook Runtime.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture switchRuntime(com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSwitchRuntimeMethod(), getCallOptions()), request); } /** * * *
     * Resets a Managed Notebook Runtime.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture resetRuntime(com.google.cloud.notebooks.v1.ResetRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResetRuntimeMethod(), getCallOptions()), request); } /** * * *
     * Upgrades a Managed Notebook Runtime to the latest version.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture upgradeRuntime(com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpgradeRuntimeMethod(), getCallOptions()), request); } /** * * *
     * Report and process a runtime event.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture reportRuntimeEvent(com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(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.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 diagnoseRuntime(com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDiagnoseRuntimeMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_RUNTIMES = 0; private static final int METHODID_GET_RUNTIME = 1; private static final int METHODID_CREATE_RUNTIME = 2; private static final int METHODID_UPDATE_RUNTIME = 3; private static final int METHODID_DELETE_RUNTIME = 4; private static final int METHODID_START_RUNTIME = 5; private static final int METHODID_STOP_RUNTIME = 6; private static final int METHODID_SWITCH_RUNTIME = 7; private static final int METHODID_RESET_RUNTIME = 8; private static final int METHODID_UPGRADE_RUNTIME = 9; private static final int METHODID_REPORT_RUNTIME_EVENT = 10; private static final int METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL = 11; private static final int METHODID_DIAGNOSE_RUNTIME = 12; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_RUNTIMES: serviceImpl.listRuntimes( (com.google.cloud.notebooks.v1.ListRuntimesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_RUNTIME: serviceImpl.getRuntime( (com.google.cloud.notebooks.v1.GetRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_RUNTIME: serviceImpl.createRuntime( (com.google.cloud.notebooks.v1.CreateRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_RUNTIME: serviceImpl.updateRuntime( (com.google.cloud.notebooks.v1.UpdateRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_RUNTIME: serviceImpl.deleteRuntime( (com.google.cloud.notebooks.v1.DeleteRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_START_RUNTIME: serviceImpl.startRuntime( (com.google.cloud.notebooks.v1.StartRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_STOP_RUNTIME: serviceImpl.stopRuntime( (com.google.cloud.notebooks.v1.StopRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SWITCH_RUNTIME: serviceImpl.switchRuntime( (com.google.cloud.notebooks.v1.SwitchRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESET_RUNTIME: serviceImpl.resetRuntime( (com.google.cloud.notebooks.v1.ResetRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPGRADE_RUNTIME: serviceImpl.upgradeRuntime( (com.google.cloud.notebooks.v1.UpgradeRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REPORT_RUNTIME_EVENT: serviceImpl.reportRuntimeEvent( (com.google.cloud.notebooks.v1.ReportRuntimeEventRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL: serviceImpl.refreshRuntimeTokenInternal( (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse>) responseObserver); break; case METHODID_DIAGNOSE_RUNTIME: serviceImpl.diagnoseRuntime( (com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListRuntimesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.ListRuntimesRequest, com.google.cloud.notebooks.v1.ListRuntimesResponse>( service, METHODID_LIST_RUNTIMES))) .addMethod( getGetRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.GetRuntimeRequest, com.google.cloud.notebooks.v1.Runtime>(service, METHODID_GET_RUNTIME))) .addMethod( getCreateRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.CreateRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_RUNTIME))) .addMethod( getUpdateRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.UpdateRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_RUNTIME))) .addMethod( getDeleteRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.DeleteRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_RUNTIME))) .addMethod( getStartRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.StartRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_START_RUNTIME))) .addMethod( getStopRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.StopRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_STOP_RUNTIME))) .addMethod( getSwitchRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.SwitchRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_SWITCH_RUNTIME))) .addMethod( getResetRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.ResetRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_RESET_RUNTIME))) .addMethod( getUpgradeRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_UPGRADE_RUNTIME))) .addMethod( getReportRuntimeEventMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, com.google.longrunning.Operation>(service, METHODID_REPORT_RUNTIME_EVENT))) .addMethod( getRefreshRuntimeTokenInternalMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse>( service, METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL))) .addMethod( getDiagnoseRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, com.google.longrunning.Operation>(service, METHODID_DIAGNOSE_RUNTIME))) .build(); } private abstract static class ManagedNotebookServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ManagedNotebookServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.notebooks.v1.ManagedNotebooksProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ManagedNotebookService"); } } private static final class ManagedNotebookServiceFileDescriptorSupplier extends ManagedNotebookServiceBaseDescriptorSupplier { ManagedNotebookServiceFileDescriptorSupplier() {} } private static final class ManagedNotebookServiceMethodDescriptorSupplier extends ManagedNotebookServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; ManagedNotebookServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (ManagedNotebookServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ManagedNotebookServiceFileDescriptorSupplier()) .addMethod(getListRuntimesMethod()) .addMethod(getGetRuntimeMethod()) .addMethod(getCreateRuntimeMethod()) .addMethod(getUpdateRuntimeMethod()) .addMethod(getDeleteRuntimeMethod()) .addMethod(getStartRuntimeMethod()) .addMethod(getStopRuntimeMethod()) .addMethod(getSwitchRuntimeMethod()) .addMethod(getResetRuntimeMethod()) .addMethod(getUpgradeRuntimeMethod()) .addMethod(getReportRuntimeEventMethod()) .addMethod(getRefreshRuntimeTokenInternalMethod()) .addMethod(getDiagnoseRuntimeMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy