Class GrpcAssuredWorkloadsServiceStub (2.28.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

Static Methods

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

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

analyzeWorkloadMoveCallable()

public UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse> analyzeWorkloadMoveCallable()
Returns
TypeDescription
UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse>
Overrides

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

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

restrictAllowedResourcesCallable()

public UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()
Returns
TypeDescription
UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateWorkloadCallable()

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