Class HttpJsonForecastAdjustmentServiceStub (0.62.0)

public class HttpJsonForecastAdjustmentServiceStub extends ForecastAdjustmentServiceStub

REST stub implementation for the ForecastAdjustmentService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ForecastAdjustmentServiceStub > HttpJsonForecastAdjustmentServiceStub

Static Methods

create(ForecastAdjustmentServiceStubSettings settings)

public static final HttpJsonForecastAdjustmentServiceStub create(ForecastAdjustmentServiceStubSettings settings)
Parameter
Name Description
settings ForecastAdjustmentServiceStubSettings
Returns
Type Description
HttpJsonForecastAdjustmentServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext)

public static final HttpJsonForecastAdjustmentServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonForecastAdjustmentServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonForecastAdjustmentServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonForecastAdjustmentServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonForecastAdjustmentServiceStub(ForecastAdjustmentServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonForecastAdjustmentServiceStub(ForecastAdjustmentServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonForecastAdjustmentServiceStub, 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.

Parameters
Name Description
settings ForecastAdjustmentServiceStubSettings
clientContext ClientContext

HttpJsonForecastAdjustmentServiceStub(ForecastAdjustmentServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonForecastAdjustmentServiceStub(ForecastAdjustmentServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonForecastAdjustmentServiceStub, 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.

Parameters
Name Description
settings ForecastAdjustmentServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchActivateForecastAdjustmentsCallable()

public UnaryCallable<BatchActivateForecastAdjustmentsRequest,BatchActivateForecastAdjustmentsResponse> batchActivateForecastAdjustmentsCallable()
Returns
Type Description
UnaryCallable<BatchActivateForecastAdjustmentsRequest,BatchActivateForecastAdjustmentsResponse>
Overrides

batchCreateForecastAdjustmentsCallable()

public UnaryCallable<BatchCreateForecastAdjustmentsRequest,BatchCreateForecastAdjustmentsResponse> batchCreateForecastAdjustmentsCallable()
Returns
Type Description
UnaryCallable<BatchCreateForecastAdjustmentsRequest,BatchCreateForecastAdjustmentsResponse>
Overrides

batchDeactivateForecastAdjustmentsCallable()

public UnaryCallable<BatchDeactivateForecastAdjustmentsRequest,BatchDeactivateForecastAdjustmentsResponse> batchDeactivateForecastAdjustmentsCallable()
Returns
Type Description
UnaryCallable<BatchDeactivateForecastAdjustmentsRequest,BatchDeactivateForecastAdjustmentsResponse>
Overrides

batchUpdateForecastAdjustmentsCallable()

public UnaryCallable<BatchUpdateForecastAdjustmentsRequest,BatchUpdateForecastAdjustmentsResponse> batchUpdateForecastAdjustmentsCallable()
Returns
Type Description
UnaryCallable<BatchUpdateForecastAdjustmentsRequest,BatchUpdateForecastAdjustmentsResponse>
Overrides

calculateDailyAdOpportunityCountsCallable()

public UnaryCallable<CalculateDailyAdOpportunityCountsRequest,CalculateDailyAdOpportunityCountsResponse> calculateDailyAdOpportunityCountsCallable()
Returns
Type Description
UnaryCallable<CalculateDailyAdOpportunityCountsRequest,CalculateDailyAdOpportunityCountsResponse>
Overrides

close()

public final void close()
Overrides

createForecastAdjustmentCallable()

public UnaryCallable<CreateForecastAdjustmentRequest,ForecastAdjustment> createForecastAdjustmentCallable()
Returns
Type Description
UnaryCallable<CreateForecastAdjustmentRequest,ForecastAdjustment>
Overrides

getForecastAdjustmentCallable()

public UnaryCallable<GetForecastAdjustmentRequest,ForecastAdjustment> getForecastAdjustmentCallable()
Returns
Type Description
UnaryCallable<GetForecastAdjustmentRequest,ForecastAdjustment>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listForecastAdjustmentsCallable()

public UnaryCallable<ListForecastAdjustmentsRequest,ListForecastAdjustmentsResponse> listForecastAdjustmentsCallable()
Returns
Type Description
UnaryCallable<ListForecastAdjustmentsRequest,ListForecastAdjustmentsResponse>
Overrides

listForecastAdjustmentsPagedCallable()

public UnaryCallable<ListForecastAdjustmentsRequest,ForecastAdjustmentServiceClient.ListForecastAdjustmentsPagedResponse> listForecastAdjustmentsPagedCallable()
Returns
Type Description
UnaryCallable<ListForecastAdjustmentsRequest,ListForecastAdjustmentsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateForecastAdjustmentCallable()

public UnaryCallable<UpdateForecastAdjustmentRequest,ForecastAdjustment> updateForecastAdjustmentCallable()
Returns
Type Description
UnaryCallable<UpdateForecastAdjustmentRequest,ForecastAdjustment>
Overrides