Class Condition.QueryTerm.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Condition.QueryTerm.Builder>
com.google.cloud.discoveryengine.v1beta.Condition.QueryTerm.Builder
All Implemented Interfaces:
Condition.QueryTermOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Condition.QueryTerm

public static final class Condition.QueryTerm.Builder extends com.google.protobuf.GeneratedMessage.Builder<Condition.QueryTerm.Builder> implements Condition.QueryTermOrBuilder
 Matcher for search request query
 
Protobuf type google.cloud.discoveryengine.v1beta.Condition.QueryTerm
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Whether the search query needs to exactly match the query term.
    The specific query value to match against Must be lowercase, must be UTF-8.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Whether the search query needs to exactly match the query term.
    The specific query value to match against Must be lowercase, must be UTF-8.
    com.google.protobuf.ByteString
    The specific query value to match against Must be lowercase, must be UTF-8.
    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)
     
    setFullMatch(boolean value)
    Whether the search query needs to exactly match the query term.
    The specific query value to match against Must be lowercase, must be UTF-8.
    setValueBytes(com.google.protobuf.ByteString value)
    The specific query value to match against Must be lowercase, must be UTF-8.

    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<Condition.QueryTerm.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<Condition.QueryTerm.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<Condition.QueryTerm.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Condition.QueryTerm.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<Condition.QueryTerm.Builder>
      Throws:
      IOException
    • getValue

      public String getValue()
       The specific query value to match against
      
       Must be lowercase, must be UTF-8.
       Can have at most 3 space separated terms if full_match is true.
       Cannot be an empty string.
       Maximum length of 5000 characters.
       
      string value = 1;
      Specified by:
      getValue in interface Condition.QueryTermOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The specific query value to match against
      
       Must be lowercase, must be UTF-8.
       Can have at most 3 space separated terms if full_match is true.
       Cannot be an empty string.
       Maximum length of 5000 characters.
       
      string value = 1;
      Specified by:
      getValueBytes in interface Condition.QueryTermOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public Condition.QueryTerm.Builder setValue(String value)
       The specific query value to match against
      
       Must be lowercase, must be UTF-8.
       Can have at most 3 space separated terms if full_match is true.
       Cannot be an empty string.
       Maximum length of 5000 characters.
       
      string value = 1;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Condition.QueryTerm.Builder clearValue()
       The specific query value to match against
      
       Must be lowercase, must be UTF-8.
       Can have at most 3 space separated terms if full_match is true.
       Cannot be an empty string.
       Maximum length of 5000 characters.
       
      string value = 1;
      Returns:
      This builder for chaining.
    • setValueBytes

      public Condition.QueryTerm.Builder setValueBytes(com.google.protobuf.ByteString value)
       The specific query value to match against
      
       Must be lowercase, must be UTF-8.
       Can have at most 3 space separated terms if full_match is true.
       Cannot be an empty string.
       Maximum length of 5000 characters.
       
      string value = 1;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • getFullMatch

      public boolean getFullMatch()
       Whether the search query needs to exactly match the query term.
       
      bool full_match = 2;
      Specified by:
      getFullMatch in interface Condition.QueryTermOrBuilder
      Returns:
      The fullMatch.
    • setFullMatch

      public Condition.QueryTerm.Builder setFullMatch(boolean value)
       Whether the search query needs to exactly match the query term.
       
      bool full_match = 2;
      Parameters:
      value - The fullMatch to set.
      Returns:
      This builder for chaining.
    • clearFullMatch

      public Condition.QueryTerm.Builder clearFullMatch()
       Whether the search query needs to exactly match the query term.
       
      bool full_match = 2;
      Returns:
      This builder for chaining.