Class Location.Builder

  • All Implemented Interfaces:
    LocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Location

    public static final class Location.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
    implements LocationOrBuilder
     A resource that represents a location with full geographic information.
     
    Protobuf type google.cloud.talent.v4.Location
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Location.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Location build()  
      Location buildPartial()  
      Location.Builder clear()  
      Location.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Location.Builder clearLatLng()
      An object representing a latitude/longitude pair.
      Location.Builder clearLocationType()
      The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
      Location.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Location.Builder clearPostalAddress()
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      Location.Builder clearRadiusMiles()
      Radius in miles of the job location.
      Location.Builder clone()  
      Location getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      com.google.type.LatLng getLatLng()
      An object representing a latitude/longitude pair.
      com.google.type.LatLng.Builder getLatLngBuilder()
      An object representing a latitude/longitude pair.
      com.google.type.LatLngOrBuilder getLatLngOrBuilder()
      An object representing a latitude/longitude pair.
      Location.LocationType getLocationType()
      The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
      int getLocationTypeValue()
      The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
      com.google.type.PostalAddress getPostalAddress()
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      com.google.type.PostalAddress.Builder getPostalAddressBuilder()
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder()
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      double getRadiusMiles()
      Radius in miles of the job location.
      boolean hasLatLng()
      An object representing a latitude/longitude pair.
      boolean hasPostalAddress()
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Location.Builder mergeFrom​(Location other)  
      Location.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Location.Builder mergeFrom​(com.google.protobuf.Message other)  
      Location.Builder mergeLatLng​(com.google.type.LatLng value)
      An object representing a latitude/longitude pair.
      Location.Builder mergePostalAddress​(com.google.type.PostalAddress value)
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      Location.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      Location.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Location.Builder setLatLng​(com.google.type.LatLng value)
      An object representing a latitude/longitude pair.
      Location.Builder setLatLng​(com.google.type.LatLng.Builder builderForValue)
      An object representing a latitude/longitude pair.
      Location.Builder setLocationType​(Location.LocationType value)
      The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
      Location.Builder setLocationTypeValue​(int value)
      The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
      Location.Builder setPostalAddress​(com.google.type.PostalAddress value)
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      Location.Builder setPostalAddress​(com.google.type.PostalAddress.Builder builderForValue)
      Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
      Location.Builder setRadiusMiles​(double value)
      Radius in miles of the job location.
      Location.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      Location.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • 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.Builder<Location.Builder>
      • clear

        public Location.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.GeneratedMessageV3.Builder<Location.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.GeneratedMessageV3.Builder<Location.Builder>
      • getDefaultInstanceForType

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

        public Location build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Location buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Location.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
      • setField

        public Location.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
      • clearField

        public Location.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
      • clearOneof

        public Location.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
      • setRepeatedField

        public Location.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
      • addRepeatedField

        public Location.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
      • mergeFrom

        public Location.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<Location.Builder>
      • isInitialized

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

        public Location.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<Location.Builder>
        Throws:
        IOException
      • getLocationTypeValue

        public int getLocationTypeValue()
         The type of a location, which corresponds to the address lines field of
         [google.type.PostalAddress][google.type.PostalAddress]. For example,
         "Downtown, Atlanta, GA, USA" has a type of
         [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD],
         and "Kansas City, KS, USA" has a type of
         [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
         
        .google.cloud.talent.v4.Location.LocationType location_type = 1;
        Specified by:
        getLocationTypeValue in interface LocationOrBuilder
        Returns:
        The enum numeric value on the wire for locationType.
      • setLocationTypeValue

        public Location.Builder setLocationTypeValue​(int value)
         The type of a location, which corresponds to the address lines field of
         [google.type.PostalAddress][google.type.PostalAddress]. For example,
         "Downtown, Atlanta, GA, USA" has a type of
         [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD],
         and "Kansas City, KS, USA" has a type of
         [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
         
        .google.cloud.talent.v4.Location.LocationType location_type = 1;
        Parameters:
        value - The enum numeric value on the wire for locationType to set.
        Returns:
        This builder for chaining.
      • getLocationType

        public Location.LocationType getLocationType()
         The type of a location, which corresponds to the address lines field of
         [google.type.PostalAddress][google.type.PostalAddress]. For example,
         "Downtown, Atlanta, GA, USA" has a type of
         [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD],
         and "Kansas City, KS, USA" has a type of
         [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
         
        .google.cloud.talent.v4.Location.LocationType location_type = 1;
        Specified by:
        getLocationType in interface LocationOrBuilder
        Returns:
        The locationType.
      • setLocationType

        public Location.Builder setLocationType​(Location.LocationType value)
         The type of a location, which corresponds to the address lines field of
         [google.type.PostalAddress][google.type.PostalAddress]. For example,
         "Downtown, Atlanta, GA, USA" has a type of
         [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD],
         and "Kansas City, KS, USA" has a type of
         [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
         
        .google.cloud.talent.v4.Location.LocationType location_type = 1;
        Parameters:
        value - The locationType to set.
        Returns:
        This builder for chaining.
      • clearLocationType

        public Location.Builder clearLocationType()
         The type of a location, which corresponds to the address lines field of
         [google.type.PostalAddress][google.type.PostalAddress]. For example,
         "Downtown, Atlanta, GA, USA" has a type of
         [LocationType.NEIGHBORHOOD][google.cloud.talent.v4.Location.LocationType.NEIGHBORHOOD],
         and "Kansas City, KS, USA" has a type of
         [LocationType.LOCALITY][google.cloud.talent.v4.Location.LocationType.LOCALITY].
         
        .google.cloud.talent.v4.Location.LocationType location_type = 1;
        Returns:
        This builder for chaining.
      • hasPostalAddress

        public boolean hasPostalAddress()
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
        Specified by:
        hasPostalAddress in interface LocationOrBuilder
        Returns:
        Whether the postalAddress field is set.
      • getPostalAddress

        public com.google.type.PostalAddress getPostalAddress()
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
        Specified by:
        getPostalAddress in interface LocationOrBuilder
        Returns:
        The postalAddress.
      • setPostalAddress

        public Location.Builder setPostalAddress​(com.google.type.PostalAddress value)
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
      • setPostalAddress

        public Location.Builder setPostalAddress​(com.google.type.PostalAddress.Builder builderForValue)
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
      • mergePostalAddress

        public Location.Builder mergePostalAddress​(com.google.type.PostalAddress value)
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
      • clearPostalAddress

        public Location.Builder clearPostalAddress()
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
      • getPostalAddressBuilder

        public com.google.type.PostalAddress.Builder getPostalAddressBuilder()
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
      • getPostalAddressOrBuilder

        public com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder()
         Postal address of the location that includes human readable information,
         such as postal delivery and payments addresses. Given a postal address,
         a postal service can deliver items to a premises, P.O. Box, or other
         delivery location.
         
        .google.type.PostalAddress postal_address = 2;
        Specified by:
        getPostalAddressOrBuilder in interface LocationOrBuilder
      • hasLatLng

        public boolean hasLatLng()
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
        Specified by:
        hasLatLng in interface LocationOrBuilder
        Returns:
        Whether the latLng field is set.
      • getLatLng

        public com.google.type.LatLng getLatLng()
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
        Specified by:
        getLatLng in interface LocationOrBuilder
        Returns:
        The latLng.
      • setLatLng

        public Location.Builder setLatLng​(com.google.type.LatLng value)
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
      • setLatLng

        public Location.Builder setLatLng​(com.google.type.LatLng.Builder builderForValue)
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
      • mergeLatLng

        public Location.Builder mergeLatLng​(com.google.type.LatLng value)
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
      • clearLatLng

        public Location.Builder clearLatLng()
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
      • getLatLngBuilder

        public com.google.type.LatLng.Builder getLatLngBuilder()
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
      • getLatLngOrBuilder

        public com.google.type.LatLngOrBuilder getLatLngOrBuilder()
         An object representing a latitude/longitude pair.
         
        .google.type.LatLng lat_lng = 3;
        Specified by:
        getLatLngOrBuilder in interface LocationOrBuilder
      • getRadiusMiles

        public double getRadiusMiles()
         Radius in miles of the job location. This value is derived from the
         location bounding box in which a circle with the specified radius
         centered from [google.type.LatLng][google.type.LatLng] covers the area
         associated with the job location. For example, currently, "Mountain View,
         CA, USA" has a radius of 6.17 miles.
         
        double radius_miles = 4;
        Specified by:
        getRadiusMiles in interface LocationOrBuilder
        Returns:
        The radiusMiles.
      • setRadiusMiles

        public Location.Builder setRadiusMiles​(double value)
         Radius in miles of the job location. This value is derived from the
         location bounding box in which a circle with the specified radius
         centered from [google.type.LatLng][google.type.LatLng] covers the area
         associated with the job location. For example, currently, "Mountain View,
         CA, USA" has a radius of 6.17 miles.
         
        double radius_miles = 4;
        Parameters:
        value - The radiusMiles to set.
        Returns:
        This builder for chaining.
      • clearRadiusMiles

        public Location.Builder clearRadiusMiles()
         Radius in miles of the job location. This value is derived from the
         location bounding box in which a circle with the specified radius
         centered from [google.type.LatLng][google.type.LatLng] covers the area
         associated with the job location. For example, currently, "Mountain View,
         CA, USA" has a radius of 6.17 miles.
         
        double radius_miles = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Location.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
      • mergeUnknownFields

        public final Location.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>