Class GrpcSimulatorStub
- java.lang.Object
-
- com.google.cloud.policysimulator.v1.stub.SimulatorStub
-
- com.google.cloud.policysimulator.v1.stub.GrpcSimulatorStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcSimulatorStub extends SimulatorStub
gRPC stub implementation for the Simulator service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcSimulatorStub(SimulatorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcSimulatorStub, using the given settings.protected
GrpcSimulatorStub(SimulatorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcSimulatorStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcSimulatorStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcSimulatorStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcSimulatorStub
create(SimulatorStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateReplayRequest,com.google.longrunning.Operation>
createReplayCallable()
com.google.api.gax.rpc.OperationCallable<CreateReplayRequest,Replay,ReplayOperationMetadata>
createReplayOperationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetReplayRequest,Replay>
getReplayCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListReplayResultsRequest,ListReplayResultsResponse>
listReplayResultsCallable()
com.google.api.gax.rpc.UnaryCallable<ListReplayResultsRequest,SimulatorClient.ListReplayResultsPagedResponse>
listReplayResultsPagedCallable()
void
shutdown()
void
shutdownNow()
-
Methods inherited from class com.google.cloud.policysimulator.v1.stub.SimulatorStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcSimulatorStub
protected GrpcSimulatorStub(SimulatorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcSimulatorStub, 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
-
GrpcSimulatorStub
protected GrpcSimulatorStub(SimulatorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcSimulatorStub, 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 Detail
-
create
public static final GrpcSimulatorStub create(SimulatorStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcSimulatorStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcSimulatorStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classSimulatorStub
-
getReplayCallable
public com.google.api.gax.rpc.UnaryCallable<GetReplayRequest,Replay> getReplayCallable()
- Overrides:
getReplayCallable
in classSimulatorStub
-
createReplayCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReplayRequest,com.google.longrunning.Operation> createReplayCallable()
- Overrides:
createReplayCallable
in classSimulatorStub
-
createReplayOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateReplayRequest,Replay,ReplayOperationMetadata> createReplayOperationCallable()
- Overrides:
createReplayOperationCallable
in classSimulatorStub
-
listReplayResultsCallable
public com.google.api.gax.rpc.UnaryCallable<ListReplayResultsRequest,ListReplayResultsResponse> listReplayResultsCallable()
- Overrides:
listReplayResultsCallable
in classSimulatorStub
-
listReplayResultsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReplayResultsRequest,SimulatorClient.ListReplayResultsPagedResponse> listReplayResultsPagedCallable()
- Overrides:
listReplayResultsPagedCallable
in classSimulatorStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classSimulatorStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-