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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcFirewallStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcFirewallStub
Exceptions
TypeDescription
IOException

create(FirewallStubSettings settings)

public static final GrpcFirewallStub create(FirewallStubSettings settings)
Parameter
NameDescription
settingsFirewallStubSettings
Returns
TypeDescription
GrpcFirewallStub
Exceptions
TypeDescription
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
NameDescription
settingsFirewallStubSettings
clientContextClientContext

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
NameDescription
settingsFirewallStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

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

batchUpdateIngressRulesCallable()

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

close()

public final void close()
Overrides

createIngressRuleCallable()

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

deleteIngressRuleCallable()

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

getIngressRuleCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listIngressRulesCallable()

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

listIngressRulesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateIngressRuleCallable()

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