Class FirewallGrpc.FirewallImplBase (2.9.0)

publicabstractstaticclass FirewallGrpc.FirewallImplBaseimplementsBindableService

Firewall resources are used to define a collection of access control rules for an Application. Each rule is defined with a position which specifies the rule's order in the sequence of rules, an IP range to be matched against requests, and an action to take upon matching requests. Every request is evaluated against the Firewall rules in priority order. Processesing stops at the first rule which matches the request's IP address. A final rule always specifies an action that applies to all remaining IP addresses. The default final rule for a newly-created application will be set to "allow" if not otherwise specified by the user.

Inheritance

java.lang.Object > FirewallGrpc.FirewallImplBase

Implements

io.grpc.BindableService

Constructors

FirewallImplBase()

publicFirewallImplBase()

Methods

batchUpdateIngressRules(BatchUpdateIngressRulesRequest request, StreamObserver<BatchUpdateIngressRulesResponse> responseObserver)

publicvoidbatchUpdateIngressRules(BatchUpdateIngressRulesRequestrequest,StreamObserver<BatchUpdateIngressRulesResponse>responseObserver)

Replaces the entire firewall ruleset in one bulk operation. This overrides and replaces the rules of an existing firewall with the new rules. If the final rule does not match traffic with the '*' wildcard IP range, then an "allow all" rule is explicitly added to the end of the list.

Parameters
Name Description
responseObserver io.grpc.stub.StreamObserver<BatchUpdateIngressRulesResponse>

bindService()

publicfinalServerServiceDefinitionbindService()
Returns
Type Description
io.grpc.ServerServiceDefinition

createIngressRule(CreateIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

publicvoidcreateIngressRule(CreateIngressRuleRequestrequest,StreamObserver<FirewallRule>responseObserver)

Creates a firewall rule for the application.

Parameters
Name Description
responseObserver io.grpc.stub.StreamObserver<FirewallRule>

deleteIngressRule(DeleteIngressRuleRequest request, StreamObserver<Empty> responseObserver)

publicvoiddeleteIngressRule(DeleteIngressRuleRequestrequest,StreamObserver<Empty>responseObserver)

Deletes the specified firewall rule.

Parameters
Name Description
responseObserver io.grpc.stub.StreamObserver<Empty>

getIngressRule(GetIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

publicvoidgetIngressRule(GetIngressRuleRequestrequest,StreamObserver<FirewallRule>responseObserver)

Gets the specified firewall rule.

Parameters
Name Description
responseObserver io.grpc.stub.StreamObserver<FirewallRule>

listIngressRules(ListIngressRulesRequest request, StreamObserver<ListIngressRulesResponse> responseObserver)

publicvoidlistIngressRules(ListIngressRulesRequestrequest,StreamObserver<ListIngressRulesResponse>responseObserver)

Lists the firewall rules of an application.

Parameters
Name Description
responseObserver io.grpc.stub.StreamObserver<ListIngressRulesResponse>

updateIngressRule(UpdateIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

publicvoidupdateIngressRule(UpdateIngressRuleRequestrequest,StreamObserver<FirewallRule>responseObserver)

Updates the specified firewall rule.

Parameters
Name Description
responseObserver io.grpc.stub.StreamObserver<FirewallRule>

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.