public static final class Location.Builder extends GeneratedMessage.Builder<Location.Builder> implements LocationOrBuilderA resource that represents a location with full geographic information.
Protobuf type google.cloud.talent.v4.Location
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Location.BuilderImplements
LocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Location build()| Returns | |
|---|---|
| Type | Description |
Location |
|
buildPartial()
public Location buildPartial()| Returns | |
|---|---|
| Type | Description |
Location |
|
clear()
public Location.Builder clear()| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
clearLatLng()
public Location.Builder clearLatLng()An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
clearLocationType()
public Location.Builder clearLocationType()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.Builder |
This builder for chaining. |
clearPostalAddress()
public Location.Builder clearPostalAddress()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 |
Location.Builder |
|
clearRadiusMiles()
public Location.Builder clearRadiusMiles()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 |
Location.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Location getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Location |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getLatLngBuilder()
public LatLng.Builder getLatLngBuilder()An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.type.LatLng.Builder |
|
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. |
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. |
getPostalAddressBuilder()
public PostalAddress.Builder getPostalAddressBuilder()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.Builder |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Location other)
public Location.Builder mergeFrom(Location other)| Parameter | |
|---|---|
| Name | Description |
other |
Location |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Location.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
mergeLatLng(LatLng value)
public Location.Builder mergeLatLng(LatLng value)An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
mergePostalAddress(PostalAddress value)
public Location.Builder mergePostalAddress(PostalAddress value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.PostalAddress |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setLatLng(LatLng value)
public Location.Builder setLatLng(LatLng value)An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.LatLng |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setLatLng(LatLng.Builder builderForValue)
public Location.Builder setLatLng(LatLng.Builder builderForValue)An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.LatLng.Builder |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setLocationType(Location.LocationType value)
public Location.Builder setLocationType(Location.LocationType value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
Location.LocationTypeThe locationType to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setLocationTypeValue(int value)
public Location.Builder setLocationTypeValue(int value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for locationType to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |
setPostalAddress(PostalAddress value)
public Location.Builder setPostalAddress(PostalAddress value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.PostalAddress |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setPostalAddress(PostalAddress.Builder builderForValue)
public Location.Builder setPostalAddress(PostalAddress.Builder builderForValue)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;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.PostalAddress.Builder |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
|
setRadiusMiles(double value)
public Location.Builder setRadiusMiles(double value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe radiusMiles to set. |
| Returns | |
|---|---|
| Type | Description |
Location.Builder |
This builder for chaining. |