Class FirewallPolicyRuleMatcher (1.16.0)

public final class FirewallPolicyRuleMatcher extends GeneratedMessageV3 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 Fields

DEST_IP_RANGES_FIELD_NUMBER

public static final int DEST_IP_RANGES_FIELD_NUMBER
Field Value
Type Description
int

LAYER4_CONFIGS_FIELD_NUMBER

public static final int LAYER4_CONFIGS_FIELD_NUMBER
Field Value
Type Description
int

SRC_IP_RANGES_FIELD_NUMBER

public static final int SRC_IP_RANGES_FIELD_NUMBER
Field Value
Type Description
int

SRC_SECURE_TAGS_FIELD_NUMBER

public static final int SRC_SECURE_TAGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FirewallPolicyRuleMatcher getDefaultInstance()
Returns
Type Description
FirewallPolicyRuleMatcher

getDescriptor()

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

newBuilder()

public static FirewallPolicyRuleMatcher.Builder newBuilder()
Returns
Type Description
FirewallPolicyRuleMatcher.Builder

newBuilder(FirewallPolicyRuleMatcher prototype)

public static FirewallPolicyRuleMatcher.Builder newBuilder(FirewallPolicyRuleMatcher prototype)
Parameter
Name Description
prototype FirewallPolicyRuleMatcher
Returns
Type Description
FirewallPolicyRuleMatcher.Builder

parseDelimitedFrom(InputStream input)

public static FirewallPolicyRuleMatcher parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FirewallPolicyRuleMatcher parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FirewallPolicyRuleMatcher parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FirewallPolicyRuleMatcher parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FirewallPolicyRuleMatcher parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FirewallPolicyRuleMatcher parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FirewallPolicyRuleMatcher
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FirewallPolicyRuleMatcher> parser()
Returns
Type Description
Parser<FirewallPolicyRuleMatcher>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public FirewallPolicyRuleMatcher getDefaultInstanceForType()
Returns
Type Description
FirewallPolicyRuleMatcher

getDestIpRanges(int index)

public String getDestIpRanges(int index)

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

repeated string dest_ip_ranges = 337357713;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The destIpRanges at the given index.

getDestIpRangesBytes(int index)

public ByteString getDestIpRangesBytes(int index)

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

repeated string dest_ip_ranges = 337357713;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the destIpRanges at the given index.

getDestIpRangesCount()

public int getDestIpRangesCount()

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

repeated string dest_ip_ranges = 337357713;

Returns
Type Description
int

The count of destIpRanges.

getDestIpRangesList()

public ProtocolStringList getDestIpRangesList()

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

repeated string dest_ip_ranges = 337357713;

Returns
Type Description
ProtocolStringList

A list containing the destIpRanges.

getLayer4Configs(int index)

public FirewallPolicyRuleMatcherLayer4Config getLayer4Configs(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRuleMatcherLayer4Config

getLayer4ConfigsCount()

public int getLayer4ConfigsCount()

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

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

Returns
Type Description
int

getLayer4ConfigsList()

public List<FirewallPolicyRuleMatcherLayer4Config> getLayer4ConfigsList()

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

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

Returns
Type Description
List<FirewallPolicyRuleMatcherLayer4Config>

getLayer4ConfigsOrBuilder(int index)

public FirewallPolicyRuleMatcherLayer4ConfigOrBuilder getLayer4ConfigsOrBuilder(int index)

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

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

Parameter
Name Description
index int
Returns
Type Description
FirewallPolicyRuleMatcherLayer4ConfigOrBuilder

getLayer4ConfigsOrBuilderList()

public List<? extends FirewallPolicyRuleMatcherLayer4ConfigOrBuilder> getLayer4ConfigsOrBuilderList()

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

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

Returns
Type Description
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4ConfigOrBuilder>

getParserForType()

public Parser<FirewallPolicyRuleMatcher> getParserForType()
Returns
Type Description
Parser<FirewallPolicyRuleMatcher>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSrcIpRanges(int index)

public String getSrcIpRanges(int index)

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

repeated string src_ip_ranges = 432128083;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The srcIpRanges at the given index.

getSrcIpRangesBytes(int index)

public ByteString getSrcIpRangesBytes(int index)

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

repeated string src_ip_ranges = 432128083;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the srcIpRanges at the given index.

getSrcIpRangesCount()

public int getSrcIpRangesCount()

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

repeated string src_ip_ranges = 432128083;

Returns
Type Description
int

The count of srcIpRanges.

getSrcIpRangesList()

public ProtocolStringList getSrcIpRangesList()

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

repeated string src_ip_ranges = 432128083;

Returns
Type Description
ProtocolStringList

A list containing the srcIpRanges.

getSrcSecureTags(int index)

public FirewallPolicyRuleSecureTag getSrcSecureTags(int index)

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
index int
Returns
Type Description
FirewallPolicyRuleSecureTag

getSrcSecureTagsCount()

public int getSrcSecureTagsCount()

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;

Returns
Type Description
int

getSrcSecureTagsList()

public List<FirewallPolicyRuleSecureTag> getSrcSecureTagsList()

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;

Returns
Type Description
List<FirewallPolicyRuleSecureTag>

getSrcSecureTagsOrBuilder(int index)

public FirewallPolicyRuleSecureTagOrBuilder getSrcSecureTagsOrBuilder(int index)

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
index int
Returns
Type Description
FirewallPolicyRuleSecureTagOrBuilder

getSrcSecureTagsOrBuilderList()

public List<? extends FirewallPolicyRuleSecureTagOrBuilder> getSrcSecureTagsOrBuilderList()

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;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleSecureTagOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FirewallPolicyRuleMatcher.Builder newBuilderForType()
Returns
Type Description
FirewallPolicyRuleMatcher.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FirewallPolicyRuleMatcher.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FirewallPolicyRuleMatcher.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FirewallPolicyRuleMatcher.Builder toBuilder()
Returns
Type Description
FirewallPolicyRuleMatcher.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException