Class HttpRoute.RouteMatch

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.HttpRoute.RouteMatch
All Implemented Interfaces:
HttpRoute.RouteMatchOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
HttpRoute

public static final class HttpRoute.RouteMatch extends com.google.protobuf.GeneratedMessage implements HttpRoute.RouteMatchOrBuilder
 RouteMatch defines specifications used to match requests. If multiple match
 types are set, this RouteMatch will match if ALL type of matches are
 matched.
 
Protobuf type google.cloud.networkservices.v1.HttpRoute.RouteMatch
See Also:
  • Field Details

    • FULL_PATH_MATCH_FIELD_NUMBER

      public static final int FULL_PATH_MATCH_FIELD_NUMBER
      See Also:
    • PREFIX_MATCH_FIELD_NUMBER

      public static final int PREFIX_MATCH_FIELD_NUMBER
      See Also:
    • REGEX_MATCH_FIELD_NUMBER

      public static final int REGEX_MATCH_FIELD_NUMBER
      See Also:
    • IGNORE_CASE_FIELD_NUMBER

      public static final int IGNORE_CASE_FIELD_NUMBER
      See Also:
    • HEADERS_FIELD_NUMBER

      public static final int HEADERS_FIELD_NUMBER
      See Also:
    • QUERY_PARAMETERS_FIELD_NUMBER

      public static final int QUERY_PARAMETERS_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
    • getPathMatchCase

      public HttpRoute.RouteMatch.PathMatchCase getPathMatchCase()
      Specified by:
      getPathMatchCase in interface HttpRoute.RouteMatchOrBuilder
    • hasFullPathMatch

      public boolean hasFullPathMatch()
       The HTTP request path value should exactly match this value.
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string full_path_match = 1;
      Specified by:
      hasFullPathMatch in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      Whether the fullPathMatch field is set.
    • getFullPathMatch

      public String getFullPathMatch()
       The HTTP request path value should exactly match this value.
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string full_path_match = 1;
      Specified by:
      getFullPathMatch in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      The fullPathMatch.
    • getFullPathMatchBytes

      public com.google.protobuf.ByteString getFullPathMatchBytes()
       The HTTP request path value should exactly match this value.
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string full_path_match = 1;
      Specified by:
      getFullPathMatchBytes in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      The bytes for fullPathMatch.
    • hasPrefixMatch

      public boolean hasPrefixMatch()
       The HTTP request path value must begin with specified prefix_match.
       prefix_match must begin with a /.
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string prefix_match = 2;
      Specified by:
      hasPrefixMatch in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      Whether the prefixMatch field is set.
    • getPrefixMatch

      public String getPrefixMatch()
       The HTTP request path value must begin with specified prefix_match.
       prefix_match must begin with a /.
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string prefix_match = 2;
      Specified by:
      getPrefixMatch in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      The prefixMatch.
    • getPrefixMatchBytes

      public com.google.protobuf.ByteString getPrefixMatchBytes()
       The HTTP request path value must begin with specified prefix_match.
       prefix_match must begin with a /.
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string prefix_match = 2;
      Specified by:
      getPrefixMatchBytes in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      The bytes for prefixMatch.
    • hasRegexMatch

      public boolean hasRegexMatch()
       The HTTP request path value must satisfy the regular expression
       specified by regex_match after removing any query parameters and anchor
       supplied with the original URL. For regular expression grammar, please
       see https://github.com/google/re2/wiki/Syntax
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string regex_match = 3;
      Specified by:
      hasRegexMatch in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      Whether the regexMatch field is set.
    • getRegexMatch

      public String getRegexMatch()
       The HTTP request path value must satisfy the regular expression
       specified by regex_match after removing any query parameters and anchor
       supplied with the original URL. For regular expression grammar, please
       see https://github.com/google/re2/wiki/Syntax
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string regex_match = 3;
      Specified by:
      getRegexMatch in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      The regexMatch.
    • getRegexMatchBytes

      public com.google.protobuf.ByteString getRegexMatchBytes()
       The HTTP request path value must satisfy the regular expression
       specified by regex_match after removing any query parameters and anchor
       supplied with the original URL. For regular expression grammar, please
       see https://github.com/google/re2/wiki/Syntax
      
       Only one of full_path_match, prefix_match, or regex_match should be
       used.
       
      string regex_match = 3;
      Specified by:
      getRegexMatchBytes in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      The bytes for regexMatch.
    • getIgnoreCase

      public boolean getIgnoreCase()
       Specifies if prefix_match and full_path_match matches are case sensitive.
       The default value is false.
       
      bool ignore_case = 4;
      Specified by:
      getIgnoreCase in interface HttpRoute.RouteMatchOrBuilder
      Returns:
      The ignoreCase.
    • getHeadersList

      public List<HttpRoute.HeaderMatch> getHeadersList()
       Specifies a list of HTTP request headers to match against. ALL of the
       supplied headers must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
      Specified by:
      getHeadersList in interface HttpRoute.RouteMatchOrBuilder
    • getHeadersOrBuilderList

      public List<? extends HttpRoute.HeaderMatchOrBuilder> getHeadersOrBuilderList()
       Specifies a list of HTTP request headers to match against. ALL of the
       supplied headers must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
      Specified by:
      getHeadersOrBuilderList in interface HttpRoute.RouteMatchOrBuilder
    • getHeadersCount

      public int getHeadersCount()
       Specifies a list of HTTP request headers to match against. ALL of the
       supplied headers must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
      Specified by:
      getHeadersCount in interface HttpRoute.RouteMatchOrBuilder
    • getHeaders

      public HttpRoute.HeaderMatch getHeaders(int index)
       Specifies a list of HTTP request headers to match against. ALL of the
       supplied headers must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
      Specified by:
      getHeaders in interface HttpRoute.RouteMatchOrBuilder
    • getHeadersOrBuilder

      public HttpRoute.HeaderMatchOrBuilder getHeadersOrBuilder(int index)
       Specifies a list of HTTP request headers to match against. ALL of the
       supplied headers must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
      Specified by:
      getHeadersOrBuilder in interface HttpRoute.RouteMatchOrBuilder
    • getQueryParametersList

      public List<HttpRoute.QueryParameterMatch> getQueryParametersList()
       Specifies a list of query parameters to match against. ALL of the query
       parameters must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
      Specified by:
      getQueryParametersList in interface HttpRoute.RouteMatchOrBuilder
    • getQueryParametersOrBuilderList

      public List<? extends HttpRoute.QueryParameterMatchOrBuilder> getQueryParametersOrBuilderList()
       Specifies a list of query parameters to match against. ALL of the query
       parameters must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
      Specified by:
      getQueryParametersOrBuilderList in interface HttpRoute.RouteMatchOrBuilder
    • getQueryParametersCount

      public int getQueryParametersCount()
       Specifies a list of query parameters to match against. ALL of the query
       parameters must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
      Specified by:
      getQueryParametersCount in interface HttpRoute.RouteMatchOrBuilder
    • getQueryParameters

      public HttpRoute.QueryParameterMatch getQueryParameters(int index)
       Specifies a list of query parameters to match against. ALL of the query
       parameters must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
      Specified by:
      getQueryParameters in interface HttpRoute.RouteMatchOrBuilder
    • getQueryParametersOrBuilder

      public HttpRoute.QueryParameterMatchOrBuilder getQueryParametersOrBuilder(int index)
       Specifies a list of query parameters to match against. ALL of the query
       parameters must be matched.
       
      repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
      Specified by:
      getQueryParametersOrBuilder in interface HttpRoute.RouteMatchOrBuilder
    • 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 HttpRoute.RouteMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static HttpRoute.RouteMatch parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static HttpRoute.RouteMatch parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static HttpRoute.RouteMatch.Builder newBuilder()
    • newBuilder

      public static HttpRoute.RouteMatch.Builder newBuilder(HttpRoute.RouteMatch prototype)
    • toBuilder

      public HttpRoute.RouteMatch.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static HttpRoute.RouteMatch getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<HttpRoute.RouteMatch> 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 HttpRoute.RouteMatch getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder