com.google.api.services.civicinfo.model.DivisionSearchResult Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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/google/apis-client-generator/
* (build: 2016-07-08 17:28:43 UTC)
* on 2016-10-18 at 16:55:10 UTC
* Modify at your own risk.
*/
package com.google.api.services.civicinfo.model;
/**
* Represents a political geographic division that matches the requested query.
*
* 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 Google Civic Information 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 DivisionSearchResult extends com.google.api.client.json.GenericJson {
/**
* Other Open Civic Data identifiers that refer to the same division -- for example, those that
* refer to other political divisions whose boundaries are defined to be coterminous with this
* one. For example, ocd-division/country:us/state:wy will include an alias of ocd-
* division/country:us/state:wy/cd:1, since Wyoming has only one Congressional district.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List aliases;
/**
* The name of the division.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* The unique Open Civic Data identifier for this division.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String ocdId;
/**
* Other Open Civic Data identifiers that refer to the same division -- for example, those that
* refer to other political divisions whose boundaries are defined to be coterminous with this
* one. For example, ocd-division/country:us/state:wy will include an alias of ocd-
* division/country:us/state:wy/cd:1, since Wyoming has only one Congressional district.
* @return value or {@code null} for none
*/
public java.util.List getAliases() {
return aliases;
}
/**
* Other Open Civic Data identifiers that refer to the same division -- for example, those that
* refer to other political divisions whose boundaries are defined to be coterminous with this
* one. For example, ocd-division/country:us/state:wy will include an alias of ocd-
* division/country:us/state:wy/cd:1, since Wyoming has only one Congressional district.
* @param aliases aliases or {@code null} for none
*/
public DivisionSearchResult setAliases(java.util.List aliases) {
this.aliases = aliases;
return this;
}
/**
* The name of the division.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* The name of the division.
* @param name name or {@code null} for none
*/
public DivisionSearchResult setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* The unique Open Civic Data identifier for this division.
* @return value or {@code null} for none
*/
public java.lang.String getOcdId() {
return ocdId;
}
/**
* The unique Open Civic Data identifier for this division.
* @param ocdId ocdId or {@code null} for none
*/
public DivisionSearchResult setOcdId(java.lang.String ocdId) {
this.ocdId = ocdId;
return this;
}
@Override
public DivisionSearchResult set(String fieldName, Object value) {
return (DivisionSearchResult) super.set(fieldName, value);
}
@Override
public DivisionSearchResult clone() {
return (DivisionSearchResult) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy