Send feedback
Class CommuteFilter (2.54.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.54.0 keyboard_arrow_down
public final class CommuteFilter extends GeneratedMessageV3 implements CommuteFilterOrBuilder
Parameters needed for commute search.
Protobuf type google.cloud.talent.v4beta1.CommuteFilter
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER
public static final int ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER
Field Value
Type
Description
int
COMMUTE_METHOD_FIELD_NUMBER
public static final int COMMUTE_METHOD_FIELD_NUMBER
Field Value
Type
Description
int
DEPARTURE_TIME_FIELD_NUMBER
public static final int DEPARTURE_TIME_FIELD_NUMBER
Field Value
Type
Description
int
ROAD_TRAFFIC_FIELD_NUMBER
public static final int ROAD_TRAFFIC_FIELD_NUMBER
Field Value
Type
Description
int
START_COORDINATES_FIELD_NUMBER
public static final int START_COORDINATES_FIELD_NUMBER
Field Value
Type
Description
int
TRAVEL_DURATION_FIELD_NUMBER
public static final int TRAVEL_DURATION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static CommuteFilter getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static CommuteFilter . Builder newBuilder ()
newBuilder(CommuteFilter prototype)
public static CommuteFilter . Builder newBuilder ( CommuteFilter prototype )
public static CommuteFilter parseDelimitedFrom ( InputStream input )
public static CommuteFilter parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static CommuteFilter parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CommuteFilter parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static CommuteFilter parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CommuteFilter parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static CommuteFilter parseFrom ( CodedInputStream input )
public static CommuteFilter parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static CommuteFilter parseFrom ( InputStream input )
public static CommuteFilter parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static CommuteFilter parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CommuteFilter parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<CommuteFilter> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAllowImpreciseAddresses()
public boolean getAllowImpreciseAddresses ()
If true
, jobs without street level addresses may also be returned.
For city level addresses, the city center is used. For state and coarser
level addresses, text matching is used.
If this field is set to false
or isn't specified, only jobs that include
street level addresses will be returned by commute search.
bool allow_imprecise_addresses = 4;
Returns
Type
Description
boolean
The allowImpreciseAddresses.
getCommuteMethod()
public CommuteMethod getCommuteMethod ()
Required. The method of transportation to calculate the commute time for.
.google.cloud.talent.v4beta1.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];
getCommuteMethodValue()
public int getCommuteMethodValue ()
Required. The method of transportation to calculate the commute time for.
.google.cloud.talent.v4beta1.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The enum numeric value on the wire for commuteMethod.
getDefaultInstanceForType()
public CommuteFilter getDefaultInstanceForType ()
getDepartureTime()
public TimeOfDay getDepartureTime ()
The departure time used to calculate traffic impact, represented as
google.type.TimeOfDay in local time zone.
Currently traffic model is restricted to hour level resolution.
.google.type.TimeOfDay departure_time = 6;
Returns
Type
Description
com.google.type.TimeOfDay
The departureTime.
getDepartureTimeOrBuilder()
public TimeOfDayOrBuilder getDepartureTimeOrBuilder ()
The departure time used to calculate traffic impact, represented as
google.type.TimeOfDay in local time zone.
Currently traffic model is restricted to hour level resolution.
.google.type.TimeOfDay departure_time = 6;
Returns
Type
Description
com.google.type.TimeOfDayOrBuilder
getParserForType()
public Parser<CommuteFilter> getParserForType ()
Overrides
getRoadTraffic()
public CommuteFilter . RoadTraffic getRoadTraffic ()
Specifies the traffic density to use when calculating commute time.
.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5;
getRoadTrafficValue()
public int getRoadTrafficValue ()
Specifies the traffic density to use when calculating commute time.
.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5;
Returns
Type
Description
int
The enum numeric value on the wire for roadTraffic.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getStartCoordinates()
public LatLng getStartCoordinates ()
Required. The latitude and longitude of the location to calculate the
commute time from.
.google.type.LatLng start_coordinates = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.LatLng
The startCoordinates.
getStartCoordinatesOrBuilder()
public LatLngOrBuilder getStartCoordinatesOrBuilder ()
Required. The latitude and longitude of the location to calculate the
commute time from.
.google.type.LatLng start_coordinates = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
com.google.type.LatLngOrBuilder
getTrafficOptionCase()
public CommuteFilter . TrafficOptionCase getTrafficOptionCase ()
getTravelDuration()
public Duration getTravelDuration ()
Required. The maximum travel time in seconds. The maximum allowed value is
3600s
(one hour). Format is 123s
.
.google.protobuf.Duration travel_duration = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
Duration
The travelDuration.
getTravelDurationOrBuilder()
public DurationOrBuilder getTravelDurationOrBuilder ()
Required. The maximum travel time in seconds. The maximum allowed value is
3600s
(one hour). Format is 123s
.
.google.protobuf.Duration travel_duration = 3 [(.google.api.field_behavior) = REQUIRED];
hasDepartureTime()
public boolean hasDepartureTime ()
The departure time used to calculate traffic impact, represented as
google.type.TimeOfDay in local time zone.
Currently traffic model is restricted to hour level resolution.
.google.type.TimeOfDay departure_time = 6;
Returns
Type
Description
boolean
Whether the departureTime field is set.
hasRoadTraffic()
public boolean hasRoadTraffic ()
Specifies the traffic density to use when calculating commute time.
.google.cloud.talent.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5;
Returns
Type
Description
boolean
Whether the roadTraffic field is set.
hasStartCoordinates()
public boolean hasStartCoordinates ()
Required. The latitude and longitude of the location to calculate the
commute time from.
.google.type.LatLng start_coordinates = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the startCoordinates field is set.
hasTravelDuration()
public boolean hasTravelDuration ()
Required. The maximum travel time in seconds. The maximum allowed value is
3600s
(one hour). Format is 123s
.
.google.protobuf.Duration travel_duration = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the travelDuration field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public CommuteFilter . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CommuteFilter . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public CommuteFilter . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]