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.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()
buildPartial()
public LatLng buildPartial()
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()
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