Class HttpQueryParameterMatch.Builder

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

public static final class HttpQueryParameterMatch.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpQueryParameterMatch.Builder> implements HttpQueryParameterMatchOrBuilder
 HttpRouteRuleMatch criteria for a request's query parameter.
 
Protobuf type google.cloud.compute.v1.HttpQueryParameterMatch
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.
    The name of the query parameter to match.
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.
    com.google.protobuf.ByteString
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.
    The name of the query parameter to match.
    com.google.protobuf.ByteString
    The name of the query parameter to match.
    boolean
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.
    com.google.protobuf.ByteString
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.
    boolean
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.
    boolean
    The name of the query parameter to match.
    boolean
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.
    boolean
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.
    setExactMatchBytes(com.google.protobuf.ByteString value)
    The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch.
    setName(String value)
    The name of the query parameter to match.
    setNameBytes(com.google.protobuf.ByteString value)
    The name of the query parameter to match.
    setPresentMatch(boolean value)
    Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not.
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.
    setRegexMatchBytes(com.google.protobuf.ByteString value)
    The queryParameterMatch matches if the value of the parameter matches the regular expression specified byregexMatch.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<HttpQueryParameterMatch.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<HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
    • getDefaultInstanceForType

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

      public HttpQueryParameterMatch build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public HttpQueryParameterMatch.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<HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
    • mergeFrom

      public HttpQueryParameterMatch.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<HttpQueryParameterMatch.Builder>
      Throws:
      IOException
    • hasExactMatch

      public boolean hasExactMatch()
       The queryParameterMatch matches if the value of the
       parameter exactly matches the contents of exactMatch.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional string exact_match = 457641093;
      Specified by:
      hasExactMatch in interface HttpQueryParameterMatchOrBuilder
      Returns:
      Whether the exactMatch field is set.
    • getExactMatch

      public String getExactMatch()
       The queryParameterMatch matches if the value of the
       parameter exactly matches the contents of exactMatch.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional string exact_match = 457641093;
      Specified by:
      getExactMatch in interface HttpQueryParameterMatchOrBuilder
      Returns:
      The exactMatch.
    • getExactMatchBytes

      public com.google.protobuf.ByteString getExactMatchBytes()
       The queryParameterMatch matches if the value of the
       parameter exactly matches the contents of exactMatch.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional string exact_match = 457641093;
      Specified by:
      getExactMatchBytes in interface HttpQueryParameterMatchOrBuilder
      Returns:
      The bytes for exactMatch.
    • setExactMatch

      public HttpQueryParameterMatch.Builder setExactMatch(String value)
       The queryParameterMatch matches if the value of the
       parameter exactly matches the contents of exactMatch.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional string exact_match = 457641093;
      Parameters:
      value - The exactMatch to set.
      Returns:
      This builder for chaining.
    • clearExactMatch

      public HttpQueryParameterMatch.Builder clearExactMatch()
       The queryParameterMatch matches if the value of the
       parameter exactly matches the contents of exactMatch.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional string exact_match = 457641093;
      Returns:
      This builder for chaining.
    • setExactMatchBytes

      public HttpQueryParameterMatch.Builder setExactMatchBytes(com.google.protobuf.ByteString value)
       The queryParameterMatch matches if the value of the
       parameter exactly matches the contents of exactMatch.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional string exact_match = 457641093;
      Parameters:
      value - The bytes for exactMatch to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       The name of the query parameter to match. The query parameter must exist in
       the request, in the absence of which the request match fails.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface HttpQueryParameterMatchOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the query parameter to match. The query parameter must exist in
       the request, in the absence of which the request match fails.
       
      optional string name = 3373707;
      Specified by:
      getName in interface HttpQueryParameterMatchOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the query parameter to match. The query parameter must exist in
       the request, in the absence of which the request match fails.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface HttpQueryParameterMatchOrBuilder
      Returns:
      The bytes for name.
    • setName

      public HttpQueryParameterMatch.Builder setName(String value)
       The name of the query parameter to match. The query parameter must exist in
       the request, in the absence of which the request match fails.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public HttpQueryParameterMatch.Builder clearName()
       The name of the query parameter to match. The query parameter must exist in
       the request, in the absence of which the request match fails.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public HttpQueryParameterMatch.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the query parameter to match. The query parameter must exist in
       the request, in the absence of which the request match fails.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasPresentMatch

      public boolean hasPresentMatch()
       Specifies that the queryParameterMatch matches if the
       request contains the query parameter, irrespective of whether the
       parameter has a value or not.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional bool present_match = 67435841;
      Specified by:
      hasPresentMatch in interface HttpQueryParameterMatchOrBuilder
      Returns:
      Whether the presentMatch field is set.
    • getPresentMatch

      public boolean getPresentMatch()
       Specifies that the queryParameterMatch matches if the
       request contains the query parameter, irrespective of whether the
       parameter has a value or not.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional bool present_match = 67435841;
      Specified by:
      getPresentMatch in interface HttpQueryParameterMatchOrBuilder
      Returns:
      The presentMatch.
    • setPresentMatch

      public HttpQueryParameterMatch.Builder setPresentMatch(boolean value)
       Specifies that the queryParameterMatch matches if the
       request contains the query parameter, irrespective of whether the
       parameter has a value or not.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional bool present_match = 67435841;
      Parameters:
      value - The presentMatch to set.
      Returns:
      This builder for chaining.
    • clearPresentMatch

      public HttpQueryParameterMatch.Builder clearPresentMatch()
       Specifies that the queryParameterMatch matches if the
       request contains the query parameter, irrespective of whether the
       parameter has a value or not.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
       
      optional bool present_match = 67435841;
      Returns:
      This builder for chaining.
    • hasRegexMatch

      public boolean hasRegexMatch()
       The queryParameterMatch matches if the value of the
       parameter matches the regular expression specified byregexMatch. For
       more information about regular expression syntax, see Syntax.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
      
       Regular expressions can only be used when the loadBalancingScheme is
       set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
       (regional scope) or INTERNAL_MANAGED.
       
      optional string regex_match = 107387853;
      Specified by:
      hasRegexMatch in interface HttpQueryParameterMatchOrBuilder
      Returns:
      Whether the regexMatch field is set.
    • getRegexMatch

      public String getRegexMatch()
       The queryParameterMatch matches if the value of the
       parameter matches the regular expression specified byregexMatch. For
       more information about regular expression syntax, see Syntax.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
      
       Regular expressions can only be used when the loadBalancingScheme is
       set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
       (regional scope) or INTERNAL_MANAGED.
       
      optional string regex_match = 107387853;
      Specified by:
      getRegexMatch in interface HttpQueryParameterMatchOrBuilder
      Returns:
      The regexMatch.
    • getRegexMatchBytes

      public com.google.protobuf.ByteString getRegexMatchBytes()
       The queryParameterMatch matches if the value of the
       parameter matches the regular expression specified byregexMatch. For
       more information about regular expression syntax, see Syntax.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
      
       Regular expressions can only be used when the loadBalancingScheme is
       set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
       (regional scope) or INTERNAL_MANAGED.
       
      optional string regex_match = 107387853;
      Specified by:
      getRegexMatchBytes in interface HttpQueryParameterMatchOrBuilder
      Returns:
      The bytes for regexMatch.
    • setRegexMatch

      public HttpQueryParameterMatch.Builder setRegexMatch(String value)
       The queryParameterMatch matches if the value of the
       parameter matches the regular expression specified byregexMatch. For
       more information about regular expression syntax, see Syntax.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
      
       Regular expressions can only be used when the loadBalancingScheme is
       set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
       (regional scope) or INTERNAL_MANAGED.
       
      optional string regex_match = 107387853;
      Parameters:
      value - The regexMatch to set.
      Returns:
      This builder for chaining.
    • clearRegexMatch

      public HttpQueryParameterMatch.Builder clearRegexMatch()
       The queryParameterMatch matches if the value of the
       parameter matches the regular expression specified byregexMatch. For
       more information about regular expression syntax, see Syntax.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
      
       Regular expressions can only be used when the loadBalancingScheme is
       set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
       (regional scope) or INTERNAL_MANAGED.
       
      optional string regex_match = 107387853;
      Returns:
      This builder for chaining.
    • setRegexMatchBytes

      public HttpQueryParameterMatch.Builder setRegexMatchBytes(com.google.protobuf.ByteString value)
       The queryParameterMatch matches if the value of the
       parameter matches the regular expression specified byregexMatch. For
       more information about regular expression syntax, see Syntax.
      
       Only one of presentMatch, exactMatch, orregexMatch must be set.
      
       Regular expressions can only be used when the loadBalancingScheme is
       set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED
       (regional scope) or INTERNAL_MANAGED.
       
      optional string regex_match = 107387853;
      Parameters:
      value - The bytes for regexMatch to set.
      Returns:
      This builder for chaining.