Class FirewallPolicyRuleMatcher (1.6.0-beta) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 1.6.0-betakeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  FirewallPolicyRuleMatcher   extends   GeneratedMessageV3   implements   FirewallPolicyRuleMatcherOrBuilder  
   
   Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
 Protobuf type google.cloud.compute.v1.FirewallPolicyRuleMatcher
 
  
  
  
  Fields
   
  DEST_IP_RANGES_FIELD_NUMBER 
  
    
public   static   final   int   DEST_IP_RANGES_FIELD_NUMBER  
   
  Field Value 
  
  LAYER4_CONFIGS_FIELD_NUMBER 
  
    
public   static   final   int   LAYER4_CONFIGS_FIELD_NUMBER  
   
  Field Value 
  
  SRC_IP_RANGES_FIELD_NUMBER 
  
    
public   static   final   int   SRC_IP_RANGES_FIELD_NUMBER  
   
  Field Value 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstance() 
  
    
public   static   FirewallPolicyRuleMatcher   getDefaultInstance ()  
   
  Returns 
  
   
  getDefaultInstanceForType() 
  
    
public   FirewallPolicyRuleMatcher   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  getDestIpRanges(int index) 
  
    
public   String   getDestIpRanges ( int   index )  
   
   CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
 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 )  
   
   CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
 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 ()  
   
   CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
 repeated string dest_ip_ranges = 337357713;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The count of destIpRanges.
 
       
     
  
   
  getDestIpRangesList() 
  
    
public   ProtocolStringList   getDestIpRangesList ()  
   
   CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
 repeated string dest_ip_ranges = 337357713;
 
  Returns 
  
   
  getLayer4Configs(int index) 
  
    
public   FirewallPolicyRuleMatcherLayer4Config   getLayer4Configs ( int   index )  
   
   Pairs of IP protocols and ports that the rule should match.
 
 repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getLayer4ConfigsCount() 
  
    
public   int   getLayer4ConfigsCount ()  
   
   Pairs of IP protocols and ports that the rule should match.
 
 repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
 
 
  Returns 
  
   
  getLayer4ConfigsList() 
  
    
public   List<FirewallPolicyRuleMatcherLayer4Config>   getLayer4ConfigsList ()  
   
   Pairs of IP protocols and ports that the rule should match.
 
 repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
 
 
  Returns 
  
   
  getLayer4ConfigsOrBuilder(int index) 
  
    
public   FirewallPolicyRuleMatcherLayer4ConfigOrBuilder   getLayer4ConfigsOrBuilder ( int   index )  
   
   Pairs of IP protocols and ports that the rule should match.
 
 repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
 
 
  Parameter 
  
    
      
        Name  
        Description  
       
      
        index  
        int  
       
     
  
  Returns 
  
   
  getLayer4ConfigsOrBuilderList() 
  
    
public   List <?   extends   FirewallPolicyRuleMatcherLayer4ConfigOrBuilder >  getLayer4ConfigsOrBuilderList ()  
   
   Pairs of IP protocols and ports that the rule should match.
 
 repeated .google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4Config layer4_configs = 373534261;
 
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        List <? extends com.google.cloud.compute.v1.FirewallPolicyRuleMatcherLayer4ConfigOrBuilder > 
         
       
     
  
   
  getParserForType() 
  
    
public   Parser<FirewallPolicyRuleMatcher>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getSrcIpRanges(int index) 
  
    
public   String   getSrcIpRanges ( int   index )  
   
   CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
 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 )  
   
   CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
 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 ()  
   
   CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
 repeated string src_ip_ranges = 432128083;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        int  
        The count of srcIpRanges.
 
       
     
  
   
  getSrcIpRangesList() 
  
    
public   ProtocolStringList   getSrcIpRangesList ()  
   
   CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
 repeated string src_ip_ranges = 432128083;
 
  Returns 
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  hashCode() 
  
  Returns 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilder() 
  
    
public   static   FirewallPolicyRuleMatcher . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(FirewallPolicyRuleMatcher prototype) 
  
    
public   static   FirewallPolicyRuleMatcher . Builder   newBuilder ( FirewallPolicyRuleMatcher   prototype )  
   
  Parameter 
  
  Returns 
  
   
  newBuilderForType() 
  
    
public   FirewallPolicyRuleMatcher . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   FirewallPolicyRuleMatcher . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  
  
    
public   static   FirewallPolicyRuleMatcher   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   FirewallPolicyRuleMatcher   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   FirewallPolicyRuleMatcher   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<FirewallPolicyRuleMatcher>   parser ()  
   
  Returns 
  
   
  toBuilder() 
  
    
public   FirewallPolicyRuleMatcher . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]