Class SecurityPolicyRuleNetworkMatcher (1.52.0)

public final class SecurityPolicyRuleNetworkMatcher extends GeneratedMessageV3 implements SecurityPolicyRuleNetworkMatcherOrBuilder

Represents a match condition that incoming network traffic is evaluated against.

Protobuf type google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcher

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SecurityPolicyRuleNetworkMatcher

Static Fields

DEST_IP_RANGES_FIELD_NUMBER

public static final int DEST_IP_RANGES_FIELD_NUMBER
Field Value
Type Description
int

DEST_PORTS_FIELD_NUMBER

public static final int DEST_PORTS_FIELD_NUMBER
Field Value
Type Description
int

IP_PROTOCOLS_FIELD_NUMBER

public static final int IP_PROTOCOLS_FIELD_NUMBER
Field Value
Type Description
int

SRC_ASNS_FIELD_NUMBER

public static final int SRC_ASNS_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_PORTS_FIELD_NUMBER

public static final int SRC_PORTS_FIELD_NUMBER
Field Value
Type Description
int

SRC_REGION_CODES_FIELD_NUMBER

public static final int SRC_REGION_CODES_FIELD_NUMBER
Field Value
Type Description
int

USER_DEFINED_FIELDS_FIELD_NUMBER

public static final int USER_DEFINED_FIELDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SecurityPolicyRuleNetworkMatcher getDefaultInstance()
Returns
Type Description
SecurityPolicyRuleNetworkMatcher

getDescriptor()

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

newBuilder()

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

newBuilder(SecurityPolicyRuleNetworkMatcher prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SecurityPolicyRuleNetworkMatcher getDefaultInstanceForType()
Returns
Type Description
SecurityPolicyRuleNetworkMatcher

getDestIpRanges(int index)

public String getDestIpRanges(int index)

Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

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)

Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

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()

Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

repeated string dest_ip_ranges = 337357713;

Returns
Type Description
int

The count of destIpRanges.

getDestIpRangesList()

public ProtocolStringList getDestIpRangesList()

Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

repeated string dest_ip_ranges = 337357713;

Returns
Type Description
ProtocolStringList

A list containing the destIpRanges.

getDestPorts(int index)

public String getDestPorts(int index)

Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string dest_ports = 379902005;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The destPorts at the given index.

getDestPortsBytes(int index)

public ByteString getDestPortsBytes(int index)

Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string dest_ports = 379902005;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the destPorts at the given index.

getDestPortsCount()

public int getDestPortsCount()

Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string dest_ports = 379902005;

Returns
Type Description
int

The count of destPorts.

getDestPortsList()

public ProtocolStringList getDestPortsList()

Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string dest_ports = 379902005;

Returns
Type Description
ProtocolStringList

A list containing the destPorts.

getIpProtocols(int index)

public String getIpProtocols(int index)

IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".

repeated string ip_protocols = 259213251;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipProtocols at the given index.

getIpProtocolsBytes(int index)

public ByteString getIpProtocolsBytes(int index)

IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".

repeated string ip_protocols = 259213251;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipProtocols at the given index.

getIpProtocolsCount()

public int getIpProtocolsCount()

IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".

repeated string ip_protocols = 259213251;

Returns
Type Description
int

The count of ipProtocols.

getIpProtocolsList()

public ProtocolStringList getIpProtocolsList()

IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".

repeated string ip_protocols = 259213251;

Returns
Type Description
ProtocolStringList

A list containing the ipProtocols.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSrcAsns(int index)

public int getSrcAsns(int index)

BGP Autonomous System Number associated with the source IP address.

repeated uint32 src_asns = 117825266;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The srcAsns at the given index.

getSrcAsnsCount()

public int getSrcAsnsCount()

BGP Autonomous System Number associated with the source IP address.

repeated uint32 src_asns = 117825266;

Returns
Type Description
int

The count of srcAsns.

getSrcAsnsList()

public List<Integer> getSrcAsnsList()

BGP Autonomous System Number associated with the source IP address.

repeated uint32 src_asns = 117825266;

Returns
Type Description
List<Integer>

A list containing the srcAsns.

getSrcIpRanges(int index)

public String getSrcIpRanges(int index)

Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

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)

Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

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()

Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

repeated string src_ip_ranges = 432128083;

Returns
Type Description
int

The count of srcIpRanges.

getSrcIpRangesList()

public ProtocolStringList getSrcIpRangesList()

Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.

repeated string src_ip_ranges = 432128083;

Returns
Type Description
ProtocolStringList

A list containing the srcIpRanges.

getSrcPorts(int index)

public String getSrcPorts(int index)

Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string src_ports = 445095415;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The srcPorts at the given index.

getSrcPortsBytes(int index)

public ByteString getSrcPortsBytes(int index)

Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string src_ports = 445095415;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the srcPorts at the given index.

getSrcPortsCount()

public int getSrcPortsCount()

Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string src_ports = 445095415;

Returns
Type Description
int

The count of srcPorts.

getSrcPortsList()

public ProtocolStringList getSrcPortsList()

Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023").

repeated string src_ports = 445095415;

Returns
Type Description
ProtocolStringList

A list containing the srcPorts.

getSrcRegionCodes(int index)

public String getSrcRegionCodes(int index)

Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.

repeated string src_region_codes = 99086742;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The srcRegionCodes at the given index.

getSrcRegionCodesBytes(int index)

public ByteString getSrcRegionCodesBytes(int index)

Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.

repeated string src_region_codes = 99086742;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the srcRegionCodes at the given index.

getSrcRegionCodesCount()

public int getSrcRegionCodesCount()

Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.

repeated string src_region_codes = 99086742;

Returns
Type Description
int

The count of srcRegionCodes.

getSrcRegionCodesList()

public ProtocolStringList getSrcRegionCodesList()

Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.

repeated string src_region_codes = 99086742;

Returns
Type Description
ProtocolStringList

A list containing the srcRegionCodes.

getUserDefinedFields(int index)

public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch getUserDefinedFields(int index)

User-defined fields. Each element names a defined field and lists the matching values for that field.

repeated .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch user_defined_fields = 28312739;

Parameter
Name Description
index int
Returns
Type Description
SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch

getUserDefinedFieldsCount()

public int getUserDefinedFieldsCount()

User-defined fields. Each element names a defined field and lists the matching values for that field.

repeated .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch user_defined_fields = 28312739;

Returns
Type Description
int

getUserDefinedFieldsList()

public List<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch> getUserDefinedFieldsList()

User-defined fields. Each element names a defined field and lists the matching values for that field.

repeated .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch user_defined_fields = 28312739;

Returns
Type Description
List<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>

getUserDefinedFieldsOrBuilder(int index)

public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchOrBuilder getUserDefinedFieldsOrBuilder(int index)

User-defined fields. Each element names a defined field and lists the matching values for that field.

repeated .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch user_defined_fields = 28312739;

Parameter
Name Description
index int
Returns
Type Description
SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchOrBuilder

getUserDefinedFieldsOrBuilderList()

public List<? extends SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchOrBuilder> getUserDefinedFieldsOrBuilderList()

User-defined fields. Each element names a defined field and lists the matching values for that field.

repeated .google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch user_defined_fields = 28312739;

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

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 SecurityPolicyRuleNetworkMatcher.Builder newBuilderForType()
Returns
Type Description
SecurityPolicyRuleNetworkMatcher.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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