Class Location (2.44.0)

public final class Location extends GeneratedMessageV3 implements LocationOrBuilder

A resource that represents a location with full geographic information.

Protobuf type google.cloud.talent.v4.Location

Implements

LocationOrBuilder

Static Fields

LAT_LNG_FIELD_NUMBER

public static final int LAT_LNG_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_TYPE_FIELD_NUMBER

public static final int LOCATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

POSTAL_ADDRESS_FIELD_NUMBER

public static final int POSTAL_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

RADIUS_MILES_FIELD_NUMBER

public static final int RADIUS_MILES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Location getDefaultInstance()
Returns
Type Description
Location

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Location.Builder newBuilder()
Returns
Type Description
Location.Builder

newBuilder(Location prototype)

public static Location.Builder newBuilder(Location prototype)
Parameter
Name Description
prototype Location
Returns
Type Description
Location.Builder

parseDelimitedFrom(InputStream input)

public static Location parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Location
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Location parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Location
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Location parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Location
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Location parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Location
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Location parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Location
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Location parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Location
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Location parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Location
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Location parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Location
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Location parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Location
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Location parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Location
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Location parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Location
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Location parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Location
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Location> parser()
Returns
Type Description
Parser<Location>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Location getDefaultInstanceForType()
Returns
Type Description
Location

getLatLng()

public LatLng getLatLng()

An object representing a latitude/longitude pair.

.google.type.LatLng lat_lng = 3;

Returns
Type Description
com.google.type.LatLng

The latLng.

getLatLngOrBuilder()

public LatLngOrBuilder getLatLngOrBuilder()

An object representing a latitude/longitude pair.

.google.type.LatLng lat_lng = 3;

Returns
Type Description
com.google.type.LatLngOrBuilder

getLocationType()

public Location.LocationType getLocationType()

The type of a location, which corresponds to the address lines field of google.type.PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType.LOCALITY.

.google.cloud.talent.v4.Location.LocationType location_type = 1;

Returns
Type Description
Location.LocationType

The locationType.

getLocationTypeValue()

public int getLocationTypeValue()

The type of a location, which corresponds to the address lines field of google.type.PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type of LocationType.NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of LocationType.LOCALITY.

.google.cloud.talent.v4.Location.LocationType location_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for locationType.

getParserForType()

public Parser<Location> getParserForType()
Returns
Type Description
Parser<Location>
Overrides

getPostalAddress()

public PostalAddress getPostalAddress()

Postal address of the location that includes human readable information, such as postal delivery and payments addresses. Given a postal address, a postal service can deliver items to a premises, P.O. Box, or other delivery location.

.google.type.PostalAddress postal_address = 2;

Returns
Type Description
com.google.type.PostalAddress

The postalAddress.

getPostalAddressOrBuilder()

public PostalAddressOrBuilder getPostalAddressOrBuilder()

Postal address of the location that includes human readable information, such as postal delivery and payments addresses. Given a postal address, a postal service can deliver items to a premises, P.O. Box, or other delivery location.

.google.type.PostalAddress postal_address = 2;

Returns
Type Description
com.google.type.PostalAddressOrBuilder

getRadiusMiles()

public double getRadiusMiles()

Radius in miles of the job location. This value is derived from the location bounding box in which a circle with the specified radius centered from google.type.LatLng covers the area associated with the job location. For example, currently, "Mountain View, CA, USA" has a radius of 6.17 miles.

double radius_miles = 4;

Returns
Type Description
double

The radiusMiles.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasLatLng()

public boolean hasLatLng()

An object representing a latitude/longitude pair.

.google.type.LatLng lat_lng = 3;

Returns
Type Description
boolean

Whether the latLng field is set.

hasPostalAddress()

public boolean hasPostalAddress()

Postal address of the location that includes human readable information, such as postal delivery and payments addresses. Given a postal address, a postal service can deliver items to a premises, P.O. Box, or other delivery location.

.google.type.PostalAddress postal_address = 2;

Returns
Type Description
boolean

Whether the postalAddress field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Location.Builder newBuilderForType()
Returns
Type Description
Location.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Location.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Location.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Location.Builder toBuilder()
Returns
Type Description
Location.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException