Class CommuteFilter

  • All Implemented Interfaces:
    CommuteFilterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class CommuteFilter
    extends com.google.protobuf.GeneratedMessageV3
    implements CommuteFilterOrBuilder
     Parameters needed for commute search.
     
    Protobuf type google.cloud.talent.v4beta1.CommuteFilter
    See Also:
    Serialized Form
    • Field Detail

      • COMMUTE_METHOD_FIELD_NUMBER

        public static final int COMMUTE_METHOD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • START_COORDINATES_FIELD_NUMBER

        public static final int START_COORDINATES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TRAVEL_DURATION_FIELD_NUMBER

        public static final int TRAVEL_DURATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER

        public static final int ALLOW_IMPRECISE_ADDRESSES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ROAD_TRAFFIC_FIELD_NUMBER

        public static final int ROAD_TRAFFIC_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DEPARTURE_TIME_FIELD_NUMBER

        public static final int DEPARTURE_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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];
        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.v4beta1.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 com.google.type.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 com.google.type.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.v4beta1.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.v4beta1.CommuteFilter.RoadTraffic road_traffic = 5;
        Specified by:
        getRoadTrafficValue in interface CommuteFilterOrBuilder
        Returns:
        The enum numeric value on the wire for 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 com.google.type.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 com.google.type.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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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