Class GrpcFirewallStub (2.60.0)

publicclass GrpcFirewallStubextendsFirewallStub

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)

publicstaticfinalGrpcFirewallStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcFirewallStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcFirewallStubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcFirewallStub
Exceptions
Type Description
IOException

create(FirewallStubSettings settings)

publicstaticfinalGrpcFirewallStubcreate(FirewallStubSettingssettings)
Parameter
Name Description
settings FirewallStubSettings
Returns
Type Description
GrpcFirewallStub
Exceptions
Type Description
IOException

Constructors

GrpcFirewallStub(FirewallStubSettings settings, ClientContext clientContext)

protectedGrpcFirewallStub(FirewallStubSettingssettings,ClientContextclientContext)

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)

protectedGrpcFirewallStub(FirewallStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

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)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

batchUpdateIngressRulesCallable()

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

close()

publicfinalvoidclose()
Overrides

createIngressRuleCallable()

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

deleteIngressRuleCallable()

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

getIngressRuleCallable()

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

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

listIngressRulesCallable()

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

listIngressRulesPagedCallable()

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

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

updateIngressRuleCallable()

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.