Class GeoLocation.Builder

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

public static final class GeoLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GeoLocation.Builder> implements GeoLocationOrBuilder
Protobuf type org.opensearch.protobufs.GeoLocation
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

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

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

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

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

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

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

      public GeoLocation.Builder mergeFrom(GeoLocation other)
    • isInitialized

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

      public GeoLocation.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<GeoLocation.Builder>
      Throws:
      IOException
    • getGeoLocationCase

      public GeoLocation.GeoLocationCase getGeoLocationCase()
      Specified by:
      getGeoLocationCase in interface GeoLocationOrBuilder
    • clearGeoLocation

      public GeoLocation.Builder clearGeoLocation()
    • hasLatlon

      public boolean hasLatlon()
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
      Specified by:
      hasLatlon in interface GeoLocationOrBuilder
      Returns:
      Whether the latlon field is set.
    • getLatlon

      public LatLonGeoLocation getLatlon()
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
      Specified by:
      getLatlon in interface GeoLocationOrBuilder
      Returns:
      The latlon.
    • setLatlon

      public GeoLocation.Builder setLatlon(LatLonGeoLocation value)
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
    • setLatlon

      public GeoLocation.Builder setLatlon(LatLonGeoLocation.Builder builderForValue)
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
    • mergeLatlon

      public GeoLocation.Builder mergeLatlon(LatLonGeoLocation value)
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
    • clearLatlon

      public GeoLocation.Builder clearLatlon()
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
    • getLatlonBuilder

      public LatLonGeoLocation.Builder getLatlonBuilder()
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
    • getLatlonOrBuilder

      public LatLonGeoLocationOrBuilder getLatlonOrBuilder()
      .org.opensearch.protobufs.LatLonGeoLocation latlon = 1 [json_name = "latlon"];
      Specified by:
      getLatlonOrBuilder in interface GeoLocationOrBuilder
    • hasGeohash

      public boolean hasGeohash()
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
      Specified by:
      hasGeohash in interface GeoLocationOrBuilder
      Returns:
      Whether the geohash field is set.
    • getGeohash

      public GeoHashLocation getGeohash()
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
      Specified by:
      getGeohash in interface GeoLocationOrBuilder
      Returns:
      The geohash.
    • setGeohash

      public GeoLocation.Builder setGeohash(GeoHashLocation value)
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
    • setGeohash

      public GeoLocation.Builder setGeohash(GeoHashLocation.Builder builderForValue)
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
    • mergeGeohash

      public GeoLocation.Builder mergeGeohash(GeoHashLocation value)
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
    • clearGeohash

      public GeoLocation.Builder clearGeohash()
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
    • getGeohashBuilder

      public GeoHashLocation.Builder getGeohashBuilder()
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
    • getGeohashOrBuilder

      public GeoHashLocationOrBuilder getGeohashOrBuilder()
      .org.opensearch.protobufs.GeoHashLocation geohash = 2 [json_name = "geohash"];
      Specified by:
      getGeohashOrBuilder in interface GeoLocationOrBuilder
    • hasCoords

      public boolean hasCoords()
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
      Specified by:
      hasCoords in interface GeoLocationOrBuilder
      Returns:
      Whether the coords field is set.
    • getCoords

      public DoubleArray getCoords()
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
      Specified by:
      getCoords in interface GeoLocationOrBuilder
      Returns:
      The coords.
    • setCoords

      public GeoLocation.Builder setCoords(DoubleArray value)
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
    • setCoords

      public GeoLocation.Builder setCoords(DoubleArray.Builder builderForValue)
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
    • mergeCoords

      public GeoLocation.Builder mergeCoords(DoubleArray value)
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
    • clearCoords

      public GeoLocation.Builder clearCoords()
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
    • getCoordsBuilder

      public DoubleArray.Builder getCoordsBuilder()
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
    • getCoordsOrBuilder

      public DoubleArrayOrBuilder getCoordsOrBuilder()
      .org.opensearch.protobufs.DoubleArray coords = 3 [json_name = "coords"];
      Specified by:
      getCoordsOrBuilder in interface GeoLocationOrBuilder
    • hasText

      public boolean hasText()
      string text = 4 [json_name = "text"];
      Specified by:
      hasText in interface GeoLocationOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public String getText()
      string text = 4 [json_name = "text"];
      Specified by:
      getText in interface GeoLocationOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
      string text = 4 [json_name = "text"];
      Specified by:
      getTextBytes in interface GeoLocationOrBuilder
      Returns:
      The bytes for text.
    • setText

      public GeoLocation.Builder setText(String value)
      string text = 4 [json_name = "text"];
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public GeoLocation.Builder clearText()
      string text = 4 [json_name = "text"];
      Returns:
      This builder for chaining.
    • setTextBytes

      public GeoLocation.Builder setTextBytes(com.google.protobuf.ByteString value)
      string text = 4 [json_name = "text"];
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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