Class FirewallPolicyRuleMatcher (1.15.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
TypeDescription
int

LAYER4_CONFIGS_FIELD_NUMBER

public static final int LAYER4_CONFIGS_FIELD_NUMBER
Field Value
TypeDescription
int

SRC_IP_RANGES_FIELD_NUMBER

public static final int SRC_IP_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

SRC_SECURE_TAGS_FIELD_NUMBER

public static final int SRC_SECURE_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FirewallPolicyRuleMatcher getDefaultInstance()
Returns
TypeDescription
FirewallPolicyRuleMatcher

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FirewallPolicyRuleMatcher.Builder newBuilder()
Returns
TypeDescription
FirewallPolicyRuleMatcher.Builder

newBuilder(FirewallPolicyRuleMatcher prototype)

public static FirewallPolicyRuleMatcher.Builder newBuilder(FirewallPolicyRuleMatcher prototype)
Parameter
NameDescription
prototypeFirewallPolicyRuleMatcher
Returns
TypeDescription
FirewallPolicyRuleMatcher.Builder

parseDelimitedFrom(InputStream input)

public static FirewallPolicyRuleMatcher parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FirewallPolicyRuleMatcher parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FirewallPolicyRuleMatcher parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FirewallPolicyRuleMatcher parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FirewallPolicyRuleMatcher parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FirewallPolicyRuleMatcher parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FirewallPolicyRuleMatcher parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FirewallPolicyRuleMatcher
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FirewallPolicyRuleMatcher> parser()
Returns
TypeDescription
Parser<FirewallPolicyRuleMatcher>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FirewallPolicyRuleMatcher getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4ConfigOrBuilder>

getParserForType()

public Parser<FirewallPolicyRuleMatcher> getParserForType()
Returns
TypeDescription
Parser<FirewallPolicyRuleMatcher>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.compute.v1.FirewallPolicyRuleSecureTagOrBuilder>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FirewallPolicyRuleMatcher.Builder newBuilderForType()
Returns
TypeDescription
FirewallPolicyRuleMatcher.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FirewallPolicyRuleMatcher.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FirewallPolicyRuleMatcher.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FirewallPolicyRuleMatcher.Builder toBuilder()
Returns
TypeDescription
FirewallPolicyRuleMatcher.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException