Class CommuteFilter.Builder (2.45.0)

public static final class CommuteFilter.Builder extends GeneratedMessageV3.Builder<CommuteFilter.Builder> implements CommuteFilterOrBuilder

Parameters needed for commute search.

Protobuf type google.cloud.talent.v4.CommuteFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommuteFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommuteFilter.Builder
Overrides

build()

public CommuteFilter build()
Returns
Type Description
CommuteFilter

buildPartial()

public CommuteFilter buildPartial()
Returns
Type Description
CommuteFilter

clear()

public CommuteFilter.Builder clear()
Returns
Type Description
CommuteFilter.Builder
Overrides

clearAllowImpreciseAddresses()

public CommuteFilter.Builder clearAllowImpreciseAddresses()

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
CommuteFilter.Builder

This builder for chaining.

clearCommuteMethod()

public CommuteFilter.Builder clearCommuteMethod()

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
CommuteFilter.Builder

This builder for chaining.

clearDepartureTime()

public CommuteFilter.Builder clearDepartureTime()

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
CommuteFilter.Builder

clearField(Descriptors.FieldDescriptor field)

public CommuteFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CommuteFilter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommuteFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CommuteFilter.Builder
Overrides

clearRoadTraffic()

public CommuteFilter.Builder clearRoadTraffic()

Specifies the traffic density to use when calculating commute time.

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

Returns
Type Description
CommuteFilter.Builder

This builder for chaining.

clearStartCoordinates()

public CommuteFilter.Builder clearStartCoordinates()

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
CommuteFilter.Builder

clearTrafficOption()

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

clearTravelDuration()

public CommuteFilter.Builder clearTravelDuration()

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
CommuteFilter.Builder

clone()

public CommuteFilter.Builder clone()
Returns
Type Description
CommuteFilter.Builder
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.

getDepartureTimeBuilder()

public TimeOfDay.Builder getDepartureTimeBuilder()

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.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

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.

getStartCoordinatesBuilder()

public LatLng.Builder getStartCoordinatesBuilder()

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.Builder

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.

getTravelDurationBuilder()

public Duration.Builder getTravelDurationBuilder()

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
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDepartureTime(TimeOfDay value)

public CommuteFilter.Builder mergeDepartureTime(TimeOfDay value)

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;

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
CommuteFilter.Builder

mergeFrom(CommuteFilter other)

public CommuteFilter.Builder mergeFrom(CommuteFilter other)
Parameter
Name Description
other CommuteFilter
Returns
Type Description
CommuteFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommuteFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommuteFilter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CommuteFilter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CommuteFilter.Builder
Overrides

mergeStartCoordinates(LatLng value)

public CommuteFilter.Builder mergeStartCoordinates(LatLng value)

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];

Parameter
Name Description
value com.google.type.LatLng
Returns
Type Description
CommuteFilter.Builder

mergeTravelDuration(Duration value)

public CommuteFilter.Builder mergeTravelDuration(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
CommuteFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommuteFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommuteFilter.Builder
Overrides

setAllowImpreciseAddresses(boolean value)

public CommuteFilter.Builder setAllowImpreciseAddresses(boolean value)

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;

Parameter
Name Description
value boolean

The allowImpreciseAddresses to set.

Returns
Type Description
CommuteFilter.Builder

This builder for chaining.

setCommuteMethod(CommuteMethod value)

public CommuteFilter.Builder setCommuteMethod(CommuteMethod value)

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

.google.cloud.talent.v4.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CommuteMethod

The commuteMethod to set.

Returns
Type Description
CommuteFilter.Builder

This builder for chaining.

setCommuteMethodValue(int value)

public CommuteFilter.Builder setCommuteMethodValue(int value)

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

.google.cloud.talent.v4.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for commuteMethod to set.

Returns
Type Description
CommuteFilter.Builder

This builder for chaining.

setDepartureTime(TimeOfDay value)

public CommuteFilter.Builder setDepartureTime(TimeOfDay value)

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;

Parameter
Name Description
value com.google.type.TimeOfDay
Returns
Type Description
CommuteFilter.Builder

setDepartureTime(TimeOfDay.Builder builderForValue)

public CommuteFilter.Builder setDepartureTime(TimeOfDay.Builder builderForValue)

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;

Parameter
Name Description
builderForValue com.google.type.TimeOfDay.Builder
Returns
Type Description
CommuteFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommuteFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommuteFilter.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CommuteFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CommuteFilter.Builder
Overrides

setRoadTraffic(CommuteFilter.RoadTraffic value)

public CommuteFilter.Builder setRoadTraffic(CommuteFilter.RoadTraffic value)

Specifies the traffic density to use when calculating commute time.

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

Parameter
Name Description
value CommuteFilter.RoadTraffic

The roadTraffic to set.

Returns
Type Description
CommuteFilter.Builder

This builder for chaining.

setRoadTrafficValue(int value)

public CommuteFilter.Builder setRoadTrafficValue(int value)

Specifies the traffic density to use when calculating commute time.

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

Parameter
Name Description
value int

The enum numeric value on the wire for roadTraffic to set.

Returns
Type Description
CommuteFilter.Builder

This builder for chaining.

setStartCoordinates(LatLng value)

public CommuteFilter.Builder setStartCoordinates(LatLng value)

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];

Parameter
Name Description
value com.google.type.LatLng
Returns
Type Description
CommuteFilter.Builder

setStartCoordinates(LatLng.Builder builderForValue)

public CommuteFilter.Builder setStartCoordinates(LatLng.Builder builderForValue)

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];

Parameter
Name Description
builderForValue com.google.type.LatLng.Builder
Returns
Type Description
CommuteFilter.Builder

setTravelDuration(Duration value)

public CommuteFilter.Builder setTravelDuration(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
CommuteFilter.Builder

setTravelDuration(Duration.Builder builderForValue)

public CommuteFilter.Builder setTravelDuration(Duration.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CommuteFilter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CommuteFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommuteFilter.Builder
Overrides