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.
Static Methods
create(AdUnitServiceStubSettings settings)
public static final HttpJsonAdUnitServiceStub create(AdUnitServiceStubSettings settings)
create(ClientContext clientContext)
public static final HttpJsonAdUnitServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonAdUnitServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
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.
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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
getAdUnitCallable()
public UnaryCallable<GetAdUnitRequest,AdUnit> getAdUnitCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listAdUnitSizesCallable()
public UnaryCallable<ListAdUnitSizesRequest,ListAdUnitSizesResponse> listAdUnitSizesCallable()
Overrides
listAdUnitSizesPagedCallable()
public UnaryCallable<ListAdUnitSizesRequest,AdUnitServiceClient.ListAdUnitSizesPagedResponse> listAdUnitSizesPagedCallable()
Overrides
listAdUnitsCallable()
public UnaryCallable<ListAdUnitsRequest,ListAdUnitsResponse> listAdUnitsCallable()
Overrides
listAdUnitsPagedCallable()
public UnaryCallable<ListAdUnitsRequest,AdUnitServiceClient.ListAdUnitsPagedResponse> listAdUnitsPagedCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()