Class MatchQuery

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

public final class MatchQuery extends com.google.protobuf.GeneratedMessageV3 implements MatchQueryOrBuilder
Protobuf type MatchQuery
See Also:
  • Field Details

    • BOOST_FIELD_NUMBER

      public static final int BOOST_FIELD_NUMBER
      See Also:
    • X_NAME_FIELD_NUMBER

      public static final int X_NAME_FIELD_NUMBER
      See Also:
    • ANALYZER_FIELD_NUMBER

      public static final int ANALYZER_FIELD_NUMBER
      See Also:
    • AUTO_GENERATE_SYNONYMS_PHRASE_QUERY_FIELD_NUMBER

      public static final int AUTO_GENERATE_SYNONYMS_PHRASE_QUERY_FIELD_NUMBER
      See Also:
    • CUTOFF_FREQUENCY_FIELD_NUMBER

      public static final int CUTOFF_FREQUENCY_FIELD_NUMBER
      See Also:
    • FUZZINESS_FIELD_NUMBER

      public static final int FUZZINESS_FIELD_NUMBER
      See Also:
    • FUZZY_REWRITE_FIELD_NUMBER

      public static final int FUZZY_REWRITE_FIELD_NUMBER
      See Also:
    • FUZZY_TRANSPOSITIONS_FIELD_NUMBER

      public static final int FUZZY_TRANSPOSITIONS_FIELD_NUMBER
      See Also:
    • LENIENT_FIELD_NUMBER

      public static final int LENIENT_FIELD_NUMBER
      See Also:
    • MAX_EXPANSIONS_FIELD_NUMBER

      public static final int MAX_EXPANSIONS_FIELD_NUMBER
      See Also:
    • MINIMUM_SHOULD_MATCH_FIELD_NUMBER

      public static final int MINIMUM_SHOULD_MATCH_FIELD_NUMBER
      See Also:
    • OPERATOR_FIELD_NUMBER

      public static final int OPERATOR_FIELD_NUMBER
      See Also:
    • PREFIX_LENGTH_FIELD_NUMBER

      public static final int PREFIX_LENGTH_FIELD_NUMBER
      See Also:
    • QUERY_FIELD_NUMBER

      public static final int QUERY_FIELD_NUMBER
      See Also:
    • ZERO_TERMS_QUERY_FIELD_NUMBER

      public static final int ZERO_TERMS_QUERY_FIELD_NUMBER
      See Also:
  • 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
    • hasBoost

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

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

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

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

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

      public String getAnalyzer()
      string analyzer = 3 [json_name = "analyzer"];
      Specified by:
      getAnalyzer in interface MatchQueryOrBuilder
      Returns:
      The analyzer.
    • getAnalyzerBytes

      public com.google.protobuf.ByteString getAnalyzerBytes()
      string analyzer = 3 [json_name = "analyzer"];
      Specified by:
      getAnalyzerBytes in interface MatchQueryOrBuilder
      Returns:
      The bytes for analyzer.
    • getAutoGenerateSynonymsPhraseQuery

      public boolean getAutoGenerateSynonymsPhraseQuery()
      bool auto_generate_synonyms_phrase_query = 4 [json_name = "autoGenerateSynonymsPhraseQuery"];
      Specified by:
      getAutoGenerateSynonymsPhraseQuery in interface MatchQueryOrBuilder
      Returns:
      The autoGenerateSynonymsPhraseQuery.
    • getCutoffFrequency

      public float getCutoffFrequency()
      float cutoff_frequency = 5 [json_name = "cutoffFrequency"];
      Specified by:
      getCutoffFrequency in interface MatchQueryOrBuilder
      Returns:
      The cutoffFrequency.
    • hasFuzziness

      public boolean hasFuzziness()
      .Fuzziness fuzziness = 6 [json_name = "fuzziness"];
      Specified by:
      hasFuzziness in interface MatchQueryOrBuilder
      Returns:
      Whether the fuzziness field is set.
    • getFuzziness

      public Fuzziness getFuzziness()
      .Fuzziness fuzziness = 6 [json_name = "fuzziness"];
      Specified by:
      getFuzziness in interface MatchQueryOrBuilder
      Returns:
      The fuzziness.
    • getFuzzinessOrBuilder

      public FuzzinessOrBuilder getFuzzinessOrBuilder()
      .Fuzziness fuzziness = 6 [json_name = "fuzziness"];
      Specified by:
      getFuzzinessOrBuilder in interface MatchQueryOrBuilder
    • getFuzzyRewriteValue

      public int getFuzzyRewriteValue()
      .MultiTermQueryRewrite fuzzy_rewrite = 7 [json_name = "fuzzyRewrite"];
      Specified by:
      getFuzzyRewriteValue in interface MatchQueryOrBuilder
      Returns:
      The enum numeric value on the wire for fuzzyRewrite.
    • getFuzzyRewrite

      public MultiTermQueryRewrite getFuzzyRewrite()
      .MultiTermQueryRewrite fuzzy_rewrite = 7 [json_name = "fuzzyRewrite"];
      Specified by:
      getFuzzyRewrite in interface MatchQueryOrBuilder
      Returns:
      The fuzzyRewrite.
    • getFuzzyTranspositions

      public boolean getFuzzyTranspositions()
      bool fuzzy_transpositions = 8 [json_name = "fuzzyTranspositions"];
      Specified by:
      getFuzzyTranspositions in interface MatchQueryOrBuilder
      Returns:
      The fuzzyTranspositions.
    • getLenient

      public boolean getLenient()
      bool lenient = 9 [json_name = "lenient"];
      Specified by:
      getLenient in interface MatchQueryOrBuilder
      Returns:
      The lenient.
    • getMaxExpansions

      public int getMaxExpansions()
      int32 max_expansions = 10 [json_name = "maxExpansions"];
      Specified by:
      getMaxExpansions in interface MatchQueryOrBuilder
      Returns:
      The maxExpansions.
    • hasMinimumShouldMatch

      public boolean hasMinimumShouldMatch()
      .MinimumShouldMatch minimum_should_match = 11 [json_name = "minimumShouldMatch"];
      Specified by:
      hasMinimumShouldMatch in interface MatchQueryOrBuilder
      Returns:
      Whether the minimumShouldMatch field is set.
    • getMinimumShouldMatch

      public MinimumShouldMatch getMinimumShouldMatch()
      .MinimumShouldMatch minimum_should_match = 11 [json_name = "minimumShouldMatch"];
      Specified by:
      getMinimumShouldMatch in interface MatchQueryOrBuilder
      Returns:
      The minimumShouldMatch.
    • getMinimumShouldMatchOrBuilder

      public MinimumShouldMatchOrBuilder getMinimumShouldMatchOrBuilder()
      .MinimumShouldMatch minimum_should_match = 11 [json_name = "minimumShouldMatch"];
      Specified by:
      getMinimumShouldMatchOrBuilder in interface MatchQueryOrBuilder
    • getOperatorValue

      public int getOperatorValue()
      .Operator operator = 12 [json_name = "operator"];
      Specified by:
      getOperatorValue in interface MatchQueryOrBuilder
      Returns:
      The enum numeric value on the wire for operator.
    • getOperator

      public Operator getOperator()
      .Operator operator = 12 [json_name = "operator"];
      Specified by:
      getOperator in interface MatchQueryOrBuilder
      Returns:
      The operator.
    • getPrefixLength

      public int getPrefixLength()
      int32 prefix_length = 13 [json_name = "prefixLength"];
      Specified by:
      getPrefixLength in interface MatchQueryOrBuilder
      Returns:
      The prefixLength.
    • hasQuery

      public boolean hasQuery()
      .FieldValue query = 14 [json_name = "query"];
      Specified by:
      hasQuery in interface MatchQueryOrBuilder
      Returns:
      Whether the query field is set.
    • getQuery

      public FieldValue getQuery()
      .FieldValue query = 14 [json_name = "query"];
      Specified by:
      getQuery in interface MatchQueryOrBuilder
      Returns:
      The query.
    • getQueryOrBuilder

      public FieldValueOrBuilder getQueryOrBuilder()
      .FieldValue query = 14 [json_name = "query"];
      Specified by:
      getQueryOrBuilder in interface MatchQueryOrBuilder
    • getZeroTermsQueryValue

      public int getZeroTermsQueryValue()
      .ZeroTermsQuery zero_terms_query = 15 [json_name = "zeroTermsQuery"];
      Specified by:
      getZeroTermsQueryValue in interface MatchQueryOrBuilder
      Returns:
      The enum numeric value on the wire for zeroTermsQuery.
    • getZeroTermsQuery

      public ZeroTermsQuery getZeroTermsQuery()
      .ZeroTermsQuery zero_terms_query = 15 [json_name = "zeroTermsQuery"];
      Specified by:
      getZeroTermsQuery in interface MatchQueryOrBuilder
      Returns:
      The zeroTermsQuery.
    • 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 MatchQuery parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static MatchQuery.Builder newBuilder()
    • newBuilder

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

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

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

      public static MatchQuery getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<MatchQuery> 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 MatchQuery getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder