Class SecurityPolicyRuleNetworkMatcher.Builder (1.46.0)

public static final class SecurityPolicyRuleNetworkMatcher.Builder extends GeneratedMessageV3.Builder<SecurityPolicyRuleNetworkMatcher.Builder> implements SecurityPolicyRuleNetworkMatcherOrBuilder

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

Protobuf type google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcher

Static Methods

getDescriptor()

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

Methods

addAllDestIpRanges(Iterable<String> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllDestIpRanges(Iterable<String> values)

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

repeated string dest_ip_ranges = 337357713;

Parameter
NameDescription
valuesIterable<String>

The destIpRanges to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addAllDestPorts(Iterable<String> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllDestPorts(Iterable<String> values)

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
valuesIterable<String>

The destPorts to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addAllIpProtocols(Iterable<String> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllIpProtocols(Iterable<String> values)

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
valuesIterable<String>

The ipProtocols to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addAllSrcAsns(Iterable<? extends Integer> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllSrcAsns(Iterable<? extends Integer> values)

BGP Autonomous System Number associated with the source IP address.

repeated uint32 src_asns = 117825266;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The srcAsns to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addAllSrcIpRanges(Iterable<String> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllSrcIpRanges(Iterable<String> values)

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

repeated string src_ip_ranges = 432128083;

Parameter
NameDescription
valuesIterable<String>

The srcIpRanges to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addAllSrcPorts(Iterable<String> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllSrcPorts(Iterable<String> values)

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
valuesIterable<String>

The srcPorts to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addAllSrcRegionCodes(Iterable<String> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllSrcRegionCodes(Iterable<String> values)

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

repeated string src_region_codes = 99086742;

Parameter
NameDescription
valuesIterable<String>

The srcRegionCodes to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addAllUserDefinedFields(Iterable<? extends SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch> values)

public SecurityPolicyRuleNetworkMatcher.Builder addAllUserDefinedFields(Iterable<? extends SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch> values)

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
valuesIterable<? extends com.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

addDestIpRanges(String value)

public SecurityPolicyRuleNetworkMatcher.Builder addDestIpRanges(String value)

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

repeated string dest_ip_ranges = 337357713;

Parameter
NameDescription
valueString

The destIpRanges to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addDestIpRangesBytes(ByteString value)

public SecurityPolicyRuleNetworkMatcher.Builder addDestIpRangesBytes(ByteString value)

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

repeated string dest_ip_ranges = 337357713;

Parameter
NameDescription
valueByteString

The bytes of the destIpRanges to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addDestPorts(String value)

public SecurityPolicyRuleNetworkMatcher.Builder addDestPorts(String value)

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
valueString

The destPorts to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addDestPortsBytes(ByteString value)

public SecurityPolicyRuleNetworkMatcher.Builder addDestPortsBytes(ByteString value)

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
valueByteString

The bytes of the destPorts to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addIpProtocols(String value)

public SecurityPolicyRuleNetworkMatcher.Builder addIpProtocols(String value)

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
valueString

The ipProtocols to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addIpProtocolsBytes(ByteString value)

public SecurityPolicyRuleNetworkMatcher.Builder addIpProtocolsBytes(ByteString value)

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
valueByteString

The bytes of the ipProtocols to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyRuleNetworkMatcher.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

addSrcAsns(int value)

public SecurityPolicyRuleNetworkMatcher.Builder addSrcAsns(int value)

BGP Autonomous System Number associated with the source IP address.

repeated uint32 src_asns = 117825266;

Parameter
NameDescription
valueint

The srcAsns to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addSrcIpRanges(String value)

public SecurityPolicyRuleNetworkMatcher.Builder addSrcIpRanges(String value)

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

repeated string src_ip_ranges = 432128083;

Parameter
NameDescription
valueString

The srcIpRanges to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addSrcIpRangesBytes(ByteString value)

public SecurityPolicyRuleNetworkMatcher.Builder addSrcIpRangesBytes(ByteString value)

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

repeated string src_ip_ranges = 432128083;

Parameter
NameDescription
valueByteString

The bytes of the srcIpRanges to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addSrcPorts(String value)

public SecurityPolicyRuleNetworkMatcher.Builder addSrcPorts(String value)

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
valueString

The srcPorts to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addSrcPortsBytes(ByteString value)

public SecurityPolicyRuleNetworkMatcher.Builder addSrcPortsBytes(ByteString value)

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
valueByteString

The bytes of the srcPorts to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addSrcRegionCodes(String value)

public SecurityPolicyRuleNetworkMatcher.Builder addSrcRegionCodes(String value)

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

repeated string src_region_codes = 99086742;

Parameter
NameDescription
valueString

The srcRegionCodes to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addSrcRegionCodesBytes(ByteString value)

public SecurityPolicyRuleNetworkMatcher.Builder addSrcRegionCodesBytes(ByteString value)

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

repeated string src_region_codes = 99086742;

Parameter
NameDescription
valueByteString

The bytes of the srcRegionCodes to add.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

addUserDefinedFields(SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch value)

public SecurityPolicyRuleNetworkMatcher.Builder addUserDefinedFields(SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch value)

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
valueSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

addUserDefinedFields(SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder builderForValue)

public SecurityPolicyRuleNetworkMatcher.Builder addUserDefinedFields(SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder builderForValue)

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
builderForValueSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

addUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch value)

public SecurityPolicyRuleNetworkMatcher.Builder addUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch value)

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;

Parameters
NameDescription
indexint
valueSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

addUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder builderForValue)

public SecurityPolicyRuleNetworkMatcher.Builder addUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

addUserDefinedFieldsBuilder()

public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder addUserDefinedFieldsBuilder()

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
SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder

addUserDefinedFieldsBuilder(int index)

public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder addUserDefinedFieldsBuilder(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.Builder

build()

public SecurityPolicyRuleNetworkMatcher build()
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher

buildPartial()

public SecurityPolicyRuleNetworkMatcher buildPartial()
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher

clear()

public SecurityPolicyRuleNetworkMatcher.Builder clear()
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

clearDestIpRanges()

public SecurityPolicyRuleNetworkMatcher.Builder clearDestIpRanges()

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

repeated string dest_ip_ranges = 337357713;

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

clearDestPorts()

public SecurityPolicyRuleNetworkMatcher.Builder clearDestPorts()

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
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SecurityPolicyRuleNetworkMatcher.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

clearIpProtocols()

public SecurityPolicyRuleNetworkMatcher.Builder clearIpProtocols()

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
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SecurityPolicyRuleNetworkMatcher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

clearSrcAsns()

public SecurityPolicyRuleNetworkMatcher.Builder clearSrcAsns()

BGP Autonomous System Number associated with the source IP address.

repeated uint32 src_asns = 117825266;

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

clearSrcIpRanges()

public SecurityPolicyRuleNetworkMatcher.Builder clearSrcIpRanges()

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

repeated string src_ip_ranges = 432128083;

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

clearSrcPorts()

public SecurityPolicyRuleNetworkMatcher.Builder clearSrcPorts()

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
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

clearSrcRegionCodes()

public SecurityPolicyRuleNetworkMatcher.Builder clearSrcRegionCodes()

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

repeated string src_region_codes = 99086742;

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

clearUserDefinedFields()

public SecurityPolicyRuleNetworkMatcher.Builder clearUserDefinedFields()

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
SecurityPolicyRuleNetworkMatcher.Builder

clone()

public SecurityPolicyRuleNetworkMatcher.Builder clone()
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

getDefaultInstanceForType()

public SecurityPolicyRuleNetworkMatcher getDefaultInstanceForType()
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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

getUserDefinedFieldsBuilder(int index)

public SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder getUserDefinedFieldsBuilder(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.Builder

getUserDefinedFieldsBuilderList()

public List<SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder> getUserDefinedFieldsBuilderList()

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<Builder>

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>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecurityPolicyRuleNetworkMatcher other)

public SecurityPolicyRuleNetworkMatcher.Builder mergeFrom(SecurityPolicyRuleNetworkMatcher other)
Parameter
NameDescription
otherSecurityPolicyRuleNetworkMatcher
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SecurityPolicyRuleNetworkMatcher.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SecurityPolicyRuleNetworkMatcher.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyRuleNetworkMatcher.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

removeUserDefinedFields(int index)

public SecurityPolicyRuleNetworkMatcher.Builder removeUserDefinedFields(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
SecurityPolicyRuleNetworkMatcher.Builder

setDestIpRanges(int index, String value)

public SecurityPolicyRuleNetworkMatcher.Builder setDestIpRanges(int index, String value)

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

repeated string dest_ip_ranges = 337357713;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The destIpRanges to set.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

setDestPorts(int index, String value)

public SecurityPolicyRuleNetworkMatcher.Builder setDestPorts(int index, String value)

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The destPorts to set.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SecurityPolicyRuleNetworkMatcher.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

setIpProtocols(int index, String value)

public SecurityPolicyRuleNetworkMatcher.Builder setIpProtocols(int index, String value)

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The ipProtocols to set.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SecurityPolicyRuleNetworkMatcher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

setSrcAsns(int index, int value)

public SecurityPolicyRuleNetworkMatcher.Builder setSrcAsns(int index, int value)

BGP Autonomous System Number associated with the source IP address.

repeated uint32 src_asns = 117825266;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The srcAsns to set.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

setSrcIpRanges(int index, String value)

public SecurityPolicyRuleNetworkMatcher.Builder setSrcIpRanges(int index, String value)

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

repeated string src_ip_ranges = 432128083;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The srcIpRanges to set.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

setSrcPorts(int index, String value)

public SecurityPolicyRuleNetworkMatcher.Builder setSrcPorts(int index, String value)

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The srcPorts to set.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

setSrcRegionCodes(int index, String value)

public SecurityPolicyRuleNetworkMatcher.Builder setSrcRegionCodes(int index, String value)

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

repeated string src_region_codes = 99086742;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The srcRegionCodes to set.

Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SecurityPolicyRuleNetworkMatcher.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder
Overrides

setUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch value)

public SecurityPolicyRuleNetworkMatcher.Builder setUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch value)

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;

Parameters
NameDescription
indexint
valueSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder

setUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder builderForValue)

public SecurityPolicyRuleNetworkMatcher.Builder setUserDefinedFields(int index, SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueSecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.Builder
Returns
TypeDescription
SecurityPolicyRuleNetworkMatcher.Builder