Class SearchJobsResponse.CommuteInfo.Builder (2.2.9)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchJobsResponse.CommuteInfo build()
Returns
TypeDescription
SearchJobsResponse.CommuteInfo

buildPartial()

public SearchJobsResponse.CommuteInfo buildPartial()
Returns
TypeDescription
SearchJobsResponse.CommuteInfo

clear()

public SearchJobsResponse.CommuteInfo.Builder clear()
Returns
TypeDescription
SearchJobsResponse.CommuteInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchJobsResponse.CommuteInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchJobsResponse.CommuteInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchJobsResponse.CommuteInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SearchJobsResponse.CommuteInfo.Builder

clone()

public SearchJobsResponse.CommuteInfo.Builder clone()
Returns
TypeDescription
SearchJobsResponse.CommuteInfo.Builder
Overrides

getDefaultInstanceForType()

public SearchJobsResponse.CommuteInfo getDefaultInstanceForType()
Returns
TypeDescription
SearchJobsResponse.CommuteInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getJobLocation()

public Location getJobLocation()

Location used as the destination in the commute calculation.

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

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

getJobLocationOrBuilder()

public LocationOrBuilder getJobLocationOrBuilder()

Location used as the destination in the commute calculation.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DurationOrBuilder

hasJobLocation()

public boolean hasJobLocation()

Location used as the destination in the commute calculation.

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

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

mergeFrom(SearchJobsResponse.CommuteInfo other)

public SearchJobsResponse.CommuteInfo.Builder mergeFrom(SearchJobsResponse.CommuteInfo other)
Parameter
NameDescription
otherSearchJobsResponse.CommuteInfo
Returns
TypeDescription
SearchJobsResponse.CommuteInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SearchJobsResponse.CommuteInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueLocation
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
SearchJobsResponse.CommuteInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchJobsResponse.CommuteInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchJobsResponse.CommuteInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SearchJobsResponse.CommuteInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueLocation
Returns
TypeDescription
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
NameDescription
builderForValueLocation.Builder
Returns
TypeDescription
SearchJobsResponse.CommuteInfo.Builder

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

public SearchJobsResponse.CommuteInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
SearchJobsResponse.CommuteInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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