Class FirewallPolicyRuleMatcher.Builder (1.88.0)

public static final class FirewallPolicyRuleMatcher.Builder extends GeneratedMessageV3.Builder<FirewallPolicyRuleMatcher.Builder> implements FirewallPolicyRuleMatcherOrBuilder

Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.

Protobuf type google.cloud.compute.v1.FirewallPolicyRuleMatcher

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllDestAddressGroups(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllDestAddressGroups(Iterable<String> values)

Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.

repeated string dest_address_groups = 468760508;

Parameter
Name Description
values Iterable<String>

The destAddressGroups to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllDestFqdns(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllDestFqdns(Iterable<String> values)

Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.

repeated string dest_fqdns = 370712737;

Parameter
Name Description
values Iterable<String>

The destFqdns to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllDestIpRanges(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllDestIpRanges(Iterable<String> values)

CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

repeated string dest_ip_ranges = 337357713;

Parameter
Name Description
values Iterable<String>

The destIpRanges to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllDestRegionCodes(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllDestRegionCodes(Iterable<String> values)

Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.

repeated string dest_region_codes = 199120280;

Parameter
Name Description
values Iterable<String>

The destRegionCodes to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllDestThreatIntelligences(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllDestThreatIntelligences(Iterable<String> values)

Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination.

repeated string dest_threat_intelligences = 119896492;

Parameter
Name Description
values Iterable<String>

The destThreatIntelligences to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllLayer4Configs(Iterable<? extends FirewallPolicyRuleMatcherLayer4Config> values)

public FirewallPolicyRuleMatcher.Builder addAllLayer4Configs(Iterable<? extends FirewallPolicyRuleMatcherLayer4Config> values)

Pairs of IP protocols and ports that the rule should match.

repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config>
Returns
Type Description
FirewallPolicyRuleMatcher.Builder

addAllSrcAddressGroups(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllSrcAddressGroups(Iterable<String> values)

Address groups which should be matched against the traffic source. Maximum number of source address groups is 10.

repeated string src_address_groups = 436423738;

Parameter
Name Description
values Iterable<String>

The srcAddressGroups to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllSrcFqdns(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllSrcFqdns(Iterable<String> values)

Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100.

repeated string src_fqdns = 435906147;

Parameter
Name Description
values Iterable<String>

The srcFqdns to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllSrcIpRanges(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllSrcIpRanges(Iterable<String> values)

CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.

repeated string src_ip_ranges = 432128083;

Parameter
Name Description
values Iterable<String>

The srcIpRanges to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllSrcNetworks(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllSrcNetworks(Iterable<String> values)

Networks of the traffic source. It can be either a full or partial url.

repeated string src_networks = 247119872;

Parameter
Name Description
values Iterable<String>

The srcNetworks to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllSrcRegionCodes(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllSrcRegionCodes(Iterable<String> values)

Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000.

repeated string src_region_codes = 99086742;

Parameter
Name Description
values Iterable<String>

The srcRegionCodes to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addAllSrcSecureTags(Iterable<? extends FirewallPolicyRuleSecureTag> values)

public FirewallPolicyRuleMatcher.Builder addAllSrcSecureTags(Iterable<? extends FirewallPolicyRuleSecureTag> values)

List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.

repeated .google.cloud.compute.v1.FirewallPolicyRuleSecureTag src_secure_tags = 508791302;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.FirewallPolicyRuleSecureTag>
Returns
Type Description
FirewallPolicyRuleMatcher.Builder

addAllSrcThreatIntelligences(Iterable<String> values)

public FirewallPolicyRuleMatcher.Builder addAllSrcThreatIntelligences(Iterable<String> values)

Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source.

repeated string src_threat_intelligences = 323631018;

Parameter
Name Description
values Iterable<String>

The srcThreatIntelligences to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestAddressGroups(String value)

public FirewallPolicyRuleMatcher.Builder addDestAddressGroups(String value)

Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.

repeated string dest_address_groups = 468760508;

Parameter
Name Description
value String

The destAddressGroups to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestAddressGroupsBytes(ByteString value)

public FirewallPolicyRuleMatcher.Builder addDestAddressGroupsBytes(ByteString value)

Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.

repeated string dest_address_groups = 468760508;

Parameter
Name Description
value ByteString

The bytes of the destAddressGroups to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestFqdns(String value)

public FirewallPolicyRuleMatcher.Builder addDestFqdns(String value)

Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.

repeated string dest_fqdns = 370712737;

Parameter
Name Description
value String

The destFqdns to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestFqdnsBytes(ByteString value)

public FirewallPolicyRuleMatcher.Builder addDestFqdnsBytes(ByteString value)

Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.

repeated string dest_fqdns = 370712737;

Parameter
Name Description
value ByteString

The bytes of the destFqdns to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestIpRanges(String value)

public FirewallPolicyRuleMatcher.Builder addDestIpRanges(String value)

CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

repeated string dest_ip_ranges = 337357713;

Parameter
Name Description
value String

The destIpRanges to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestIpRangesBytes(ByteString value)

public FirewallPolicyRuleMatcher.Builder addDestIpRangesBytes(ByteString value)

CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.

repeated string dest_ip_ranges = 337357713;

Parameter
Name Description
value ByteString

The bytes of the destIpRanges to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestRegionCodes(String value)

public FirewallPolicyRuleMatcher.Builder addDestRegionCodes(String value)

Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.

repeated string dest_region_codes = 199120280;

Parameter
Name Description
value String

The destRegionCodes to add.

Returns
Type Description
FirewallPolicyRuleMatcher.Builder

This builder for chaining.

addDestRegionCodesBytes(ByteString value)

public FirewallPolicyRuleMatcher.Builder addDestRegionCodesBytes(ByteString value)

Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.

repeated string dest_region_codes = 199120280;

Parameter
Name Description
value ByteString

The bytes of the destRegionCodes to add.

Returns
Type Description