public class CivicInfo.Representatives.RepresentativeInfoByDivision extends CivicInfoRequest<RepresentativeInfoData>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
RepresentativeInfoByDivision(java.lang.String ocdId)
Looks up representative information for a single geographic division.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.util.List<java.lang.String> |
getLevels()
A list of office levels to filter by.
|
java.lang.String |
getOcdId()
The Open Civic Data division identifier of the division to look up.
|
java.lang.Boolean |
getRecursive()
If true, information about all divisions contained in the division requested will be included as
well.
|
java.util.List<java.lang.String> |
getRoles()
A list of office roles to filter by.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
set(java.lang.String parameterName,
java.lang.Object value) |
CivicInfo.Representatives.RepresentativeInfoByDivision |
setAlt(java.lang.String alt)
Data format for the response.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setKey(java.lang.String key)
API key.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setLevels(java.util.List<java.lang.String> levels)
A list of office levels to filter by.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setOcdId(java.lang.String ocdId)
The Open Civic Data division identifier of the division to look up.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setRecursive(java.lang.Boolean recursive)
If true, information about all divisions contained in the division requested will be
included as well.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setRoles(java.util.List<java.lang.String> roles)
A list of office roles to filter by.
|
CivicInfo.Representatives.RepresentativeInfoByDivision |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected RepresentativeInfoByDivision(java.lang.String ocdId)
AbstractGoogleClientRequest.execute() method to invoke
the remote operation. RepresentativeInfoByDivision#initialize(com.google.api.client.
googleapis.services.AbstractGoogleClientRequest) must be called to initialize this instance
immediately after invoking the constructor.
ocdId - The Open Civic Data division identifier of the division to look up.public com.google.api.client.http.HttpResponse executeUsingHead()
throws java.io.IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<RepresentativeInfoData>java.io.IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws java.io.IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<RepresentativeInfoData>java.io.IOExceptionpublic CivicInfo.Representatives.RepresentativeInfoByDivision setAlt(java.lang.String alt)
CivicInfoRequestsetAlt in class CivicInfoRequest<RepresentativeInfoData>public CivicInfo.Representatives.RepresentativeInfoByDivision setFields(java.lang.String fields)
CivicInfoRequestsetFields in class CivicInfoRequest<RepresentativeInfoData>public CivicInfo.Representatives.RepresentativeInfoByDivision setKey(java.lang.String key)
CivicInfoRequestsetKey in class CivicInfoRequest<RepresentativeInfoData>public CivicInfo.Representatives.RepresentativeInfoByDivision setOauthToken(java.lang.String oauthToken)
CivicInfoRequestsetOauthToken in class CivicInfoRequest<RepresentativeInfoData>public CivicInfo.Representatives.RepresentativeInfoByDivision setPrettyPrint(java.lang.Boolean prettyPrint)
CivicInfoRequestsetPrettyPrint in class CivicInfoRequest<RepresentativeInfoData>public CivicInfo.Representatives.RepresentativeInfoByDivision setQuotaUser(java.lang.String quotaUser)
CivicInfoRequestsetQuotaUser in class CivicInfoRequest<RepresentativeInfoData>public CivicInfo.Representatives.RepresentativeInfoByDivision setUserIp(java.lang.String userIp)
CivicInfoRequestsetUserIp in class CivicInfoRequest<RepresentativeInfoData>public java.lang.String getOcdId()
public CivicInfo.Representatives.RepresentativeInfoByDivision setOcdId(java.lang.String ocdId)
public java.util.List<java.lang.String> getLevels()
public CivicInfo.Representatives.RepresentativeInfoByDivision setLevels(java.util.List<java.lang.String> levels)
public java.lang.Boolean getRecursive()
public CivicInfo.Representatives.RepresentativeInfoByDivision setRecursive(java.lang.Boolean recursive)
public java.util.List<java.lang.String> getRoles()
public CivicInfo.Representatives.RepresentativeInfoByDivision setRoles(java.util.List<java.lang.String> roles)
public CivicInfo.Representatives.RepresentativeInfoByDivision set(java.lang.String parameterName, java.lang.Object value)
set in class CivicInfoRequest<RepresentativeInfoData>