Package com.google.cloud.dataproc.v1
Class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub>
-
- com.google.cloud.dataproc.v1.AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub
-
- Enclosing class:
- AutoscalingPolicyServiceGrpc
public static final class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub extends io.grpc.stub.AbstractAsyncStub<AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub>
A stub to allow clients to do asynchronous rpc calls to service AutoscalingPolicyService.The API interface for managing autoscaling policies in the Dataproc API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
createAutoscalingPolicy(CreateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<AutoscalingPolicy> responseObserver)
Creates new autoscaling policy.void
deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an autoscaling policy.void
getAutoscalingPolicy(GetAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<AutoscalingPolicy> responseObserver)
Retrieves autoscaling policy.void
listAutoscalingPolicies(ListAutoscalingPoliciesRequest request, io.grpc.stub.StreamObserver<ListAutoscalingPoliciesResponse> responseObserver)
Lists autoscaling policies in the project.void
updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<AutoscalingPolicy> responseObserver)
Updates (replaces) autoscaling policy.
-
-
-
Method Detail
-
build
protected AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub>
-
createAutoscalingPolicy
public void createAutoscalingPolicy(CreateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<AutoscalingPolicy> responseObserver)
Creates new autoscaling policy.
-
updateAutoscalingPolicy
public void updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<AutoscalingPolicy> responseObserver)
Updates (replaces) autoscaling policy. Disabled check for update_mask, because all updates will be full replacements.
-
getAutoscalingPolicy
public void getAutoscalingPolicy(GetAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<AutoscalingPolicy> responseObserver)
Retrieves autoscaling policy.
-
listAutoscalingPolicies
public void listAutoscalingPolicies(ListAutoscalingPoliciesRequest request, io.grpc.stub.StreamObserver<ListAutoscalingPoliciesResponse> responseObserver)
Lists autoscaling policies in the project.
-
deleteAutoscalingPolicy
public void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.
-
-