Send feedback
Class LatLng.Builder (2.44.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.44.0 keyboard_arrow_down
public static final class LatLng . Builder extends GeneratedMessageV3 . Builder<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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LatLng . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
Returns
Type
Description
LatLng
buildPartial()
public LatLng buildPartial ()
Returns
Type
Description
LatLng
clear()
public LatLng . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LatLng . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearLatitude()
public LatLng . Builder clearLatitude ()
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
clearLongitude()
public LatLng . Builder clearLongitude ()
The longitude in degrees. It must be in the range [-180.0, +180.0].
double longitude = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public LatLng . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public LatLng . Builder clone ()
Overrides
getDefaultInstanceForType()
public LatLng getDefaultInstanceForType ()
Returns
Type
Description
LatLng
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getLatitude()
public double getLatitude ()
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
Returns
Type
Description
double
The latitude.
getLongitude()
public double getLongitude ()
The longitude in degrees. It must be in the range [-180.0, +180.0].
double longitude = 2;
Returns
Type
Description
double
The longitude.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
public LatLng . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public LatLng . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeFrom(LatLng other)
public LatLng . Builder mergeFrom ( LatLng other )
Parameter
Name
Description
other
LatLng
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LatLng . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LatLng . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setLatitude(double value)
public LatLng . Builder setLatitude ( double value )
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
Parameter
Name
Description
value
double
The latitude to set.
setLongitude(double value)
public LatLng . Builder setLongitude ( double value )
The longitude in degrees. It must be in the range [-180.0, +180.0].
double longitude = 2;
Parameter
Name
Description
value
double
The longitude to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LatLng . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LatLng . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]