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
Static Fields
LAT_LNG_FIELD_NUMBER
public static final int LAT_LNG_FIELD_NUMBER
Field Value
LOCATION_TYPE_FIELD_NUMBER
public static final int LOCATION_TYPE_FIELD_NUMBER
Field Value
POSTAL_ADDRESS_FIELD_NUMBER
public static final int POSTAL_ADDRESS_FIELD_NUMBER
Field Value
RADIUS_MILES_FIELD_NUMBER
public static final int RADIUS_MILES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Location getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Location.Builder newBuilder()
Returns
newBuilder(Location prototype)
public static Location.Builder newBuilder(Location prototype)
Parameter
Returns
public static Location parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Location parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Location parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Location parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Location parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Location parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Location parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Location parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Location parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Location parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Location parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Location parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Location> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Location getDefaultInstanceForType()
Returns
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
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
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Location.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Location.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Location.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions