Package com.google.cloud.talent.v4beta1
Class LocationFilter
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.talent.v4beta1.LocationFilter
-
- All Implemented Interfaces:
LocationFilterOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class LocationFilter extends com.google.protobuf.GeneratedMessageV3 implements LocationFilterOrBuilder
Geographic region of the search.
Protobuf typegoogle.cloud.talent.v4beta1.LocationFilter
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocationFilter.Builder
Geographic region of the search.static class
LocationFilter.TelecommutePreference
Specify whether to include telecommute jobs.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADDRESS_FIELD_NUMBER
static int
DISTANCE_IN_MILES_FIELD_NUMBER
static int
LAT_LNG_FIELD_NUMBER
static int
NEGATED_FIELD_NUMBER
static int
REGION_CODE_FIELD_NUMBER
static int
TELECOMMUTE_PREFERENCE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAddress()
The address name, such as "Mountain View" or "Bay Area".com.google.protobuf.ByteString
getAddressBytes()
The address name, such as "Mountain View" or "Bay Area".static LocationFilter
getDefaultInstance()
LocationFilter
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
double
getDistanceInMiles()
The distance_in_miles is applied when the location being searched for is identified as a city or smaller.com.google.type.LatLng
getLatLng()
The latitude and longitude of the geographic center to search from.com.google.type.LatLngOrBuilder
getLatLngOrBuilder()
The latitude and longitude of the geographic center to search from.boolean
getNegated()
Whether to apply negation to the filter so profiles matching the filter are excluded.com.google.protobuf.Parser<LocationFilter>
getParserForType()
String
getRegionCode()
CLDR region code of the country/region.com.google.protobuf.ByteString
getRegionCodeBytes()
CLDR region code of the country/region.int
getSerializedSize()
LocationFilter.TelecommutePreference
getTelecommutePreference()
Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location).int
getTelecommutePreferenceValue()
Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location).int
hashCode()
boolean
hasLatLng()
The latitude and longitude of the geographic center to search from.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static LocationFilter.Builder
newBuilder()
static LocationFilter.Builder
newBuilder(LocationFilter prototype)
LocationFilter.Builder
newBuilderForType()
protected LocationFilter.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static LocationFilter
parseDelimitedFrom(InputStream input)
static LocationFilter
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LocationFilter
parseFrom(byte[] data)
static LocationFilter
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LocationFilter
parseFrom(com.google.protobuf.ByteString data)
static LocationFilter
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LocationFilter
parseFrom(com.google.protobuf.CodedInputStream input)
static LocationFilter
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LocationFilter
parseFrom(InputStream input)
static LocationFilter
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static LocationFilter
parseFrom(ByteBuffer data)
static LocationFilter
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<LocationFilter>
parser()
LocationFilter.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REGION_CODE_FIELD_NUMBER
public static final int REGION_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAT_LNG_FIELD_NUMBER
public static final int LAT_LNG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISTANCE_IN_MILES_FIELD_NUMBER
public static final int DISTANCE_IN_MILES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TELECOMMUTE_PREFERENCE_FIELD_NUMBER
public static final int TELECOMMUTE_PREFERENCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEGATED_FIELD_NUMBER
public static final int NEGATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getAddress
public String getAddress()
The address name, such as "Mountain View" or "Bay Area".
string address = 1;
- Specified by:
getAddress
in interfaceLocationFilterOrBuilder
- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()
The address name, such as "Mountain View" or "Bay Area".
string address = 1;
- Specified by:
getAddressBytes
in interfaceLocationFilterOrBuilder
- Returns:
- The bytes for address.
-
getRegionCode
public String getRegionCode()
CLDR region code of the country/region. This field may be used in two ways: 1) If telecommute preference is not set, this field is used address ambiguity of the user-input address. For example, "Liverpool" may refer to "Liverpool, NY, US" or "Liverpool, UK". This region code biases the address resolution toward a specific country or territory. If this field is not set, address resolution is biased toward the United States by default. 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the telecommute location filter will be limited to the region specified in this field. If this field is not set, the telecommute job locations will not be See https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html for details. Example: "CH" for Switzerland.
string region_code = 2;
- Specified by:
getRegionCode
in interfaceLocationFilterOrBuilder
- Returns:
- The regionCode.
-
getRegionCodeBytes
public com.google.protobuf.ByteString getRegionCodeBytes()
CLDR region code of the country/region. This field may be used in two ways: 1) If telecommute preference is not set, this field is used address ambiguity of the user-input address. For example, "Liverpool" may refer to "Liverpool, NY, US" or "Liverpool, UK". This region code biases the address resolution toward a specific country or territory. If this field is not set, address resolution is biased toward the United States by default. 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the telecommute location filter will be limited to the region specified in this field. If this field is not set, the telecommute job locations will not be See https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html for details. Example: "CH" for Switzerland.
string region_code = 2;
- Specified by:
getRegionCodeBytes
in interfaceLocationFilterOrBuilder
- Returns:
- The bytes for regionCode.
-
hasLatLng
public boolean hasLatLng()
The latitude and longitude of the geographic center to search from. This field is ignored if `address` is provided.
.google.type.LatLng lat_lng = 3;
- Specified by:
hasLatLng
in interfaceLocationFilterOrBuilder
- Returns:
- Whether the latLng field is set.
-
getLatLng
public com.google.type.LatLng getLatLng()
The latitude and longitude of the geographic center to search from. This field is ignored if `address` is provided.
.google.type.LatLng lat_lng = 3;
- Specified by:
getLatLng
in interfaceLocationFilterOrBuilder
- Returns:
- The latLng.
-
getLatLngOrBuilder
public com.google.type.LatLngOrBuilder getLatLngOrBuilder()
The latitude and longitude of the geographic center to search from. This field is ignored if `address` is provided.
.google.type.LatLng lat_lng = 3;
- Specified by:
getLatLngOrBuilder
in interfaceLocationFilterOrBuilder
-
getDistanceInMiles
public double getDistanceInMiles()
The distance_in_miles is applied when the location being searched for is identified as a city or smaller. This field is ignored if the location being searched for is a state or larger.
double distance_in_miles = 4;
- Specified by:
getDistanceInMiles
in interfaceLocationFilterOrBuilder
- Returns:
- The distanceInMiles.
-
getTelecommutePreferenceValue
public int getTelecommutePreferenceValue()
Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location). [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] and [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored. If not set or set to [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4beta1.PostingRegion.TELECOMMUTE] and have additional [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] may still be matched based on other location filters using [address][google.cloud.talent.v4beta1.LocationFilter.address] or [latlng][]. This filter can be used by itself to search exclusively for telecommuting jobs, or it can be combined with another location filter to search for a combination of job locations, such as "Mountain View" or "telecommuting" jobs. However, when used in combination with other location filters, telecommuting jobs can be treated as less relevant than other jobs in the search response. This field is only used for job search requests.
.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5;
- Specified by:
getTelecommutePreferenceValue
in interfaceLocationFilterOrBuilder
- Returns:
- The enum numeric value on the wire for telecommutePreference.
-
getTelecommutePreference
public LocationFilter.TelecommutePreference getTelecommutePreference()
Allows the client to return jobs without a set location, specifically, telecommuting jobs (telecommuting is considered by the service as a special location). [Job.posting_region][google.cloud.talent.v4beta1.Job.posting_region] indicates if a job permits telecommuting. If this field is set to [TelecommutePreference.TELECOMMUTE_ALLOWED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_ALLOWED], telecommuting jobs are searched, and [address][google.cloud.talent.v4beta1.LocationFilter.address] and [lat_lng][google.cloud.talent.v4beta1.LocationFilter.lat_lng] are ignored. If not set or set to [TelecommutePreference.TELECOMMUTE_EXCLUDED][google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference.TELECOMMUTE_EXCLUDED], the telecommute status of the jobs is ignored. Jobs that have [PostingRegion.TELECOMMUTE][google.cloud.talent.v4beta1.PostingRegion.TELECOMMUTE] and have additional [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] may still be matched based on other location filters using [address][google.cloud.talent.v4beta1.LocationFilter.address] or [latlng][]. This filter can be used by itself to search exclusively for telecommuting jobs, or it can be combined with another location filter to search for a combination of job locations, such as "Mountain View" or "telecommuting" jobs. However, when used in combination with other location filters, telecommuting jobs can be treated as less relevant than other jobs in the search response. This field is only used for job search requests.
.google.cloud.talent.v4beta1.LocationFilter.TelecommutePreference telecommute_preference = 5;
- Specified by:
getTelecommutePreference
in interfaceLocationFilterOrBuilder
- Returns:
- The telecommutePreference.
-
getNegated
public boolean getNegated()
Whether to apply negation to the filter so profiles matching the filter are excluded.
bool negated = 6;
- Specified by:
getNegated
in interfaceLocationFilterOrBuilder
- Returns:
- The negated.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LocationFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocationFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocationFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocationFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocationFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocationFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocationFilter parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LocationFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LocationFilter parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LocationFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static LocationFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LocationFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public LocationFilter.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static LocationFilter.Builder newBuilder()
-
newBuilder
public static LocationFilter.Builder newBuilder(LocationFilter prototype)
-
toBuilder
public LocationFilter.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LocationFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static LocationFilter getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<LocationFilter> parser()
-
getParserForType
public com.google.protobuf.Parser<LocationFilter> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public LocationFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-