Class CommuteFilter (2.46.0)

public final class CommuteFilter extends GeneratedMessageV3 implements CommuteFilterOrBuilder

Parameters needed for commute search.

Protobuf type google.cloud.talent.v4.CommuteFilter

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()
Returns
Type Description
CommuteFilter

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CommuteFilter.Builder newBuilder()
Returns
Type Description
CommuteFilter.Builder

newBuilder(CommuteFilter prototype)

public static CommuteFilter.Builder newBuilder(CommuteFilter prototype)
Parameter
Name Description
prototype CommuteFilter
Returns
Type Description
CommuteFilter.Builder

parseDelimitedFrom(InputStream input)

public static CommuteFilter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CommuteFilter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommuteFilter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CommuteFilter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CommuteFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommuteFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CommuteFilter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CommuteFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommuteFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CommuteFilter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CommuteFilter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommuteFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CommuteFilter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CommuteFilter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommuteFilter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CommuteFilter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CommuteFilter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommuteFilter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CommuteFilter> parser()
Returns
Type Description
Parser<CommuteFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.v4.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CommuteMethod

The commuteMethod.

getCommuteMethodValue()

public int getCommuteMethodValue()

Required. The method of transportation to calculate the commute time for.

.google.cloud.talent.v4.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
Type Description
CommuteFilter

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
Type Description
Parser<CommuteFilter>
Overrides

getRoadTraffic()

public CommuteFilter.RoadTraffic getRoadTraffic()

Specifies the traffic density to use when calculating commute time.

.google.cloud.talent.v4.CommuteFilter.RoadTraffic road_traffic = 5;

Returns
Type Description
CommuteFilter.RoadTraffic

The roadTraffic.

getRoadTrafficValue()

public int getRoadTrafficValue()

Specifies the traffic density to use when calculating commute time.

.google.cloud.talent.v4.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()
Returns
Type Description
CommuteFilter.TrafficOptionCase

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
Type Description
DurationOrBuilder

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.v4.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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CommuteFilter.Builder newBuilderForType()
Returns
Type Description
CommuteFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CommuteFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CommuteFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CommuteFilter.Builder toBuilder()
Returns
Type Description
CommuteFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException