com.google.api.services.civicinfo.model.Contest 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;
/**
* Information about a contest that appears on a voter's ballot.
*
* 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 Contest extends com.google.api.client.json.GenericJson {
/**
* A number specifying the position of this contest on the voter's ballot.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long ballotPlacement;
/**
* The candidate choices for this contest.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List candidates;
static {
// hack to force ProGuard to consider Candidate used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(Candidate.class);
}
/**
* Information about the electoral district that this contest is in.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ElectoralDistrict district;
/**
* A description of any additional eligibility requirements for voting in this contest.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String electorateSpecifications;
/**
* An ID for this object. IDs may change in future requests and should not be cached. Access to
* this field requires special access that can be requested from the Request more link on the
* Quotas page.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String id;
/**
* The levels of government of the office for this contest. There may be more than one in cases
* where a jurisdiction effectively acts at two different levels of government; for example, the
* mayor of the District of Columbia acts at "locality" level, but also effectively at both
* "administrative-area-2" and "administrative-area-1".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List level;
/**
* The number of candidates that will be elected to office in this contest.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long numberElected;
/**
* The number of candidates that a voter may vote for in this contest.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long numberVotingFor;
/**
* The name of the office for this contest.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String office;
/**
* If this is a partisan election, the name of the party it is for.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String primaryParty;
/**
* The set of ballot responses for the referendum. A ballot response represents a line on the
* ballot. Common examples might include "yes" or "no" for referenda. This field is only populated
* for contests of type 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List referendumBallotResponses;
/**
* Specifies a short summary of the referendum that is typically on the ballot below the title but
* above the text. This field is only populated for contests of type 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumBrief;
/**
* A statement in opposition to the referendum. It does not necessarily appear on the ballot. This
* field is only populated for contests of type 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumConStatement;
/**
* Specifies what effect abstaining (not voting) on the proposition will have (i.e. whether
* abstaining is considered a vote against it). This field is only populated for contests of type
* 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumEffectOfAbstain;
/**
* The threshold of votes that the referendum needs in order to pass, e.g. "two-thirds". This
* field is only populated for contests of type 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumPassageThreshold;
/**
* A statement in favor of the referendum. It does not necessarily appear on the ballot. This
* field is only populated for contests of type 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumProStatement;
/**
* A brief description of the referendum. This field is only populated for contests of type
* 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumSubtitle;
/**
* The full text of the referendum. This field is only populated for contests of type
* 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumText;
/**
* The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests
* of type 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumTitle;
/**
* A link to the referendum. This field is only populated for contests of type 'Referendum'.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String referendumUrl;
/**
* The roles which this office fulfills.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List roles;
/**
* A list of sources for this contest. If multiple sources are listed, the data has been
* aggregated from those sources.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy