Package org.opensearch.protobufs
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 Summary
Modifier and TypeMethodDescriptionaddAllTerms(Iterable<String> values) repeated string terms = 2 [json_name = "terms"];addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) repeated string terms = 2 [json_name = "terms"];addTermsBytes(com.google.protobuf.ByteString value) repeated string terms = 2 [json_name = "terms"];build()clear()optional float boost = 3 [json_name = "boost"];string field = 1 [json_name = "field"];clearField(com.google.protobuf.Descriptors.FieldDescriptor field) optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) repeated string terms = 2 [json_name = "terms"];optional string x_name = 4 [json_name = "xName"];clone()floatgetBoost()optional float boost = 3 [json_name = "boost"];static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetField()string field = 1 [json_name = "field"];com.google.protobuf.ByteStringstring field = 1 [json_name = "field"];optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];com.google.protobuf.ByteStringoptional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];getTerms(int index) repeated string terms = 2 [json_name = "terms"];com.google.protobuf.ByteStringgetTermsBytes(int index) repeated string terms = 2 [json_name = "terms"];intrepeated string terms = 2 [json_name = "terms"];com.google.protobuf.ProtocolStringListrepeated string terms = 2 [json_name = "terms"];getXName()optional string x_name = 4 [json_name = "xName"];com.google.protobuf.ByteStringoptional string x_name = 4 [json_name = "xName"];booleanhasBoost()optional float boost = 3 [json_name = "boost"];booleanoptional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];booleanoptional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];booleanhasXName()optional string x_name = 4 [json_name = "xName"];protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TermsSetQuery other) optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];final TermsSetQuery.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBoost(float value) optional float boost = 3 [json_name = "boost"];string field = 1 [json_name = "field"];setFieldBytes(com.google.protobuf.ByteString value) string field = 1 [json_name = "field"];setMinimumShouldMatchField(String value) optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];setMinimumShouldMatchFieldBytes(com.google.protobuf.ByteString value) optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];setMinimumShouldMatchScript(Script.Builder builderForValue) optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) repeated string terms = 2 [json_name = "terms"];final TermsSetQuery.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) optional string x_name = 4 [json_name = "xName"];setXNameBytes(com.google.protobuf.ByteString value) optional string x_name = 4 [json_name = "xName"];Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
setField
public TermsSetQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
setRepeatedField
public TermsSetQuery.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
addRepeatedField
public TermsSetQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TermsSetQuery.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TermsSetQuery.Builder>- Throws:
IOException
-
getField
string field = 1 [json_name = "field"];- Specified by:
getFieldin interfaceTermsSetQueryOrBuilder- Returns:
- The field.
-
getFieldBytes
public com.google.protobuf.ByteString getFieldBytes()string field = 1 [json_name = "field"];- Specified by:
getFieldBytesin interfaceTermsSetQueryOrBuilder- Returns:
- The bytes for field.
-
setField
string field = 1 [json_name = "field"];- Parameters:
value- The field to set.- Returns:
- This builder for chaining.
-
clearField
string field = 1 [json_name = "field"];- Returns:
- This builder for chaining.
-
setFieldBytes
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:
getTermsListin interfaceTermsSetQueryOrBuilder- Returns:
- A list containing the terms.
-
getTermsCount
public int getTermsCount()repeated string terms = 2 [json_name = "terms"];- Specified by:
getTermsCountin interfaceTermsSetQueryOrBuilder- Returns:
- The count of terms.
-
getTerms
repeated string terms = 2 [json_name = "terms"];- Specified by:
getTermsin interfaceTermsSetQueryOrBuilder- 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:
getTermsBytesin interfaceTermsSetQueryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the terms at the given index.
-
setTerms
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
repeated string terms = 2 [json_name = "terms"];- Parameters:
value- The terms to add.- Returns:
- This builder for chaining.
-
addAllTerms
repeated string terms = 2 [json_name = "terms"];- Parameters:
values- The terms to add.- Returns:
- This builder for chaining.
-
clearTerms
repeated string terms = 2 [json_name = "terms"];- Returns:
- This builder for chaining.
-
addTermsBytes
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:
hasBoostin interfaceTermsSetQueryOrBuilder- Returns:
- Whether the boost field is set.
-
getBoost
public float getBoost()optional float boost = 3 [json_name = "boost"];- Specified by:
getBoostin interfaceTermsSetQueryOrBuilder- Returns:
- The boost.
-
setBoost
optional float boost = 3 [json_name = "boost"];- Parameters:
value- The boost to set.- Returns:
- This builder for chaining.
-
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:
hasXNamein interfaceTermsSetQueryOrBuilder- Returns:
- Whether the xName field is set.
-
getXName
optional string x_name = 4 [json_name = "xName"];- Specified by:
getXNamein interfaceTermsSetQueryOrBuilder- Returns:
- The xName.
-
getXNameBytes
public com.google.protobuf.ByteString getXNameBytes()optional string x_name = 4 [json_name = "xName"];- Specified by:
getXNameBytesin interfaceTermsSetQueryOrBuilder- Returns:
- The bytes for xName.
-
setXName
optional string x_name = 4 [json_name = "xName"];- Parameters:
value- The xName to set.- Returns:
- This builder for chaining.
-
clearXName
optional string x_name = 4 [json_name = "xName"];- Returns:
- This builder for chaining.
-
setXNameBytes
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:
hasMinimumShouldMatchFieldin interfaceTermsSetQueryOrBuilder- Returns:
- Whether the minimumShouldMatchField field is set.
-
getMinimumShouldMatchField
optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];- Specified by:
getMinimumShouldMatchFieldin interfaceTermsSetQueryOrBuilder- Returns:
- The minimumShouldMatchField.
-
getMinimumShouldMatchFieldBytes
public com.google.protobuf.ByteString getMinimumShouldMatchFieldBytes()optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];- Specified by:
getMinimumShouldMatchFieldBytesin interfaceTermsSetQueryOrBuilder- Returns:
- The bytes for minimumShouldMatchField.
-
setMinimumShouldMatchField
optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];- Parameters:
value- The minimumShouldMatchField to set.- Returns:
- This builder for chaining.
-
clearMinimumShouldMatchField
optional string minimum_should_match_field = 5 [json_name = "minimumShouldMatchField"];- Returns:
- This builder for chaining.
-
setMinimumShouldMatchFieldBytes
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:
hasMinimumShouldMatchScriptin interfaceTermsSetQueryOrBuilder- Returns:
- Whether the minimumShouldMatchScript field is set.
-
getMinimumShouldMatchScript
optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];- Specified by:
getMinimumShouldMatchScriptin interfaceTermsSetQueryOrBuilder- Returns:
- The minimumShouldMatchScript.
-
setMinimumShouldMatchScript
optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"]; -
setMinimumShouldMatchScript
optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"]; -
mergeMinimumShouldMatchScript
optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"]; -
clearMinimumShouldMatchScript
optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"]; -
getMinimumShouldMatchScriptBuilder
optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"]; -
getMinimumShouldMatchScriptOrBuilder
optional .org.opensearch.protobufs.Script minimum_should_match_script = 6 [json_name = "minimumShouldMatchScript"];- Specified by:
getMinimumShouldMatchScriptOrBuilderin interfaceTermsSetQueryOrBuilder
-
setUnknownFields
public final TermsSetQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-
mergeUnknownFields
public final TermsSetQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TermsSetQuery.Builder>
-