Class HttpRoute.QueryParameterMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
com.google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch.Builder
All Implemented Interfaces:
HttpRoute.QueryParameterMatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
HttpRoute.QueryParameterMatch

public static final class HttpRoute.QueryParameterMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder> implements HttpRoute.QueryParameterMatchOrBuilder
 Specifications to match a query parameter in the request.
 
Protobuf type google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch
  • 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.Builder<HttpRoute.QueryParameterMatch.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
    • getDefaultInstanceForType

      public HttpRoute.QueryParameterMatch getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public HttpRoute.QueryParameterMatch.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
    • mergeFrom

      public HttpRoute.QueryParameterMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HttpRoute.QueryParameterMatch.Builder>
      Throws:
      IOException
    • getMatchTypeCase

      Specified by:
      getMatchTypeCase in interface HttpRoute.QueryParameterMatchOrBuilder
    • clearMatchType

      public HttpRoute.QueryParameterMatch.Builder clearMatchType()
    • 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.
    • setExactMatch

      public HttpRoute.QueryParameterMatch.Builder setExactMatch(String value)
       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;
      Parameters:
      value - The exactMatch to set.
      Returns:
      This builder for chaining.
    • clearExactMatch

      public HttpRoute.QueryParameterMatch.Builder clearExactMatch()
       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;
      Returns:
      This builder for chaining.
    • setExactMatchBytes

      public HttpRoute.QueryParameterMatch.Builder setExactMatchBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for exactMatch to set.
      Returns:
      This builder for chaining.
    • 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.
    • setRegexMatch

      public HttpRoute.QueryParameterMatch.Builder setRegexMatch(String value)
       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;
      Parameters:
      value - The regexMatch to set.
      Returns:
      This builder for chaining.
    • clearRegexMatch

      public HttpRoute.QueryParameterMatch.Builder clearRegexMatch()
       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;
      Returns:
      This builder for chaining.
    • setRegexMatchBytes

      public HttpRoute.QueryParameterMatch.Builder setRegexMatchBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for regexMatch to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPresentMatch

      public HttpRoute.QueryParameterMatch.Builder setPresentMatch(boolean value)
       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;
      Parameters:
      value - The presentMatch to set.
      Returns:
      This builder for chaining.
    • clearPresentMatch

      public HttpRoute.QueryParameterMatch.Builder clearPresentMatch()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setQueryParameter

      public HttpRoute.QueryParameterMatch.Builder setQueryParameter(String value)
       The name of the query parameter to match.
       
      string query_parameter = 1;
      Parameters:
      value - The queryParameter to set.
      Returns:
      This builder for chaining.
    • clearQueryParameter

      public HttpRoute.QueryParameterMatch.Builder clearQueryParameter()
       The name of the query parameter to match.
       
      string query_parameter = 1;
      Returns:
      This builder for chaining.
    • setQueryParameterBytes

      public HttpRoute.QueryParameterMatch.Builder setQueryParameterBytes(com.google.protobuf.ByteString value)
       The name of the query parameter to match.
       
      string query_parameter = 1;
      Parameters:
      value - The bytes for queryParameter to set.
      Returns:
      This builder for chaining.