Class CommuteFilter

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.talent.v4.CommuteFilter
All Implemented Interfaces:
CommuteFilterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CommuteFilter extends com.google.protobuf.GeneratedMessage implements CommuteFilterOrBuilder
 Parameters needed for commute search.
 
Protobuf type google.cloud.talent.v4.CommuteFilter
See Also:
  • Field Details

    • COMMUTE_METHOD_FIELD_NUMBER

      public static final int COMMUTE_METHOD_FIELD_NUMBER
      See Also:
    • START_COORDINATES_FIELD_NUMBER

      public static final int START_COORDINATES_FIELD_NUMBER
      See Also:
    • TRAVEL_DURATION_FIELD_NUMBER

      public static final int TRAVEL_DURATION_FIELD_NUMBER
      See Also:
    • ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER

      public static final int ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER
      See Also:
    • ROAD_TRAFFIC_FIELD_NUMBER

      public static final int ROAD_TRAFFIC_FIELD_NUMBER
      See Also:
    • DEPARTURE_TIME_FIELD_NUMBER

      public static final int DEPARTURE_TIME_FIELD_NUMBER
      See Also:
  • 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
    • getTrafficOptionCase

      public CommuteFilter.TrafficOptionCase getTrafficOptionCase()
      Specified by:
      getTrafficOptionCase in interface CommuteFilterOrBuilder
    • getCommuteMethodValue

      public int getCommuteMethodValue()
       Required. The method of transportation to calculate the commute time for.
       
      .google.cloud.talent.v4.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCommuteMethodValue in interface CommuteFilterOrBuilder
      Returns:
      The enum numeric value on the wire for commuteMethod.
    • getCommuteMethod

      public CommuteMethod getCommuteMethod()
       Required. The method of transportation to calculate the commute time for.
       
      .google.cloud.talent.v4.CommuteMethod commute_method = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCommuteMethod in interface CommuteFilterOrBuilder
      Returns:
      The commuteMethod.
    • 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];
      Specified by:
      hasStartCoordinates in interface CommuteFilterOrBuilder
      Returns:
      Whether the startCoordinates field is set.
    • 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];
      Specified by:
      getStartCoordinates in interface CommuteFilterOrBuilder
      Returns:
      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];
      Specified by:
      getStartCoordinatesOrBuilder in interface CommuteFilterOrBuilder
    • 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];
      Specified by:
      hasTravelDuration in interface CommuteFilterOrBuilder
      Returns:
      Whether the travelDuration field is set.
    • getTravelDuration

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

      public com.google.protobuf.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];
      Specified by:
      getTravelDurationOrBuilder in interface CommuteFilterOrBuilder
    • 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;
      Specified by:
      getAllowImpreciseAddresses in interface CommuteFilterOrBuilder
      Returns:
      The allowImpreciseAddresses.
    • hasRoadTraffic

      public boolean hasRoadTraffic()
       Specifies the traffic density to use when calculating commute time.
       
      .google.cloud.talent.v4.CommuteFilter.RoadTraffic road_traffic = 5;
      Specified by:
      hasRoadTraffic in interface CommuteFilterOrBuilder
      Returns:
      Whether the roadTraffic field is set.
    • getRoadTrafficValue

      public int getRoadTrafficValue()
       Specifies the traffic density to use when calculating commute time.
       
      .google.cloud.talent.v4.CommuteFilter.RoadTraffic road_traffic = 5;
      Specified by:
      getRoadTrafficValue in interface CommuteFilterOrBuilder
      Returns:
      The enum numeric value on the wire for roadTraffic.
    • getRoadTraffic

      public CommuteFilter.RoadTraffic getRoadTraffic()
       Specifies the traffic density to use when calculating commute time.
       
      .google.cloud.talent.v4.CommuteFilter.RoadTraffic road_traffic = 5;
      Specified by:
      getRoadTraffic in interface CommuteFilterOrBuilder
      Returns:
      The roadTraffic.
    • hasDepartureTime

      public boolean hasDepartureTime()
       The departure time used to calculate traffic impact, represented as
       [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
      
       Currently traffic model is restricted to hour level resolution.
       
      .google.type.TimeOfDay departure_time = 6;
      Specified by:
      hasDepartureTime in interface CommuteFilterOrBuilder
      Returns:
      Whether the departureTime field is set.
    • getDepartureTime

      public TimeOfDay getDepartureTime()
       The departure time used to calculate traffic impact, represented as
       [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
      
       Currently traffic model is restricted to hour level resolution.
       
      .google.type.TimeOfDay departure_time = 6;
      Specified by:
      getDepartureTime in interface CommuteFilterOrBuilder
      Returns:
      The departureTime.
    • getDepartureTimeOrBuilder

      public TimeOfDayOrBuilder getDepartureTimeOrBuilder()
       The departure time used to calculate traffic impact, represented as
       [google.type.TimeOfDay][google.type.TimeOfDay] in local time zone.
      
       Currently traffic model is restricted to hour level resolution.
       
      .google.type.TimeOfDay departure_time = 6;
      Specified by:
      getDepartureTimeOrBuilder in interface CommuteFilterOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static CommuteFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommuteFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommuteFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommuteFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommuteFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommuteFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static CommuteFilter parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CommuteFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CommuteFilter parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CommuteFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CommuteFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CommuteFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public CommuteFilter.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static CommuteFilter.Builder newBuilder()
    • newBuilder

      public static CommuteFilter.Builder newBuilder(CommuteFilter prototype)
    • toBuilder

      public CommuteFilter.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected CommuteFilter.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CommuteFilter getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CommuteFilter> parser()
    • getParserForType

      public com.google.protobuf.Parser<CommuteFilter> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public CommuteFilter getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder