Class Location.Builder (2.46.0)

public static final class Location.Builder extends GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilder

A resource that represents a location with full geographic information.

Protobuf type google.cloud.talent.v4beta1.Location

Implements

LocationOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Location.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Location.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public Location.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Location.Builder
Overrides

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.v4beta1.Location.LocationType location_type = 1;

Returns
Type Description
Location.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Location.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Location.Builder
Overrides

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.

clone()

public Location.Builder clone()
Returns
Type Description
Location.Builder
Overrides

getDefaultInstanceForType()

public Location getDefaultInstanceForType()
Returns
Type Description
Location

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.v4beta1.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.v4beta1.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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Location.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Location.Builder
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Location.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Location.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Location.Builder
Overrides

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.v4beta1.Location.LocationType location_type = 1;

Parameter
Name Description
value Location.LocationType

The 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.v4beta1.Location.LocationType location_type = 1;

Parameter
Name Description
value int

The 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 double

The radiusMiles to set.

Returns
Type Description
Location.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Location.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Location.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Location.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Location.Builder
Overrides