Class Location.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Location.Builder>
com.google.cloud.talent.v4.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.GeneratedMessage.Builder<Location.Builder> implements LocationOrBuilder
 A resource that represents a location with full geographic information.
 
Protobuf type google.cloud.talent.v4.Location
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    An object representing a latitude/longitude pair.
    The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    Radius in miles of the job location.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    An object representing a latitude/longitude pair.
    An object representing a latitude/longitude pair.
    An object representing a latitude/longitude pair.
    The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
    int
    The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    double
    Radius in miles of the job location.
    boolean
    An object representing a latitude/longitude pair.
    boolean
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    An object representing a latitude/longitude pair.
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    An object representing a latitude/longitude pair.
    setLatLng(LatLng.Builder builderForValue)
    An object representing a latitude/longitude pair.
    The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
    The type of a location, which corresponds to the address lines field of [google.type.PostalAddress][google.type.PostalAddress].
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    Postal address of the location that includes human readable information, such as postal delivery and payments addresses.
    setRadiusMiles(double value)
    Radius in miles of the job location.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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 class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Location.Builder mergeFrom(Location other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 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(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(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(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 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 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 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(LatLng value)
       An object representing a latitude/longitude pair.
       
      .google.type.LatLng lat_lng = 3;
    • setLatLng

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

      public Location.Builder mergeLatLng(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 LatLng.Builder getLatLngBuilder()
       An object representing a latitude/longitude pair.
       
      .google.type.LatLng lat_lng = 3;
    • getLatLngOrBuilder

      public 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.