Package com.google.type
Class LatLng.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<LatLng,LatLng.Builder>
com.google.type.LatLng.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,LatLngOrBuilder
,Cloneable
- Enclosing class:
- LatLng
public static final class LatLng.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<LatLng,LatLng.Builder>
implements LatLngOrBuilder
An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 standard</a>. Values must be within normalized ranges.Protobuf type
google.type.LatLng
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe latitude in degrees.The longitude in degrees.double
The latitude in degrees.double
The longitude in degrees.setLatitude
(double value) The latitude in degrees.setLongitude
(double value) The longitude in degrees.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getLatitude
public double getLatitude()The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1 [json_name = "latitude"];
- Specified by:
getLatitude
in interfaceLatLngOrBuilder
- Returns:
- The latitude.
-
setLatitude
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1 [json_name = "latitude"];
- Parameters:
value
- The latitude to set.- Returns:
- This builder for chaining.
-
clearLatitude
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1 [json_name = "latitude"];
- Returns:
- This builder for chaining.
-
getLongitude
public double getLongitude()The longitude in degrees. It must be in the range [-180.0, +180.0].
double longitude = 2 [json_name = "longitude"];
- Specified by:
getLongitude
in interfaceLatLngOrBuilder
- Returns:
- The longitude.
-
setLongitude
The longitude in degrees. It must be in the range [-180.0, +180.0].
double longitude = 2 [json_name = "longitude"];
- Parameters:
value
- The longitude to set.- Returns:
- This builder for chaining.
-
clearLongitude
The longitude in degrees. It must be in the range [-180.0, +180.0].
double longitude = 2 [json_name = "longitude"];
- Returns:
- This builder for chaining.
-