public final class Geocode extends com.google.protobuf.GeneratedMessageV3 implements GeocodeOrBuilder
Contains information about the place the input was geocoded to.Protobuf type
google.maps.addressvalidation.v1.Geocode| Modifier and Type | Class and Description |
|---|---|
static class |
Geocode.Builder
Contains information about the place the input was geocoded to.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BOUNDS_FIELD_NUMBER |
static int |
FEATURE_SIZE_METERS_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
PLACE_ID_FIELD_NUMBER |
static int |
PLACE_TYPES_FIELD_NUMBER |
static int |
PLUS_CODE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.geo.type.Viewport |
getBounds()
The bounds of the geocoded place.
|
com.google.geo.type.ViewportOrBuilder |
getBoundsOrBuilder()
The bounds of the geocoded place.
|
static Geocode |
getDefaultInstance() |
Geocode |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
float |
getFeatureSizeMeters()
The size of the geocoded place, in meters.
|
com.google.type.LatLng |
getLocation()
The geocoded location of the input.
|
com.google.type.LatLngOrBuilder |
getLocationOrBuilder()
The geocoded location of the input.
|
com.google.protobuf.Parser<Geocode> |
getParserForType() |
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`.
|
PlusCodeOrBuilder |
getPlusCodeOrBuilder()
The plus code corresponding to the `location`.
|
int |
getSerializedSize() |
boolean |
hasBounds()
The bounds of the geocoded place.
|
int |
hashCode() |
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() |
static Geocode.Builder |
newBuilder() |
static Geocode.Builder |
newBuilder(Geocode prototype) |
Geocode.Builder |
newBuilderForType() |
protected Geocode.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Geocode |
parseDelimitedFrom(InputStream input) |
static Geocode |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Geocode |
parseFrom(byte[] data) |
static Geocode |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Geocode |
parseFrom(ByteBuffer data) |
static Geocode |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Geocode |
parseFrom(com.google.protobuf.ByteString data) |
static Geocode |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Geocode |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Geocode |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Geocode |
parseFrom(InputStream input) |
static Geocode |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Geocode> |
parser() |
Geocode.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LOCATION_FIELD_NUMBER
public static final int PLUS_CODE_FIELD_NUMBER
public static final int BOUNDS_FIELD_NUMBER
public static final int FEATURE_SIZE_METERS_FIELD_NUMBER
public static final int PLACE_ID_FIELD_NUMBER
public static final int PLACE_TYPES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Geocode parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Geocode parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Geocode parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Geocode parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Geocode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Geocode parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Geocode parseFrom(InputStream input) throws IOException
IOExceptionpublic static Geocode parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Geocode parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Geocode parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Geocode parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Geocode parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Geocode.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Geocode.Builder newBuilder()
public static Geocode.Builder newBuilder(Geocode prototype)
public Geocode.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Geocode.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Geocode getDefaultInstance()
public static com.google.protobuf.Parser<Geocode> parser()
public com.google.protobuf.Parser<Geocode> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Geocode getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.