Class HttpJsonAutoscalingPolicyServiceStub
java.lang.Object
com.google.cloud.dataproc.v1.stub.AutoscalingPolicyServiceStub
com.google.cloud.dataproc.v1.stub.HttpJsonAutoscalingPolicyServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonAutoscalingPolicyServiceStub
extends AutoscalingPolicyServiceStub
REST stub implementation for the AutoscalingPolicyService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonAutoscalingPolicyServiceStub(AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, using the given settings.protectedHttpJsonAutoscalingPolicyServiceStub(AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonAutoscalingPolicyServiceStubcreate(ClientContext clientContext) static final HttpJsonAutoscalingPolicyServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonAutoscalingPolicyServiceStubcreate(AutoscalingPolicyServiceStubSettings settings) UnaryCallable<DeleteAutoscalingPolicyRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<ListAutoscalingPoliciesRequest,AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse> voidshutdown()void
-
Constructor Details
-
HttpJsonAutoscalingPolicyServiceStub
protected HttpJsonAutoscalingPolicyServiceStub(AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, 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
-
HttpJsonAutoscalingPolicyServiceStub
protected HttpJsonAutoscalingPolicyServiceStub(AutoscalingPolicyServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonAutoscalingPolicyServiceStub, 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 HttpJsonAutoscalingPolicyServiceStub create(AutoscalingPolicyServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonAutoscalingPolicyServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonAutoscalingPolicyServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createAutoscalingPolicyCallable
public UnaryCallable<CreateAutoscalingPolicyRequest,AutoscalingPolicy> createAutoscalingPolicyCallable()- Overrides:
createAutoscalingPolicyCallablein classAutoscalingPolicyServiceStub
-
updateAutoscalingPolicyCallable
public UnaryCallable<UpdateAutoscalingPolicyRequest,AutoscalingPolicy> updateAutoscalingPolicyCallable()- Overrides:
updateAutoscalingPolicyCallablein classAutoscalingPolicyServiceStub
-
getAutoscalingPolicyCallable
- Overrides:
getAutoscalingPolicyCallablein classAutoscalingPolicyServiceStub
-
listAutoscalingPoliciesCallable
public UnaryCallable<ListAutoscalingPoliciesRequest,ListAutoscalingPoliciesResponse> listAutoscalingPoliciesCallable()- Overrides:
listAutoscalingPoliciesCallablein classAutoscalingPolicyServiceStub
-
listAutoscalingPoliciesPagedCallable
public UnaryCallable<ListAutoscalingPoliciesRequest,AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse> listAutoscalingPoliciesPagedCallable()- Overrides:
listAutoscalingPoliciesPagedCallablein classAutoscalingPolicyServiceStub
-
deleteAutoscalingPolicyCallable
public UnaryCallable<DeleteAutoscalingPolicyRequest,com.google.protobuf.Empty> deleteAutoscalingPolicyCallable()- Overrides:
deleteAutoscalingPolicyCallablein classAutoscalingPolicyServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classAutoscalingPolicyServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classAutoscalingPolicyServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classAutoscalingPolicyServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAutoscalingPolicyServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-