Class GeoBoundingBoxQuery.Builder

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

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

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GeoBoundingBoxQuery.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<GeoBoundingBoxQuery.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<GeoBoundingBoxQuery.Builder>
    • getDefaultInstanceForType

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

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

      public GeoBoundingBoxQuery buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<GeoBoundingBoxQuery.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public GeoBoundingBoxQuery.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<GeoBoundingBoxQuery.Builder>
      Throws:
      IOException
    • hasBoost

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

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

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

      public GeoBoundingBoxQuery.Builder clearBoost()
      optional float boost = 1 [json_name = "boost"];
      Returns:
      This builder for chaining.
    • hasXName

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

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

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

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

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

      public GeoBoundingBoxQuery.Builder setXNameBytes(com.google.protobuf.ByteString value)
      optional string x_name = 2 [json_name = "xName"];
      Parameters:
      value - The bytes for xName to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
      optional .org.opensearch.protobufs.GeoExecution type = 3 [json_name = "type"];
      Specified by:
      hasType in interface GeoBoundingBoxQueryOrBuilder
      Returns:
      Whether the type field is set.
    • getTypeValue

      public int getTypeValue()
      optional .org.opensearch.protobufs.GeoExecution type = 3 [json_name = "type"];
      Specified by:
      getTypeValue in interface GeoBoundingBoxQueryOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public GeoBoundingBoxQuery.Builder setTypeValue(int value)
      optional .org.opensearch.protobufs.GeoExecution type = 3 [json_name = "type"];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public GeoExecution getType()
      optional .org.opensearch.protobufs.GeoExecution type = 3 [json_name = "type"];
      Specified by:
      getType in interface GeoBoundingBoxQueryOrBuilder
      Returns:
      The type.
    • setType

      public GeoBoundingBoxQuery.Builder setType(GeoExecution value)
      optional .org.opensearch.protobufs.GeoExecution type = 3 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public GeoBoundingBoxQuery.Builder clearType()
      optional .org.opensearch.protobufs.GeoExecution type = 3 [json_name = "type"];
      Returns:
      This builder for chaining.
    • hasValidationMethod

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

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

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

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

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

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

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

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

      public GeoBoundingBoxQuery.Builder clearIgnoreUnmapped()
      optional bool ignore_unmapped = 5 [json_name = "ignoreUnmapped"];
      Returns:
      This builder for chaining.
    • getBoundingBoxCount

      public int getBoundingBoxCount()
      Description copied from interface: GeoBoundingBoxQueryOrBuilder
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
      Specified by:
      getBoundingBoxCount in interface GeoBoundingBoxQueryOrBuilder
    • containsBoundingBox

      public boolean containsBoundingBox(String key)
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
      Specified by:
      containsBoundingBox in interface GeoBoundingBoxQueryOrBuilder
    • getBoundingBox

      @Deprecated public Map<String,GeoBounds> getBoundingBox()
      Deprecated.
      Use getBoundingBoxMap() instead.
      Specified by:
      getBoundingBox in interface GeoBoundingBoxQueryOrBuilder
    • getBoundingBoxMap

      public Map<String,GeoBounds> getBoundingBoxMap()
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
      Specified by:
      getBoundingBoxMap in interface GeoBoundingBoxQueryOrBuilder
    • getBoundingBoxOrDefault

      public GeoBounds getBoundingBoxOrDefault(String key, GeoBounds defaultValue)
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
      Specified by:
      getBoundingBoxOrDefault in interface GeoBoundingBoxQueryOrBuilder
    • getBoundingBoxOrThrow

      public GeoBounds getBoundingBoxOrThrow(String key)
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
      Specified by:
      getBoundingBoxOrThrow in interface GeoBoundingBoxQueryOrBuilder
    • clearBoundingBox

      public GeoBoundingBoxQuery.Builder clearBoundingBox()
    • removeBoundingBox

      public GeoBoundingBoxQuery.Builder removeBoundingBox(String key)
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
    • getMutableBoundingBox

      @Deprecated public Map<String,GeoBounds> getMutableBoundingBox()
      Deprecated.
      Use alternate mutation accessors instead.
    • putBoundingBox

      public GeoBoundingBoxQuery.Builder putBoundingBox(String key, GeoBounds value)
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
    • putAllBoundingBox

      public GeoBoundingBoxQuery.Builder putAllBoundingBox(Map<String,GeoBounds> values)
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
    • putBoundingBoxBuilderIfAbsent

      public GeoBounds.Builder putBoundingBoxBuilderIfAbsent(String key)
      map<string, .org.opensearch.protobufs.GeoBounds> bounding_box = 6 [json_name = "boundingBox"];
    • setUnknownFields

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

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