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