1.109.0 (latest) 1.105.0 1.104.0 1.103.0 1.101.0 1.98.0 1.97.0 1.95.0 1.93.0 1.92.0 1.91.0 1.90.0 1.88.0 1.86.0 1.85.0 1.84.0 1.83.0 1.82.0 1.80.0 1.78.0 1.77.0 1.74.0 1.73.0 1.72.0 1.70.0 1.69.0 1.68.0 1.67.0 1.66.0 1.65.0 1.64.0 1.63.0 1.62.0 1.61.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.1 1.11.0 1.9.1 1.8.1 1.7.2 1.6.0-beta

    public interface SecurityPolicyRuleNetworkMatcherOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDestIpRanges(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The destIpRanges at the given index. |

### getDestIpRangesBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the destIpRanges at the given index. |

### getDestIpRangesCount()

    public abstract int getDestIpRangesCount()

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

`repeated string dest_ip_ranges = 337357713;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of destIpRanges. |

### getDestIpRangesList()

    public abstract List<String> getDestIpRangesList()

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

`repeated string dest_ip_ranges = 337357713;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the destIpRanges. |

### getDestPorts(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The destPorts at the given index. |

### getDestPortsBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the destPorts at the given index. |

### getDestPortsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of destPorts. |

### getDestPortsList()

    public abstract List<String> 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the destPorts. |

### getIpProtocols(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ipProtocols at the given index. |

### getIpProtocolsBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the ipProtocols at the given index. |

### getIpProtocolsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of ipProtocols. |

### getIpProtocolsList()

    public abstract List<String> 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the ipProtocols. |

### getSrcAsns(int index)

    public abstract int getSrcAsns(int index)

BGP Autonomous System Number associated with the source IP address.

`repeated uint32 src_asns = 117825266;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The srcAsns at the given index. |

### getSrcAsnsCount()

    public abstract int getSrcAsnsCount()

BGP Autonomous System Number associated with the source IP address.

`repeated uint32 src_asns = 117825266;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of srcAsns. |

### getSrcAsnsList()

    public abstract List<Integer> getSrcAsnsList()

BGP Autonomous System Number associated with the source IP address.

`repeated uint32 src_asns = 117825266;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html>` | A list containing the srcAsns. |

### getSrcIpRanges(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The srcIpRanges at the given index. |

### getSrcIpRangesBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the srcIpRanges at the given index. |

### getSrcIpRangesCount()

    public abstract int getSrcIpRangesCount()

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

`repeated string src_ip_ranges = 432128083;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of srcIpRanges. |

### getSrcIpRangesList()

    public abstract List<String> getSrcIpRangesList()

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

`repeated string src_ip_ranges = 432128083;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the srcIpRanges. |

### getSrcPorts(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The srcPorts at the given index. |

### getSrcPortsBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the srcPorts at the given index. |

### getSrcPortsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of srcPorts. |

### getSrcPortsList()

    public abstract List<String> 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the srcPorts. |

### getSrcRegionCodes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The srcRegionCodes at the given index. |

### getSrcRegionCodesBytes(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the srcRegionCodes at the given index. |

### getSrcRegionCodesCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of srcRegionCodes. |

### getSrcRegionCodesList()

    public abstract List<String> 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the srcRegionCodes. |

### getUserDefinedFields(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch` |   |

### getUserDefinedFieldsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getUserDefinedFieldsList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>` |   |

### getUserDefinedFieldsOrBuilder(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchOrBuilder` |   |

### getUserDefinedFieldsOrBuilderList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatchOrBuilder>` |   |