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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceQuery.Builder>
    • clear

      public GeoDistanceQuery.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<GeoDistanceQuery.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<GeoDistanceQuery.Builder>
    • getDefaultInstanceForType

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

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

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

      public GeoDistanceQuery.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<GeoDistanceQuery.Builder>
    • setField

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

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

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

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

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

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

      public GeoDistanceQuery.Builder mergeFrom(GeoDistanceQuery other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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<GeoDistanceQuery.Builder>
      Throws:
      IOException
    • getDistance

      public String getDistance()
      string distance = 1 [json_name = "distance"];
      Specified by:
      getDistance in interface GeoDistanceQueryOrBuilder
      Returns:
      The distance.
    • getDistanceBytes

      public com.google.protobuf.ByteString getDistanceBytes()
      string distance = 1 [json_name = "distance"];
      Specified by:
      getDistanceBytes in interface GeoDistanceQueryOrBuilder
      Returns:
      The bytes for distance.
    • setDistance

      public GeoDistanceQuery.Builder setDistance(String value)
      string distance = 1 [json_name = "distance"];
      Parameters:
      value - The distance to set.
      Returns:
      This builder for chaining.
    • clearDistance

      public GeoDistanceQuery.Builder clearDistance()
      string distance = 1 [json_name = "distance"];
      Returns:
      This builder for chaining.
    • setDistanceBytes

      public GeoDistanceQuery.Builder setDistanceBytes(com.google.protobuf.ByteString value)
      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:
      hasBoost in interface GeoDistanceQueryOrBuilder
      Returns:
      Whether the boost field is set.
    • getBoost

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

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

      public GeoDistanceQuery.Builder 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:
      hasXName in interface GeoDistanceQueryOrBuilder
      Returns:
      Whether the xName field is set.
    • getXName

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

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

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

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

      public GeoDistanceQuery.Builder setXNameBytes(com.google.protobuf.ByteString value)
      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:
      hasDistanceType in interface GeoDistanceQueryOrBuilder
      Returns:
      Whether the distanceType field is set.
    • getDistanceTypeValue

      public int getDistanceTypeValue()
      optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];
      Specified by:
      getDistanceTypeValue in interface GeoDistanceQueryOrBuilder
      Returns:
      The enum numeric value on the wire for distanceType.
    • setDistanceTypeValue

      public GeoDistanceQuery.Builder setDistanceTypeValue(int value)
      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

      public GeoDistanceType getDistanceType()
      optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];
      Specified by:
      getDistanceType in interface GeoDistanceQueryOrBuilder
      Returns:
      The distanceType.
    • setDistanceType

      public GeoDistanceQuery.Builder setDistanceType(GeoDistanceType value)
      optional .org.opensearch.protobufs.GeoDistanceType distance_type = 4 [json_name = "distanceType"];
      Parameters:
      value - The distanceType to set.
      Returns:
      This builder for chaining.
    • clearDistanceType

      public GeoDistanceQuery.Builder 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:
      hasValidationMethod in interface GeoDistanceQueryOrBuilder
      Returns:
      Whether the validationMethod field is set.
    • getValidationMethodValue

      public int getValidationMethodValue()
      optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];
      Specified by:
      getValidationMethodValue in interface GeoDistanceQueryOrBuilder
      Returns:
      The enum numeric value on the wire for validationMethod.
    • setValidationMethodValue

      public GeoDistanceQuery.Builder setValidationMethodValue(int value)
      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

      public GeoValidationMethod getValidationMethod()
      optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];
      Specified by:
      getValidationMethod in interface GeoDistanceQueryOrBuilder
      Returns:
      The validationMethod.
    • setValidationMethod

      public GeoDistanceQuery.Builder setValidationMethod(GeoValidationMethod value)
      optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 5 [json_name = "validationMethod"];
      Parameters:
      value - The validationMethod to set.
      Returns:
      This builder for chaining.
    • clearValidationMethod

      public GeoDistanceQuery.Builder 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:
      hasIgnoreUnmapped in interface GeoDistanceQueryOrBuilder
      Returns:
      Whether the ignoreUnmapped field is set.
    • getIgnoreUnmapped

      public boolean getIgnoreUnmapped()
      optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];
      Specified by:
      getIgnoreUnmapped in interface GeoDistanceQueryOrBuilder
      Returns:
      The ignoreUnmapped.
    • setIgnoreUnmapped

      public GeoDistanceQuery.Builder setIgnoreUnmapped(boolean value)
      optional bool ignore_unmapped = 6 [json_name = "ignoreUnmapped"];
      Parameters:
      value - The ignoreUnmapped to set.
      Returns:
      This builder for chaining.
    • clearIgnoreUnmapped

      public GeoDistanceQuery.Builder 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:
      hasUnit in interface GeoDistanceQueryOrBuilder
      Returns:
      Whether the unit field is set.
    • getUnitValue

      public int getUnitValue()
      optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];
      Specified by:
      getUnitValue in interface GeoDistanceQueryOrBuilder
      Returns:
      The enum numeric value on the wire for unit.
    • setUnitValue

      public GeoDistanceQuery.Builder setUnitValue(int value)
      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

      public DistanceUnit getUnit()
      optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];
      Specified by:
      getUnit in interface GeoDistanceQueryOrBuilder
      Returns:
      The unit.
    • setUnit

      public GeoDistanceQuery.Builder setUnit(DistanceUnit value)
      optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

      public GeoDistanceQuery.Builder clearUnit()
      optional .org.opensearch.protobufs.DistanceUnit unit = 7 [json_name = "unit"];
      Returns:
      This builder for chaining.
    • getLocationCount

      public int getLocationCount()
      Description copied from interface: GeoDistanceQueryOrBuilder
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
      Specified by:
      getLocationCount in interface GeoDistanceQueryOrBuilder
    • containsLocation

      public boolean containsLocation(String key)
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
      Specified by:
      containsLocation in interface GeoDistanceQueryOrBuilder
    • getLocation

      @Deprecated public Map<String,GeoLocation> getLocation()
      Deprecated.
      Use getLocationMap() instead.
      Specified by:
      getLocation in interface GeoDistanceQueryOrBuilder
    • getLocationMap

      public Map<String,GeoLocation> getLocationMap()
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
      Specified by:
      getLocationMap in interface GeoDistanceQueryOrBuilder
    • getLocationOrDefault

      public GeoLocation getLocationOrDefault(String key, GeoLocation defaultValue)
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
      Specified by:
      getLocationOrDefault in interface GeoDistanceQueryOrBuilder
    • getLocationOrThrow

      public GeoLocation getLocationOrThrow(String key)
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
      Specified by:
      getLocationOrThrow in interface GeoDistanceQueryOrBuilder
    • clearLocation

      public GeoDistanceQuery.Builder clearLocation()
    • removeLocation

      public GeoDistanceQuery.Builder removeLocation(String key)
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
    • getMutableLocation

      @Deprecated public Map<String,GeoLocation> getMutableLocation()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLocation

      public GeoDistanceQuery.Builder putLocation(String key, GeoLocation value)
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
    • putAllLocation

      public GeoDistanceQuery.Builder putAllLocation(Map<String,GeoLocation> values)
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
    • putLocationBuilderIfAbsent

      public GeoLocation.Builder putLocationBuilderIfAbsent(String key)
      map<string, .org.opensearch.protobufs.GeoLocation> location = 8 [json_name = "location"];
    • setUnknownFields

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

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