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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SecurityPolicyRuleNetworkMatcher.Builder newBuilder()
newBuilder(SecurityPolicyRuleNetworkMatcher prototype)
public static SecurityPolicyRuleNetworkMatcher.Builder newBuilder(SecurityPolicyRuleNetworkMatcher prototype)
public static SecurityPolicyRuleNetworkMatcher parseDelimitedFrom(InputStream input)
public static SecurityPolicyRuleNetworkMatcher parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SecurityPolicyRuleNetworkMatcher parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyRuleNetworkMatcher parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SecurityPolicyRuleNetworkMatcher parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyRuleNetworkMatcher parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyRuleNetworkMatcher parseFrom(CodedInputStream input)
public static SecurityPolicyRuleNetworkMatcher parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyRuleNetworkMatcher parseFrom(InputStream input)
public static SecurityPolicyRuleNetworkMatcher parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SecurityPolicyRuleNetworkMatcher parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SecurityPolicyRuleNetworkMatcher parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SecurityPolicyRuleNetworkMatcher> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SecurityPolicyRuleNetworkMatcher getDefaultInstanceForType()
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;
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;
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;
getParserForType()
public Parser<SecurityPolicyRuleNetworkMatcher> getParserForType()
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;
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;
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;
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
|
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;
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
|
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SecurityPolicyRuleNetworkMatcher.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SecurityPolicyRuleNetworkMatcher.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SecurityPolicyRuleNetworkMatcher.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides