Class GrpcAssuredWorkloadsServiceStub
java.lang.Object
com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStub
com.google.cloud.assuredworkloads.v1beta1.stub.GrpcAssuredWorkloadsServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcAssuredWorkloadsServiceStub, using the given settings.protectedGrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcAssuredWorkloadsServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcAssuredWorkloadsServiceStubcreate(ClientContext clientContext) static final GrpcAssuredWorkloadsServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcAssuredWorkloadsServiceStubcreate(AssuredWorkloadsServiceStubSettings settings) UnaryCallable<DeleteWorkloadRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.assuredworkloads.v1beta1.stub.AssuredWorkloadsServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcAssuredWorkloadsServiceStub
protected GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcAssuredWorkloadsServiceStub
protected GrpcAssuredWorkloadsServiceStub(AssuredWorkloadsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcAssuredWorkloadsServiceStub create(AssuredWorkloadsServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcAssuredWorkloadsServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcAssuredWorkloadsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classAssuredWorkloadsServiceStub
-
createWorkloadCallable
- Overrides:
createWorkloadCallablein classAssuredWorkloadsServiceStub
-
createWorkloadOperationCallable
public OperationCallable<CreateWorkloadRequest,Workload, createWorkloadOperationCallable()CreateWorkloadOperationMetadata> - Overrides:
createWorkloadOperationCallablein classAssuredWorkloadsServiceStub
-
updateWorkloadCallable
- Overrides:
updateWorkloadCallablein classAssuredWorkloadsServiceStub
-
restrictAllowedResourcesCallable
public UnaryCallable<RestrictAllowedResourcesRequest,RestrictAllowedResourcesResponse> restrictAllowedResourcesCallable()- Overrides:
restrictAllowedResourcesCallablein classAssuredWorkloadsServiceStub
-
deleteWorkloadCallable
- Overrides:
deleteWorkloadCallablein classAssuredWorkloadsServiceStub
-
getWorkloadCallable
- Overrides:
getWorkloadCallablein classAssuredWorkloadsServiceStub
-
analyzeWorkloadMoveCallable
public UnaryCallable<AnalyzeWorkloadMoveRequest,AnalyzeWorkloadMoveResponse> analyzeWorkloadMoveCallable()- Overrides:
analyzeWorkloadMoveCallablein classAssuredWorkloadsServiceStub
-
listWorkloadsCallable
- Overrides:
listWorkloadsCallablein classAssuredWorkloadsServiceStub
-
listWorkloadsPagedCallable
public UnaryCallable<ListWorkloadsRequest,AssuredWorkloadsServiceClient.ListWorkloadsPagedResponse> listWorkloadsPagedCallable()- Overrides:
listWorkloadsPagedCallablein classAssuredWorkloadsServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAssuredWorkloadsServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-