Package org.opensearch.protobufs
Class GeoDistanceQuery.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GeoDistanceQuery.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
org.opensearch.protobufs.GeoDistanceQuery.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,GeoDistanceQueryOrBuilder
- Enclosing class:
GeoDistanceQuery
public static final class GeoDistanceQuery.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
implements GeoDistanceQueryOrBuilder
Protobuf type
org.opensearch.protobufs.GeoDistanceQuery-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()optional float boost = 2 [json_name = "boost"];string distance = 1 [json_name = "distance"];optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];clearField(com.google.protobuf.Descriptors.FieldDescriptor field) optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];optional string x_name = 3 [json_name = "xName"];clone()booleancontainsLocation(String key) map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];floatgetBoost()optional float boost = 2 [json_name = "boost"];static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorstring distance = 1 [json_name = "distance"];com.google.protobuf.ByteStringstring distance = 1 [json_name = "distance"];optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];intoptional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];booleanoptional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];Deprecated.intmap<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];getLocationOrDefault(String key, GeoLocation defaultValue) map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];getLocationOrThrow(String key) map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];Deprecated.getUnit()optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];intoptional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];intoptional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];getXName()optional string x_name = 3 [json_name = "xName"];com.google.protobuf.ByteStringoptional string x_name = 3 [json_name = "xName"];booleanhasBoost()optional float boost = 2 [json_name = "boost"];booleanoptional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];booleanoptional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];booleanhasUnit()optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];booleanoptional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];booleanhasXName()optional string x_name = 3 [json_name = "xName"];protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(GeoDistanceQuery other) final GeoDistanceQuery.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllLocation(Map<String, GeoLocation> values) map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];putLocation(String key, GeoLocation value) map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];removeLocation(String key) map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];setBoost(float value) optional float boost = 2 [json_name = "boost"];setDistance(String value) string distance = 1 [json_name = "distance"];setDistanceBytes(com.google.protobuf.ByteString value) string distance = 1 [json_name = "distance"];setDistanceType(GeoDistanceType value) optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];setDistanceTypeValue(int value) optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];setIgnoreUnmapped(boolean value) optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnit(DistanceUnit value) optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];setUnitValue(int value) optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];final GeoDistanceQuery.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];setValidationMethodValue(int value) optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];optional string x_name = 3 [json_name = "xName"];setXNameBytes(com.google.protobuf.ByteString value) optional string x_name = 3 [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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.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<GeoDistanceQuery.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<GeoDistanceQuery.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<GeoDistanceQuery.Builder>
-
setField
public GeoDistanceQuery.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<GeoDistanceQuery.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
-
setRepeatedField
public GeoDistanceQuery.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<GeoDistanceQuery.Builder>
-
addRepeatedField
public GeoDistanceQuery.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<GeoDistanceQuery.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GeoDistanceQuery.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
-
mergeFrom
public GeoDistanceQuery.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<GeoDistanceQuery.Builder>- Throws:
IOException
-
getDistance
string distance = 1 [json_name = "distance"];- Specified by:
getDistancein interfaceGeoDistanceQueryOrBuilder- Returns:
- The distance.
-
getDistanceBytes
public com.google.protobuf.ByteString getDistanceBytes()string distance = 1 [json_name = "distance"];- Specified by:
getDistanceBytesin interfaceGeoDistanceQueryOrBuilder- Returns:
- The bytes for distance.
-
setDistance
string distance = 1 [json_name = "distance"];- Parameters:
value- The distance to set.- Returns:
- This builder for chaining.
-
clearDistance
string distance = 1 [json_name = "distance"];- Returns:
- This builder for chaining.
-
setDistanceBytes
string distance = 1 [json_name = "distance"];- Parameters:
value- The bytes for distance to set.- Returns:
- This builder for chaining.
-
hasBoost
public boolean hasBoost()optional float boost = 2 [json_name = "boost"];- Specified by:
hasBoostin interfaceGeoDistanceQueryOrBuilder- Returns:
- Whether the boost field is set.
-
getBoost
public float getBoost()optional float boost = 2 [json_name = "boost"];- Specified by:
getBoostin interfaceGeoDistanceQueryOrBuilder- Returns:
- The boost.
-
setBoost
optional float boost = 2 [json_name = "boost"];- Parameters:
value- The boost to set.- Returns:
- This builder for chaining.
-
clearBoost
optional float boost = 2 [json_name = "boost"];- Returns:
- This builder for chaining.
-
hasXName
public boolean hasXName()optional string x_name = 3 [json_name = "xName"];- Specified by:
hasXNamein interfaceGeoDistanceQueryOrBuilder- Returns:
- Whether the xName field is set.
-
getXName
optional string x_name = 3 [json_name = "xName"];- Specified by:
getXNamein interfaceGeoDistanceQueryOrBuilder- Returns:
- The xName.
-
getXNameBytes
public com.google.protobuf.ByteString getXNameBytes()optional string x_name = 3 [json_name = "xName"];- Specified by:
getXNameBytesin interfaceGeoDistanceQueryOrBuilder- Returns:
- The bytes for xName.
-
setXName
optional string x_name = 3 [json_name = "xName"];- Parameters:
value- The xName to set.- Returns:
- This builder for chaining.
-
clearXName
optional string x_name = 3 [json_name = "xName"];- Returns:
- This builder for chaining.
-
setXNameBytes
optional string x_name = 3 [json_name = "xName"];- Parameters:
value- The bytes for xName to set.- Returns:
- This builder for chaining.
-
hasDistanceType
public boolean hasDistanceType()optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];- Specified by:
hasDistanceTypein interfaceGeoDistanceQueryOrBuilder- Returns:
- Whether the distanceType field is set.
-
getDistanceTypeValue
public int getDistanceTypeValue()optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];- Specified by:
getDistanceTypeValuein interfaceGeoDistanceQueryOrBuilder- Returns:
- The enum numeric value on the wire for distanceType.
-
setDistanceTypeValue
optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];- Parameters:
value- The enum numeric value on the wire for distanceType to set.- Returns:
- This builder for chaining.
-
getDistanceType
optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];- Specified by:
getDistanceTypein interfaceGeoDistanceQueryOrBuilder- Returns:
- The distanceType.
-
setDistanceType
optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];- Parameters:
value- The distanceType to set.- Returns:
- This builder for chaining.
-
clearDistanceType
optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];- Returns:
- This builder for chaining.
-
hasValidationMethod
public boolean hasValidationMethod()optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];- Specified by:
hasValidationMethodin interfaceGeoDistanceQueryOrBuilder- Returns:
- Whether the validationMethod field is set.
-
getValidationMethodValue
public int getValidationMethodValue()optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];- Specified by:
getValidationMethodValuein interfaceGeoDistanceQueryOrBuilder- Returns:
- The enum numeric value on the wire for validationMethod.
-
setValidationMethodValue
optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];- Parameters:
value- The enum numeric value on the wire for validationMethod to set.- Returns:
- This builder for chaining.
-
getValidationMethod
optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];- Specified by:
getValidationMethodin interfaceGeoDistanceQueryOrBuilder- Returns:
- The validationMethod.
-
setValidationMethod
optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];- Parameters:
value- The validationMethod to set.- Returns:
- This builder for chaining.
-
clearValidationMethod
optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];- Returns:
- This builder for chaining.
-
hasIgnoreUnmapped
public boolean hasIgnoreUnmapped()optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];- Specified by:
hasIgnoreUnmappedin interfaceGeoDistanceQueryOrBuilder- Returns:
- Whether the ignoreUnmapped field is set.
-
getIgnoreUnmapped
public boolean getIgnoreUnmapped()optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];- Specified by:
getIgnoreUnmappedin interfaceGeoDistanceQueryOrBuilder- Returns:
- The ignoreUnmapped.
-
setIgnoreUnmapped
optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];- Parameters:
value- The ignoreUnmapped to set.- Returns:
- This builder for chaining.
-
clearIgnoreUnmapped
optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];- Returns:
- This builder for chaining.
-
hasUnit
public boolean hasUnit()optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];- Specified by:
hasUnitin interfaceGeoDistanceQueryOrBuilder- Returns:
- Whether the unit field is set.
-
getUnitValue
public int getUnitValue()optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];- Specified by:
getUnitValuein interfaceGeoDistanceQueryOrBuilder- Returns:
- The enum numeric value on the wire for unit.
-
setUnitValue
optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];- Parameters:
value- The enum numeric value on the wire for unit to set.- Returns:
- This builder for chaining.
-
getUnit
optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];- Specified by:
getUnitin interfaceGeoDistanceQueryOrBuilder- Returns:
- The unit.
-
setUnit
optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];- Parameters:
value- The unit to set.- Returns:
- This builder for chaining.
-
clearUnit
optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];- Returns:
- This builder for chaining.
-
getLocationCount
public int getLocationCount()Description copied from interface:GeoDistanceQueryOrBuildermap<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];- Specified by:
getLocationCountin interfaceGeoDistanceQueryOrBuilder
-
containsLocation
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];- Specified by:
containsLocationin interfaceGeoDistanceQueryOrBuilder
-
getLocation
Deprecated.UsegetLocationMap()instead.- Specified by:
getLocationin interfaceGeoDistanceQueryOrBuilder
-
getLocationMap
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];- Specified by:
getLocationMapin interfaceGeoDistanceQueryOrBuilder
-
getLocationOrDefault
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];- Specified by:
getLocationOrDefaultin interfaceGeoDistanceQueryOrBuilder
-
getLocationOrThrow
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];- Specified by:
getLocationOrThrowin interfaceGeoDistanceQueryOrBuilder
-
clearLocation
-
removeLocation
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"]; -
getMutableLocation
Deprecated.Use alternate mutation accessors instead. -
putLocation
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"]; -
putAllLocation
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"]; -
putLocationBuilderIfAbsent
map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"]; -
setUnknownFields
public final GeoDistanceQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
-
mergeUnknownFields
public final GeoDistanceQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
-