// Copyright 2017 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.api.ads.adwords.jaxws.v201702.cm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * * Represents a Proximity Criterion. * * A proximity is an area within a certain radius of a point with the center point being described * by a lat/long pair. The caller may also alternatively provide address fields which will be * geocoded into a lat/long pair. Note: If a geoPoint value is provided, the address is not * used for calculating the lat/long to target. * <p> A criterion of this type is only targetable. * <span class="constraint AdxEnabled">This is enabled for AdX.</span> * * * <p>Java class for Proximity complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Proximity"> * <complexContent> * <extension base="{https://adwords.google.com/api/adwords/cm/v201702}Criterion"> * <sequence> * <element name="geoPoint" type="{https://adwords.google.com/api/adwords/cm/v201702}GeoPoint" minOccurs="0"/> * <element name="radiusDistanceUnits" type="{https://adwords.google.com/api/adwords/cm/v201702}Proximity.DistanceUnits" minOccurs="0"/> * <element name="radiusInUnits" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/> * <element name="address" type="{https://adwords.google.com/api/adwords/cm/v201702}Address" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Proximity", propOrder = { "geoPoint", "radiusDistanceUnits", "radiusInUnits", "address" }) public class Proximity extends Criterion { protected GeoPoint geoPoint; @XmlSchemaType(name = "string") protected ProximityDistanceUnits radiusDistanceUnits; protected Double radiusInUnits; protected Address address; /** * Gets the value of the geoPoint property. * * @return * possible object is * {@link GeoPoint } * */ public GeoPoint getGeoPoint() { return geoPoint; } /** * Sets the value of the geoPoint property. * * @param value * allowed object is * {@link GeoPoint } * */ public void setGeoPoint(GeoPoint value) { this.geoPoint = value; } /** * Gets the value of the radiusDistanceUnits property. * * @return * possible object is * {@link ProximityDistanceUnits } * */ public ProximityDistanceUnits getRadiusDistanceUnits() { return radiusDistanceUnits; } /** * Sets the value of the radiusDistanceUnits property. * * @param value * allowed object is * {@link ProximityDistanceUnits } * */ public void setRadiusDistanceUnits(ProximityDistanceUnits value) { this.radiusDistanceUnits = value; } /** * Gets the value of the radiusInUnits property. * * @return * possible object is * {@link Double } * */ public Double getRadiusInUnits() { return radiusInUnits; } /** * Sets the value of the radiusInUnits property. * * @param value * allowed object is * {@link Double } * */ public void setRadiusInUnits(Double value) { this.radiusInUnits = value; } /** * Gets the value of the address property. * * @return * possible object is * {@link Address } * */ public Address getAddress() { return address; } /** * Sets the value of the address property. * * @param value * allowed object is * {@link Address } * */ public void setAddress(Address value) { this.address = value; } }