Class HttpJsonAdRuleServiceStub (0.54.0)

public class HttpJsonAdRuleServiceStub extends AdRuleServiceStub

REST stub implementation for the AdRuleService service API.

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

Inheritance

java.lang.Object > AdRuleServiceStub > HttpJsonAdRuleServiceStub

Static Methods

create(AdRuleServiceStubSettings settings)

public static final HttpJsonAdRuleServiceStub create(AdRuleServiceStubSettings settings)
Parameter
Name Description
settings AdRuleServiceStubSettings
Returns
Type Description
HttpJsonAdRuleServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

getMethodDescriptors()

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

Constructors

HttpJsonAdRuleServiceStub(AdRuleServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonAdRuleServiceStub(AdRuleServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonAdRuleServiceStub, 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 AdRuleServiceStubSettings
clientContext ClientContext

HttpJsonAdRuleServiceStub(AdRuleServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAdRuleServiceStub(AdRuleServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonAdRuleServiceStub, 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 AdRuleServiceStubSettings
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

batchActivateAdRulesCallable()

public UnaryCallable<BatchActivateAdRulesRequest,BatchActivateAdRulesResponse> batchActivateAdRulesCallable()
Returns
Type Description
UnaryCallable<BatchActivateAdRulesRequest,BatchActivateAdRulesResponse>
Overrides

batchCreateAdRulesCallable()

public UnaryCallable<BatchCreateAdRulesRequest,BatchCreateAdRulesResponse> batchCreateAdRulesCallable()
Returns
Type Description
UnaryCallable<BatchCreateAdRulesRequest,BatchCreateAdRulesResponse>
Overrides

batchDeactivateAdRulesCallable()

public UnaryCallable<BatchDeactivateAdRulesRequest,BatchDeactivateAdRulesResponse> batchDeactivateAdRulesCallable()
Returns
Type Description
UnaryCallable<BatchDeactivateAdRulesRequest,BatchDeactivateAdRulesResponse>
Overrides

batchDeleteAdRulesCallable()

public UnaryCallable<BatchDeleteAdRulesRequest,Empty> batchDeleteAdRulesCallable()
Returns
Type Description
UnaryCallable<BatchDeleteAdRulesRequest,Empty>
Overrides

batchUpdateAdRulesCallable()

public UnaryCallable<BatchUpdateAdRulesRequest,BatchUpdateAdRulesResponse> batchUpdateAdRulesCallable()
Returns
Type Description
UnaryCallable<BatchUpdateAdRulesRequest,BatchUpdateAdRulesResponse>
Overrides

close()

public final void close()
Overrides

createAdRuleCallable()

public UnaryCallable<CreateAdRuleRequest,AdRule> createAdRuleCallable()
Returns
Type Description
UnaryCallable<CreateAdRuleRequest,AdRule>
Overrides

getAdRuleCallable()

public UnaryCallable<GetAdRuleRequest,AdRule> getAdRuleCallable()
Returns
Type Description
UnaryCallable<GetAdRuleRequest,AdRule>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listAdRulesCallable()

public UnaryCallable<ListAdRulesRequest,ListAdRulesResponse> listAdRulesCallable()
Returns
Type Description
UnaryCallable<ListAdRulesRequest,ListAdRulesResponse>
Overrides

listAdRulesPagedCallable()

public UnaryCallable<ListAdRulesRequest,AdRuleServiceClient.ListAdRulesPagedResponse> listAdRulesPagedCallable()
Returns
Type Description
UnaryCallable<ListAdRulesRequest,ListAdRulesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateAdRuleCallable()

public UnaryCallable<UpdateAdRuleRequest,AdRule> updateAdRuleCallable()
Returns
Type Description
UnaryCallable<UpdateAdRuleRequest,AdRule>
Overrides