Class CommuteFilter (2.7.0)

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

COMMUTE_METHOD_FIELD_NUMBER

public static final int COMMUTE_METHOD_FIELD_NUMBER
Field Value
TypeDescription
int

DEPARTURE_TIME_FIELD_NUMBER

public static final int DEPARTURE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ROAD_TRAFFIC_FIELD_NUMBER

public static final int ROAD_TRAFFIC_FIELD_NUMBER
Field Value
TypeDescription
int

START_COORDINATES_FIELD_NUMBER

public static final int START_COORDINATES_FIELD_NUMBER
Field Value
TypeDescription
int

TRAVEL_DURATION_FIELD_NUMBER

public static final int TRAVEL_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CommuteFilter getDefaultInstance()
Returns
TypeDescription
CommuteFilter

getDescriptor()

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

newBuilder()

public static CommuteFilter.Builder newBuilder()
Returns
TypeDescription
CommuteFilter.Builder

newBuilder(CommuteFilter prototype)

public static CommuteFilter.Builder newBuilder(CommuteFilter prototype)
Parameter
NameDescription
prototypeCommuteFilter
Returns
TypeDescription
CommuteFilter.Builder

parseDelimitedFrom(InputStream input)

public static CommuteFilter parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CommuteFilter parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CommuteFilter parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CommuteFilter parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CommuteFilter parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CommuteFilter parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CommuteFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommuteFilter
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CommuteFilter> parser()
Returns
TypeDescription
Parser<CommuteFilter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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.

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

getParserForType()

public Parser<CommuteFilter> getParserForType()
Returns
TypeDescription
Parser<CommuteFilter>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
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.

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CommuteFilter.Builder newBuilderForType()
Returns
TypeDescription
CommuteFilter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CommuteFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CommuteFilter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CommuteFilter.Builder toBuilder()
Returns
TypeDescription
CommuteFilter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException