Class HttpJsonFirewallsStub (1.37.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonFirewallsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonFirewallsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonFirewallsStub
Exceptions
TypeDescription
IOException

create(FirewallsStubSettings settings)

public static final HttpJsonFirewallsStub create(FirewallsStubSettings settings)
Parameter
NameDescription
settingsFirewallsStubSettings
Returns
TypeDescription
HttpJsonFirewallsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsFirewallsStubSettings
clientContextClientContext

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
NameDescription
settingsFirewallsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

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

listPagedCallable()

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

patchCallable()

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

patchOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCallable()

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

updateOperationCallable()

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