Class SecurityPolicyRuleNetworkMatcher

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcher
All Implemented Interfaces:
SecurityPolicyRuleNetworkMatcherOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class SecurityPolicyRuleNetworkMatcher extends com.google.protobuf.GeneratedMessage implements SecurityPolicyRuleNetworkMatcherOrBuilder
 Represents a match condition that incoming network traffic is evaluated
 against.
 
Protobuf type google.cloud.compute.v1.SecurityPolicyRuleNetworkMatcher
See Also:
  • Field Details

    • DEST_IP_RANGES_FIELD_NUMBER

      public static final int DEST_IP_RANGES_FIELD_NUMBER
      See Also:
    • DEST_PORTS_FIELD_NUMBER

      public static final int DEST_PORTS_FIELD_NUMBER
      See Also:
    • IP_PROTOCOLS_FIELD_NUMBER

      public static final int IP_PROTOCOLS_FIELD_NUMBER
      See Also:
    • SRC_ASNS_FIELD_NUMBER

      public static final int SRC_ASNS_FIELD_NUMBER
      See Also:
    • SRC_IP_RANGES_FIELD_NUMBER

      public static final int SRC_IP_RANGES_FIELD_NUMBER
      See Also:
    • SRC_PORTS_FIELD_NUMBER

      public static final int SRC_PORTS_FIELD_NUMBER
      See Also:
    • SRC_REGION_CODES_FIELD_NUMBER

      public static final int SRC_REGION_CODES_FIELD_NUMBER
      See Also:
    • USER_DEFINED_FIELDS_FIELD_NUMBER

      public static final int USER_DEFINED_FIELDS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDestIpRangesList

      public com.google.protobuf.ProtocolStringList getDestIpRangesList()
       Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text
       format.
       
      repeated string dest_ip_ranges = 337357713;
      Specified by:
      getDestIpRangesList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      A list containing the destIpRanges.
    • getDestIpRangesCount

      public int getDestIpRangesCount()
       Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text
       format.
       
      repeated string dest_ip_ranges = 337357713;
      Specified by:
      getDestIpRangesCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      The count of destIpRanges.
    • getDestIpRanges

      public String getDestIpRanges(int index)
       Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text
       format.
       
      repeated string dest_ip_ranges = 337357713;
      Specified by:
      getDestIpRanges in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The destIpRanges at the given index.
    • getDestIpRangesBytes

      public com.google.protobuf.ByteString getDestIpRangesBytes(int index)
       Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text
       format.
       
      repeated string dest_ip_ranges = 337357713;
      Specified by:
      getDestIpRangesBytes in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the destIpRanges at the given index.
    • getDestPortsList

      public com.google.protobuf.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;
      Specified by:
      getDestPortsList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      A list containing the destPorts.
    • 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;
      Specified by:
      getDestPortsCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      The count of destPorts.
    • getDestPorts

      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;
      Specified by:
      getDestPorts in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The destPorts at the given index.
    • getDestPortsBytes

      public com.google.protobuf.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;
      Specified by:
      getDestPortsBytes in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the destPorts at the given index.
    • getIpProtocolsList

      public com.google.protobuf.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;
      Specified by:
      getIpProtocolsList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      A list containing the ipProtocols.
    • 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;
      Specified by:
      getIpProtocolsCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      The count of ipProtocols.
    • getIpProtocols

      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;
      Specified by:
      getIpProtocols in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ipProtocols at the given index.
    • getIpProtocolsBytes

      public com.google.protobuf.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;
      Specified by:
      getIpProtocolsBytes in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ipProtocols at the given index.
    • getSrcAsnsList

      public List<Integer> getSrcAsnsList()
       BGP Autonomous System Number associated with the source IP address.
       
      repeated uint32 src_asns = 117825266;
      Specified by:
      getSrcAsnsList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      A list containing the srcAsns.
    • getSrcAsnsCount

      public int getSrcAsnsCount()
       BGP Autonomous System Number associated with the source IP address.
       
      repeated uint32 src_asns = 117825266;
      Specified by:
      getSrcAsnsCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      The count of srcAsns.
    • getSrcAsns

      public int getSrcAsns(int index)
       BGP Autonomous System Number associated with the source IP address.
       
      repeated uint32 src_asns = 117825266;
      Specified by:
      getSrcAsns in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The srcAsns at the given index.
    • getSrcIpRangesList

      public com.google.protobuf.ProtocolStringList getSrcIpRangesList()
       Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
       
      repeated string src_ip_ranges = 432128083;
      Specified by:
      getSrcIpRangesList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      A list containing the srcIpRanges.
    • getSrcIpRangesCount

      public int getSrcIpRangesCount()
       Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
       
      repeated string src_ip_ranges = 432128083;
      Specified by:
      getSrcIpRangesCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      The count of srcIpRanges.
    • getSrcIpRanges

      public String getSrcIpRanges(int index)
       Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
       
      repeated string src_ip_ranges = 432128083;
      Specified by:
      getSrcIpRanges in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The srcIpRanges at the given index.
    • getSrcIpRangesBytes

      public com.google.protobuf.ByteString getSrcIpRangesBytes(int index)
       Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
       
      repeated string src_ip_ranges = 432128083;
      Specified by:
      getSrcIpRangesBytes in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the srcIpRanges at the given index.
    • getSrcPortsList

      public com.google.protobuf.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;
      Specified by:
      getSrcPortsList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      A list containing the srcPorts.
    • 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;
      Specified by:
      getSrcPortsCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      The count of srcPorts.
    • getSrcPorts

      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;
      Specified by:
      getSrcPorts in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The srcPorts at the given index.
    • getSrcPortsBytes

      public com.google.protobuf.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;
      Specified by:
      getSrcPortsBytes in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the srcPorts at the given index.
    • getSrcRegionCodesList

      public com.google.protobuf.ProtocolStringList getSrcRegionCodesList()
       Two-letter ISO 3166-1 alpha-2 country code associated with the source
       IP address.
       
      repeated string src_region_codes = 99086742;
      Specified by:
      getSrcRegionCodesList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      A list containing the srcRegionCodes.
    • 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;
      Specified by:
      getSrcRegionCodesCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Returns:
      The count of srcRegionCodes.
    • getSrcRegionCodes

      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;
      Specified by:
      getSrcRegionCodes in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The srcRegionCodes at the given index.
    • getSrcRegionCodesBytes

      public com.google.protobuf.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;
      Specified by:
      getSrcRegionCodesBytes in interface SecurityPolicyRuleNetworkMatcherOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the srcRegionCodes at the given index.
    • 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;
      Specified by:
      getUserDefinedFieldsList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
    • 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;
      Specified by:
      getUserDefinedFieldsOrBuilderList in interface SecurityPolicyRuleNetworkMatcherOrBuilder
    • 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;
      Specified by:
      getUserDefinedFieldsCount in interface SecurityPolicyRuleNetworkMatcherOrBuilder
    • getUserDefinedFields

      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;
      Specified by:
      getUserDefinedFields in interface SecurityPolicyRuleNetworkMatcherOrBuilder
    • getUserDefinedFieldsOrBuilder

      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;
      Specified by:
      getUserDefinedFieldsOrBuilder in interface SecurityPolicyRuleNetworkMatcherOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityPolicyRuleNetworkMatcher parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SecurityPolicyRuleNetworkMatcher parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SecurityPolicyRuleNetworkMatcher parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SecurityPolicyRuleNetworkMatcher.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SecurityPolicyRuleNetworkMatcher.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SecurityPolicyRuleNetworkMatcher.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static SecurityPolicyRuleNetworkMatcher getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SecurityPolicyRuleNetworkMatcher> parser()
    • getParserForType

      public com.google.protobuf.Parser<SecurityPolicyRuleNetworkMatcher> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public SecurityPolicyRuleNetworkMatcher getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder