Class SearchJobsResponse.CommuteInfo.Builder (2.44.0)

public static final class SearchJobsResponse.CommuteInfo.Builder extends GeneratedMessageV3.Builder<SearchJobsResponse.CommuteInfo.Builder> implements SearchJobsResponse.CommuteInfoOrBuilder

Commute details related to this job.

Protobuf type google.cloud.talent.v4.SearchJobsResponse.CommuteInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchJobsResponse.CommuteInfo build()
Returns
Type Description
SearchJobsResponse.CommuteInfo

buildPartial()

public SearchJobsResponse.CommuteInfo buildPartial()
Returns
Type Description
SearchJobsResponse.CommuteInfo

clear()

public SearchJobsResponse.CommuteInfo.Builder clear()
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearJobLocation()

public SearchJobsResponse.CommuteInfo.Builder clearJobLocation()

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTravelDuration()

public SearchJobsResponse.CommuteInfo.Builder clearTravelDuration()

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

clone()

public SearchJobsResponse.CommuteInfo.Builder clone()
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder
Overrides

getDefaultInstanceForType()

public SearchJobsResponse.CommuteInfo getDefaultInstanceForType()
Returns
Type Description
SearchJobsResponse.CommuteInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJobLocation()

public Location getJobLocation()

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Returns
Type Description
Location

The jobLocation.

getJobLocationBuilder()

public Location.Builder getJobLocationBuilder()

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Returns
Type Description
Location.Builder

getJobLocationOrBuilder()

public LocationOrBuilder getJobLocationOrBuilder()

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Returns
Type Description
LocationOrBuilder

getTravelDuration()

public Duration getTravelDuration()

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

Returns
Type Description
Duration

The travelDuration.

getTravelDurationBuilder()

public Duration.Builder getTravelDurationBuilder()

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

Returns
Type Description
Builder

getTravelDurationOrBuilder()

public DurationOrBuilder getTravelDurationOrBuilder()

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

Returns
Type Description
DurationOrBuilder

hasJobLocation()

public boolean hasJobLocation()

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Returns
Type Description
boolean

Whether the jobLocation field is set.

hasTravelDuration()

public boolean hasTravelDuration()

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

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

mergeFrom(SearchJobsResponse.CommuteInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJobLocation(Location value)

public SearchJobsResponse.CommuteInfo.Builder mergeJobLocation(Location value)

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Parameter
Name Description
value Location
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

mergeTravelDuration(Duration value)

public SearchJobsResponse.CommuteInfo.Builder mergeTravelDuration(Duration value)

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobLocation(Location value)

public SearchJobsResponse.CommuteInfo.Builder setJobLocation(Location value)

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Parameter
Name Description
value Location
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

setJobLocation(Location.Builder builderForValue)

public SearchJobsResponse.CommuteInfo.Builder setJobLocation(Location.Builder builderForValue)

Location used as the destination in the commute calculation.

.google.cloud.talent.v4.Location job_location = 1;

Parameter
Name Description
builderForValue Location.Builder
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

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

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

setTravelDuration(Duration value)

public SearchJobsResponse.CommuteInfo.Builder setTravelDuration(Duration value)

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

setTravelDuration(Duration.Builder builderForValue)

public SearchJobsResponse.CommuteInfo.Builder setTravelDuration(Duration.Builder builderForValue)

The number of seconds required to travel to the job location from the query location. A duration of 0 seconds indicates that the job isn't reachable within the requested duration, but was returned as part of an expanded query.

.google.protobuf.Duration travel_duration = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SearchJobsResponse.CommuteInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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