Class TermsSetQuery.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TermsSetQuery.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
org.opensearch.protobufs.TermsSetQuery.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TermsSetQueryOrBuilder
Enclosing class:
TermsSetQuery

public static final class TermsSetQuery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder> implements TermsSetQueryOrBuilder
Protobuf type org.opensearch.protobufs.TermsSetQuery
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • clear

      public TermsSetQuery.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.GeneratedMessageV3.Builder<TermsSetQuery.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.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • getDefaultInstanceForType

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

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

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

      public TermsSetQuery.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • setField

      public TermsSetQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • clearField

      public TermsSetQuery.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • clearOneof

      public TermsSetQuery.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • setRepeatedField

      public TermsSetQuery.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • addRepeatedField

      public TermsSetQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • mergeFrom

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

      public TermsSetQuery.Builder mergeFrom(TermsSetQuery other)
    • isInitialized

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

      public TermsSetQuery.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<TermsSetQuery.Builder>
      Throws:
      IOException
    • getField

      public String getField()
      string field = 1 [json_name = "field"];
      Specified by:
      getField in interface TermsSetQueryOrBuilder
      Returns:
      The field.
    • getFieldBytes

      public com.google.protobuf.ByteString getFieldBytes()
      string field = 1 [json_name = "field"];
      Specified by:
      getFieldBytes in interface TermsSetQueryOrBuilder
      Returns:
      The bytes for field.
    • setField

      public TermsSetQuery.Builder setField(String value)
      string field = 1 [json_name = "field"];
      Parameters:
      value - The field to set.
      Returns:
      This builder for chaining.
    • clearField

      public TermsSetQuery.Builder clearField()
      string field = 1 [json_name = "field"];
      Returns:
      This builder for chaining.
    • setFieldBytes

      public TermsSetQuery.Builder setFieldBytes(com.google.protobuf.ByteString value)
      string field = 1 [json_name = "field"];
      Parameters:
      value - The bytes for field to set.
      Returns:
      This builder for chaining.
    • getTermsList

      public com.google.protobuf.ProtocolStringList getTermsList()
      repeated string terms = 2 [json_name = "terms"];
      Specified by:
      getTermsList in interface TermsSetQueryOrBuilder
      Returns:
      A list containing the terms.
    • getTermsCount

      public int getTermsCount()
      repeated string terms = 2 [json_name = "terms"];
      Specified by:
      getTermsCount in interface TermsSetQueryOrBuilder
      Returns:
      The count of terms.
    • getTerms

      public String getTerms(int index)
      repeated string terms = 2 [json_name = "terms"];
      Specified by:
      getTerms in interface TermsSetQueryOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The terms at the given index.
    • getTermsBytes

      public com.google.protobuf.ByteString getTermsBytes(int index)
      repeated string terms = 2 [json_name = "terms"];
      Specified by:
      getTermsBytes in interface TermsSetQueryOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the terms at the given index.
    • setTerms

      public TermsSetQuery.Builder setTerms(int index, String value)
      repeated string terms = 2 [json_name = "terms"];
      Parameters:
      index - The index to set the value at.
      value - The terms to set.
      Returns:
      This builder for chaining.
    • addTerms

      public TermsSetQuery.Builder addTerms(String value)
      repeated string terms = 2 [json_name = "terms"];
      Parameters:
      value - The terms to add.
      Returns:
      This builder for chaining.
    • addAllTerms

      public TermsSetQuery.Builder addAllTerms(Iterable<String> values)
      repeated string terms = 2 [json_name = "terms"];
      Parameters:
      values - The terms to add.
      Returns:
      This builder for chaining.
    • clearTerms

      public TermsSetQuery.Builder clearTerms()
      repeated string terms = 2 [json_name = "terms"];
      Returns:
      This builder for chaining.
    • addTermsBytes

      public TermsSetQuery.Builder addTermsBytes(com.google.protobuf.ByteString value)
      repeated string terms = 2 [json_name = "terms"];
      Parameters:
      value - The bytes of the terms to add.
      Returns:
      This builder for chaining.
    • hasBoost

      public boolean hasBoost()
      optional float boost = 3 [json_name = "boost"];
      Specified by:
      hasBoost in interface TermsSetQueryOrBuilder
      Returns:
      Whether the boost field is set.
    • getBoost

      public float getBoost()
      optional float boost = 3 [json_name = "boost"];
      Specified by:
      getBoost in interface TermsSetQueryOrBuilder
      Returns:
      The boost.
    • setBoost

      public TermsSetQuery.Builder setBoost(float value)
      optional float boost = 3 [json_name = "boost"];
      Parameters:
      value - The boost to set.
      Returns:
      This builder for chaining.
    • clearBoost

      public TermsSetQuery.Builder clearBoost()
      optional float boost = 3 [json_name = "boost"];
      Returns:
      This builder for chaining.
    • hasXName

      public boolean hasXName()
      optional string x_name = 4 [json_name = "xName"];
      Specified by:
      hasXName in interface TermsSetQueryOrBuilder
      Returns:
      Whether the xName field is set.
    • getXName

      public String getXName()
      optional string x_name = 4 [json_name = "xName"];
      Specified by:
      getXName in interface TermsSetQueryOrBuilder
      Returns:
      The xName.
    • getXNameBytes

      public com.google.protobuf.ByteString getXNameBytes()
      optional string x_name = 4 [json_name = "xName"];
      Specified by:
      getXNameBytes in interface TermsSetQueryOrBuilder
      Returns:
      The bytes for xName.
    • setXName

      public TermsSetQuery.Builder setXName(String value)
      optional string x_name = 4 [json_name = "xName"];
      Parameters:
      value - The xName to set.
      Returns:
      This builder for chaining.
    • clearXName

      public TermsSetQuery.Builder clearXName()
      optional string x_name = 4 [json_name = "xName"];
      Returns:
      This builder for chaining.
    • setXNameBytes

      public TermsSetQuery.Builder setXNameBytes(com.google.protobuf.ByteString value)
      optional string x_name = 4 [json_name = "xName"];
      Parameters:
      value - The bytes for xName to set.
      Returns:
      This builder for chaining.
    • hasMinimumShouldMatchField

      public boolean hasMinimumShouldMatchField()
      optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];
      Specified by:
      hasMinimumShouldMatchField in interface TermsSetQueryOrBuilder
      Returns:
      Whether the minimumShouldMatchField field is set.
    • getMinimumShouldMatchField

      public String getMinimumShouldMatchField()
      optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];
      Specified by:
      getMinimumShouldMatchField in interface TermsSetQueryOrBuilder
      Returns:
      The minimumShouldMatchField.
    • getMinimumShouldMatchFieldBytes

      public com.google.protobuf.ByteString getMinimumShouldMatchFieldBytes()
      optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];
      Specified by:
      getMinimumShouldMatchFieldBytes in interface TermsSetQueryOrBuilder
      Returns:
      The bytes for minimumShouldMatchField.
    • setMinimumShouldMatchField

      public TermsSetQuery.Builder setMinimumShouldMatchField(String value)
      optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];
      Parameters:
      value - The minimumShouldMatchField to set.
      Returns:
      This builder for chaining.
    • clearMinimumShouldMatchField

      public TermsSetQuery.Builder clearMinimumShouldMatchField()
      optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];
      Returns:
      This builder for chaining.
    • setMinimumShouldMatchFieldBytes

      public TermsSetQuery.Builder setMinimumShouldMatchFieldBytes(com.google.protobuf.ByteString value)
      optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];
      Parameters:
      value - The bytes for minimumShouldMatchField to set.
      Returns:
      This builder for chaining.
    • hasMinimumShouldMatchScript

      public boolean hasMinimumShouldMatchScript()
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
      Specified by:
      hasMinimumShouldMatchScript in interface TermsSetQueryOrBuilder
      Returns:
      Whether the minimumShouldMatchScript field is set.
    • getMinimumShouldMatchScript

      public Script getMinimumShouldMatchScript()
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
      Specified by:
      getMinimumShouldMatchScript in interface TermsSetQueryOrBuilder
      Returns:
      The minimumShouldMatchScript.
    • setMinimumShouldMatchScript

      public TermsSetQuery.Builder setMinimumShouldMatchScript(Script value)
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
    • setMinimumShouldMatchScript

      public TermsSetQuery.Builder setMinimumShouldMatchScript(Script.Builder builderForValue)
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
    • mergeMinimumShouldMatchScript

      public TermsSetQuery.Builder mergeMinimumShouldMatchScript(Script value)
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
    • clearMinimumShouldMatchScript

      public TermsSetQuery.Builder clearMinimumShouldMatchScript()
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
    • getMinimumShouldMatchScriptBuilder

      public Script.Builder getMinimumShouldMatchScriptBuilder()
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
    • getMinimumShouldMatchScriptOrBuilder

      public ScriptOrBuilder getMinimumShouldMatchScriptOrBuilder()
      optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];
      Specified by:
      getMinimumShouldMatchScriptOrBuilder in interface TermsSetQueryOrBuilder
    • setUnknownFields

      public final TermsSetQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
    • mergeUnknownFields

      public final TermsSetQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>