public static final class Geocode.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder> implements GeocodeOrBuilder
Contains information about the place the input was geocoded to.Protobuf type
google.maps.addressvalidation.v1.Geocode| Modifier and Type | Method and Description |
|---|---|
Geocode.Builder |
addAllPlaceTypes(Iterable<String> values)
The type(s) of place that the input geocoded to.
|
Geocode.Builder |
addPlaceTypes(String value)
The type(s) of place that the input geocoded to.
|
Geocode.Builder |
addPlaceTypesBytes(com.google.protobuf.ByteString value)
The type(s) of place that the input geocoded to.
|
Geocode.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Geocode |
build() |
Geocode |
buildPartial() |
Geocode.Builder |
clear() |
Geocode.Builder |
clearBounds()
The bounds of the geocoded place.
|
Geocode.Builder |
clearFeatureSizeMeters()
The size of the geocoded place, in meters.
|
Geocode.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Geocode.Builder |
clearLocation()
The geocoded location of the input.
|
Geocode.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Geocode.Builder |
clearPlaceId()
The PlaceID of the place this input geocodes to.
|
Geocode.Builder |
clearPlaceTypes()
The type(s) of place that the input geocoded to.
|
Geocode.Builder |
clearPlusCode()
The plus code corresponding to the `location`.
|
Geocode.Builder |
clone() |
com.google.geo.type.Viewport |
getBounds()
The bounds of the geocoded place.
|
com.google.geo.type.Viewport.Builder |
getBoundsBuilder()
The bounds of the geocoded place.
|
com.google.geo.type.ViewportOrBuilder |
getBoundsOrBuilder()
The bounds of the geocoded place.
|
Geocode |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
float |
getFeatureSizeMeters()
The size of the geocoded place, in meters.
|
com.google.type.LatLng |
getLocation()
The geocoded location of the input.
|
com.google.type.LatLng.Builder |
getLocationBuilder()
The geocoded location of the input.
|
com.google.type.LatLngOrBuilder |
getLocationOrBuilder()
The geocoded location of the input.
|
String |
getPlaceId()
The PlaceID of the place this input geocodes to.
|
com.google.protobuf.ByteString |
getPlaceIdBytes()
The PlaceID of the place this input geocodes to.
|
String |
getPlaceTypes(int index)
The type(s) of place that the input geocoded to.
|
com.google.protobuf.ByteString |
getPlaceTypesBytes(int index)
The type(s) of place that the input geocoded to.
|
int |
getPlaceTypesCount()
The type(s) of place that the input geocoded to.
|
com.google.protobuf.ProtocolStringList |
getPlaceTypesList()
The type(s) of place that the input geocoded to.
|
PlusCode |
getPlusCode()
The plus code corresponding to the `location`.
|
PlusCode.Builder |
getPlusCodeBuilder()
The plus code corresponding to the `location`.
|
PlusCodeOrBuilder |
getPlusCodeOrBuilder()
The plus code corresponding to the `location`.
|
boolean |
hasBounds()
The bounds of the geocoded place.
|
boolean |
hasLocation()
The geocoded location of the input.
|
boolean |
hasPlusCode()
The plus code corresponding to the `location`.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Geocode.Builder |
mergeBounds(com.google.geo.type.Viewport value)
The bounds of the geocoded place.
|
Geocode.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Geocode.Builder |
mergeFrom(Geocode other) |
Geocode.Builder |
mergeFrom(com.google.protobuf.Message other) |
Geocode.Builder |
mergeLocation(com.google.type.LatLng value)
The geocoded location of the input.
|
Geocode.Builder |
mergePlusCode(PlusCode value)
The plus code corresponding to the `location`.
|
Geocode.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Geocode.Builder |
setBounds(com.google.geo.type.Viewport.Builder builderForValue)
The bounds of the geocoded place.
|
Geocode.Builder |
setBounds(com.google.geo.type.Viewport value)
The bounds of the geocoded place.
|
Geocode.Builder |
setFeatureSizeMeters(float value)
The size of the geocoded place, in meters.
|
Geocode.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Geocode.Builder |
setLocation(com.google.type.LatLng.Builder builderForValue)
The geocoded location of the input.
|
Geocode.Builder |
setLocation(com.google.type.LatLng value)
The geocoded location of the input.
|
Geocode.Builder |
setPlaceId(String value)
The PlaceID of the place this input geocodes to.
|
Geocode.Builder |
setPlaceIdBytes(com.google.protobuf.ByteString value)
The PlaceID of the place this input geocodes to.
|
Geocode.Builder |
setPlaceTypes(int index,
String value)
The type(s) of place that the input geocoded to.
|
Geocode.Builder |
setPlusCode(PlusCode.Builder builderForValue)
The plus code corresponding to the `location`.
|
Geocode.Builder |
setPlusCode(PlusCode value)
The plus code corresponding to the `location`.
|
Geocode.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Geocode.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Geocode build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Geocode buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Geocode.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Geocode.Builder>public Geocode.Builder mergeFrom(Geocode other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public Geocode.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Geocode.Builder>IOExceptionpublic boolean hasLocation()
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;hasLocation in interface GeocodeOrBuilderpublic com.google.type.LatLng getLocation()
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;getLocation in interface GeocodeOrBuilderpublic Geocode.Builder setLocation(com.google.type.LatLng value)
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;public Geocode.Builder setLocation(com.google.type.LatLng.Builder builderForValue)
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;public Geocode.Builder mergeLocation(com.google.type.LatLng value)
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;public Geocode.Builder clearLocation()
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;public com.google.type.LatLng.Builder getLocationBuilder()
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;public com.google.type.LatLngOrBuilder getLocationOrBuilder()
The geocoded location of the input. Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.
.google.type.LatLng location = 1;getLocationOrBuilder in interface GeocodeOrBuilderpublic boolean hasPlusCode()
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;hasPlusCode in interface GeocodeOrBuilderpublic PlusCode getPlusCode()
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;getPlusCode in interface GeocodeOrBuilderpublic Geocode.Builder setPlusCode(PlusCode value)
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;public Geocode.Builder setPlusCode(PlusCode.Builder builderForValue)
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;public Geocode.Builder mergePlusCode(PlusCode value)
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;public Geocode.Builder clearPlusCode()
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;public PlusCode.Builder getPlusCodeBuilder()
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;public PlusCodeOrBuilder getPlusCodeOrBuilder()
The plus code corresponding to the `location`.
.google.maps.addressvalidation.v1.PlusCode plus_code = 2;getPlusCodeOrBuilder in interface GeocodeOrBuilderpublic boolean hasBounds()
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;hasBounds in interface GeocodeOrBuilderpublic com.google.geo.type.Viewport getBounds()
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;getBounds in interface GeocodeOrBuilderpublic Geocode.Builder setBounds(com.google.geo.type.Viewport value)
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;public Geocode.Builder setBounds(com.google.geo.type.Viewport.Builder builderForValue)
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;public Geocode.Builder mergeBounds(com.google.geo.type.Viewport value)
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;public Geocode.Builder clearBounds()
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;public com.google.geo.type.Viewport.Builder getBoundsBuilder()
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;public com.google.geo.type.ViewportOrBuilder getBoundsOrBuilder()
The bounds of the geocoded place.
.google.geo.type.Viewport bounds = 4;getBoundsOrBuilder in interface GeocodeOrBuilderpublic float getFeatureSizeMeters()
The size of the geocoded place, in meters. This is another measure of the coarseness of the geocoded location, but in physical size rather than in semantic meaning.
float feature_size_meters = 5;getFeatureSizeMeters in interface GeocodeOrBuilderpublic Geocode.Builder setFeatureSizeMeters(float value)
The size of the geocoded place, in meters. This is another measure of the coarseness of the geocoded location, but in physical size rather than in semantic meaning.
float feature_size_meters = 5;value - The featureSizeMeters to set.public Geocode.Builder clearFeatureSizeMeters()
The size of the geocoded place, in meters. This is another measure of the coarseness of the geocoded location, but in physical size rather than in semantic meaning.
float feature_size_meters = 5;public String getPlaceId()
The PlaceID of the place this input geocodes to. For more information about Place IDs see [here](https://developers.google.com/maps/documentation/places/web-service/place-id).
string place_id = 6;getPlaceId in interface GeocodeOrBuilderpublic com.google.protobuf.ByteString getPlaceIdBytes()
The PlaceID of the place this input geocodes to. For more information about Place IDs see [here](https://developers.google.com/maps/documentation/places/web-service/place-id).
string place_id = 6;getPlaceIdBytes in interface GeocodeOrBuilderpublic Geocode.Builder setPlaceId(String value)
The PlaceID of the place this input geocodes to. For more information about Place IDs see [here](https://developers.google.com/maps/documentation/places/web-service/place-id).
string place_id = 6;value - The placeId to set.public Geocode.Builder clearPlaceId()
The PlaceID of the place this input geocodes to. For more information about Place IDs see [here](https://developers.google.com/maps/documentation/places/web-service/place-id).
string place_id = 6;public Geocode.Builder setPlaceIdBytes(com.google.protobuf.ByteString value)
The PlaceID of the place this input geocodes to. For more information about Place IDs see [here](https://developers.google.com/maps/documentation/places/web-service/place-id).
string place_id = 6;value - The bytes for placeId to set.public com.google.protobuf.ProtocolStringList getPlaceTypesList()
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;getPlaceTypesList in interface GeocodeOrBuilderpublic int getPlaceTypesCount()
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;getPlaceTypesCount in interface GeocodeOrBuilderpublic String getPlaceTypes(int index)
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;getPlaceTypes in interface GeocodeOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getPlaceTypesBytes(int index)
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;getPlaceTypesBytes in interface GeocodeOrBuilderindex - The index of the value to return.public Geocode.Builder setPlaceTypes(int index, String value)
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;index - The index to set the value at.value - The placeTypes to set.public Geocode.Builder addPlaceTypes(String value)
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;value - The placeTypes to add.public Geocode.Builder addAllPlaceTypes(Iterable<String> values)
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;values - The placeTypes to add.public Geocode.Builder clearPlaceTypes()
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;public Geocode.Builder addPlaceTypesBytes(com.google.protobuf.ByteString value)
The type(s) of place that the input geocoded to. For example, `['locality', 'political']`. The full list of types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string place_types = 7;value - The bytes of the placeTypes to add.public final Geocode.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>public final Geocode.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Geocode.Builder>Copyright © 2024 Google LLC. All rights reserved.