Class HttpRoute.QueryParameterMatch

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch
All Implemented Interfaces:
HttpRoute.QueryParameterMatchOrBuilder, 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.QueryParameterMatch extends com.google.protobuf.GeneratedMessage implements HttpRoute.QueryParameterMatchOrBuilder
 Specifications to match a query parameter in the request.
 
Protobuf type google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch
See Also:
  • Field Details

    • EXACT_MATCH_FIELD_NUMBER

      public static final int EXACT_MATCH_FIELD_NUMBER
      See Also:
    • REGEX_MATCH_FIELD_NUMBER

      public static final int REGEX_MATCH_FIELD_NUMBER
      See Also:
    • PRESENT_MATCH_FIELD_NUMBER

      public static final int PRESENT_MATCH_FIELD_NUMBER
      See Also:
    • QUERY_PARAMETER_FIELD_NUMBER

      public static final int QUERY_PARAMETER_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
    • getMatchTypeCase

      Specified by:
      getMatchTypeCase in interface HttpRoute.QueryParameterMatchOrBuilder
    • hasExactMatch

      public boolean hasExactMatch()
       The value of the query parameter must exactly match the contents of
       exact_match.
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      string exact_match = 2;
      Specified by:
      hasExactMatch in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      Whether the exactMatch field is set.
    • getExactMatch

      public String getExactMatch()
       The value of the query parameter must exactly match the contents of
       exact_match.
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      string exact_match = 2;
      Specified by:
      getExactMatch in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      The exactMatch.
    • getExactMatchBytes

      public com.google.protobuf.ByteString getExactMatchBytes()
       The value of the query parameter must exactly match the contents of
       exact_match.
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      string exact_match = 2;
      Specified by:
      getExactMatchBytes in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      The bytes for exactMatch.
    • hasRegexMatch

      public boolean hasRegexMatch()
       The value of the query parameter must match the regular expression
       specified by regex_match. For regular expression grammar, please see
       https://github.com/google/re2/wiki/Syntax
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      string regex_match = 3;
      Specified by:
      hasRegexMatch in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      Whether the regexMatch field is set.
    • getRegexMatch

      public String getRegexMatch()
       The value of the query parameter must match the regular expression
       specified by regex_match. For regular expression grammar, please see
       https://github.com/google/re2/wiki/Syntax
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      string regex_match = 3;
      Specified by:
      getRegexMatch in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      The regexMatch.
    • getRegexMatchBytes

      public com.google.protobuf.ByteString getRegexMatchBytes()
       The value of the query parameter must match the regular expression
       specified by regex_match. For regular expression grammar, please see
       https://github.com/google/re2/wiki/Syntax
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      string regex_match = 3;
      Specified by:
      getRegexMatchBytes in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      The bytes for regexMatch.
    • hasPresentMatch

      public boolean hasPresentMatch()
       Specifies that the QueryParameterMatcher matches if request contains
       query parameter, irrespective of whether the parameter has a value or
       not.
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      bool present_match = 4;
      Specified by:
      hasPresentMatch in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      Whether the presentMatch field is set.
    • getPresentMatch

      public boolean getPresentMatch()
       Specifies that the QueryParameterMatcher matches if request contains
       query parameter, irrespective of whether the parameter has a value or
       not.
      
       Only one of exact_match, regex_match, or present_match must be set.
       
      bool present_match = 4;
      Specified by:
      getPresentMatch in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      The presentMatch.
    • getQueryParameter

      public String getQueryParameter()
       The name of the query parameter to match.
       
      string query_parameter = 1;
      Specified by:
      getQueryParameter in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      The queryParameter.
    • getQueryParameterBytes

      public com.google.protobuf.ByteString getQueryParameterBytes()
       The name of the query parameter to match.
       
      string query_parameter = 1;
      Specified by:
      getQueryParameterBytes in interface HttpRoute.QueryParameterMatchOrBuilder
      Returns:
      The bytes for queryParameter.
    • 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.QueryParameterMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static HttpRoute.QueryParameterMatch 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.QueryParameterMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

    • toBuilder

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

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

      public static HttpRoute.QueryParameterMatch getDefaultInstance()
    • parser

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

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