Class GrpcAssuredWorkloadsServiceStub (0.9.0)

public class GrpcAssuredWorkloadsServiceStub extends AssuredWorkloadsServiceStub

gRPC stub implementation for the AssuredWorkloadsService service API.

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

Inheritance

java.lang.Object > AssuredWorkloadsServiceStub > GrpcAssuredWorkloadsServiceStub

Constructors

GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext)

protected GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcAssuredWorkloadsServiceStub, 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
settingsAssuredWorkloadsServiceStubSettings
clientContextClientContext

GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcAssuredWorkloadsServiceStub, 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
settingsAssuredWorkloadsServiceStubSettings
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

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(AssuredWorkloadsServiceStubSettings settings)

public static final GrpcAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings)
Parameter
NameDescription
settingsAssuredWorkloadsServiceStubSettings
Returns
TypeDescription
GrpcAssuredWorkloadsServiceStub
Exceptions
TypeDescription
IOException

createWorkloadCallable()

public UnaryCallable<CreateWorkloadRequest,Operation> createWorkloadCallable()
Returns
TypeDescription
UnaryCallable<CreateWorkloadRequest,Operation>
Overrides

createWorkloadOperationCallable()

public OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata> createWorkloadOperationCallable()
Returns
TypeDescription
OperationCallable<CreateWorkloadRequest,Workload,CreateWorkloadOperationMetadata>
Overrides

deleteWorkloadCallable()

public UnaryCallable<DeleteWorkloadRequest,Empty> deleteWorkloadCallable()
Returns
TypeDescription
UnaryCallable<DeleteWorkloadRequest,Empty>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getWorkloadCallable()

public UnaryCallable<GetWorkloadRequest,Workload> getWorkloadCallable()
Returns
TypeDescription
UnaryCallable<GetWorkloadRequest,Workload>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listWorkloadsCallable()

public UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse> listWorkloadsCallable()
Returns
TypeDescription
UnaryCallable<ListWorkloadsRequest,ListWorkloadsResponse>
Overrides

listWorkloadsPagedCallable()

public UnaryCallable<ListWorkloadsRequest,AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListWorkloadsRequest,ListWorkloadsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateWorkloadCallable()

public UnaryCallable<UpdateWorkloadRequest,Workload> updateWorkloadCallable()
Returns
TypeDescription
UnaryCallable<UpdateWorkloadRequest,Workload>
Overrides