Class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub (4.6.0)

public static final class AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub extends AbstractAsyncStub<AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub>

The API interface for managing autoscaling policies in the Dataproc API.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()

Methods

build(Channel channel, CallOptions callOptions)

protected AutoscalingPolicyServiceGrpc.AutoscalingPolicyServiceStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createAutoscalingPolicy(CreateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

public void createAutoscalingPolicy(CreateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

Creates new autoscaling policy.

Parameters
NameDescription
requestCreateAutoscalingPolicyRequest
responseObserverio.grpc.stub.StreamObserver<AutoscalingPolicy>

deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, StreamObserver<Empty> responseObserver)

public void deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request, StreamObserver<Empty> responseObserver)

Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.

Parameters
NameDescription
requestDeleteAutoscalingPolicyRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getAutoscalingPolicy(GetAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

public void getAutoscalingPolicy(GetAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

Retrieves autoscaling policy.

Parameters
NameDescription
requestGetAutoscalingPolicyRequest
responseObserverio.grpc.stub.StreamObserver<AutoscalingPolicy>

listAutoscalingPolicies(ListAutoscalingPoliciesRequest request, StreamObserver<ListAutoscalingPoliciesResponse> responseObserver)

public void listAutoscalingPolicies(ListAutoscalingPoliciesRequest request, StreamObserver<ListAutoscalingPoliciesResponse> responseObserver)

Lists autoscaling policies in the project.

Parameters
NameDescription
requestListAutoscalingPoliciesRequest
responseObserverio.grpc.stub.StreamObserver<ListAutoscalingPoliciesResponse>

updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

public void updateAutoscalingPolicy(UpdateAutoscalingPolicyRequest request, StreamObserver<AutoscalingPolicy> responseObserver)

Updates (replaces) autoscaling policy. Disabled check for update_mask, because all updates will be full replacements.

Parameters
NameDescription
requestUpdateAutoscalingPolicyRequest
responseObserverio.grpc.stub.StreamObserver<AutoscalingPolicy>