Class GrpcNotebookServiceStub (3.45.0)

public class GrpcNotebookServiceStub extends NotebookServiceStub

gRPC stub implementation for the NotebookService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > NotebookServiceStub > GrpcNotebookServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcNotebookServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcNotebookServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcNotebookServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcNotebookServiceStub
Exceptions
Type Description
IOException

create(NotebookServiceStubSettings settings)

public static final GrpcNotebookServiceStub create(NotebookServiceStubSettings settings)
Parameter
Name Description
settings NotebookServiceStubSettings
Returns
Type Description
GrpcNotebookServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext)

protected GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcNotebookServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings NotebookServiceStubSettings
clientContext ClientContext

GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcNotebookServiceStub(NotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcNotebookServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings NotebookServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

assignNotebookRuntimeCallable()

public UnaryCallable<AssignNotebookRuntimeRequest,Operation> assignNotebookRuntimeCallable()
Returns
Type Description
UnaryCallable<AssignNotebookRuntimeRequest,Operation>
Overrides

assignNotebookRuntimeOperationCallable()

public OperationCallable<AssignNotebookRuntimeRequest,NotebookRuntime,AssignNotebookRuntimeOperationMetadata> assignNotebookRuntimeOperationCallable()
Returns
Type Description
OperationCallable<AssignNotebookRuntimeRequest,NotebookRuntime,AssignNotebookRuntimeOperationMetadata>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createNotebookRuntimeTemplateCallable()

public UnaryCallable<CreateNotebookRuntimeTemplateRequest,Operation> createNotebookRuntimeTemplateCallable()
Returns
Type Description
UnaryCallable<CreateNotebookRuntimeTemplateRequest,Operation>
Overrides

createNotebookRuntimeTemplateOperationCallable()

public OperationCallable<CreateNotebookRuntimeTemplateRequest,NotebookRuntimeTemplate,CreateNotebookRuntimeTemplateOperationMetadata> createNotebookRuntimeTemplateOperationCallable()
Returns
Type Description
OperationCallable<CreateNotebookRuntimeTemplateRequest,NotebookRuntimeTemplate,CreateNotebookRuntimeTemplateOperationMetadata>
Overrides

deleteNotebookRuntimeCallable()

public UnaryCallable<DeleteNotebookRuntimeRequest,Operation> deleteNotebookRuntimeCallable()
Returns
Type Description
UnaryCallable<DeleteNotebookRuntimeRequest,Operation>
Overrides

deleteNotebookRuntimeOperationCallable()

public OperationCallable<DeleteNotebookRuntimeRequest,Empty,DeleteOperationMetadata> deleteNotebookRuntimeOperationCallable()
Returns
Type Description
OperationCallable<DeleteNotebookRuntimeRequest,Empty,DeleteOperationMetadata>
Overrides

deleteNotebookRuntimeTemplateCallable()

public UnaryCallable<DeleteNotebookRuntimeTemplateRequest,Operation> deleteNotebookRuntimeTemplateCallable()
Returns
Type Description
UnaryCallable<DeleteNotebookRuntimeTemplateRequest,Operation>
Overrides

deleteNotebookRuntimeTemplateOperationCallable()

public OperationCallable<DeleteNotebookRuntimeTemplateRequest,Empty,DeleteOperationMetadata> deleteNotebookRuntimeTemplateOperationCallable()
Returns
Type Description
OperationCallable<DeleteNotebookRuntimeTemplateRequest,Empty,DeleteOperationMetadata>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getNotebookRuntimeCallable()

public UnaryCallable<GetNotebookRuntimeRequest,NotebookRuntime> getNotebookRuntimeCallable()
Returns
Type Description
UnaryCallable<GetNotebookRuntimeRequest,NotebookRuntime>
Overrides

getNotebookRuntimeTemplateCallable()

public UnaryCallable<GetNotebookRuntimeTemplateRequest,NotebookRuntimeTemplate> getNotebookRuntimeTemplateCallable()
Returns
Type Description
UnaryCallable<GetNotebookRuntimeTemplateRequest,NotebookRuntimeTemplate>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,NotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listNotebookRuntimeTemplatesCallable()

public UnaryCallable<ListNotebookRuntimeTemplatesRequest,ListNotebookRuntimeTemplatesResponse> listNotebookRuntimeTemplatesCallable()
Returns
Type Description
UnaryCallable<ListNotebookRuntimeTemplatesRequest,ListNotebookRuntimeTemplatesResponse>
Overrides

listNotebookRuntimeTemplatesPagedCallable()

public UnaryCallable<ListNotebookRuntimeTemplatesRequest,NotebookServiceClient.ListNotebookRuntimeTemplatesPagedResponse> listNotebookRuntimeTemplatesPagedCallable()
Returns
Type Description
UnaryCallable<ListNotebookRuntimeTemplatesRequest,ListNotebookRuntimeTemplatesPagedResponse>
Overrides

listNotebookRuntimesCallable()

public UnaryCallable<ListNotebookRuntimesRequest,ListNotebookRuntimesResponse> listNotebookRuntimesCallable()
Returns
Type Description
UnaryCallable<ListNotebookRuntimesRequest,ListNotebookRuntimesResponse>
Overrides

listNotebookRuntimesPagedCallable()

public UnaryCallable<ListNotebookRuntimesRequest,NotebookServiceClient.ListNotebookRuntimesPagedResponse> listNotebookRuntimesPagedCallable()
Returns
Type Description
UnaryCallable<ListNotebookRuntimesRequest,ListNotebookRuntimesPagedResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startNotebookRuntimeCallable()

public UnaryCallable<StartNotebookRuntimeRequest,Operation> startNotebookRuntimeCallable()
Returns
Type Description
UnaryCallable<StartNotebookRuntimeRequest,Operation>
Overrides

startNotebookRuntimeOperationCallable()

public OperationCallable<StartNotebookRuntimeRequest,StartNotebookRuntimeResponse,StartNotebookRuntimeOperationMetadata> startNotebookRuntimeOperationCallable()
Returns
Type Description
OperationCallable<StartNotebookRuntimeRequest,StartNotebookRuntimeResponse,StartNotebookRuntimeOperationMetadata>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

upgradeNotebookRuntimeCallable()

public UnaryCallable<UpgradeNotebookRuntimeRequest,Operation> upgradeNotebookRuntimeCallable()
Returns
Type Description
UnaryCallable<UpgradeNotebookRuntimeRequest,Operation>
Overrides

upgradeNotebookRuntimeOperationCallable()

public OperationCallable<UpgradeNotebookRuntimeRequest,UpgradeNotebookRuntimeResponse,UpgradeNotebookRuntimeOperationMetadata> upgradeNotebookRuntimeOperationCallable()
Returns
Type Description
OperationCallable<UpgradeNotebookRuntimeRequest,UpgradeNotebookRuntimeResponse,UpgradeNotebookRuntimeOperationMetadata>
Overrides