Class SearchJobsResponse.CommuteInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchJobsResponse.CommuteInfo.Builder>
com.google.cloud.talent.v4.SearchJobsResponse.CommuteInfo.Builder
All Implemented Interfaces:
SearchJobsResponse.CommuteInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchJobsResponse.CommuteInfo

public static final class SearchJobsResponse.CommuteInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchJobsResponse.CommuteInfo.Builder> implements SearchJobsResponse.CommuteInfoOrBuilder
 Commute details related to this job.
 
Protobuf type google.cloud.talent.v4.SearchJobsResponse.CommuteInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchJobsResponse.CommuteInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SearchJobsResponse.CommuteInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SearchJobsResponse.CommuteInfo.Builder>
    • getDefaultInstanceForType

      public SearchJobsResponse.CommuteInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SearchJobsResponse.CommuteInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SearchJobsResponse.CommuteInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchJobsResponse.CommuteInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchJobsResponse.CommuteInfo.Builder>
    • mergeFrom

      public SearchJobsResponse.CommuteInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchJobsResponse.CommuteInfo.Builder>
      Throws:
      IOException
    • hasJobLocation

      public boolean hasJobLocation()
       Location used as the destination in the commute calculation.
       
      .google.cloud.talent.v4.Location job_location = 1;
      Specified by:
      hasJobLocation in interface SearchJobsResponse.CommuteInfoOrBuilder
      Returns:
      Whether the jobLocation field is set.
    • getJobLocation

      public Location getJobLocation()
       Location used as the destination in the commute calculation.
       
      .google.cloud.talent.v4.Location job_location = 1;
      Specified by:
      getJobLocation in interface SearchJobsResponse.CommuteInfoOrBuilder
      Returns:
      The jobLocation.
    • setJobLocation

      public SearchJobsResponse.CommuteInfo.Builder setJobLocation(Location value)
       Location used as the destination in the commute calculation.
       
      .google.cloud.talent.v4.Location job_location = 1;
    • setJobLocation

      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;
    • mergeJobLocation

      public SearchJobsResponse.CommuteInfo.Builder mergeJobLocation(Location value)
       Location used as the destination in the commute calculation.
       
      .google.cloud.talent.v4.Location job_location = 1;
    • clearJobLocation

      public SearchJobsResponse.CommuteInfo.Builder clearJobLocation()
       Location used as the destination in the commute calculation.
       
      .google.cloud.talent.v4.Location job_location = 1;
    • getJobLocationBuilder

      public Location.Builder getJobLocationBuilder()
       Location used as the destination in the commute calculation.
       
      .google.cloud.talent.v4.Location job_location = 1;
    • getJobLocationOrBuilder

      public LocationOrBuilder getJobLocationOrBuilder()
       Location used as the destination in the commute calculation.
       
      .google.cloud.talent.v4.Location job_location = 1;
      Specified by:
      getJobLocationOrBuilder in interface SearchJobsResponse.CommuteInfoOrBuilder
    • 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;
      Specified by:
      hasTravelDuration in interface SearchJobsResponse.CommuteInfoOrBuilder
      Returns:
      Whether the travelDuration field is set.
    • getTravelDuration

      public com.google.protobuf.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;
      Specified by:
      getTravelDuration in interface SearchJobsResponse.CommuteInfoOrBuilder
      Returns:
      The travelDuration.
    • setTravelDuration

      public SearchJobsResponse.CommuteInfo.Builder setTravelDuration(com.google.protobuf.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;
    • setTravelDuration

      public SearchJobsResponse.CommuteInfo.Builder setTravelDuration(com.google.protobuf.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;
    • mergeTravelDuration

      public SearchJobsResponse.CommuteInfo.Builder mergeTravelDuration(com.google.protobuf.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;
    • 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;
    • getTravelDurationBuilder

      public com.google.protobuf.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;
    • getTravelDurationOrBuilder

      public com.google.protobuf.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;
      Specified by:
      getTravelDurationOrBuilder in interface SearchJobsResponse.CommuteInfoOrBuilder