Class HttpJsonFleetRoutingStub
java.lang.Object
com.google.cloud.optimization.v1.stub.FleetRoutingStub
com.google.cloud.optimization.v1.stub.HttpJsonFleetRoutingStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonFleetRoutingStub
extends FleetRoutingStub
REST stub implementation for the FleetRouting service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonFleetRoutingStub(FleetRoutingStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonFleetRoutingStub, using the given settings.protectedHttpJsonFleetRoutingStub(FleetRoutingStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonFleetRoutingStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonFleetRoutingStubcreate(ClientContext clientContext) static final HttpJsonFleetRoutingStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonFleetRoutingStubcreate(FleetRoutingStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.optimization.v1.stub.FleetRoutingStub
getOperationsStub
-
Constructor Details
-
HttpJsonFleetRoutingStub
protected HttpJsonFleetRoutingStub(FleetRoutingStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonFleetRoutingStub, 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
-
HttpJsonFleetRoutingStub
protected HttpJsonFleetRoutingStub(FleetRoutingStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonFleetRoutingStub, 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 HttpJsonFleetRoutingStub create(FleetRoutingStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonFleetRoutingStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classFleetRoutingStub
-
optimizeToursCallable
- Overrides:
optimizeToursCallablein classFleetRoutingStub
-
batchOptimizeToursCallable
- Overrides:
batchOptimizeToursCallablein classFleetRoutingStub
-
batchOptimizeToursOperationCallable
public OperationCallable<BatchOptimizeToursRequest,BatchOptimizeToursResponse, batchOptimizeToursOperationCallable()AsyncModelMetadata> - Overrides:
batchOptimizeToursOperationCallablein classFleetRoutingStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classFleetRoutingStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-