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.retail.v2alpha.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
 Query terms that we want to match on.
 
Protobuf type google.cloud.retail.v2alpha.Condition.QueryTerm
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Whether this is supposed to be a full or partial match.
    The value of the term to match on.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Whether this is supposed to be a full or partial match.
    The value of the term to match on.
    com.google.protobuf.ByteString
    The value of the term to match on.
    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 this is supposed to be a full or partial match.
    The value of the term to match on.
    setValueBytes(com.google.protobuf.ByteString value)
    The value of the term to match on.

    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 value of the term to match on.
       Value cannot be empty.
       Value can have at most 3 terms if specified as a partial match. Each
       space separated string is considered as one term.
       For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms
       and not allowed for a partial match.
       
      string value = 1;
      Specified by:
      getValue in interface Condition.QueryTermOrBuilder
      Returns:
      The value.
    • getValueBytes

      public com.google.protobuf.ByteString getValueBytes()
       The value of the term to match on.
       Value cannot be empty.
       Value can have at most 3 terms if specified as a partial match. Each
       space separated string is considered as one term.
       For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms
       and not allowed for a partial match.
       
      string value = 1;
      Specified by:
      getValueBytes in interface Condition.QueryTermOrBuilder
      Returns:
      The bytes for value.
    • setValue

      public Condition.QueryTerm.Builder setValue(String value)
       The value of the term to match on.
       Value cannot be empty.
       Value can have at most 3 terms if specified as a partial match. Each
       space separated string is considered as one term.
       For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms
       and not allowed for a partial match.
       
      string value = 1;
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public Condition.QueryTerm.Builder clearValue()
       The value of the term to match on.
       Value cannot be empty.
       Value can have at most 3 terms if specified as a partial match. Each
       space separated string is considered as one term.
       For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms
       and not allowed for a partial match.
       
      string value = 1;
      Returns:
      This builder for chaining.
    • setValueBytes

      public Condition.QueryTerm.Builder setValueBytes(com.google.protobuf.ByteString value)
       The value of the term to match on.
       Value cannot be empty.
       Value can have at most 3 terms if specified as a partial match. Each
       space separated string is considered as one term.
       For example, "a b c" is 3 terms and allowed, but " a b c d" is 4 terms
       and not allowed for a partial match.
       
      string value = 1;
      Parameters:
      value - The bytes for value to set.
      Returns:
      This builder for chaining.
    • getFullMatch

      public boolean getFullMatch()
       Whether this is supposed to be a full or partial match.
       
      bool full_match = 2;
      Specified by:
      getFullMatch in interface Condition.QueryTermOrBuilder
      Returns:
      The fullMatch.
    • setFullMatch

      public Condition.QueryTerm.Builder setFullMatch(boolean value)
       Whether this is supposed to be a full or partial match.
       
      bool full_match = 2;
      Parameters:
      value - The fullMatch to set.
      Returns:
      This builder for chaining.
    • clearFullMatch

      public Condition.QueryTerm.Builder clearFullMatch()
       Whether this is supposed to be a full or partial match.
       
      bool full_match = 2;
      Returns:
      This builder for chaining.