Class LatLng.Builder (2.9.1)

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

Implements

LatLngOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LatLng.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LatLng.Builder
Overrides

build()

public LatLng build()
Returns
TypeDescription
LatLng

buildPartial()

public LatLng buildPartial()
Returns
TypeDescription
LatLng

clear()

public LatLng.Builder clear()
Returns
TypeDescription
LatLng.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LatLng.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LatLng.Builder
Overrides

clearLatitude()

public LatLng.Builder clearLatitude()

The latitude in degrees. It must be in the range [-90.0, +90.0].

double latitude = 1;

Returns
TypeDescription
LatLng.Builder

This builder for chaining.

clearLongitude()

public LatLng.Builder clearLongitude()

The longitude in degrees. It must be in the range [-180.0, +180.0].

double longitude = 2;

Returns
TypeDescription
LatLng.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LatLng.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LatLng.Builder
Overrides

clone()

public LatLng.Builder clone()
Returns
TypeDescription
LatLng.Builder
Overrides

getDefaultInstanceForType()

public LatLng getDefaultInstanceForType()
Returns
TypeDescription
LatLng

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLatitude()

public double getLatitude()

The latitude in degrees. It must be in the range [-90.0, +90.0].

double latitude = 1;

Returns
TypeDescription
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
TypeDescription
double

The longitude.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LatLng.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LatLng.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LatLng.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LatLng.Builder
Overrides

mergeFrom(LatLng other)

public LatLng.Builder mergeFrom(LatLng other)
Parameter
NameDescription
otherLatLng
Returns
TypeDescription
LatLng.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LatLng.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LatLng.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LatLng.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LatLng.Builder
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
NameDescription
valuedouble

The latitude to set.

Returns
TypeDescription
LatLng.Builder

This builder for chaining.

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
NameDescription
valuedouble

The longitude to set.

Returns
TypeDescription
LatLng.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LatLng.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LatLng.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LatLng.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LatLng.Builder
Overrides