Class CommuteFilter.Builder (2.42.0)

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

Parameters needed for commute search.

Protobuf type google.cloud.talent.v4beta1.CommuteFilter

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommuteFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommuteFilter.Builder
Overrides

build()

public CommuteFilter build()
Returns
TypeDescription
CommuteFilter

buildPartial()

public CommuteFilter buildPartial()
Returns
TypeDescription
CommuteFilter

clear()

public CommuteFilter.Builder clear()
Returns
TypeDescription
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
TypeDescription
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.v4beta1.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];

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

clearField(Descriptors.FieldDescriptor field)

public CommuteFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CommuteFilter.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommuteFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CommuteFilter.Builder
Overrides

clearRoadTraffic()

public CommuteFilter.Builder clearRoadTraffic()

Specifies the traffic density to use when calculating commute time.

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

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

clearTrafficOption()

public CommuteFilter.Builder clearTrafficOption()
Returns
TypeDescription
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
TypeDescription
CommuteFilter.Builder

clone()

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

The commuteMethod.

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
TypeDescription
int

The enum numeric value on the wire for commuteMethod.

getDefaultInstanceForType()

public CommuteFilter getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.type.TimeOfDayOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
CommuteFilter.RoadTraffic

The roadTraffic.

getRoadTrafficValue()

public int getRoadTrafficValue()

Specifies the traffic density to use when calculating commute time.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.type.LatLngOrBuilder

getTrafficOptionCase()

public CommuteFilter.TrafficOptionCase getTrafficOptionCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the travelDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuecom.google.type.TimeOfDay
Returns
TypeDescription
CommuteFilter.Builder

mergeFrom(CommuteFilter other)

public CommuteFilter.Builder mergeFrom(CommuteFilter other)
Parameter
NameDescription
otherCommuteFilter
Returns
TypeDescription
CommuteFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommuteFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommuteFilter.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CommuteFilter.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuecom.google.type.LatLng
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
CommuteFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommuteFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The allowImpreciseAddresses to set.

Returns
TypeDescription
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.v4beta1.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCommuteMethod

The commuteMethod to set.

Returns
TypeDescription
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.v4beta1.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valuecom.google.type.TimeOfDay
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.TimeOfDay.Builder
Returns
TypeDescription
CommuteFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommuteFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommuteFilter.Builder
Overrides

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

public CommuteFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5;

Parameter
NameDescription
valueCommuteFilter.RoadTraffic

The roadTraffic to set.

Returns
TypeDescription
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.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valuecom.google.type.LatLng
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.type.LatLng.Builder
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommuteFilter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CommuteFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommuteFilter.Builder
Overrides