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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilder
A resource that represents a location with full geographic information.
Protobuf typegoogle.cloud.talent.v4.Location
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Location.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Locationbuild()LocationbuildPartial()Location.Builderclear()Location.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Location.BuilderclearLatLng()An object representing a latitude/longitude pair.Location.BuilderclearLocationType()The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].Location.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Location.BuilderclearPostalAddress()Postal address of the location that includes human readable information, such as postal delivery and payments addresses.Location.BuilderclearRadiusMiles()Radius in miles of the job location.Location.Builderclone()LocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.type.LatLnggetLatLng()An object representing a latitude/longitude pair.com.google.type.LatLng.BuildergetLatLngBuilder()An object representing a latitude/longitude pair.com.google.type.LatLngOrBuildergetLatLngOrBuilder()An object representing a latitude/longitude pair.Location.LocationTypegetLocationType()The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].intgetLocationTypeValue()The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].com.google.type.PostalAddressgetPostalAddress()Postal address of the location that includes human readable information, such as postal delivery and payments addresses.com.google.type.PostalAddress.BuildergetPostalAddressBuilder()Postal address of the location that includes human readable information, such as postal delivery and payments addresses.com.google.type.PostalAddressOrBuildergetPostalAddressOrBuilder()Postal address of the location that includes human readable information, such as postal delivery and payments addresses.doublegetRadiusMiles()Radius in miles of the job location.booleanhasLatLng()An object representing a latitude/longitude pair.booleanhasPostalAddress()Postal address of the location that includes human readable information, such as postal delivery and payments addresses.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Location.BuildermergeFrom(Location other)Location.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Location.BuildermergeFrom(com.google.protobuf.Message other)Location.BuildermergeLatLng(com.google.type.LatLng value)An object representing a latitude/longitude pair.Location.BuildermergePostalAddress(com.google.type.PostalAddress value)Postal address of the location that includes human readable information, such as postal delivery and payments addresses.Location.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Location.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Location.BuildersetLatLng(com.google.type.LatLng value)An object representing a latitude/longitude pair.Location.BuildersetLatLng(com.google.type.LatLng.Builder builderForValue)An object representing a latitude/longitude pair.Location.BuildersetLocationType(Location.LocationType value)The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].Location.BuildersetLocationTypeValue(int value)The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].Location.BuildersetPostalAddress(com.google.type.PostalAddress value)Postal address of the location that includes human readable information, such as postal delivery and payments addresses.Location.BuildersetPostalAddress(com.google.type.PostalAddress.Builder builderForValue)Postal address of the location that includes human readable information, such as postal delivery and payments addresses.Location.BuildersetRadiusMiles(double value)Radius in miles of the job location.Location.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Location.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
public Location.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setField
public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
addRepeatedField
public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public Location.Builder setLocationTypeValue(int value)
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
public Location.LocationType 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
public Location.Builder setLocationType(Location.LocationType value)
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
public Location.Builder 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
public com.google.type.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;- Specified by:
getPostalAddressin interfaceLocationOrBuilder- Returns:
- The postalAddress.
-
setPostalAddress
public Location.Builder setPostalAddress(com.google.type.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;
-
setPostalAddress
public Location.Builder setPostalAddress(com.google.type.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;
-
mergePostalAddress
public Location.Builder mergePostalAddress(com.google.type.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;
-
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;
-
getPostalAddressBuilder
public com.google.type.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;
-
getPostalAddressOrBuilder
public com.google.type.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;- 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
public com.google.type.LatLng getLatLng()
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;- Specified by:
getLatLngin interfaceLocationOrBuilder- Returns:
- The latLng.
-
setLatLng
public Location.Builder setLatLng(com.google.type.LatLng value)
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
-
setLatLng
public Location.Builder setLatLng(com.google.type.LatLng.Builder builderForValue)
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
-
mergeLatLng
public Location.Builder mergeLatLng(com.google.type.LatLng value)
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
-
clearLatLng
public Location.Builder clearLatLng()
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
-
getLatLngBuilder
public com.google.type.LatLng.Builder getLatLngBuilder()
An object representing a latitude/longitude pair.
.google.type.LatLng lat_lng = 3;
-
getLatLngOrBuilder
public com.google.type.LatLngOrBuilder 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
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][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
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][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.
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-