Class GeoDistanceSort.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GeoDistanceSort.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceSort.Builder>
org.opensearch.protobufs.GeoDistanceSort.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, GeoDistanceSortOrBuilder
Enclosing class:
GeoDistanceSort

public static final class GeoDistanceSort.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceSort.Builder> implements GeoDistanceSortOrBuilder
Protobuf type org.opensearch.protobufs.GeoDistanceSort
  • 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<GeoDistanceSort.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

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

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

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

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

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

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

      public GeoDistanceSort.Builder mergeFrom(GeoDistanceSort other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GeoDistanceSort.Builder>
    • mergeFrom

      public GeoDistanceSort.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<GeoDistanceSort.Builder>
      Throws:
      IOException
    • hasMode

      public boolean hasMode()
      optional .org.opensearch.protobufs.SortMode mode = 1 [json_name = "mode"];
      Specified by:
      hasMode in interface GeoDistanceSortOrBuilder
      Returns:
      Whether the mode field is set.
    • getModeValue

      public int getModeValue()
      optional .org.opensearch.protobufs.SortMode mode = 1 [json_name = "mode"];
      Specified by:
      getModeValue in interface GeoDistanceSortOrBuilder
      Returns:
      The enum numeric value on the wire for mode.
    • setModeValue

      public GeoDistanceSort.Builder setModeValue(int value)
      optional .org.opensearch.protobufs.SortMode mode = 1 [json_name = "mode"];
      Parameters:
      value - The enum numeric value on the wire for mode to set.
      Returns:
      This builder for chaining.
    • getMode

      public SortMode getMode()
      optional .org.opensearch.protobufs.SortMode mode = 1 [json_name = "mode"];
      Specified by:
      getMode in interface GeoDistanceSortOrBuilder
      Returns:
      The mode.
    • setMode

      public GeoDistanceSort.Builder setMode(SortMode value)
      optional .org.opensearch.protobufs.SortMode mode = 1 [json_name = "mode"];
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

      public GeoDistanceSort.Builder clearMode()
      optional .org.opensearch.protobufs.SortMode mode = 1 [json_name = "mode"];
      Returns:
      This builder for chaining.
    • hasDistanceType

      public boolean hasDistanceType()
      optional .org.opensearch.protobufs.GeoDistanceType distance_type = 2 [json_name = "distanceType"];
      Specified by:
      hasDistanceType in interface GeoDistanceSortOrBuilder
      Returns:
      Whether the distanceType field is set.
    • getDistanceTypeValue

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

      public GeoDistanceSort.Builder setDistanceTypeValue(int value)
      optional .org.opensearch.protobufs.GeoDistanceType distance_type = 2 [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 = 2 [json_name = "distanceType"];
      Specified by:
      getDistanceType in interface GeoDistanceSortOrBuilder
      Returns:
      The distanceType.
    • setDistanceType

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

      public GeoDistanceSort.Builder clearDistanceType()
      optional .org.opensearch.protobufs.GeoDistanceType distance_type = 2 [json_name = "distanceType"];
      Returns:
      This builder for chaining.
    • hasIgnoreUnmapped

      public boolean hasIgnoreUnmapped()
      optional bool ignore_unmapped = 3 [json_name = "ignoreUnmapped"];
      Specified by:
      hasIgnoreUnmapped in interface GeoDistanceSortOrBuilder
      Returns:
      Whether the ignoreUnmapped field is set.
    • getIgnoreUnmapped

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

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

      public GeoDistanceSort.Builder clearIgnoreUnmapped()
      optional bool ignore_unmapped = 3 [json_name = "ignoreUnmapped"];
      Returns:
      This builder for chaining.
    • hasNested

      public boolean hasNested()
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
      Specified by:
      hasNested in interface GeoDistanceSortOrBuilder
      Returns:
      Whether the nested field is set.
    • getNested

      public NestedSortValue getNested()
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
      Specified by:
      getNested in interface GeoDistanceSortOrBuilder
      Returns:
      The nested.
    • setNested

      public GeoDistanceSort.Builder setNested(NestedSortValue value)
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
    • setNested

      public GeoDistanceSort.Builder setNested(NestedSortValue.Builder builderForValue)
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
    • mergeNested

      public GeoDistanceSort.Builder mergeNested(NestedSortValue value)
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
    • clearNested

      public GeoDistanceSort.Builder clearNested()
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
    • getNestedBuilder

      public NestedSortValue.Builder getNestedBuilder()
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
    • getNestedOrBuilder

      public NestedSortValueOrBuilder getNestedOrBuilder()
      optional .org.opensearch.protobufs.NestedSortValue nested = 4 [json_name = "nested"];
      Specified by:
      getNestedOrBuilder in interface GeoDistanceSortOrBuilder
    • hasOrder

      public boolean hasOrder()
      optional .org.opensearch.protobufs.SortOrder order = 5 [json_name = "order"];
      Specified by:
      hasOrder in interface GeoDistanceSortOrBuilder
      Returns:
      Whether the order field is set.
    • getOrderValue

      public int getOrderValue()
      optional .org.opensearch.protobufs.SortOrder order = 5 [json_name = "order"];
      Specified by:
      getOrderValue in interface GeoDistanceSortOrBuilder
      Returns:
      The enum numeric value on the wire for order.
    • setOrderValue

      public GeoDistanceSort.Builder setOrderValue(int value)
      optional .org.opensearch.protobufs.SortOrder order = 5 [json_name = "order"];
      Parameters:
      value - The enum numeric value on the wire for order to set.
      Returns:
      This builder for chaining.
    • getOrder

      public SortOrder getOrder()
      optional .org.opensearch.protobufs.SortOrder order = 5 [json_name = "order"];
      Specified by:
      getOrder in interface GeoDistanceSortOrBuilder
      Returns:
      The order.
    • setOrder

      public GeoDistanceSort.Builder setOrder(SortOrder value)
      optional .org.opensearch.protobufs.SortOrder order = 5 [json_name = "order"];
      Parameters:
      value - The order to set.
      Returns:
      This builder for chaining.
    • clearOrder

      public GeoDistanceSort.Builder clearOrder()
      optional .org.opensearch.protobufs.SortOrder order = 5 [json_name = "order"];
      Returns:
      This builder for chaining.
    • hasUnit

      public boolean hasUnit()
      optional .org.opensearch.protobufs.DistanceUnit unit = 6 [json_name = "unit"];
      Specified by:
      hasUnit in interface GeoDistanceSortOrBuilder
      Returns:
      Whether the unit field is set.
    • getUnitValue

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

      public GeoDistanceSort.Builder setUnitValue(int value)
      optional .org.opensearch.protobufs.DistanceUnit unit = 6 [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 = 6 [json_name = "unit"];
      Specified by:
      getUnit in interface GeoDistanceSortOrBuilder
      Returns:
      The unit.
    • setUnit

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

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

      public boolean hasValidationMethod()
      optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 7 [json_name = "validationMethod"];
      Specified by:
      hasValidationMethod in interface GeoDistanceSortOrBuilder
      Returns:
      Whether the validationMethod field is set.
    • getValidationMethodValue

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

      public GeoDistanceSort.Builder setValidationMethodValue(int value)
      optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 7 [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 = 7 [json_name = "validationMethod"];
      Specified by:
      getValidationMethod in interface GeoDistanceSortOrBuilder
      Returns:
      The validationMethod.
    • setValidationMethod

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

      public GeoDistanceSort.Builder clearValidationMethod()
      optional .org.opensearch.protobufs.GeoValidationMethod validation_method = 7 [json_name = "validationMethod"];
      Returns:
      This builder for chaining.
    • getLocationCount

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

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

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

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

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

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

      public GeoDistanceSort.Builder clearLocation()
    • removeLocation

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

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

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

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

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

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

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