Class GrpcFirewallStub (2.47.0)

public class GrpcFirewallStub extends FirewallStub

gRPC stub implementation for the Firewall service API.

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

Inheritance

java.lang.Object > FirewallStub > GrpcFirewallStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(FirewallStubSettings settings)

public static final GrpcFirewallStub create(FirewallStubSettings settings)
Parameter
Name Description
settings FirewallStubSettings
Returns
Type Description
GrpcFirewallStub
Exceptions
Type Description
IOException

Constructors

GrpcFirewallStub(FirewallStubSettings settings, ClientContext clientContext)

protected GrpcFirewallStub(FirewallStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcFirewallStub, 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 FirewallStubSettings
clientContext ClientContext

GrpcFirewallStub(FirewallStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcFirewallStub(FirewallStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcFirewallStub, 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 FirewallStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

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

batchUpdateIngressRulesCallable()

public UnaryCallable<BatchUpdateIngressRulesRequest,BatchUpdateIngressRulesResponse> batchUpdateIngressRulesCallable()
Returns
Type Description
UnaryCallable<BatchUpdateIngressRulesRequest,BatchUpdateIngressRulesResponse>
Overrides

close()

public final void close()
Overrides

createIngressRuleCallable()

public UnaryCallable<CreateIngressRuleRequest,FirewallRule> createIngressRuleCallable()
Returns
Type Description
UnaryCallable<CreateIngressRuleRequest,FirewallRule>
Overrides

deleteIngressRuleCallable()

public UnaryCallable<DeleteIngressRuleRequest,Empty> deleteIngressRuleCallable()
Returns
Type Description
UnaryCallable<DeleteIngressRuleRequest,Empty>
Overrides

getIngressRuleCallable()

public UnaryCallable<GetIngressRuleRequest,FirewallRule> getIngressRuleCallable()
Returns
Type Description
UnaryCallable<GetIngressRuleRequest,FirewallRule>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listIngressRulesCallable()

public UnaryCallable<ListIngressRulesRequest,ListIngressRulesResponse> listIngressRulesCallable()
Returns
Type Description
UnaryCallable<ListIngressRulesRequest,ListIngressRulesResponse>
Overrides

listIngressRulesPagedCallable()

public UnaryCallable<ListIngressRulesRequest,FirewallClient.ListIngressRulesPagedResponse> listIngressRulesPagedCallable()
Returns
Type Description
UnaryCallable<ListIngressRulesRequest,ListIngressRulesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateIngressRuleCallable()

public UnaryCallable<UpdateIngressRuleRequest,FirewallRule> updateIngressRuleCallable()
Returns
Type Description
UnaryCallable<UpdateIngressRuleRequest,FirewallRule>
Overrides