Class Location.Builder (2.5.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.v4.Location

Implements

LocationOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Location.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Location.Builder
Overrides

build()

public Location build()
Returns
TypeDescription
Location

buildPartial()

public Location buildPartial()
Returns
TypeDescription
Location

clear()

public Location.Builder clear()
Returns
TypeDescription
Location.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Location.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Location.Builder
Overrides

clearLatLng()

public Location.Builder clearLatLng()

An object representing a latitude/longitude pair.

.google.type.LatLng lat_lng = 3;

Returns
TypeDescription
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
TypeDescription
Location.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Location.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Location.Builder

This builder for chaining.

clone()

public Location.Builder clone()
Returns
TypeDescription
Location.Builder
Overrides

getDefaultInstanceForType()

public Location getDefaultInstanceForType()
Returns
TypeDescription
Location

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLatLng()

public LatLng getLatLng()

An object representing a latitude/longitude pair.

.google.type.LatLng lat_lng = 3;

Returns
TypeDescription
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
TypeDescription
com.google.type.LatLng.Builder

getLatLngOrBuilder()

public LatLngOrBuilder getLatLngOrBuilder()

An object representing a latitude/longitude pair.

.google.type.LatLng lat_lng = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
double

The radiusMiles.

hasLatLng()

public boolean hasLatLng()

An object representing a latitude/longitude pair.

.google.type.LatLng lat_lng = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the postalAddress field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Location other)

public Location.Builder mergeFrom(Location other)
Parameter
NameDescription
otherLocation
Returns
TypeDescription
Location.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Location.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Location.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.type.LatLng
Returns
TypeDescription
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
NameDescription
valuecom.google.type.PostalAddress
Returns
TypeDescription
Location.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Location.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Location.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuecom.google.type.LatLng
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.LatLng.Builder
Returns
TypeDescription
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
NameDescription
valueLocation.LocationType

The locationType to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for locationType to set.

Returns
TypeDescription
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
NameDescription
valuecom.google.type.PostalAddress
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.PostalAddress.Builder
Returns
TypeDescription
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
NameDescription
valuedouble

The radiusMiles to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Location.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Location.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Location.Builder
Overrides