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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LatLng.BuilderImplements
LatLngOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LatLng.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LatLng.Builder |
build()
public LatLng build()
Type | Description |
LatLng |
buildPartial()
public LatLng buildPartial()
Type | Description |
LatLng |
clear()
public LatLng.Builder clear()
Type | Description |
LatLng.Builder |
clearField(Descriptors.FieldDescriptor field)
public LatLng.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
LatLng.Builder |
clearLatitude()
public LatLng.Builder clearLatitude()
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
Type | Description |
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;
Type | Description |
LatLng.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public LatLng.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
LatLng.Builder |
clone()
public LatLng.Builder clone()
Type | Description |
LatLng.Builder |
getDefaultInstanceForType()
public LatLng getDefaultInstanceForType()
Type | Description |
LatLng |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLatitude()
public double getLatitude()
The latitude in degrees. It must be in the range [-90.0, +90.0].
double latitude = 1;
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;
Type | Description |
double | The longitude. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LatLng.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
LatLng.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public LatLng.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
LatLng.Builder |
mergeFrom(LatLng other)
public LatLng.Builder mergeFrom(LatLng other)
Name | Description |
other | LatLng |
Type | Description |
LatLng.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LatLng.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LatLng.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public LatLng.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
LatLng.Builder |
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;
Name | Description |
value | double The latitude to set. |
Type | Description |
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;
Name | Description |
value | double The longitude to set. |
Type | Description |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
LatLng.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final LatLng.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
LatLng.Builder |