Package com.google.cloud.talent.v4
Class Location.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
com.google.cloud.talent.v4.Location.Builder
- All Implemented Interfaces:
LocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Location
public static final class Location.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
implements LocationOrBuilder
A resource that represents a location with full geographic information.Protobuf type
google.cloud.talent.v4.Location-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An object representing a latitude/longitude pair.The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].Postal address of the location that includes human readable information, such as postal delivery and payments addresses.Radius in miles of the job location.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn object representing a latitude/longitude pair.An object representing a latitude/longitude pair.An object representing a latitude/longitude pair.The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].intThe type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].Postal address of the location that includes human readable information, such as postal delivery and payments addresses.Postal address of the location that includes human readable information, such as postal delivery and payments addresses.Postal address of the location that includes human readable information, such as postal delivery and payments addresses.doubleRadius in miles of the job location.booleanAn object representing a latitude/longitude pair.booleanPostal address of the location that includes human readable information, such as postal delivery and payments addresses.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLatLng(LatLng value) An object representing a latitude/longitude pair.mergePostalAddress(PostalAddress value) Postal address of the location that includes human readable information, such as postal delivery and payments addresses.An object representing a latitude/longitude pair.setLatLng(LatLng.Builder builderForValue) An object representing a latitude/longitude pair.The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].setLocationTypeValue(int value) The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].setPostalAddress(PostalAddress value) Postal address of the location that includes human readable information, such as postal delivery and payments addresses.setPostalAddress(PostalAddress.Builder builderForValue) Postal address of the location that includes human readable information, such as postal delivery and payments addresses.setRadiusMiles(double value) Radius in miles of the job location.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>- Throws:
IOException
-
getLocationTypeValue
public int getLocationTypeValue()The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress]. For example, "Downtown, Atlanta, GA, USA" has a type of [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD], and "Kansas City, KS, USA" has a type of [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
.google.cloud.talent.v4.Location.LocationType location_type = 1;- Specified by:
getLocationTypeValuein interfaceLocationOrBuilder- Returns:
- The enum numeric value on the wire for locationType.
-
setLocationTypeValue
The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress]. For example, "Downtown, Atlanta, GA, USA" has a type of [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD], and "Kansas City, KS, USA" has a type of [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
.google.cloud.talent.v4.Location.LocationType location_type = 1;- Parameters:
value- The enum numeric value on the wire for locationType to set.- Returns:
- This builder for chaining.
-
getLocationType
The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress]. For example, "Downtown, Atlanta, GA, USA" has a type of [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD], and "Kansas City, KS, USA" has a type of [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
.google.cloud.talent.v4.Location.LocationType location_type = 1;- Specified by:
getLocationTypein interfaceLocationOrBuilder- Returns:
- The locationType.
-
setLocationType
The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress]. For example, "Downtown, Atlanta, GA, USA" has a type of [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD], and "Kansas City, KS, USA" has a type of [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
.google.cloud.talent.v4.Location.LocationType location_type = 1;- Parameters:
value- The locationType to set.- Returns:
- This builder for chaining.
-
clearLocationType
The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress]. For example, "Downtown, Atlanta, GA, USA" has a type of [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD], and "Kansas City, KS, USA" has a type of [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
.google.cloud.talent.v4.Location.LocationType location_type = 1;- Returns:
- This builder for chaining.
-
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;- Specified by:
hasPostalAddressin interfaceLocationOrBuilder- Returns:
- Whether the postalAddress field is set.
-
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;- Specified by:
getPostalAddressin interfaceLocationOrBuilder- Returns:
- The postalAddress.
-
setPostalAddress
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; -
setPostalAddress
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; -
mergePostalAddress
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; -
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; -
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; -
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;- Specified by:
getPostalAddressOrBuilderin interfaceLocationOrBuilder
-
hasLatLng
public boolean hasLatLng()An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;- Specified by:
hasLatLngin interfaceLocationOrBuilder- Returns:
- Whether the latLng field is set.
-
getLatLng
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;- Specified by:
getLatLngin interfaceLocationOrBuilder- Returns:
- The latLng.
-
setLatLng
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3; -
setLatLng
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3; -
mergeLatLng
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3; -
clearLatLng
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3; -
getLatLngBuilder
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3; -
getLatLngOrBuilder
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;- Specified by:
getLatLngOrBuilderin interfaceLocationOrBuilder
-
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][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;- Specified by:
getRadiusMilesin interfaceLocationOrBuilder- Returns:
- The radiusMiles.
-
setRadiusMiles
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][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;- Parameters:
value- The radiusMiles to set.- Returns:
- This builder for chaining.
-
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][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:
- This builder for chaining.
-