Class FunctionScoreQuery.Builder

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

public static final class FunctionScoreQuery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FunctionScoreQuery.Builder> implements FunctionScoreQueryOrBuilder
Protobuf type org.opensearch.protobufs.FunctionScoreQuery
  • 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<FunctionScoreQuery.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<FunctionScoreQuery.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<FunctionScoreQuery.Builder>
    • getDefaultInstanceForType

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

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

      public FunctionScoreQuery buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<FunctionScoreQuery.Builder>
    • setField

      public FunctionScoreQuery.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<FunctionScoreQuery.Builder>
    • clearField

      public FunctionScoreQuery.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<FunctionScoreQuery.Builder>
    • clearOneof

      public FunctionScoreQuery.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<FunctionScoreQuery.Builder>
    • setRepeatedField

      public FunctionScoreQuery.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<FunctionScoreQuery.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public FunctionScoreQuery.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<FunctionScoreQuery.Builder>
      Throws:
      IOException
    • hasBoost

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

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

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

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

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

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

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

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

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

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

      public boolean hasBoostMode()
      optional .org.opensearch.protobufs.FunctionBoostMode boost_mode = 3 [json_name = "boostMode"];
      Specified by:
      hasBoostMode in interface FunctionScoreQueryOrBuilder
      Returns:
      Whether the boostMode field is set.
    • getBoostModeValue

      public int getBoostModeValue()
      optional .org.opensearch.protobufs.FunctionBoostMode boost_mode = 3 [json_name = "boostMode"];
      Specified by:
      getBoostModeValue in interface FunctionScoreQueryOrBuilder
      Returns:
      The enum numeric value on the wire for boostMode.
    • setBoostModeValue

      public FunctionScoreQuery.Builder setBoostModeValue(int value)
      optional .org.opensearch.protobufs.FunctionBoostMode boost_mode = 3 [json_name = "boostMode"];
      Parameters:
      value - The enum numeric value on the wire for boostMode to set.
      Returns:
      This builder for chaining.
    • getBoostMode

      public FunctionBoostMode getBoostMode()
      optional .org.opensearch.protobufs.FunctionBoostMode boost_mode = 3 [json_name = "boostMode"];
      Specified by:
      getBoostMode in interface FunctionScoreQueryOrBuilder
      Returns:
      The boostMode.
    • setBoostMode

      public FunctionScoreQuery.Builder setBoostMode(FunctionBoostMode value)
      optional .org.opensearch.protobufs.FunctionBoostMode boost_mode = 3 [json_name = "boostMode"];
      Parameters:
      value - The boostMode to set.
      Returns:
      This builder for chaining.
    • clearBoostMode

      public FunctionScoreQuery.Builder clearBoostMode()
      optional .org.opensearch.protobufs.FunctionBoostMode boost_mode = 3 [json_name = "boostMode"];
      Returns:
      This builder for chaining.
    • getFunctionsList

      public List<FunctionScoreContainer> getFunctionsList()
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
      Specified by:
      getFunctionsList in interface FunctionScoreQueryOrBuilder
    • getFunctionsCount

      public int getFunctionsCount()
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
      Specified by:
      getFunctionsCount in interface FunctionScoreQueryOrBuilder
    • getFunctions

      public FunctionScoreContainer getFunctions(int index)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
      Specified by:
      getFunctions in interface FunctionScoreQueryOrBuilder
    • setFunctions

      public FunctionScoreQuery.Builder setFunctions(int index, FunctionScoreContainer value)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • setFunctions

      public FunctionScoreQuery.Builder setFunctions(int index, FunctionScoreContainer.Builder builderForValue)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • addFunctions

      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • addFunctions

      public FunctionScoreQuery.Builder addFunctions(int index, FunctionScoreContainer value)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • addFunctions

      public FunctionScoreQuery.Builder addFunctions(FunctionScoreContainer.Builder builderForValue)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • addFunctions

      public FunctionScoreQuery.Builder addFunctions(int index, FunctionScoreContainer.Builder builderForValue)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • addAllFunctions

      public FunctionScoreQuery.Builder addAllFunctions(Iterable<? extends FunctionScoreContainer> values)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • clearFunctions

      public FunctionScoreQuery.Builder clearFunctions()
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • removeFunctions

      public FunctionScoreQuery.Builder removeFunctions(int index)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • getFunctionsBuilder

      public FunctionScoreContainer.Builder getFunctionsBuilder(int index)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • getFunctionsOrBuilder

      public FunctionScoreContainerOrBuilder getFunctionsOrBuilder(int index)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
      Specified by:
      getFunctionsOrBuilder in interface FunctionScoreQueryOrBuilder
    • getFunctionsOrBuilderList

      public List<? extends FunctionScoreContainerOrBuilder> getFunctionsOrBuilderList()
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
      Specified by:
      getFunctionsOrBuilderList in interface FunctionScoreQueryOrBuilder
    • addFunctionsBuilder

      public FunctionScoreContainer.Builder addFunctionsBuilder()
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • addFunctionsBuilder

      public FunctionScoreContainer.Builder addFunctionsBuilder(int index)
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • getFunctionsBuilderList

      public List<FunctionScoreContainer.Builder> getFunctionsBuilderList()
      repeated .org.opensearch.protobufs.FunctionScoreContainer functions = 4 [json_name = "functions"];
    • hasMaxBoost

      public boolean hasMaxBoost()
      optional float max_boost = 5 [json_name = "maxBoost"];
      Specified by:
      hasMaxBoost in interface FunctionScoreQueryOrBuilder
      Returns:
      Whether the maxBoost field is set.
    • getMaxBoost

      public float getMaxBoost()
      optional float max_boost = 5 [json_name = "maxBoost"];
      Specified by:
      getMaxBoost in interface FunctionScoreQueryOrBuilder
      Returns:
      The maxBoost.
    • setMaxBoost

      public FunctionScoreQuery.Builder setMaxBoost(float value)
      optional float max_boost = 5 [json_name = "maxBoost"];
      Parameters:
      value - The maxBoost to set.
      Returns:
      This builder for chaining.
    • clearMaxBoost

      public FunctionScoreQuery.Builder clearMaxBoost()
      optional float max_boost = 5 [json_name = "maxBoost"];
      Returns:
      This builder for chaining.
    • hasMinScore

      public boolean hasMinScore()
      optional float min_score = 6 [json_name = "minScore"];
      Specified by:
      hasMinScore in interface FunctionScoreQueryOrBuilder
      Returns:
      Whether the minScore field is set.
    • getMinScore

      public float getMinScore()
      optional float min_score = 6 [json_name = "minScore"];
      Specified by:
      getMinScore in interface FunctionScoreQueryOrBuilder
      Returns:
      The minScore.
    • setMinScore

      public FunctionScoreQuery.Builder setMinScore(float value)
      optional float min_score = 6 [json_name = "minScore"];
      Parameters:
      value - The minScore to set.
      Returns:
      This builder for chaining.
    • clearMinScore

      public FunctionScoreQuery.Builder clearMinScore()
      optional float min_score = 6 [json_name = "minScore"];
      Returns:
      This builder for chaining.
    • hasQuery

      public boolean hasQuery()
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
      Specified by:
      hasQuery in interface FunctionScoreQueryOrBuilder
      Returns:
      Whether the query field is set.
    • getQuery

      public QueryContainer getQuery()
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
      Specified by:
      getQuery in interface FunctionScoreQueryOrBuilder
      Returns:
      The query.
    • setQuery

      public FunctionScoreQuery.Builder setQuery(QueryContainer value)
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
    • setQuery

      public FunctionScoreQuery.Builder setQuery(QueryContainer.Builder builderForValue)
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
    • mergeQuery

      public FunctionScoreQuery.Builder mergeQuery(QueryContainer value)
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
    • clearQuery

      public FunctionScoreQuery.Builder clearQuery()
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
    • getQueryBuilder

      public QueryContainer.Builder getQueryBuilder()
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
    • getQueryOrBuilder

      public QueryContainerOrBuilder getQueryOrBuilder()
      optional .org.opensearch.protobufs.QueryContainer query = 7 [json_name = "query"];
      Specified by:
      getQueryOrBuilder in interface FunctionScoreQueryOrBuilder
    • hasScoreMode

      public boolean hasScoreMode()
      optional .org.opensearch.protobufs.FunctionScoreMode score_mode = 8 [json_name = "scoreMode"];
      Specified by:
      hasScoreMode in interface FunctionScoreQueryOrBuilder
      Returns:
      Whether the scoreMode field is set.
    • getScoreModeValue

      public int getScoreModeValue()
      optional .org.opensearch.protobufs.FunctionScoreMode score_mode = 8 [json_name = "scoreMode"];
      Specified by:
      getScoreModeValue in interface FunctionScoreQueryOrBuilder
      Returns:
      The enum numeric value on the wire for scoreMode.
    • setScoreModeValue

      public FunctionScoreQuery.Builder setScoreModeValue(int value)
      optional .org.opensearch.protobufs.FunctionScoreMode score_mode = 8 [json_name = "scoreMode"];
      Parameters:
      value - The enum numeric value on the wire for scoreMode to set.
      Returns:
      This builder for chaining.
    • getScoreMode

      public FunctionScoreMode getScoreMode()
      optional .org.opensearch.protobufs.FunctionScoreMode score_mode = 8 [json_name = "scoreMode"];
      Specified by:
      getScoreMode in interface FunctionScoreQueryOrBuilder
      Returns:
      The scoreMode.
    • setScoreMode

      public FunctionScoreQuery.Builder setScoreMode(FunctionScoreMode value)
      optional .org.opensearch.protobufs.FunctionScoreMode score_mode = 8 [json_name = "scoreMode"];
      Parameters:
      value - The scoreMode to set.
      Returns:
      This builder for chaining.
    • clearScoreMode

      public FunctionScoreQuery.Builder clearScoreMode()
      optional .org.opensearch.protobufs.FunctionScoreMode score_mode = 8 [json_name = "scoreMode"];
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final FunctionScoreQuery.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<FunctionScoreQuery.Builder>
    • mergeUnknownFields

      public final FunctionScoreQuery.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<FunctionScoreQuery.Builder>