Send feedback
  
   
 
  
    
      Class HttpRoute.HeaderMatch (0.16.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  HttpRoute . HeaderMatch   extends   GeneratedMessageV3   implements   HttpRoute . HeaderMatchOrBuilder  
   Specifies how to select a route rule based on HTTP request headers.
 Protobuf type google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch
    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
   
  
  
    
public   static   final   int   EXACT_MATCH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   HEADER_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   INVERT_MATCH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   PREFIX_MATCH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   PRESENT_MATCH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   RANGE_MATCH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   REGEX_MATCH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   SUFFIX_MATCH_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
  
  
    
public   static   HttpRoute . HeaderMatch   getDefaultInstance ()  
  
  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch . Builder   newBuilder ()  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch . Builder   newBuilder ( HttpRoute . HeaderMatch   prototype )  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( ByteString   data )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( CodedInputStream   input )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( InputStream   input )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( ByteBuffer   data )  
  
  
  
  
  
  
    
public   static   HttpRoute . HeaderMatch   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
  
  
    
public   static   Parser<HttpRoute . HeaderMatch >  parser ()  
  
  Methods
   
  
  
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
  
  
    
public   HttpRoute . HeaderMatch   getDefaultInstanceForType ()  
  
  
  
  
    
public   String   getExactMatch ()  
   The value of the header should match exactly the content of
 exact_match.
 string exact_match = 2;
    
      
        Returns  
      
        Type Description  
      
        String The exactMatch.
 
     
  
  
  
  
    
public   ByteString   getExactMatchBytes ()  
   The value of the header should match exactly the content of
 exact_match.
 string exact_match = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for exactMatch.
 
     
  
  
  
  
    
public   String   getHeader ()  
   The name of the HTTP header to match against.
 string header = 1;
    
      
        Returns  
      
        Type Description  
      
        String The header.
 
     
  
  
  
  
    
public   ByteString   getHeaderBytes ()  
   The name of the HTTP header to match against.
 string header = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for header.
 
     
  
  
  
  
    
public   boolean   getInvertMatch ()  
   If specified, the match result will be inverted before checking. Default
 value is set to false.
 bool invert_match = 8;
    
      
        Returns  
      
        Type Description  
      
        boolean The invertMatch.
 
     
  
  
  
  
    
public   HttpRoute . HeaderMatch . MatchTypeCase   getMatchTypeCase ()  
  
  
  
  
    
public   Parser<HttpRoute . HeaderMatch >  getParserForType ()  
  
  Overrides 
  
  
  
  
    
public   String   getPrefixMatch ()  
   The value of the header must start with the contents of prefix_match.
 string prefix_match = 4;
    
      
        Returns  
      
        Type Description  
      
        String The prefixMatch.
 
     
  
  
  
  
    
public   ByteString   getPrefixMatchBytes ()  
   The value of the header must start with the contents of prefix_match.
 string prefix_match = 4;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for prefixMatch.
 
     
  
  
  
  
    
public   boolean   getPresentMatch ()  
   A header with header_name must exist. The match takes place whether or
 not the header has a value.
 bool present_match = 5;
    
      
        Returns  
      
        Type Description  
      
        boolean The presentMatch.
 
     
  
  
  
  
    
public   HttpRoute . HeaderMatch . IntegerRange   getRangeMatch ()  
   If specified, the rule will match if the request header value is within
 the range.
 
 .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRange range_match = 7;
 
    
public   HttpRoute . HeaderMatch . IntegerRangeOrBuilder   getRangeMatchOrBuilder ()  
   If specified, the rule will match if the request header value is within
 the range.
 
 .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRange range_match = 7;
 
    
public   String   getRegexMatch ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        String The regexMatch.
 
     
  
  
  
  
    
public   ByteString   getRegexMatchBytes ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for regexMatch.
 
     
  
  
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
  
  
    
public   String   getSuffixMatch ()  
   The value of the header must end with the contents of suffix_match.
 string suffix_match = 6;
    
      
        Returns  
      
        Type Description  
      
        String The suffixMatch.
 
     
  
  
  
  
    
public   ByteString   getSuffixMatchBytes ()  
   The value of the header must end with the contents of suffix_match.
 string suffix_match = 6;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for suffixMatch.
 
     
  
  
  
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  
  Overrides 
  
  
  
  
    
public   boolean   hasExactMatch ()  
   The value of the header should match exactly the content of
 exact_match.
 string exact_match = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the exactMatch field is set.
 
     
  
  
  
  
    
public   boolean   hasPrefixMatch ()  
   The value of the header must start with the contents of prefix_match.
 string prefix_match = 4;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the prefixMatch field is set.
 
     
  
  
  
  
    
public   boolean   hasPresentMatch ()  
   A header with header_name must exist. The match takes place whether or
 not the header has a value.
 bool present_match = 5;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the presentMatch field is set.
 
     
  
  
  
  
    
public   boolean   hasRangeMatch ()  
   If specified, the rule will match if the request header value is within
 the range.
 
 .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRange range_match = 7;
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the rangeMatch field is set.
 
     
  
  
  
  
    
public   boolean   hasRegexMatch ()  
  
  
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the regexMatch field is set.
 
     
  
  
  
  
    
public   boolean   hasSuffixMatch ()  
   The value of the header must end with the contents of suffix_match.
 string suffix_match = 6;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the suffixMatch field is set.
 
     
  
  
  
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
  
  
    
public   HttpRoute . HeaderMatch . Builder   newBuilderForType ()  
  
  
  
  
    
protected   HttpRoute . HeaderMatch . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
  
  
    
public   HttpRoute . HeaderMatch . Builder   toBuilder ()  
  
  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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-10 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]