Class HttpJsonAdUnitServiceStub (0.11.0)

public class HttpJsonAdUnitServiceStub extends AdUnitServiceStub

REST stub implementation for the AdUnitService service API.

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

Inheritance

java.lang.Object > AdUnitServiceStub > HttpJsonAdUnitServiceStub

Static Methods

create(AdUnitServiceStubSettings settings)

public static final HttpJsonAdUnitServiceStub create(AdUnitServiceStubSettings settings)
Parameter
Name Description
settings AdUnitServiceStubSettings
Returns
Type Description
HttpJsonAdUnitServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

getMethodDescriptors()

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

Constructors

HttpJsonAdUnitServiceStub(AdUnitServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonAdUnitServiceStub(AdUnitServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAdUnitServiceStub, 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 AdUnitServiceStubSettings
clientContext ClientContext

HttpJsonAdUnitServiceStub(AdUnitServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAdUnitServiceStub(AdUnitServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAdUnitServiceStub, 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 AdUnitServiceStubSettings
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

close()

public final void close()
Overrides

getAdUnitCallable()

public UnaryCallable<GetAdUnitRequest,AdUnit> getAdUnitCallable()
Returns
Type Description
UnaryCallable<GetAdUnitRequest,AdUnit>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAdUnitSizesCallable()

public UnaryCallable<ListAdUnitSizesRequest,ListAdUnitSizesResponse> listAdUnitSizesCallable()
Returns
Type Description
UnaryCallable<ListAdUnitSizesRequest,ListAdUnitSizesResponse>
Overrides

listAdUnitSizesPagedCallable()

public UnaryCallable<ListAdUnitSizesRequest,AdUnitServiceClient.ListAdUnitSizesPagedResponse> listAdUnitSizesPagedCallable()
Returns
Type Description
UnaryCallable<ListAdUnitSizesRequest,ListAdUnitSizesPagedResponse>
Overrides

listAdUnitsCallable()

public UnaryCallable<ListAdUnitsRequest,ListAdUnitsResponse> listAdUnitsCallable()
Returns
Type Description
UnaryCallable<ListAdUnitsRequest,ListAdUnitsResponse>
Overrides

listAdUnitsPagedCallable()

public UnaryCallable<ListAdUnitsRequest,AdUnitServiceClient.ListAdUnitsPagedResponse> listAdUnitsPagedCallable()
Returns
Type Description
UnaryCallable<ListAdUnitsRequest,ListAdUnitsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()