Class SecurityPolicyRuleNetworkMatcher (1.46.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
TypeDescription
int

DEST_PORTS_FIELD_NUMBER

public static final int DEST_PORTS_FIELD_NUMBER
Field Value
TypeDescription
int

IP_PROTOCOLS_FIELD_NUMBER

public static final int IP_PROTOCOLS_FIELD_NUMBER
Field Value
TypeDescription
int

SRC_ASNS_FIELD_NUMBER

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

public static final int SRC_PORTS_FIELD_NUMBER
Field Value
TypeDescription
int

SRC_REGION_CODES_FIELD_NUMBER

public static final int SRC_REGION_CODES_FIELD_NUMBER
Field Value
TypeDescription
int

USER_DEFINED_FIELDS_FIELD_NUMBER

public static final int USER_DEFINED_FIELDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SecurityPolicyRuleNetworkMatcher getDefaultInstance()
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher

getDescriptor()

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

newBuilder()

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

newBuilder(SecurityPolicyRuleNetworkMatcher prototype)

public static SecurityPolicyRuleNetworkMatcher.Builder newBuilder(SecurityPolicyRuleNetworkMatcher prototype)
Parameter
NameDescription
prototypeSecurityPolicyRuleNetworkMatcher
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SecurityPolicyRuleNetworkMatcher getDefaultInstanceForType()
Returns
TypeDescription
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
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)

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

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

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

repeated string dest_ip_ranges = 337357713;

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

The index of the element to return.

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

The index of the value to return.

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the ipProtocols.

getParserForType()

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

getSerializedSize()

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

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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)

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

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

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

repeated string src_ip_ranges = 432128083;

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

The index of the element to return.

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

The index of the value to return.

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

The index of the element to return.

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

The index of the value to return.

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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