com.google.api.services.areainsights.v1.model.Circle Maven / Gradle / Ivy
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.areainsights.v1.model;
/**
* A circle is defined by a center point and radius in meters.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Places Insights API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Circle extends com.google.api.client.json.GenericJson {
/**
* The latitude and longitude of the center of the circle.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private LatLng latLng;
/**
* The Place resource name of the center of the circle. Only point places are supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String place;
/**
* Optional. The radius of the circle in meters
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Integer radius;
/**
* The latitude and longitude of the center of the circle.
* @return value or {@code null} for none
*/
public LatLng getLatLng() {
return latLng;
}
/**
* The latitude and longitude of the center of the circle.
* @param latLng latLng or {@code null} for none
*/
public Circle setLatLng(LatLng latLng) {
this.latLng = latLng;
return this;
}
/**
* The Place resource name of the center of the circle. Only point places are supported.
* @return value or {@code null} for none
*/
public java.lang.String getPlace() {
return place;
}
/**
* The Place resource name of the center of the circle. Only point places are supported.
* @param place place or {@code null} for none
*/
public Circle setPlace(java.lang.String place) {
this.place = place;
return this;
}
/**
* Optional. The radius of the circle in meters
* @return value or {@code null} for none
*/
public java.lang.Integer getRadius() {
return radius;
}
/**
* Optional. The radius of the circle in meters
* @param radius radius or {@code null} for none
*/
public Circle setRadius(java.lang.Integer radius) {
this.radius = radius;
return this;
}
@Override
public Circle set(String fieldName, Object value) {
return (Circle) super.set(fieldName, value);
}
@Override
public Circle clone() {
return (Circle) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy