Class GrpcManagedNotebookServiceStub (1.10.0)

public class GrpcManagedNotebookServiceStub extends ManagedNotebookServiceStub

gRPC stub implementation for the ManagedNotebookService service API.

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

Inheritance

java.lang.Object > ManagedNotebookServiceStub > GrpcManagedNotebookServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcManagedNotebookServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcManagedNotebookServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcManagedNotebookServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcManagedNotebookServiceStub
Exceptions
TypeDescription
IOException

create(ManagedNotebookServiceStubSettings settings)

public static final GrpcManagedNotebookServiceStub create(ManagedNotebookServiceStubSettings settings)
Parameter
NameDescription
settingsManagedNotebookServiceStubSettings
Returns
TypeDescription
GrpcManagedNotebookServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext)

protected GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcManagedNotebookServiceStub, 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
NameDescription
settingsManagedNotebookServiceStubSettings
clientContextClientContext

GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcManagedNotebookServiceStub(ManagedNotebookServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcManagedNotebookServiceStub, 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
NameDescription
settingsManagedNotebookServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createRuntimeCallable()

public UnaryCallable<CreateRuntimeRequest,Operation> createRuntimeCallable()
Returns
TypeDescription
UnaryCallable<CreateRuntimeRequest,Operation>
Overrides

createRuntimeOperationCallable()

public OperationCallable<CreateRuntimeRequest,Runtime,OperationMetadata> createRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<CreateRuntimeRequest,Runtime,OperationMetadata>
Overrides

deleteRuntimeCallable()

public UnaryCallable<DeleteRuntimeRequest,Operation> deleteRuntimeCallable()
Returns
TypeDescription
UnaryCallable<DeleteRuntimeRequest,Operation>
Overrides

deleteRuntimeOperationCallable()

public OperationCallable<DeleteRuntimeRequest,Empty,OperationMetadata> deleteRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRuntimeRequest,Empty,OperationMetadata>
Overrides

diagnoseRuntimeCallable()

public UnaryCallable<DiagnoseRuntimeRequest,Operation> diagnoseRuntimeCallable()
Returns
TypeDescription
UnaryCallable<DiagnoseRuntimeRequest,Operation>
Overrides

diagnoseRuntimeOperationCallable()

public OperationCallable<DiagnoseRuntimeRequest,Runtime,OperationMetadata> diagnoseRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<DiagnoseRuntimeRequest,Runtime,OperationMetadata>
Overrides

getIamPolicyCallable()

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getRuntimeCallable()

public UnaryCallable<GetRuntimeRequest,Runtime> getRuntimeCallable()
Returns
TypeDescription
UnaryCallable<GetRuntimeRequest,Runtime>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ManagedNotebookServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listRuntimesCallable()

public UnaryCallable<ListRuntimesRequest,ListRuntimesResponse> listRuntimesCallable()
Returns
TypeDescription
UnaryCallable<ListRuntimesRequest,ListRuntimesResponse>
Overrides

listRuntimesPagedCallable()

public UnaryCallable<ListRuntimesRequest,ManagedNotebookServiceClient.ListRuntimesPagedResponse> listRuntimesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRuntimesRequest,ListRuntimesPagedResponse>
Overrides

refreshRuntimeTokenInternalCallable()

public UnaryCallable<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse> refreshRuntimeTokenInternalCallable()
Returns
TypeDescription
UnaryCallable<RefreshRuntimeTokenInternalRequest,RefreshRuntimeTokenInternalResponse>
Overrides

reportRuntimeEventCallable()

public UnaryCallable<ReportRuntimeEventRequest,Operation> reportRuntimeEventCallable()
Returns
TypeDescription
UnaryCallable<ReportRuntimeEventRequest,Operation>
Overrides

reportRuntimeEventOperationCallable()

public OperationCallable<ReportRuntimeEventRequest,Runtime,OperationMetadata> reportRuntimeEventOperationCallable()
Returns
TypeDescription
OperationCallable<ReportRuntimeEventRequest,Runtime,OperationMetadata>
Overrides

resetRuntimeCallable()

public UnaryCallable<ResetRuntimeRequest,Operation> resetRuntimeCallable()
Returns
TypeDescription
UnaryCallable<ResetRuntimeRequest,Operation>
Overrides

resetRuntimeOperationCallable()

public OperationCallable<ResetRuntimeRequest,Runtime,OperationMetadata> resetRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<ResetRuntimeRequest,Runtime,OperationMetadata>
Overrides

setIamPolicyCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startRuntimeCallable()

public UnaryCallable<StartRuntimeRequest,Operation> startRuntimeCallable()
Returns
TypeDescription
UnaryCallable<StartRuntimeRequest,Operation>
Overrides

startRuntimeOperationCallable()

public OperationCallable<StartRuntimeRequest,Runtime,OperationMetadata> startRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<StartRuntimeRequest,Runtime,OperationMetadata>
Overrides

stopRuntimeCallable()

public UnaryCallable<StopRuntimeRequest,Operation> stopRuntimeCallable()
Returns
TypeDescription
UnaryCallable<StopRuntimeRequest,Operation>
Overrides

stopRuntimeOperationCallable()

public OperationCallable<StopRuntimeRequest,Runtime,OperationMetadata> stopRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<StopRuntimeRequest,Runtime,OperationMetadata>
Overrides

switchRuntimeCallable()

public UnaryCallable<SwitchRuntimeRequest,Operation> switchRuntimeCallable()
Returns
TypeDescription
UnaryCallable<SwitchRuntimeRequest,Operation>
Overrides

switchRuntimeOperationCallable()

public OperationCallable<SwitchRuntimeRequest,Runtime,OperationMetadata> switchRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<SwitchRuntimeRequest,Runtime,OperationMetadata>
Overrides

testIamPermissionsCallable()

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

updateRuntimeCallable()

public UnaryCallable<UpdateRuntimeRequest,Operation> updateRuntimeCallable()
Returns
TypeDescription
UnaryCallable<UpdateRuntimeRequest,Operation>
Overrides

updateRuntimeOperationCallable()

public OperationCallable<UpdateRuntimeRequest,Runtime,OperationMetadata> updateRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateRuntimeRequest,Runtime,OperationMetadata>
Overrides

upgradeRuntimeCallable()

public UnaryCallable<UpgradeRuntimeRequest,Operation> upgradeRuntimeCallable()
Returns
TypeDescription
UnaryCallable<UpgradeRuntimeRequest,Operation>
Overrides

upgradeRuntimeOperationCallable()

public OperationCallable<UpgradeRuntimeRequest,Runtime,OperationMetadata> upgradeRuntimeOperationCallable()
Returns
TypeDescription
OperationCallable<UpgradeRuntimeRequest,Runtime,OperationMetadata>
Overrides