@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcAllocationPoliciesServiceStub extends AllocationPoliciesServiceStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcAllocationPoliciesServiceStub(AllocationPoliciesServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcAllocationPoliciesServiceStub, using the given settings.
|
protected |
GrpcAllocationPoliciesServiceStub(AllocationPoliciesServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcAllocationPoliciesServiceStub, using the given settings.
|
protected GrpcAllocationPoliciesServiceStub(AllocationPoliciesServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
protected GrpcAllocationPoliciesServiceStub(AllocationPoliciesServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcAllocationPoliciesServiceStub create(AllocationPoliciesServiceStubSettings settings) throws IOException
IOException
public static final GrpcAllocationPoliciesServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcAllocationPoliciesServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
getOperationsStub
in class AllocationPoliciesServiceStub
public com.google.api.gax.rpc.UnaryCallable<ListAllocationPoliciesRequest,AllocationPoliciesServiceClient.ListAllocationPoliciesPagedResponse> listAllocationPoliciesPagedCallable()
listAllocationPoliciesPagedCallable
in class AllocationPoliciesServiceStub
public com.google.api.gax.rpc.UnaryCallable<ListAllocationPoliciesRequest,ListAllocationPoliciesResponse> listAllocationPoliciesCallable()
listAllocationPoliciesCallable
in class AllocationPoliciesServiceStub
public com.google.api.gax.rpc.UnaryCallable<GetAllocationPolicyRequest,AllocationPolicy> getAllocationPolicyCallable()
getAllocationPolicyCallable
in class AllocationPoliciesServiceStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<CreateAllocationPolicyRequest,AllocationPolicy,Empty> createAllocationPolicyOperationCallable()
createAllocationPolicyOperationCallable
in class AllocationPoliciesServiceStub
public com.google.api.gax.rpc.UnaryCallable<CreateAllocationPolicyRequest,com.google.longrunning.Operation> createAllocationPolicyCallable()
createAllocationPolicyCallable
in class AllocationPoliciesServiceStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<DeleteAllocationPolicyRequest,Empty,Empty> deleteAllocationPolicyOperationCallable()
deleteAllocationPolicyOperationCallable
in class AllocationPoliciesServiceStub
public com.google.api.gax.rpc.UnaryCallable<DeleteAllocationPolicyRequest,com.google.longrunning.Operation> deleteAllocationPolicyCallable()
deleteAllocationPolicyCallable
in class AllocationPoliciesServiceStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallable<UpdateAllocationPolicyRequest,AllocationPolicy,Empty> updateAllocationPolicyOperationCallable()
updateAllocationPolicyOperationCallable
in class AllocationPoliciesServiceStub
public com.google.api.gax.rpc.UnaryCallable<UpdateAllocationPolicyRequest,com.google.longrunning.Operation> updateAllocationPolicyCallable()
updateAllocationPolicyCallable
in class AllocationPoliciesServiceStub
public final void close()
close
in interface AutoCloseable
close
in class AllocationPoliciesServiceStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.