Class FunctionScoreContainer

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.opensearch.protobufs.FunctionScoreContainer
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, FunctionScoreContainerOrBuilder

public final class FunctionScoreContainer extends com.google.protobuf.GeneratedMessageV3 implements FunctionScoreContainerOrBuilder
Protobuf type org.opensearch.protobufs.FunctionScoreContainer
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getFunctionScoreContainerCase

      public FunctionScoreContainer.FunctionScoreContainerCase getFunctionScoreContainerCase()
      Specified by:
      getFunctionScoreContainerCase in interface FunctionScoreContainerOrBuilder
    • hasFilter

      public boolean hasFilter()
      optional .org.opensearch.protobufs.QueryContainer filter = 1 [json_name = "filter"];
      Specified by:
      hasFilter in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the filter field is set.
    • getFilter

      public QueryContainer getFilter()
      optional .org.opensearch.protobufs.QueryContainer filter = 1 [json_name = "filter"];
      Specified by:
      getFilter in interface FunctionScoreContainerOrBuilder
      Returns:
      The filter.
    • getFilterOrBuilder

      public QueryContainerOrBuilder getFilterOrBuilder()
      optional .org.opensearch.protobufs.QueryContainer filter = 1 [json_name = "filter"];
      Specified by:
      getFilterOrBuilder in interface FunctionScoreContainerOrBuilder
    • hasWeight

      public boolean hasWeight()
      optional float weight = 2 [json_name = "weight"];
      Specified by:
      hasWeight in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the weight field is set.
    • getWeight

      public float getWeight()
      optional float weight = 2 [json_name = "weight"];
      Specified by:
      getWeight in interface FunctionScoreContainerOrBuilder
      Returns:
      The weight.
    • hasExp

      public boolean hasExp()
      .org.opensearch.protobufs.DecayFunction exp = 3 [json_name = "exp"];
      Specified by:
      hasExp in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the exp field is set.
    • getExp

      public DecayFunction getExp()
      .org.opensearch.protobufs.DecayFunction exp = 3 [json_name = "exp"];
      Specified by:
      getExp in interface FunctionScoreContainerOrBuilder
      Returns:
      The exp.
    • getExpOrBuilder

      public DecayFunctionOrBuilder getExpOrBuilder()
      .org.opensearch.protobufs.DecayFunction exp = 3 [json_name = "exp"];
      Specified by:
      getExpOrBuilder in interface FunctionScoreContainerOrBuilder
    • hasGauss

      public boolean hasGauss()
      .org.opensearch.protobufs.DecayFunction gauss = 4 [json_name = "gauss"];
      Specified by:
      hasGauss in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the gauss field is set.
    • getGauss

      public DecayFunction getGauss()
      .org.opensearch.protobufs.DecayFunction gauss = 4 [json_name = "gauss"];
      Specified by:
      getGauss in interface FunctionScoreContainerOrBuilder
      Returns:
      The gauss.
    • getGaussOrBuilder

      public DecayFunctionOrBuilder getGaussOrBuilder()
      .org.opensearch.protobufs.DecayFunction gauss = 4 [json_name = "gauss"];
      Specified by:
      getGaussOrBuilder in interface FunctionScoreContainerOrBuilder
    • hasLinear

      public boolean hasLinear()
      .org.opensearch.protobufs.DecayFunction linear = 5 [json_name = "linear"];
      Specified by:
      hasLinear in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the linear field is set.
    • getLinear

      public DecayFunction getLinear()
      .org.opensearch.protobufs.DecayFunction linear = 5 [json_name = "linear"];
      Specified by:
      getLinear in interface FunctionScoreContainerOrBuilder
      Returns:
      The linear.
    • getLinearOrBuilder

      public DecayFunctionOrBuilder getLinearOrBuilder()
      .org.opensearch.protobufs.DecayFunction linear = 5 [json_name = "linear"];
      Specified by:
      getLinearOrBuilder in interface FunctionScoreContainerOrBuilder
    • hasFieldValueFactor

      public boolean hasFieldValueFactor()
      .org.opensearch.protobufs.FieldValueFactorScoreFunction field_value_factor = 6 [json_name = "fieldValueFactor"];
      Specified by:
      hasFieldValueFactor in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the fieldValueFactor field is set.
    • getFieldValueFactor

      public FieldValueFactorScoreFunction getFieldValueFactor()
      .org.opensearch.protobufs.FieldValueFactorScoreFunction field_value_factor = 6 [json_name = "fieldValueFactor"];
      Specified by:
      getFieldValueFactor in interface FunctionScoreContainerOrBuilder
      Returns:
      The fieldValueFactor.
    • getFieldValueFactorOrBuilder

      public FieldValueFactorScoreFunctionOrBuilder getFieldValueFactorOrBuilder()
      .org.opensearch.protobufs.FieldValueFactorScoreFunction field_value_factor = 6 [json_name = "fieldValueFactor"];
      Specified by:
      getFieldValueFactorOrBuilder in interface FunctionScoreContainerOrBuilder
    • hasRandomScore

      public boolean hasRandomScore()
      .org.opensearch.protobufs.RandomScoreFunction random_score = 7 [json_name = "randomScore"];
      Specified by:
      hasRandomScore in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the randomScore field is set.
    • getRandomScore

      public RandomScoreFunction getRandomScore()
      .org.opensearch.protobufs.RandomScoreFunction random_score = 7 [json_name = "randomScore"];
      Specified by:
      getRandomScore in interface FunctionScoreContainerOrBuilder
      Returns:
      The randomScore.
    • getRandomScoreOrBuilder

      public RandomScoreFunctionOrBuilder getRandomScoreOrBuilder()
      .org.opensearch.protobufs.RandomScoreFunction random_score = 7 [json_name = "randomScore"];
      Specified by:
      getRandomScoreOrBuilder in interface FunctionScoreContainerOrBuilder
    • hasScriptScore

      public boolean hasScriptScore()
      .org.opensearch.protobufs.ScriptScoreFunction script_score = 8 [json_name = "scriptScore"];
      Specified by:
      hasScriptScore in interface FunctionScoreContainerOrBuilder
      Returns:
      Whether the scriptScore field is set.
    • getScriptScore

      public ScriptScoreFunction getScriptScore()
      .org.opensearch.protobufs.ScriptScoreFunction script_score = 8 [json_name = "scriptScore"];
      Specified by:
      getScriptScore in interface FunctionScoreContainerOrBuilder
      Returns:
      The scriptScore.
    • getScriptScoreOrBuilder

      public ScriptScoreFunctionOrBuilder getScriptScoreOrBuilder()
      .org.opensearch.protobufs.ScriptScoreFunction script_score = 8 [json_name = "scriptScore"];
      Specified by:
      getScriptScoreOrBuilder in interface FunctionScoreContainerOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static FunctionScoreContainer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FunctionScoreContainer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FunctionScoreContainer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FunctionScoreContainer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FunctionScoreContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FunctionScoreContainer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FunctionScoreContainer parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FunctionScoreContainer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FunctionScoreContainer parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FunctionScoreContainer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FunctionScoreContainer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FunctionScoreContainer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public FunctionScoreContainer.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static FunctionScoreContainer.Builder newBuilder()
    • newBuilder

      public static FunctionScoreContainer.Builder newBuilder(FunctionScoreContainer prototype)
    • toBuilder

      public FunctionScoreContainer.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FunctionScoreContainer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static FunctionScoreContainer getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FunctionScoreContainer> parser()
    • getParserForType

      public com.google.protobuf.Parser<FunctionScoreContainer> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public FunctionScoreContainer getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder