Show / Hide Table of Contents

Class RepresentativesResource.RepresentativeInfoByAddressRequest

Looks up political geography and representative information for a single address.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>
RepresentativesResource.RepresentativeInfoByAddressRequest
Implements
IClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>
IClientServiceRequest
Inherited Members
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.Xgafv
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.AccessToken
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.Alt
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.Callback
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.Fields
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.Key
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.OauthToken
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.PrettyPrint
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.QuotaUser
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.UploadType
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.UploadProtocol
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.Execute()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ExecuteAsStream()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ExecuteAsync()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.CreateRequest(bool?)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.GenerateRequestUri()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.GetBody()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.GetDefaultETagAction(string)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ETagAction
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ModifyRequest
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ValidateParameters
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.ApiVersion
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.RequestParameters
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CivicInfo.v2
Assembly: Google.Apis.CivicInfo.v2.dll
Syntax
public class RepresentativesResource.RepresentativeInfoByAddressRequest : CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>, IClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>, IClientServiceRequest

Constructors

RepresentativeInfoByAddressRequest(IClientService)

Constructs a new RepresentativeInfoByAddress request.

Declaration
public RepresentativeInfoByAddressRequest(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Address

The address to look up. May only be specified if the field ocdId is not given in the URL

Declaration
[RequestParameter("address", RequestParameterType.Query)]
public virtual string Address { get; set; }
Property Value
Type Description
string

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.HttpMethod

IncludeOffices

Whether to return information about offices and officials. If false, only the top-level district information will be returned.

Declaration
[RequestParameter("includeOffices", RequestParameterType.Query)]
public virtual bool? IncludeOffices { get; set; }
Property Value
Type Description
bool?

Levels

A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.

Declaration
[RequestParameter("levels", RequestParameterType.Query)]
public virtual RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum? Levels { get; set; }
Property Value
Type Description
RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum?
Remarks

Use this property to set a single value for the parameter, or LevelsList to set multiple values. Do not set both properties.

LevelsList

A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.

Declaration
[RequestParameter("levels", RequestParameterType.Query)]
public virtual Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum> LevelsList { get; set; }
Property Value
Type Description
Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum>
Remarks

Use this property to set one or more values for the parameter. Do not set both this property and Levels.

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.RestPath

Roles

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

Declaration
[RequestParameter("roles", RequestParameterType.Query)]
public virtual RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum? Roles { get; set; }
Property Value
Type Description
RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum?
Remarks

Use this property to set a single value for the parameter, or RolesList to set multiple values. Do not set both properties.

RolesList

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

Declaration
[RequestParameter("roles", RequestParameterType.Query)]
public virtual Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum> RolesList { get; set; }
Property Value
Type Description
Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum>
Remarks

Use this property to set one or more values for the parameter. Do not set both this property and Roles.

Methods

InitParameters()

Initializes RepresentativeInfoByAddress parameter list.

Declaration
protected override void InitParameters()
Overrides
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX