Class HttpJsonFirewallsStub (1.52.0)

public class HttpJsonFirewallsStub extends FirewallsStub

REST stub implementation for the Firewalls service API.

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

Inheritance

java.lang.Object > FirewallsStub > HttpJsonFirewallsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(FirewallsStubSettings settings)

public static final HttpJsonFirewallsStub create(FirewallsStubSettings settings)
Parameter
Name Description
settings FirewallsStubSettings
Returns
Type Description
HttpJsonFirewallsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonFirewallsStub(FirewallsStubSettings settings, ClientContext clientContext)

protected HttpJsonFirewallsStub(FirewallsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonFirewallsStub, 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 FirewallsStubSettings
clientContext ClientContext

HttpJsonFirewallsStub(FirewallsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonFirewallsStub(FirewallsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonFirewallsStub, 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 FirewallsStubSettings
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

deleteCallable()

public UnaryCallable<DeleteFirewallRequest,Operation> deleteCallable()
Returns
Type Description
UnaryCallable<DeleteFirewallRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteFirewallRequest,Operation,Operation> deleteOperationCallable()
Returns
Type Description
OperationCallable<DeleteFirewallRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetFirewallRequest,Firewall> getCallable()
Returns
Type Description
UnaryCallable<GetFirewallRequest,Firewall>
Overrides

insertCallable()

public UnaryCallable<InsertFirewallRequest,Operation> insertCallable()
Returns
Type Description
UnaryCallable<InsertFirewallRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertFirewallRequest,Operation,Operation> insertOperationCallable()
Returns
Type Description
OperationCallable<InsertFirewallRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

public UnaryCallable<ListFirewallsRequest,FirewallList> listCallable()
Returns
Type Description
UnaryCallable<ListFirewallsRequest,FirewallList>
Overrides

listPagedCallable()

public UnaryCallable<ListFirewallsRequest,FirewallsClient.ListPagedResponse> listPagedCallable()
Returns
Type Description
UnaryCallable<ListFirewallsRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchFirewallRequest,Operation> patchCallable()
Returns
Type Description
UnaryCallable<PatchFirewallRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchFirewallRequest,Operation,Operation> patchOperationCallable()
Returns
Type Description
OperationCallable<PatchFirewallRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

public UnaryCallable<UpdateFirewallRequest,Operation> updateCallable()
Returns
Type Description
UnaryCallable<UpdateFirewallRequest,Operation>
Overrides

updateOperationCallable()

public OperationCallable<UpdateFirewallRequest,Operation,Operation> updateOperationCallable()
Returns
Type Description
OperationCallable<UpdateFirewallRequest,Operation,Operation>
Overrides