public final class CommuteFilter extends GeneratedMessageV3 implements CommuteFilterOrBuilder
Parameters needed for commute search.
Protobuf type google.cloud.talent.v4beta1.CommuteFilter
Static Fields
ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER
public static final int ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER
Field Value
COMMUTE_METHOD_FIELD_NUMBER
public static final int COMMUTE_METHOD_FIELD_NUMBER
Field Value
DEPARTURE_TIME_FIELD_NUMBER
public static final int DEPARTURE_TIME_FIELD_NUMBER
Field Value
ROAD_TRAFFIC_FIELD_NUMBER
public static final int ROAD_TRAFFIC_FIELD_NUMBER
Field Value
START_COORDINATES_FIELD_NUMBER
public static final int START_COORDINATES_FIELD_NUMBER
Field Value
TRAVEL_DURATION_FIELD_NUMBER
public static final int TRAVEL_DURATION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CommuteFilter getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CommuteFilter.Builder newBuilder()
Returns
newBuilder(CommuteFilter prototype)
public static CommuteFilter.Builder newBuilder(CommuteFilter prototype)
Parameter
Returns
public static CommuteFilter parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommuteFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CommuteFilter parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CommuteFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CommuteFilter parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CommuteFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommuteFilter parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CommuteFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommuteFilter parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommuteFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CommuteFilter parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CommuteFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CommuteFilter> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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];
Returns
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()
Returns
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()
Returns
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;
Returns
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
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()
Returns
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];
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CommuteFilter.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CommuteFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CommuteFilter.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions