OLD | NEW |
(Empty) | |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 3 library googleapis.partners.v2; |
| 4 |
| 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; |
| 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; |
| 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; |
| 14 |
| 15 const core.String USER_AGENT = 'dart-api-client partners/v2'; |
| 16 |
| 17 /** |
| 18 * Lets advertisers search certified companies and create contact leads with |
| 19 * them, and also audits the usage of clients. |
| 20 */ |
| 21 class PartnersApi { |
| 22 |
| 23 final commons.ApiRequester _requester; |
| 24 |
| 25 ClientMessagesResourceApi get clientMessages => new ClientMessagesResourceApi(
_requester); |
| 26 CompaniesResourceApi get companies => new CompaniesResourceApi(_requester); |
| 27 UserEventsResourceApi get userEvents => new UserEventsResourceApi(_requester); |
| 28 UserStatesResourceApi get userStates => new UserStatesResourceApi(_requester); |
| 29 |
| 30 PartnersApi(http.Client client, {core.String rootUrl: "https://partners.google
apis.com/", core.String servicePath: ""}) : |
| 31 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 32 } |
| 33 |
| 34 |
| 35 class ClientMessagesResourceApi { |
| 36 final commons.ApiRequester _requester; |
| 37 |
| 38 ClientMessagesResourceApi(commons.ApiRequester client) : |
| 39 _requester = client; |
| 40 |
| 41 /** |
| 42 * Logs a generic message from the client, such as `Failed to render |
| 43 * component`, `Profile page is running slow`, `More than 500 users have |
| 44 * accessed this result.`, etc. |
| 45 * |
| 46 * [request] - The metadata request object. |
| 47 * |
| 48 * Request parameters: |
| 49 * |
| 50 * Completes with a [LogMessageResponse]. |
| 51 * |
| 52 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 53 * error. |
| 54 * |
| 55 * If the used [http.Client] completes with an error when making a REST call, |
| 56 * this method will complete with the same error. |
| 57 */ |
| 58 async.Future<LogMessageResponse> log(LogMessageRequest request) { |
| 59 var _url = null; |
| 60 var _queryParams = new core.Map(); |
| 61 var _uploadMedia = null; |
| 62 var _uploadOptions = null; |
| 63 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 64 var _body = null; |
| 65 |
| 66 if (request != null) { |
| 67 _body = convert.JSON.encode((request).toJson()); |
| 68 } |
| 69 |
| 70 _url = 'v2/clientMessages:log'; |
| 71 |
| 72 var _response = _requester.request(_url, |
| 73 "POST", |
| 74 body: _body, |
| 75 queryParams: _queryParams, |
| 76 uploadOptions: _uploadOptions, |
| 77 uploadMedia: _uploadMedia, |
| 78 downloadOptions: _downloadOptions); |
| 79 return _response.then((data) => new LogMessageResponse.fromJson(data)); |
| 80 } |
| 81 |
| 82 } |
| 83 |
| 84 |
| 85 class CompaniesResourceApi { |
| 86 final commons.ApiRequester _requester; |
| 87 |
| 88 CompaniesLeadsResourceApi get leads => new CompaniesLeadsResourceApi(_requeste
r); |
| 89 |
| 90 CompaniesResourceApi(commons.ApiRequester client) : |
| 91 _requester = client; |
| 92 |
| 93 /** |
| 94 * Gets a company. |
| 95 * |
| 96 * Request parameters: |
| 97 * |
| 98 * [companyId] - The ID of the company to retrieve. |
| 99 * |
| 100 * [requestMetadata_locale] - Locale to use for the current request. |
| 101 * |
| 102 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 103 * |
| 104 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 105 * belongs to. |
| 106 * |
| 107 * [view] - The view of `Company` resource to be returned. This must not be |
| 108 * `COMPANY_VIEW_UNSPECIFIED`. |
| 109 * Possible string values are: |
| 110 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. |
| 111 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. |
| 112 * |
| 113 * [orderBy] - How to order addresses within the returned company. Currently, |
| 114 * only `address` and `address desc` is supported which will sorted by closest |
| 115 * to farthest in distance from given address and farthest to closest distance |
| 116 * from given address respectively. |
| 117 * |
| 118 * [currencyCode] - If the company's budget is in a different currency code |
| 119 * than this one, then the converted budget is converted to this currency |
| 120 * code. |
| 121 * |
| 122 * [address] - The address to use for sorting the company's addresses by |
| 123 * proximity. If not given, the geo-located address of the request is used. |
| 124 * Used when order_by is set. |
| 125 * |
| 126 * Completes with a [GetCompanyResponse]. |
| 127 * |
| 128 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 129 * error. |
| 130 * |
| 131 * If the used [http.Client] completes with an error when making a REST call, |
| 132 * this method will complete with the same error. |
| 133 */ |
| 134 async.Future<GetCompanyResponse> get(core.String companyId, {core.String reque
stMetadata_locale, core.String requestMetadata_partnersSessionId, core.List<core
.String> requestMetadata_experimentIds, core.String view, core.String orderBy, c
ore.String currencyCode, core.String address}) { |
| 135 var _url = null; |
| 136 var _queryParams = new core.Map(); |
| 137 var _uploadMedia = null; |
| 138 var _uploadOptions = null; |
| 139 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 140 var _body = null; |
| 141 |
| 142 if (companyId == null) { |
| 143 throw new core.ArgumentError("Parameter companyId is required."); |
| 144 } |
| 145 if (requestMetadata_locale != null) { |
| 146 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 147 } |
| 148 if (requestMetadata_partnersSessionId != null) { |
| 149 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 150 } |
| 151 if (requestMetadata_experimentIds != null) { |
| 152 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 153 } |
| 154 if (view != null) { |
| 155 _queryParams["view"] = [view]; |
| 156 } |
| 157 if (orderBy != null) { |
| 158 _queryParams["orderBy"] = [orderBy]; |
| 159 } |
| 160 if (currencyCode != null) { |
| 161 _queryParams["currencyCode"] = [currencyCode]; |
| 162 } |
| 163 if (address != null) { |
| 164 _queryParams["address"] = [address]; |
| 165 } |
| 166 |
| 167 _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId'); |
| 168 |
| 169 var _response = _requester.request(_url, |
| 170 "GET", |
| 171 body: _body, |
| 172 queryParams: _queryParams, |
| 173 uploadOptions: _uploadOptions, |
| 174 uploadMedia: _uploadMedia, |
| 175 downloadOptions: _downloadOptions); |
| 176 return _response.then((data) => new GetCompanyResponse.fromJson(data)); |
| 177 } |
| 178 |
| 179 /** |
| 180 * Lists companies. |
| 181 * |
| 182 * Request parameters: |
| 183 * |
| 184 * [requestMetadata_locale] - Locale to use for the current request. |
| 185 * |
| 186 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 187 * |
| 188 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 189 * belongs to. |
| 190 * |
| 191 * [pageSize] - Requested page size. Server may return fewer companies than |
| 192 * requested. If unspecified, server picks an appropriate default. |
| 193 * |
| 194 * [pageToken] - A token identifying a page of results that the server |
| 195 * returns. Typically, this is the value of |
| 196 * `ListCompaniesResponse.next_page_token` returned from the previous call to |
| 197 * [ListCompanies][google.partners.v2.Partner.ListCompanies]. |
| 198 * |
| 199 * [companyName] - Company name to search for. |
| 200 * |
| 201 * [view] - The view of the `Company` resource to be returned. This must not |
| 202 * be `COMPANY_VIEW_UNSPECIFIED`. |
| 203 * Possible string values are: |
| 204 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. |
| 205 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. |
| 206 * |
| 207 * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO |
| 208 * 4217. |
| 209 * |
| 210 * [minMonthlyBudget_units] - The whole units of the amount. For example if |
| 211 * `currencyCode` is `"USD"`, then 1 unit is one US dollar. |
| 212 * |
| 213 * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. The |
| 214 * value must be between -999,999,999 and +999,999,999 inclusive. If `units` |
| 215 * is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` |
| 216 * can be positive, zero, or negative. If `units` is negative, `nanos` must be |
| 217 * negative or zero. For example $-1.75 is represented as `units`=-1 and |
| 218 * `nanos`=-750,000,000. |
| 219 * |
| 220 * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO |
| 221 * 4217. |
| 222 * |
| 223 * [maxMonthlyBudget_units] - The whole units of the amount. For example if |
| 224 * `currencyCode` is `"USD"`, then 1 unit is one US dollar. |
| 225 * |
| 226 * [maxMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. The |
| 227 * value must be between -999,999,999 and +999,999,999 inclusive. If `units` |
| 228 * is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` |
| 229 * can be positive, zero, or negative. If `units` is negative, `nanos` must be |
| 230 * negative or zero. For example $-1.75 is represented as `units`=-1 and |
| 231 * `nanos`=-750,000,000. |
| 232 * |
| 233 * [industries] - List of industries the company can help with. |
| 234 * |
| 235 * [services] - List of services the company can help with. |
| 236 * |
| 237 * [languageCodes] - List of language codes that company can support. Only |
| 238 * primary language subtags are accepted as defined by BCP 47 (IETF BCP 47, |
| 239 * "Tags for Identifying Languages"). |
| 240 * |
| 241 * [address] - The address to use when searching for companies. If not given, |
| 242 * the geo-located address of the request is used. |
| 243 * |
| 244 * [orderBy] - How to order addresses within the returned companies. |
| 245 * Currently, only `address` and `address desc` is supported which will sorted |
| 246 * by closest to farthest in distance from given address and farthest to |
| 247 * closest distance from given address respectively. |
| 248 * |
| 249 * [gpsMotivations] - List of reasons for using Google Partner Search to get |
| 250 * companies. |
| 251 * |
| 252 * [websiteUrl] - Website URL that will help to find a better matched company. |
| 253 * . |
| 254 * |
| 255 * Completes with a [ListCompaniesResponse]. |
| 256 * |
| 257 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 258 * error. |
| 259 * |
| 260 * If the used [http.Client] completes with an error when making a REST call, |
| 261 * this method will complete with the same error. |
| 262 */ |
| 263 async.Future<ListCompaniesResponse> list({core.String requestMetadata_locale,
core.String requestMetadata_partnersSessionId, core.List<core.String> requestMet
adata_experimentIds, core.int pageSize, core.String pageToken, core.String compa
nyName, core.String view, core.String minMonthlyBudget_currencyCode, core.String
minMonthlyBudget_units, core.int minMonthlyBudget_nanos, core.String maxMonthly
Budget_currencyCode, core.String maxMonthlyBudget_units, core.int maxMonthlyBudg
et_nanos, core.List<core.String> industries, core.List<core.String> services, co
re.List<core.String> languageCodes, core.String address, core.String orderBy, co
re.List<core.String> gpsMotivations, core.String websiteUrl}) { |
| 264 var _url = null; |
| 265 var _queryParams = new core.Map(); |
| 266 var _uploadMedia = null; |
| 267 var _uploadOptions = null; |
| 268 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 269 var _body = null; |
| 270 |
| 271 if (requestMetadata_locale != null) { |
| 272 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 273 } |
| 274 if (requestMetadata_partnersSessionId != null) { |
| 275 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 276 } |
| 277 if (requestMetadata_experimentIds != null) { |
| 278 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 279 } |
| 280 if (pageSize != null) { |
| 281 _queryParams["pageSize"] = ["${pageSize}"]; |
| 282 } |
| 283 if (pageToken != null) { |
| 284 _queryParams["pageToken"] = [pageToken]; |
| 285 } |
| 286 if (companyName != null) { |
| 287 _queryParams["companyName"] = [companyName]; |
| 288 } |
| 289 if (view != null) { |
| 290 _queryParams["view"] = [view]; |
| 291 } |
| 292 if (minMonthlyBudget_currencyCode != null) { |
| 293 _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currency
Code]; |
| 294 } |
| 295 if (minMonthlyBudget_units != null) { |
| 296 _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; |
| 297 } |
| 298 if (minMonthlyBudget_nanos != null) { |
| 299 _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; |
| 300 } |
| 301 if (maxMonthlyBudget_currencyCode != null) { |
| 302 _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currency
Code]; |
| 303 } |
| 304 if (maxMonthlyBudget_units != null) { |
| 305 _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; |
| 306 } |
| 307 if (maxMonthlyBudget_nanos != null) { |
| 308 _queryParams["maxMonthlyBudget.nanos"] = ["${maxMonthlyBudget_nanos}"]; |
| 309 } |
| 310 if (industries != null) { |
| 311 _queryParams["industries"] = industries; |
| 312 } |
| 313 if (services != null) { |
| 314 _queryParams["services"] = services; |
| 315 } |
| 316 if (languageCodes != null) { |
| 317 _queryParams["languageCodes"] = languageCodes; |
| 318 } |
| 319 if (address != null) { |
| 320 _queryParams["address"] = [address]; |
| 321 } |
| 322 if (orderBy != null) { |
| 323 _queryParams["orderBy"] = [orderBy]; |
| 324 } |
| 325 if (gpsMotivations != null) { |
| 326 _queryParams["gpsMotivations"] = gpsMotivations; |
| 327 } |
| 328 if (websiteUrl != null) { |
| 329 _queryParams["websiteUrl"] = [websiteUrl]; |
| 330 } |
| 331 |
| 332 _url = 'v2/companies'; |
| 333 |
| 334 var _response = _requester.request(_url, |
| 335 "GET", |
| 336 body: _body, |
| 337 queryParams: _queryParams, |
| 338 uploadOptions: _uploadOptions, |
| 339 uploadMedia: _uploadMedia, |
| 340 downloadOptions: _downloadOptions); |
| 341 return _response.then((data) => new ListCompaniesResponse.fromJson(data)); |
| 342 } |
| 343 |
| 344 } |
| 345 |
| 346 |
| 347 class CompaniesLeadsResourceApi { |
| 348 final commons.ApiRequester _requester; |
| 349 |
| 350 CompaniesLeadsResourceApi(commons.ApiRequester client) : |
| 351 _requester = client; |
| 352 |
| 353 /** |
| 354 * Creates an advertiser lead for the given company ID. |
| 355 * |
| 356 * [request] - The metadata request object. |
| 357 * |
| 358 * Request parameters: |
| 359 * |
| 360 * [companyId] - The ID of the company to contact. |
| 361 * |
| 362 * Completes with a [CreateLeadResponse]. |
| 363 * |
| 364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 365 * error. |
| 366 * |
| 367 * If the used [http.Client] completes with an error when making a REST call, |
| 368 * this method will complete with the same error. |
| 369 */ |
| 370 async.Future<CreateLeadResponse> create(CreateLeadRequest request, core.String
companyId) { |
| 371 var _url = null; |
| 372 var _queryParams = new core.Map(); |
| 373 var _uploadMedia = null; |
| 374 var _uploadOptions = null; |
| 375 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 376 var _body = null; |
| 377 |
| 378 if (request != null) { |
| 379 _body = convert.JSON.encode((request).toJson()); |
| 380 } |
| 381 if (companyId == null) { |
| 382 throw new core.ArgumentError("Parameter companyId is required."); |
| 383 } |
| 384 |
| 385 _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId') + '/lea
ds'; |
| 386 |
| 387 var _response = _requester.request(_url, |
| 388 "POST", |
| 389 body: _body, |
| 390 queryParams: _queryParams, |
| 391 uploadOptions: _uploadOptions, |
| 392 uploadMedia: _uploadMedia, |
| 393 downloadOptions: _downloadOptions); |
| 394 return _response.then((data) => new CreateLeadResponse.fromJson(data)); |
| 395 } |
| 396 |
| 397 } |
| 398 |
| 399 |
| 400 class UserEventsResourceApi { |
| 401 final commons.ApiRequester _requester; |
| 402 |
| 403 UserEventsResourceApi(commons.ApiRequester client) : |
| 404 _requester = client; |
| 405 |
| 406 /** |
| 407 * Logs a user event. |
| 408 * |
| 409 * [request] - The metadata request object. |
| 410 * |
| 411 * Request parameters: |
| 412 * |
| 413 * Completes with a [LogUserEventResponse]. |
| 414 * |
| 415 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 416 * error. |
| 417 * |
| 418 * If the used [http.Client] completes with an error when making a REST call, |
| 419 * this method will complete with the same error. |
| 420 */ |
| 421 async.Future<LogUserEventResponse> log(LogUserEventRequest request) { |
| 422 var _url = null; |
| 423 var _queryParams = new core.Map(); |
| 424 var _uploadMedia = null; |
| 425 var _uploadOptions = null; |
| 426 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 427 var _body = null; |
| 428 |
| 429 if (request != null) { |
| 430 _body = convert.JSON.encode((request).toJson()); |
| 431 } |
| 432 |
| 433 _url = 'v2/userEvents:log'; |
| 434 |
| 435 var _response = _requester.request(_url, |
| 436 "POST", |
| 437 body: _body, |
| 438 queryParams: _queryParams, |
| 439 uploadOptions: _uploadOptions, |
| 440 uploadMedia: _uploadMedia, |
| 441 downloadOptions: _downloadOptions); |
| 442 return _response.then((data) => new LogUserEventResponse.fromJson(data)); |
| 443 } |
| 444 |
| 445 } |
| 446 |
| 447 |
| 448 class UserStatesResourceApi { |
| 449 final commons.ApiRequester _requester; |
| 450 |
| 451 UserStatesResourceApi(commons.ApiRequester client) : |
| 452 _requester = client; |
| 453 |
| 454 /** |
| 455 * Lists states for current user. |
| 456 * |
| 457 * Request parameters: |
| 458 * |
| 459 * [requestMetadata_locale] - Locale to use for the current request. |
| 460 * |
| 461 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 462 * |
| 463 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 464 * belongs to. |
| 465 * |
| 466 * Completes with a [ListUserStatesResponse]. |
| 467 * |
| 468 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 469 * error. |
| 470 * |
| 471 * If the used [http.Client] completes with an error when making a REST call, |
| 472 * this method will complete with the same error. |
| 473 */ |
| 474 async.Future<ListUserStatesResponse> list({core.String requestMetadata_locale,
core.String requestMetadata_partnersSessionId, core.List<core.String> requestMe
tadata_experimentIds}) { |
| 475 var _url = null; |
| 476 var _queryParams = new core.Map(); |
| 477 var _uploadMedia = null; |
| 478 var _uploadOptions = null; |
| 479 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 480 var _body = null; |
| 481 |
| 482 if (requestMetadata_locale != null) { |
| 483 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 484 } |
| 485 if (requestMetadata_partnersSessionId != null) { |
| 486 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 487 } |
| 488 if (requestMetadata_experimentIds != null) { |
| 489 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 490 } |
| 491 |
| 492 _url = 'v2/userStates'; |
| 493 |
| 494 var _response = _requester.request(_url, |
| 495 "GET", |
| 496 body: _body, |
| 497 queryParams: _queryParams, |
| 498 uploadOptions: _uploadOptions, |
| 499 uploadMedia: _uploadMedia, |
| 500 downloadOptions: _downloadOptions); |
| 501 return _response.then((data) => new ListUserStatesResponse.fromJson(data)); |
| 502 } |
| 503 |
| 504 } |
| 505 |
| 506 |
| 507 |
| 508 /** Status for a Google Partners certification exam. */ |
| 509 class CertificationExamStatus { |
| 510 /** The number of people who have passed the certification exam. */ |
| 511 core.int numberUsersPass; |
| 512 /** |
| 513 * The type of certification exam. |
| 514 * Possible string values are: |
| 515 * - "CERTIFICATION_EXAM_TYPE_UNSPECIFIED" : A |
| 516 * CERTIFICATION_EXAM_TYPE_UNSPECIFIED. |
| 517 * - "CET_ADWORDS_ADVANCED_SEARCH" : A CET_ADWORDS_ADVANCED_SEARCH. |
| 518 * - "CET_ADWORDS_ADVANCED_DISPLAY" : A CET_ADWORDS_ADVANCED_DISPLAY. |
| 519 * - "CET_VIDEO_ADS" : A CET_VIDEO_ADS. |
| 520 * - "CET_ANALYTICS" : A CET_ANALYTICS. |
| 521 * - "CET_DOUBLECLICK" : A CET_DOUBLECLICK. |
| 522 * - "CET_SHOPPING" : A CET_SHOPPING. |
| 523 * - "CET_MOBILE" : A CET_MOBILE. |
| 524 */ |
| 525 core.String type; |
| 526 |
| 527 CertificationExamStatus(); |
| 528 |
| 529 CertificationExamStatus.fromJson(core.Map _json) { |
| 530 if (_json.containsKey("numberUsersPass")) { |
| 531 numberUsersPass = _json["numberUsersPass"]; |
| 532 } |
| 533 if (_json.containsKey("type")) { |
| 534 type = _json["type"]; |
| 535 } |
| 536 } |
| 537 |
| 538 core.Map toJson() { |
| 539 var _json = new core.Map(); |
| 540 if (numberUsersPass != null) { |
| 541 _json["numberUsersPass"] = numberUsersPass; |
| 542 } |
| 543 if (type != null) { |
| 544 _json["type"] = type; |
| 545 } |
| 546 return _json; |
| 547 } |
| 548 } |
| 549 |
| 550 /** Google Partners certification status. */ |
| 551 class CertificationStatus { |
| 552 /** List of certification exam statuses. */ |
| 553 core.List<CertificationExamStatus> examStatuses; |
| 554 /** Whether certification is passing. */ |
| 555 core.bool isCertified; |
| 556 /** |
| 557 * The type of the certification. |
| 558 * Possible string values are: |
| 559 * - "CERTIFICATION_TYPE_UNSPECIFIED" : A CERTIFICATION_TYPE_UNSPECIFIED. |
| 560 * - "CT_ADWORDS" : A CT_ADWORDS. |
| 561 * - "CT_YOUTUBE" : A CT_YOUTUBE. |
| 562 * - "CT_VIDEOADS" : A CT_VIDEOADS. |
| 563 * - "CT_ANALYTICS" : A CT_ANALYTICS. |
| 564 * - "CT_DOUBLECLICK" : A CT_DOUBLECLICK. |
| 565 * - "CT_SHOPPING" : A CT_SHOPPING. |
| 566 * - "CT_MOBILE" : A CT_MOBILE. |
| 567 */ |
| 568 core.String type; |
| 569 |
| 570 CertificationStatus(); |
| 571 |
| 572 CertificationStatus.fromJson(core.Map _json) { |
| 573 if (_json.containsKey("examStatuses")) { |
| 574 examStatuses = _json["examStatuses"].map((value) => new CertificationExamS
tatus.fromJson(value)).toList(); |
| 575 } |
| 576 if (_json.containsKey("isCertified")) { |
| 577 isCertified = _json["isCertified"]; |
| 578 } |
| 579 if (_json.containsKey("type")) { |
| 580 type = _json["type"]; |
| 581 } |
| 582 } |
| 583 |
| 584 core.Map toJson() { |
| 585 var _json = new core.Map(); |
| 586 if (examStatuses != null) { |
| 587 _json["examStatuses"] = examStatuses.map((value) => (value).toJson()).toLi
st(); |
| 588 } |
| 589 if (isCertified != null) { |
| 590 _json["isCertified"] = isCertified; |
| 591 } |
| 592 if (type != null) { |
| 593 _json["type"] = type; |
| 594 } |
| 595 return _json; |
| 596 } |
| 597 } |
| 598 |
| 599 /** |
| 600 * A company resource in the Google Partners API. Once certified, it qualifies |
| 601 * for being searched by advertisers. |
| 602 */ |
| 603 class Company { |
| 604 /** The list of Google Partners certification statuses for the company. */ |
| 605 core.List<CertificationStatus> certificationStatuses; |
| 606 /** |
| 607 * The minimum monthly budget that the company accepts for partner business, |
| 608 * converted to the requested currency code. |
| 609 */ |
| 610 Money convertedMinMonthlyBudget; |
| 611 /** The ID of the company. */ |
| 612 core.String id; |
| 613 /** Industries the company can help with. */ |
| 614 core.List<core.String> industries; |
| 615 /** The list of localized info for the company. */ |
| 616 core.List<LocalizedCompanyInfo> localizedInfos; |
| 617 /** The list of company locations. */ |
| 618 core.List<Location> locations; |
| 619 /** The name of the company. */ |
| 620 core.String name; |
| 621 /** |
| 622 * The unconverted minimum monthly budget that the company accepts for partner |
| 623 * business. |
| 624 */ |
| 625 Money originalMinMonthlyBudget; |
| 626 /** Basic information from the company's public profile. */ |
| 627 PublicProfile publicProfile; |
| 628 /** |
| 629 * Information related to the ranking of the company within the list of |
| 630 * companies. |
| 631 */ |
| 632 core.List<Rank> ranks; |
| 633 /** Services the company can help with. */ |
| 634 core.List<core.String> services; |
| 635 /** URL of the company's website. */ |
| 636 core.String websiteUrl; |
| 637 |
| 638 Company(); |
| 639 |
| 640 Company.fromJson(core.Map _json) { |
| 641 if (_json.containsKey("certificationStatuses")) { |
| 642 certificationStatuses = _json["certificationStatuses"].map((value) => new
CertificationStatus.fromJson(value)).toList(); |
| 643 } |
| 644 if (_json.containsKey("convertedMinMonthlyBudget")) { |
| 645 convertedMinMonthlyBudget = new Money.fromJson(_json["convertedMinMonthlyB
udget"]); |
| 646 } |
| 647 if (_json.containsKey("id")) { |
| 648 id = _json["id"]; |
| 649 } |
| 650 if (_json.containsKey("industries")) { |
| 651 industries = _json["industries"]; |
| 652 } |
| 653 if (_json.containsKey("localizedInfos")) { |
| 654 localizedInfos = _json["localizedInfos"].map((value) => new LocalizedCompa
nyInfo.fromJson(value)).toList(); |
| 655 } |
| 656 if (_json.containsKey("locations")) { |
| 657 locations = _json["locations"].map((value) => new Location.fromJson(value)
).toList(); |
| 658 } |
| 659 if (_json.containsKey("name")) { |
| 660 name = _json["name"]; |
| 661 } |
| 662 if (_json.containsKey("originalMinMonthlyBudget")) { |
| 663 originalMinMonthlyBudget = new Money.fromJson(_json["originalMinMonthlyBud
get"]); |
| 664 } |
| 665 if (_json.containsKey("publicProfile")) { |
| 666 publicProfile = new PublicProfile.fromJson(_json["publicProfile"]); |
| 667 } |
| 668 if (_json.containsKey("ranks")) { |
| 669 ranks = _json["ranks"].map((value) => new Rank.fromJson(value)).toList(); |
| 670 } |
| 671 if (_json.containsKey("services")) { |
| 672 services = _json["services"]; |
| 673 } |
| 674 if (_json.containsKey("websiteUrl")) { |
| 675 websiteUrl = _json["websiteUrl"]; |
| 676 } |
| 677 } |
| 678 |
| 679 core.Map toJson() { |
| 680 var _json = new core.Map(); |
| 681 if (certificationStatuses != null) { |
| 682 _json["certificationStatuses"] = certificationStatuses.map((value) => (val
ue).toJson()).toList(); |
| 683 } |
| 684 if (convertedMinMonthlyBudget != null) { |
| 685 _json["convertedMinMonthlyBudget"] = (convertedMinMonthlyBudget).toJson(); |
| 686 } |
| 687 if (id != null) { |
| 688 _json["id"] = id; |
| 689 } |
| 690 if (industries != null) { |
| 691 _json["industries"] = industries; |
| 692 } |
| 693 if (localizedInfos != null) { |
| 694 _json["localizedInfos"] = localizedInfos.map((value) => (value).toJson()).
toList(); |
| 695 } |
| 696 if (locations != null) { |
| 697 _json["locations"] = locations.map((value) => (value).toJson()).toList(); |
| 698 } |
| 699 if (name != null) { |
| 700 _json["name"] = name; |
| 701 } |
| 702 if (originalMinMonthlyBudget != null) { |
| 703 _json["originalMinMonthlyBudget"] = (originalMinMonthlyBudget).toJson(); |
| 704 } |
| 705 if (publicProfile != null) { |
| 706 _json["publicProfile"] = (publicProfile).toJson(); |
| 707 } |
| 708 if (ranks != null) { |
| 709 _json["ranks"] = ranks.map((value) => (value).toJson()).toList(); |
| 710 } |
| 711 if (services != null) { |
| 712 _json["services"] = services; |
| 713 } |
| 714 if (websiteUrl != null) { |
| 715 _json["websiteUrl"] = websiteUrl; |
| 716 } |
| 717 return _json; |
| 718 } |
| 719 } |
| 720 |
| 721 /** Request message for [CreateLead][google.partners.v2.Partner.CreateLead]. */ |
| 722 class CreateLeadRequest { |
| 723 /** |
| 724 * The lead resource. The `LeadType` must not be `LEAD_TYPE_UNSPECIFIED` and |
| 725 * either `email` or `phone_number` must be provided. |
| 726 */ |
| 727 Lead lead; |
| 728 /** reCaptcha challenge info. */ |
| 729 RecaptchaChallenge recaptchaChallenge; |
| 730 /** Current request metadata. */ |
| 731 RequestMetadata requestMetadata; |
| 732 |
| 733 CreateLeadRequest(); |
| 734 |
| 735 CreateLeadRequest.fromJson(core.Map _json) { |
| 736 if (_json.containsKey("lead")) { |
| 737 lead = new Lead.fromJson(_json["lead"]); |
| 738 } |
| 739 if (_json.containsKey("recaptchaChallenge")) { |
| 740 recaptchaChallenge = new RecaptchaChallenge.fromJson(_json["recaptchaChall
enge"]); |
| 741 } |
| 742 if (_json.containsKey("requestMetadata")) { |
| 743 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
| 744 } |
| 745 } |
| 746 |
| 747 core.Map toJson() { |
| 748 var _json = new core.Map(); |
| 749 if (lead != null) { |
| 750 _json["lead"] = (lead).toJson(); |
| 751 } |
| 752 if (recaptchaChallenge != null) { |
| 753 _json["recaptchaChallenge"] = (recaptchaChallenge).toJson(); |
| 754 } |
| 755 if (requestMetadata != null) { |
| 756 _json["requestMetadata"] = (requestMetadata).toJson(); |
| 757 } |
| 758 return _json; |
| 759 } |
| 760 } |
| 761 |
| 762 /** |
| 763 * Response message for [CreateLead][google.partners.v2.Partner.CreateLead]. |
| 764 * Debug information about this request. |
| 765 */ |
| 766 class CreateLeadResponse { |
| 767 /** |
| 768 * Lead that was created depending on the outcome of reCaptcha validation. |
| 769 */ |
| 770 Lead lead; |
| 771 /** |
| 772 * The outcome of reCaptcha validation. |
| 773 * Possible string values are: |
| 774 * - "RECAPTCHA_STATUS_UNSPECIFIED" : A RECAPTCHA_STATUS_UNSPECIFIED. |
| 775 * - "RS_NOT_NEEDED" : A RS_NOT_NEEDED. |
| 776 * - "RS_PASSED" : A RS_PASSED. |
| 777 * - "RS_FAILED" : A RS_FAILED. |
| 778 */ |
| 779 core.String recaptchaStatus; |
| 780 /** Current response metadata. */ |
| 781 ResponseMetadata responseMetadata; |
| 782 |
| 783 CreateLeadResponse(); |
| 784 |
| 785 CreateLeadResponse.fromJson(core.Map _json) { |
| 786 if (_json.containsKey("lead")) { |
| 787 lead = new Lead.fromJson(_json["lead"]); |
| 788 } |
| 789 if (_json.containsKey("recaptchaStatus")) { |
| 790 recaptchaStatus = _json["recaptchaStatus"]; |
| 791 } |
| 792 if (_json.containsKey("responseMetadata")) { |
| 793 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 794 } |
| 795 } |
| 796 |
| 797 core.Map toJson() { |
| 798 var _json = new core.Map(); |
| 799 if (lead != null) { |
| 800 _json["lead"] = (lead).toJson(); |
| 801 } |
| 802 if (recaptchaStatus != null) { |
| 803 _json["recaptchaStatus"] = recaptchaStatus; |
| 804 } |
| 805 if (responseMetadata != null) { |
| 806 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 807 } |
| 808 return _json; |
| 809 } |
| 810 } |
| 811 |
| 812 /** Debug information about this request. */ |
| 813 class DebugInfo { |
| 814 |
| 815 DebugInfo(); |
| 816 |
| 817 DebugInfo.fromJson(core.Map _json) { |
| 818 } |
| 819 |
| 820 core.Map toJson() { |
| 821 var _json = new core.Map(); |
| 822 return _json; |
| 823 } |
| 824 } |
| 825 |
| 826 /** Key value data pair for an event. */ |
| 827 class EventData { |
| 828 /** |
| 829 * Data type. |
| 830 * Possible string values are: |
| 831 * - "EVENT_DATA_TYPE_UNSPECIFIED" : A EVENT_DATA_TYPE_UNSPECIFIED. |
| 832 * - "ACTION" : A ACTION. |
| 833 * - "AGENCY_ID" : A AGENCY_ID. |
| 834 * - "AGENCY_NAME" : A AGENCY_NAME. |
| 835 * - "AGENCY_PHONE_NUMBER" : A AGENCY_PHONE_NUMBER. |
| 836 * - "AGENCY_WEBSITE" : A AGENCY_WEBSITE. |
| 837 * - "BUDGET" : A BUDGET. |
| 838 * - "CENTER_POINT" : A CENTER_POINT. |
| 839 * - "CERTIFICATION" : A CERTIFICATION. |
| 840 * - "COMMENT" : A COMMENT. |
| 841 * - "COUNTRY" : A COUNTRY. |
| 842 * - "CURRENCY" : A CURRENCY. |
| 843 * - "CURRENTLY_VIEWED_AGENCY_ID" : A CURRENTLY_VIEWED_AGENCY_ID. |
| 844 * - "DISTANCE" : A DISTANCE. |
| 845 * - "DISTANCE_TYPE" : A DISTANCE_TYPE. |
| 846 * - "EXAM" : A EXAM. |
| 847 * - "HISTORY_TOKEN" : A HISTORY_TOKEN. |
| 848 * - "IDENTIFIER" : A IDENTIFIER. |
| 849 * - "INDUSTRY" : A INDUSTRY. |
| 850 * - "INSIGHT_TAG" : A INSIGHT_TAG. |
| 851 * - "LANGUAGE" : A LANGUAGE. |
| 852 * - "LOCATION" : A LOCATION. |
| 853 * - "MARKETING_OPT_IN" : A MARKETING_OPT_IN. |
| 854 * - "QUERY" : A QUERY. |
| 855 * - "SEARCH_START_INDEX" : A SEARCH_START_INDEX. |
| 856 * - "SERVICE" : A SERVICE. |
| 857 * - "SHOW_VOW" : A SHOW_VOW. |
| 858 * - "SOLUTION" : A SOLUTION. |
| 859 * - "TRAFFIC_SOURCE_ID" : A TRAFFIC_SOURCE_ID. |
| 860 * - "TRAFFIC_SUB_ID" : A TRAFFIC_SUB_ID. |
| 861 * - "VIEW_PORT" : A VIEW_PORT. |
| 862 * - "WEBSITE" : A WEBSITE. |
| 863 * - "DETAILS" : A DETAILS. |
| 864 * - "EXPERIMENT_ID" : A EXPERIMENT_ID. |
| 865 * - "GPS_MOTIVATION" : A GPS_MOTIVATION. |
| 866 * - "URL" : A URL. |
| 867 * - "ELEMENT_FOCUS" : A ELEMENT_FOCUS. |
| 868 */ |
| 869 core.String key; |
| 870 /** Data values. */ |
| 871 core.List<core.String> values; |
| 872 |
| 873 EventData(); |
| 874 |
| 875 EventData.fromJson(core.Map _json) { |
| 876 if (_json.containsKey("key")) { |
| 877 key = _json["key"]; |
| 878 } |
| 879 if (_json.containsKey("values")) { |
| 880 values = _json["values"]; |
| 881 } |
| 882 } |
| 883 |
| 884 core.Map toJson() { |
| 885 var _json = new core.Map(); |
| 886 if (key != null) { |
| 887 _json["key"] = key; |
| 888 } |
| 889 if (values != null) { |
| 890 _json["values"] = values; |
| 891 } |
| 892 return _json; |
| 893 } |
| 894 } |
| 895 |
| 896 /** |
| 897 * Response message for [GetCompany][google.partners.v2.Partner.GetCompany]. |
| 898 */ |
| 899 class GetCompanyResponse { |
| 900 /** The company. */ |
| 901 Company company; |
| 902 /** Current response metadata. */ |
| 903 ResponseMetadata responseMetadata; |
| 904 |
| 905 GetCompanyResponse(); |
| 906 |
| 907 GetCompanyResponse.fromJson(core.Map _json) { |
| 908 if (_json.containsKey("company")) { |
| 909 company = new Company.fromJson(_json["company"]); |
| 910 } |
| 911 if (_json.containsKey("responseMetadata")) { |
| 912 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 913 } |
| 914 } |
| 915 |
| 916 core.Map toJson() { |
| 917 var _json = new core.Map(); |
| 918 if (company != null) { |
| 919 _json["company"] = (company).toJson(); |
| 920 } |
| 921 if (responseMetadata != null) { |
| 922 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 923 } |
| 924 return _json; |
| 925 } |
| 926 } |
| 927 |
| 928 /** |
| 929 * An object representing a latitude/longitude pair. This is expressed as a pair |
| 930 * of doubles representing degrees latitude and degrees longitude. Unless |
| 931 * specified otherwise, this must conform to the WGS84 standard. Values must be |
| 932 * within normalized ranges. |
| 933 */ |
| 934 class LatLng { |
| 935 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ |
| 936 core.double latitude; |
| 937 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ |
| 938 core.double longitude; |
| 939 |
| 940 LatLng(); |
| 941 |
| 942 LatLng.fromJson(core.Map _json) { |
| 943 if (_json.containsKey("latitude")) { |
| 944 latitude = _json["latitude"]; |
| 945 } |
| 946 if (_json.containsKey("longitude")) { |
| 947 longitude = _json["longitude"]; |
| 948 } |
| 949 } |
| 950 |
| 951 core.Map toJson() { |
| 952 var _json = new core.Map(); |
| 953 if (latitude != null) { |
| 954 _json["latitude"] = latitude; |
| 955 } |
| 956 if (longitude != null) { |
| 957 _json["longitude"] = longitude; |
| 958 } |
| 959 return _json; |
| 960 } |
| 961 } |
| 962 |
| 963 /** |
| 964 * A lead resource that represents an advertiser contact for a `Company`. These |
| 965 * are usually generated via Google Partner Search (the advertiser portal). |
| 966 */ |
| 967 class Lead { |
| 968 /** Comments lead source gave. */ |
| 969 core.String comments; |
| 970 /** Email address of lead source. */ |
| 971 core.String email; |
| 972 /** Last name of lead source. */ |
| 973 core.String familyName; |
| 974 /** First name of lead source. */ |
| 975 core.String givenName; |
| 976 /** List of reasons for using Google Partner Search and creating a lead. */ |
| 977 core.List<core.String> gpsMotivations; |
| 978 /** ID of the lead. */ |
| 979 core.String id; |
| 980 /** The minimum monthly budget lead source is willing to spend. */ |
| 981 Money minMonthlyBudget; |
| 982 /** Phone number of lead source. */ |
| 983 core.String phoneNumber; |
| 984 /** |
| 985 * Type of lead. |
| 986 * Possible string values are: |
| 987 * - "LEAD_TYPE_UNSPECIFIED" : A LEAD_TYPE_UNSPECIFIED. |
| 988 * - "LT_GPS" : A LT_GPS. |
| 989 */ |
| 990 core.String type; |
| 991 /** Website URL of lead source. */ |
| 992 core.String websiteUrl; |
| 993 |
| 994 Lead(); |
| 995 |
| 996 Lead.fromJson(core.Map _json) { |
| 997 if (_json.containsKey("comments")) { |
| 998 comments = _json["comments"]; |
| 999 } |
| 1000 if (_json.containsKey("email")) { |
| 1001 email = _json["email"]; |
| 1002 } |
| 1003 if (_json.containsKey("familyName")) { |
| 1004 familyName = _json["familyName"]; |
| 1005 } |
| 1006 if (_json.containsKey("givenName")) { |
| 1007 givenName = _json["givenName"]; |
| 1008 } |
| 1009 if (_json.containsKey("gpsMotivations")) { |
| 1010 gpsMotivations = _json["gpsMotivations"]; |
| 1011 } |
| 1012 if (_json.containsKey("id")) { |
| 1013 id = _json["id"]; |
| 1014 } |
| 1015 if (_json.containsKey("minMonthlyBudget")) { |
| 1016 minMonthlyBudget = new Money.fromJson(_json["minMonthlyBudget"]); |
| 1017 } |
| 1018 if (_json.containsKey("phoneNumber")) { |
| 1019 phoneNumber = _json["phoneNumber"]; |
| 1020 } |
| 1021 if (_json.containsKey("type")) { |
| 1022 type = _json["type"]; |
| 1023 } |
| 1024 if (_json.containsKey("websiteUrl")) { |
| 1025 websiteUrl = _json["websiteUrl"]; |
| 1026 } |
| 1027 } |
| 1028 |
| 1029 core.Map toJson() { |
| 1030 var _json = new core.Map(); |
| 1031 if (comments != null) { |
| 1032 _json["comments"] = comments; |
| 1033 } |
| 1034 if (email != null) { |
| 1035 _json["email"] = email; |
| 1036 } |
| 1037 if (familyName != null) { |
| 1038 _json["familyName"] = familyName; |
| 1039 } |
| 1040 if (givenName != null) { |
| 1041 _json["givenName"] = givenName; |
| 1042 } |
| 1043 if (gpsMotivations != null) { |
| 1044 _json["gpsMotivations"] = gpsMotivations; |
| 1045 } |
| 1046 if (id != null) { |
| 1047 _json["id"] = id; |
| 1048 } |
| 1049 if (minMonthlyBudget != null) { |
| 1050 _json["minMonthlyBudget"] = (minMonthlyBudget).toJson(); |
| 1051 } |
| 1052 if (phoneNumber != null) { |
| 1053 _json["phoneNumber"] = phoneNumber; |
| 1054 } |
| 1055 if (type != null) { |
| 1056 _json["type"] = type; |
| 1057 } |
| 1058 if (websiteUrl != null) { |
| 1059 _json["websiteUrl"] = websiteUrl; |
| 1060 } |
| 1061 return _json; |
| 1062 } |
| 1063 } |
| 1064 |
| 1065 /** |
| 1066 * Response message for |
| 1067 * [ListCompanies][google.partners.v2.Partner.ListCompanies]. |
| 1068 */ |
| 1069 class ListCompaniesResponse { |
| 1070 /** The list of companies. */ |
| 1071 core.List<Company> companies; |
| 1072 /** |
| 1073 * A token to retrieve next page of results. Pass this value in the |
| 1074 * `ListCompaniesRequest.page_token` field in the subsequent call to |
| 1075 * [ListCompanies][google.partners.v2.Partner.ListCompanies] to retrieve the |
| 1076 * next page of results. |
| 1077 */ |
| 1078 core.String nextPageToken; |
| 1079 /** Current response metadata. */ |
| 1080 ResponseMetadata responseMetadata; |
| 1081 |
| 1082 ListCompaniesResponse(); |
| 1083 |
| 1084 ListCompaniesResponse.fromJson(core.Map _json) { |
| 1085 if (_json.containsKey("companies")) { |
| 1086 companies = _json["companies"].map((value) => new Company.fromJson(value))
.toList(); |
| 1087 } |
| 1088 if (_json.containsKey("nextPageToken")) { |
| 1089 nextPageToken = _json["nextPageToken"]; |
| 1090 } |
| 1091 if (_json.containsKey("responseMetadata")) { |
| 1092 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 1093 } |
| 1094 } |
| 1095 |
| 1096 core.Map toJson() { |
| 1097 var _json = new core.Map(); |
| 1098 if (companies != null) { |
| 1099 _json["companies"] = companies.map((value) => (value).toJson()).toList(); |
| 1100 } |
| 1101 if (nextPageToken != null) { |
| 1102 _json["nextPageToken"] = nextPageToken; |
| 1103 } |
| 1104 if (responseMetadata != null) { |
| 1105 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 1106 } |
| 1107 return _json; |
| 1108 } |
| 1109 } |
| 1110 |
| 1111 /** |
| 1112 * Response message for |
| 1113 * [ListUserStates][google.partners.v2.ClientAuditor.ListUserStates]. |
| 1114 */ |
| 1115 class ListUserStatesResponse { |
| 1116 /** Current response metadata. */ |
| 1117 ResponseMetadata responseMetadata; |
| 1118 /** User's states. */ |
| 1119 core.List<core.String> userStates; |
| 1120 |
| 1121 ListUserStatesResponse(); |
| 1122 |
| 1123 ListUserStatesResponse.fromJson(core.Map _json) { |
| 1124 if (_json.containsKey("responseMetadata")) { |
| 1125 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 1126 } |
| 1127 if (_json.containsKey("userStates")) { |
| 1128 userStates = _json["userStates"]; |
| 1129 } |
| 1130 } |
| 1131 |
| 1132 core.Map toJson() { |
| 1133 var _json = new core.Map(); |
| 1134 if (responseMetadata != null) { |
| 1135 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 1136 } |
| 1137 if (userStates != null) { |
| 1138 _json["userStates"] = userStates; |
| 1139 } |
| 1140 return _json; |
| 1141 } |
| 1142 } |
| 1143 |
| 1144 /** The localized company information. */ |
| 1145 class LocalizedCompanyInfo { |
| 1146 /** List of country codes for the localized company info. */ |
| 1147 core.List<core.String> countryCodes; |
| 1148 /** Localized display name. */ |
| 1149 core.String displayName; |
| 1150 /** |
| 1151 * Language code of the localized company info, as defined by BCP 47 (IETF BCP |
| 1152 * 47, "Tags for Identifying Languages"). |
| 1153 */ |
| 1154 core.String languageCode; |
| 1155 /** |
| 1156 * Localized brief description that the company uses to advertise themselves. |
| 1157 */ |
| 1158 core.String overview; |
| 1159 |
| 1160 LocalizedCompanyInfo(); |
| 1161 |
| 1162 LocalizedCompanyInfo.fromJson(core.Map _json) { |
| 1163 if (_json.containsKey("countryCodes")) { |
| 1164 countryCodes = _json["countryCodes"]; |
| 1165 } |
| 1166 if (_json.containsKey("displayName")) { |
| 1167 displayName = _json["displayName"]; |
| 1168 } |
| 1169 if (_json.containsKey("languageCode")) { |
| 1170 languageCode = _json["languageCode"]; |
| 1171 } |
| 1172 if (_json.containsKey("overview")) { |
| 1173 overview = _json["overview"]; |
| 1174 } |
| 1175 } |
| 1176 |
| 1177 core.Map toJson() { |
| 1178 var _json = new core.Map(); |
| 1179 if (countryCodes != null) { |
| 1180 _json["countryCodes"] = countryCodes; |
| 1181 } |
| 1182 if (displayName != null) { |
| 1183 _json["displayName"] = displayName; |
| 1184 } |
| 1185 if (languageCode != null) { |
| 1186 _json["languageCode"] = languageCode; |
| 1187 } |
| 1188 if (overview != null) { |
| 1189 _json["overview"] = overview; |
| 1190 } |
| 1191 return _json; |
| 1192 } |
| 1193 } |
| 1194 |
| 1195 /** A location with address and geographic coordinates. */ |
| 1196 class Location { |
| 1197 /** The complete address of the location. */ |
| 1198 core.String address; |
| 1199 /** The latitude and longitude of the location, in degrees. */ |
| 1200 LatLng latLng; |
| 1201 |
| 1202 Location(); |
| 1203 |
| 1204 Location.fromJson(core.Map _json) { |
| 1205 if (_json.containsKey("address")) { |
| 1206 address = _json["address"]; |
| 1207 } |
| 1208 if (_json.containsKey("latLng")) { |
| 1209 latLng = new LatLng.fromJson(_json["latLng"]); |
| 1210 } |
| 1211 } |
| 1212 |
| 1213 core.Map toJson() { |
| 1214 var _json = new core.Map(); |
| 1215 if (address != null) { |
| 1216 _json["address"] = address; |
| 1217 } |
| 1218 if (latLng != null) { |
| 1219 _json["latLng"] = (latLng).toJson(); |
| 1220 } |
| 1221 return _json; |
| 1222 } |
| 1223 } |
| 1224 |
| 1225 /** |
| 1226 * Request message for |
| 1227 * [LogClientMessage][google.partners.v2.ClientAuditor.LogClientMessage]. |
| 1228 */ |
| 1229 class LogMessageRequest { |
| 1230 /** |
| 1231 * Map of client info, such as URL, browser navigator, browser platform, etc. |
| 1232 */ |
| 1233 core.Map<core.String, core.String> clientInfo; |
| 1234 /** Details about the client message. */ |
| 1235 core.String details; |
| 1236 /** |
| 1237 * Message level of client message. |
| 1238 * Possible string values are: |
| 1239 * - "MESSAGE_LEVEL_UNSPECIFIED" : A MESSAGE_LEVEL_UNSPECIFIED. |
| 1240 * - "ML_FINE" : A ML_FINE. |
| 1241 * - "ML_INFO" : A ML_INFO. |
| 1242 * - "ML_WARNING" : A ML_WARNING. |
| 1243 * - "ML_SEVERE" : A ML_SEVERE. |
| 1244 */ |
| 1245 core.String level; |
| 1246 /** Current request metadata. */ |
| 1247 RequestMetadata requestMetadata; |
| 1248 |
| 1249 LogMessageRequest(); |
| 1250 |
| 1251 LogMessageRequest.fromJson(core.Map _json) { |
| 1252 if (_json.containsKey("clientInfo")) { |
| 1253 clientInfo = _json["clientInfo"]; |
| 1254 } |
| 1255 if (_json.containsKey("details")) { |
| 1256 details = _json["details"]; |
| 1257 } |
| 1258 if (_json.containsKey("level")) { |
| 1259 level = _json["level"]; |
| 1260 } |
| 1261 if (_json.containsKey("requestMetadata")) { |
| 1262 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
| 1263 } |
| 1264 } |
| 1265 |
| 1266 core.Map toJson() { |
| 1267 var _json = new core.Map(); |
| 1268 if (clientInfo != null) { |
| 1269 _json["clientInfo"] = clientInfo; |
| 1270 } |
| 1271 if (details != null) { |
| 1272 _json["details"] = details; |
| 1273 } |
| 1274 if (level != null) { |
| 1275 _json["level"] = level; |
| 1276 } |
| 1277 if (requestMetadata != null) { |
| 1278 _json["requestMetadata"] = (requestMetadata).toJson(); |
| 1279 } |
| 1280 return _json; |
| 1281 } |
| 1282 } |
| 1283 |
| 1284 /** |
| 1285 * Response message for |
| 1286 * [LogClientMessage][google.partners.v2.ClientAuditor.LogClientMessage]. |
| 1287 */ |
| 1288 class LogMessageResponse { |
| 1289 /** Current response metadata. */ |
| 1290 ResponseMetadata responseMetadata; |
| 1291 |
| 1292 LogMessageResponse(); |
| 1293 |
| 1294 LogMessageResponse.fromJson(core.Map _json) { |
| 1295 if (_json.containsKey("responseMetadata")) { |
| 1296 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 1297 } |
| 1298 } |
| 1299 |
| 1300 core.Map toJson() { |
| 1301 var _json = new core.Map(); |
| 1302 if (responseMetadata != null) { |
| 1303 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 1304 } |
| 1305 return _json; |
| 1306 } |
| 1307 } |
| 1308 |
| 1309 /** |
| 1310 * Request message for |
| 1311 * [LogUserEvent][google.partners.v2.ClientAuditor.LogUserEvent]. |
| 1312 */ |
| 1313 class LogUserEventRequest { |
| 1314 /** |
| 1315 * The action that occurred. |
| 1316 * Possible string values are: |
| 1317 * - "EVENT_ACTION_UNSPECIFIED" : A EVENT_ACTION_UNSPECIFIED. |
| 1318 * - "SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM" : A |
| 1319 * SMB_CLICKED_FIND_A_PARTNER_BUTTON_BOTTOM. |
| 1320 * - "SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP" : A |
| 1321 * SMB_CLICKED_FIND_A_PARTNER_BUTTON_TOP. |
| 1322 * - "AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM" : A |
| 1323 * AGENCY_CLICKED_JOIN_NOW_BUTTON_BOTTOM. |
| 1324 * - "AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP" : A |
| 1325 * AGENCY_CLICKED_JOIN_NOW_BUTTON_TOP. |
| 1326 * - "SMB_CANCELED_PARTNER_CONTACT_FORM" : A |
| 1327 * SMB_CANCELED_PARTNER_CONTACT_FORM. |
| 1328 * - "SMB_CLICKED_CONTACT_A_PARTNER" : A SMB_CLICKED_CONTACT_A_PARTNER. |
| 1329 * - "SMB_COMPLETED_PARTNER_CONTACT_FORM" : A |
| 1330 * SMB_COMPLETED_PARTNER_CONTACT_FORM. |
| 1331 * - "SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM" : A |
| 1332 * SMB_ENTERED_EMAIL_IN_CONTACT_PARTNER_FORM. |
| 1333 * - "SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM" : A |
| 1334 * SMB_ENTERED_NAME_IN_CONTACT_PARTNER_FORM. |
| 1335 * - "SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM" : A |
| 1336 * SMB_ENTERED_PHONE_IN_CONTACT_PARTNER_FORM. |
| 1337 * - "SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM" : A |
| 1338 * SMB_FAILED_RECAPTCHA_IN_CONTACT_PARTNER_FORM. |
| 1339 * - "PARTNER_VIEWED_BY_SMB" : A PARTNER_VIEWED_BY_SMB. |
| 1340 * - "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS" : A |
| 1341 * SMB_CANCELED_PARTNER_CONTACT_FORM_ON_GPS. |
| 1342 * - "SMB_CHANGED_A_SEARCH_PARAMETER_TOP" : A |
| 1343 * SMB_CHANGED_A_SEARCH_PARAMETER_TOP. |
| 1344 * - "SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS" : A |
| 1345 * SMB_CLICKED_CONTACT_A_PARTNER_ON_GPS. |
| 1346 * - "SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM" : A |
| 1347 * SMB_CLICKED_SHOW_MORE_PARTNERS_BUTTON_BOTTOM. |
| 1348 * - "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS" : A |
| 1349 * SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_GPS. |
| 1350 * - "SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA" : A |
| 1351 * SMB_NO_PARTNERS_AVAILABLE_WITH_SEARCH_CRITERIA. |
| 1352 * - "SMB_PERFORMED_SEARCH_ON_GPS" : A SMB_PERFORMED_SEARCH_ON_GPS. |
| 1353 * - "SMB_VIEWED_A_PARTNER_ON_GPS" : A SMB_VIEWED_A_PARTNER_ON_GPS. |
| 1354 * - "SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" : A |
| 1355 * SMB_CANCELED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE. |
| 1356 * - "SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE" : A |
| 1357 * SMB_CLICKED_CONTACT_A_PARTNER_ON_PROFILE_PAGE. |
| 1358 * - "SMB_CLICKED_PARTNER_WEBSITE" : A SMB_CLICKED_PARTNER_WEBSITE. |
| 1359 * - "SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE" : A |
| 1360 * SMB_COMPLETED_PARTNER_CONTACT_FORM_ON_PROFILE_PAGE. |
| 1361 * - "SMB_VIEWED_A_PARTNER_PROFILE" : A SMB_VIEWED_A_PARTNER_PROFILE. |
| 1362 * - "AGENCY_CLICKED_ACCEPT_TOS_BUTTON" : A AGENCY_CLICKED_ACCEPT_TOS_BUTTON. |
| 1363 * - "AGENCY_CHANGED_TOS_COUNTRY" : A AGENCY_CHANGED_TOS_COUNTRY. |
| 1364 * - "AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL" : A |
| 1365 * AGENCY_ADDED_ADDRESS_IN_MY_PROFILE_PORTAL. |
| 1366 * - "AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL" : A |
| 1367 * AGENCY_ADDED_PHONE_NUMBER_IN_MY_PROFILE_PORTAL. |
| 1368 * - "AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION" : A |
| 1369 * AGENCY_CHANGED_PRIMARY_ACCOUNT_ASSOCIATION. |
| 1370 * - "AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION" : A |
| 1371 * AGENCY_CHANGED_PRIMARY_COUNTRY_ASSOCIATION. |
| 1372 * - "AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL" : A |
| 1373 * AGENCY_CLICKED_AFFILIATE_BUTTON_IN_MY_PROFILE_IN_PORTAL. |
| 1374 * - "AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL" : A |
| 1375 * AGENCY_CLICKED_GIVE_EDIT_ACCESS_IN_MY_PROFILE_PORTAL. |
| 1376 * - "AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL" : A |
| 1377 * AGENCY_CLICKED_LOG_OUT_IN_MY_PROFILE_PORTAL. |
| 1378 * - "AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL" : A |
| 1379 * AGENCY_CLICKED_MY_PROFILE_LEFT_NAV_IN_PORTAL. |
| 1380 * - "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE" : A |
| 1381 * AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_COMPLETE_PROFILE. |
| 1382 * - "AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL" : A |
| 1383 * AGENCY_CLICKED_UNAFFILIATE_IN_MY_PROFILE_PORTAL. |
| 1384 * - "AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL" : A |
| 1385 * AGENCY_FILLED_OUT_COMP_AFFILIATION_IN_MY_PROFILE_PORTAL. |
| 1386 * - "AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE" : A |
| 1387 * AGENCY_SUCCESSFULLY_CONNECTED_WITH_COMPANY_IN_MY_PROFILE. |
| 1388 * - "AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL" : A |
| 1389 * AGENCY_CLICKED_CREATE_MCC_IN_MY_PROFILE_PORTAL. |
| 1390 * - "AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" : A |
| 1391 * AGENCY_DIDNT_HAVE_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE. |
| 1392 * - "AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE" : A |
| 1393 * AGENCY_HAD_AN_MCC_ASSOCIATED_ON_COMPLETE_PROFILE. |
| 1394 * - "AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL" : A |
| 1395 * AGENCY_ADDED_JOB_FUNCTION_IN_MY_PROFILE_PORTAL. |
| 1396 * - "AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN" : A |
| 1397 * AGENCY_LOOKED_AT_JOB_FUNCTION_DROP_DOWN. |
| 1398 * - "AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION" : A |
| 1399 * AGENCY_SELECTED_ACCOUNT_MANAGER_AS_JOB_FUNCTION. |
| 1400 * - "AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION" : A |
| 1401 * AGENCY_SELECTED_ACCOUNT_PLANNER_AS_JOB_FUNCTION. |
| 1402 * - "AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION" : A |
| 1403 * AGENCY_SELECTED_ANALYTICS_AS_JOB_FUNCTION. |
| 1404 * - "AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION" : A |
| 1405 * AGENCY_SELECTED_CREATIVE_AS_JOB_FUNCTION. |
| 1406 * - "AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION" : A |
| 1407 * AGENCY_SELECTED_MEDIA_BUYER_AS_JOB_FUNCTION. |
| 1408 * - "AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION" : A |
| 1409 * AGENCY_SELECTED_MEDIA_PLANNER_AS_JOB_FUNCTION. |
| 1410 * - "AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION" : A |
| 1411 * AGENCY_SELECTED_OTHER_AS_JOB_FUNCTION. |
| 1412 * - "AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION" : A |
| 1413 * AGENCY_SELECTED_PRODUCTION_AS_JOB_FUNCTION. |
| 1414 * - "AGENCY_SELECTED_SEO_AS_JOB_FUNCTION" : A |
| 1415 * AGENCY_SELECTED_SEO_AS_JOB_FUNCTION. |
| 1416 * - "AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION" : A |
| 1417 * AGENCY_SELECTED_SALES_REP_AS_JOB_FUNCTION. |
| 1418 * - "AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION" : A |
| 1419 * AGENCY_SELECTED_SEARCH_SPECIALIST_AS_JOB_FUNCTION. |
| 1420 * - "AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL" : A |
| 1421 * AGENCY_ADDED_CHANNELS_IN_MY_PROFILE_PORTAL. |
| 1422 * - "AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN" : A |
| 1423 * AGENCY_LOOKED_AT_ADD_CHANNEL_DROP_DOWN. |
| 1424 * - "AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL" : A |
| 1425 * AGENCY_SELECTED_CROSS_CHANNEL_FROM_ADD_CHANNEL. |
| 1426 * - "AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL" : A |
| 1427 * AGENCY_SELECTED_DISPLAY_FROM_ADD_CHANNEL. |
| 1428 * - "AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL" : A |
| 1429 * AGENCY_SELECTED_MOBILE_FROM_ADD_CHANNEL. |
| 1430 * - "AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL" : A |
| 1431 * AGENCY_SELECTED_SEARCH_FROM_ADD_CHANNEL. |
| 1432 * - "AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL" : A |
| 1433 * AGENCY_SELECTED_SOCIAL_FROM_ADD_CHANNEL. |
| 1434 * - "AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL" : A |
| 1435 * AGENCY_SELECTED_TOOLS_FROM_ADD_CHANNEL. |
| 1436 * - "AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL" : A |
| 1437 * AGENCY_SELECTED_YOUTUBE_FROM_ADD_CHANNEL. |
| 1438 * - "AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL" : A |
| 1439 * AGENCY_ADDED_INDUSTRIES_IN_MY_PROFILE_PORTAL. |
| 1440 * - "AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN" : A |
| 1441 * AGENCY_CHANGED_ADD_INDUSTRIES_DROP_DOWN. |
| 1442 * - "AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL" : A |
| 1443 * AGENCY_ADDED_MARKETS_IN_MY_PROFILE_PORTAL. |
| 1444 * - "AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN" : A |
| 1445 * AGENCY_CHANGED_ADD_MARKETS_DROP_DOWN. |
| 1446 * - "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE" : A |
| 1447 * AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_MYPROFILE. |
| 1448 * - "AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP" : A |
| 1449 * AGENCY_CHECKED_RECIEVE_MAIL_PROMOTIONS_SIGNUP. |
| 1450 * - "AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" : A |
| 1451 * AGENCY_SELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH. |
| 1452 * - "AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL" : A |
| 1453 * AGENCY_SELECTED_OPT_IN_BETA_TESTS_IN_MY_PROFILE_PORTAL. |
| 1454 * - "AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL" : A |
| 1455 * AGENCY_SELECTED_OPT_IN_NEWS_IN_MY_PROFILE_PORTAL. |
| 1456 * - "AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" : A |
| 1457 * AGENCY_SELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS. |
| 1458 * - "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL" : A |
| 1459 * AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUG_IN_MY_PROFILE_PORTAL. |
| 1460 * - "AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" : A |
| 1461 * AGENCY_SELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS. |
| 1462 * - "AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS" : A |
| 1463 * AGENCY_SELECTED_OPT_IN_SELECT_ALL_EMAIL_NOTIFICATIONS. |
| 1464 * - "AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL" : A |
| 1465 * AGENCY_SELECTED_SELECT_ALL_OPT_INS_IN_MY_PROFILE_PORTAL. |
| 1466 * - "AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY" : A |
| 1467 * AGENCY_CLICKED_BACK_BUTTON_ON_CONNECT_WITH_COMPANY. |
| 1468 * - "AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY" : A |
| 1469 * AGENCY_CLICKED_CONTINUE_TO_OVERVIEW_ON_CONNECT_WITH_COMPANY. |
| 1470 * - "AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND" : A |
| 1471 * AGECNY_CLICKED_CREATE_MCC_CONNECT_WITH_COMPANY_NOT_FOUND. |
| 1472 * - "AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND" : A |
| 1473 * AGECNY_CLICKED_GIVE_EDIT_ACCESS_CONNECT_WITH_COMPANY_NOT_FOUND. |
| 1474 * - "AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND" : A |
| 1475 * AGECNY_CLICKED_LOG_OUT_CONNECT_WITH_COMPANY_NOT_FOUND. |
| 1476 * - "AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE" : A |
| 1477 * AGENCY_CLICKED_SKIP_FOR_NOW_ON_CONNECT_WITH_COMPANY_PAGE. |
| 1478 * - "AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY" : A |
| 1479 * AGENCY_CLOSED_CONNECTED_TO_COMPANY_X_BUTTON_WRONG_COMPANY. |
| 1480 * - "AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY" : A |
| 1481 * AGENCY_COMPLETED_FIELD_CONNECT_WITH_COMPANY. |
| 1482 * - "AGECNY_FOUND_COMPANY_TO_CONNECT_WITH" : A |
| 1483 * AGECNY_FOUND_COMPANY_TO_CONNECT_WITH. |
| 1484 * - "AGENCY_SUCCESSFULLY_CREATED_COMPANY" : A |
| 1485 * AGENCY_SUCCESSFULLY_CREATED_COMPANY. |
| 1486 * - "AGENCY_ADDED_NEW_COMPANY_LOCATION" : A |
| 1487 * AGENCY_ADDED_NEW_COMPANY_LOCATION. |
| 1488 * - "AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS" : A |
| 1489 * AGENCY_CLICKED_COMMUNITY_JOIN_NOW_LINK_IN_PORTAL_NOTIFICATIONS. |
| 1490 * - "AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS" : A |
| 1491 * AGENCY_CLICKED_CONNECT_TO_COMPANY_LINK_IN_PORTAL_NOTIFICATIONS. |
| 1492 * - "AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" : A |
| 1493 * AGENCY_CLICKED_GET_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS. |
| 1494 * - "AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS" : A |
| 1495 * AGENCY_CLICKED_GET_VIDEO_ADS_CERTIFIED_LINK_IN_PORTAL_NOTIFICATIONS. |
| 1496 * - "AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS" : A |
| 1497 * AGENCY_CLICKED_LINK_TO_MCC_LINK_IN_PORTAL_NOTIFICATIONS. |
| 1498 * - "AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL" : A |
| 1499 * AGENCY_CLICKED_INSIGHT_CONTENT_IN_PORTAL. |
| 1500 * - "AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL" : A |
| 1501 * AGENCY_CLICKED_INSIGHTS_VIEW_NOW_PITCH_DECKS_IN_PORTAL. |
| 1502 * - "AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL" : A |
| 1503 * AGENCY_CLICKED_INSIGHTS_LEFT_NAV_IN_PORTAL. |
| 1504 * - "AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT" : A |
| 1505 * AGENCY_CLICKED_INSIGHTS_UPLOAD_CONTENT. |
| 1506 * - "AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED" : A |
| 1507 * AGENCY_CLICKED_INSIGHTS_VIEWED_DEPRECATED. |
| 1508 * - "AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL" : A |
| 1509 * AGENCY_CLICKED_COMMUNITY_LEFT_NAV_IN_PORTAL. |
| 1510 * - "AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL" : A |
| 1511 * AGENCY_CLICKED_JOIN_COMMUNITY_BUTTON_COMMUNITY_PORTAL. |
| 1512 * - "AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL" : A |
| 1513 * AGENCY_CLICKED_CERTIFICATIONS_LEFT_NAV_IN_PORTAL. |
| 1514 * - "AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL" : A |
| 1515 * AGENCY_CLICKED_CERTIFICATIONS_PRODUCT_LEFT_NAV_IN_PORTAL. |
| 1516 * - "AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL" : A |
| 1517 * AGENCY_CLICKED_PARTNER_STATUS_LEFT_NAV_IN_PORTAL. |
| 1518 * - "AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL" : A |
| 1519 * AGENCY_CLICKED_PARTNER_STATUS_PRODUCT_LEFT_NAV_IN_PORTAL. |
| 1520 * - "AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL" : A |
| 1521 * AGENCY_CLICKED_OFFERS_LEFT_NAV_IN_PORTAL. |
| 1522 * - "AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE" : A |
| 1523 * AGENCY_CLICKED_SEND_BUTTON_ON_OFFERS_PAGE. |
| 1524 * - "AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE" : A |
| 1525 * AGENCY_CLICKED_EXAM_DETAILS_ON_CERT_ADWORDS_PAGE. |
| 1526 * - "AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE" : A |
| 1527 * AGENCY_CLICKED_SEE_EXAMS_CERTIFICATION_MAIN_PAGE. |
| 1528 * - "AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE" : A |
| 1529 * AGENCY_CLICKED_TAKE_EXAM_ON_CERT_EXAM_PAGE. |
| 1530 * - "AGENCY_OPENED_LAST_ADMIN_DIALOG" : A AGENCY_OPENED_LAST_ADMIN_DIALOG. |
| 1531 * - "AGENCY_OPENED_DIALOG_WITH_NO_USERS" : A |
| 1532 * AGENCY_OPENED_DIALOG_WITH_NO_USERS. |
| 1533 * - "AGENCY_PROMOTED_USER_TO_ADMIN" : A AGENCY_PROMOTED_USER_TO_ADMIN. |
| 1534 * - "AGENCY_UNAFFILIATED" : A AGENCY_UNAFFILIATED. |
| 1535 * - "AGENCY_CHANGED_ROLES" : A AGENCY_CHANGED_ROLES. |
| 1536 * - "SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE" : A |
| 1537 * SMB_CLICKED_COMPANY_NAME_LINK_TO_PROFILE. |
| 1538 * - "SMB_VIEWED_ADWORDS_CERTIFICATE" : A SMB_VIEWED_ADWORDS_CERTIFICATE. |
| 1539 * - "SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON" : A |
| 1540 * SMB_CLICKED_ADWORDS_CERTIFICATE_HELP_ICON. |
| 1541 * - "SMB_VIEWED_ANALYTICS_CERTIFICATE" : A SMB_VIEWED_ANALYTICS_CERTIFICATE. |
| 1542 * - "SMB_VIEWED_DOUBLECLICK_CERTIFICATE" : A |
| 1543 * SMB_VIEWED_DOUBLECLICK_CERTIFICATE. |
| 1544 * - "SMB_VIEWED_VIDEO_ADS_CERTIFICATE" : A SMB_VIEWED_VIDEO_ADS_CERTIFICATE. |
| 1545 * - "SMB_VIEWED_SHOPPING_CERTIFICATE" : A SMB_VIEWED_SHOPPING_CERTIFICATE. |
| 1546 * - "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" : A |
| 1547 * SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON. |
| 1548 * - "CLICKED_HELP_AT_BOTTOM" : A CLICKED_HELP_AT_BOTTOM. |
| 1549 * - "CLICKED_HELP_AT_TOP" : A CLICKED_HELP_AT_TOP. |
| 1550 * - "CLIENT_ERROR" : A CLIENT_ERROR. |
| 1551 * - "AGENCY_CLICKED_LEFT_NAV_STORIES" : A AGENCY_CLICKED_LEFT_NAV_STORIES. |
| 1552 * - "CLICKED" : A CLICKED. |
| 1553 * - "SMB_VIEWED_MOBILE_CERTIFICATE" : A SMB_VIEWED_MOBILE_CERTIFICATE. |
| 1554 * - "AGENCY_FAILED_COMPANY_VERIFICATION" : A |
| 1555 * AGENCY_FAILED_COMPANY_VERIFICATION. |
| 1556 * - "VISITED_LANDING" : A VISITED_LANDING. |
| 1557 * - "VISITED_GPS" : A VISITED_GPS. |
| 1558 * - "VISITED_AGENCY_PORTAL" : A VISITED_AGENCY_PORTAL. |
| 1559 * - "CANCELLED_INDIVIDUAL_SIGN_UP" : A CANCELLED_INDIVIDUAL_SIGN_UP. |
| 1560 * - "CANCELLED_COMPANY_SIGN_UP" : A CANCELLED_COMPANY_SIGN_UP. |
| 1561 * - "AGENCY_CLICKED_SIGN_IN_BUTTON_TOP" : A |
| 1562 * AGENCY_CLICKED_SIGN_IN_BUTTON_TOP. |
| 1563 * - "AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE" : A |
| 1564 * AGENCY_CLICKED_SAVE_AND_CONTINUE_AT_BOT_OF_INCOMPLETE_PROFILE. |
| 1565 * - "AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS" : A |
| 1566 * AGENCY_UNSELECTED_OPT_IN_NEWS_INVITATIONS_AND_PROMOS. |
| 1567 * - "AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH" : A |
| 1568 * AGENCY_UNSELECTED_OPT_IN_BETA_TESTS_AND_MKT_RESEARCH. |
| 1569 * - "AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS" : A |
| 1570 * AGENCY_UNSELECTED_OPT_IN_PERFORMANCE_SUGGESTIONS. |
| 1571 * - "AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS" : A |
| 1572 * AGENCY_SELECTED_OPT_OUT_UNSELECT_ALL_EMAIL_NOTIFICATIONS. |
| 1573 * - "AGENCY_LINKED_INDIVIDUAL_MCC" : A AGENCY_LINKED_INDIVIDUAL_MCC. |
| 1574 * - "AGENCY_SUGGESTED_TO_USER" : A AGENCY_SUGGESTED_TO_USER. |
| 1575 * - "AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED" : A |
| 1576 * AGENCY_IGNORED_SUGGESTED_AGENCIES_AND_SEARCHED. |
| 1577 * - "AGENCY_PICKED_SUGGESTED_AGENCY" : A AGENCY_PICKED_SUGGESTED_AGENCY. |
| 1578 * - "AGENCY_SEARCHED_FOR_AGENCIES" : A AGENCY_SEARCHED_FOR_AGENCIES. |
| 1579 * - "AGENCY_PICKED_SEARCHED_AGENCY" : A AGENCY_PICKED_SEARCHED_AGENCY. |
| 1580 * - "AGENCY_DISMISSED_AFFILIATION_WIDGET" : A |
| 1581 * AGENCY_DISMISSED_AFFILIATION_WIDGET. |
| 1582 * - "AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT" : A |
| 1583 * AGENCY_CLICKED_INSIGHTS_DOWNLOAD_CONTENT. |
| 1584 */ |
| 1585 core.String eventAction; |
| 1586 /** |
| 1587 * The category the action belongs to. |
| 1588 * Possible string values are: |
| 1589 * - "EVENT_CATEGORY_UNSPECIFIED" : A EVENT_CATEGORY_UNSPECIFIED. |
| 1590 * - "GOOGLE_PARTNER_SEARCH" : A GOOGLE_PARTNER_SEARCH. |
| 1591 * - "GOOGLE_PARTNER_SIGNUP_FLOW" : A GOOGLE_PARTNER_SIGNUP_FLOW. |
| 1592 * - "GOOGLE_PARTNER_PORTAL" : A GOOGLE_PARTNER_PORTAL. |
| 1593 * - "GOOGLE_PARTNER_PORTAL_MY_PROFILE" : A GOOGLE_PARTNER_PORTAL_MY_PROFILE. |
| 1594 * - "GOOGLE_PARTNER_PORTAL_CERTIFICATIONS" : A |
| 1595 * GOOGLE_PARTNER_PORTAL_CERTIFICATIONS. |
| 1596 * - "GOOGLE_PARTNER_PORTAL_COMMUNITY" : A GOOGLE_PARTNER_PORTAL_COMMUNITY. |
| 1597 * - "GOOGLE_PARTNER_PORTAL_INSIGHTS" : A GOOGLE_PARTNER_PORTAL_INSIGHTS. |
| 1598 * - "GOOGLE_PARTNER_PORTAL_CLIENTS" : A GOOGLE_PARTNER_PORTAL_CLIENTS. |
| 1599 * - "GOOGLE_PARTNER_PUBLIC_USER_PROFILE" : A |
| 1600 * GOOGLE_PARTNER_PUBLIC_USER_PROFILE. |
| 1601 * - "GOOGLE_PARTNER_PANEL" : A GOOGLE_PARTNER_PANEL. |
| 1602 * - "GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG" : A |
| 1603 * GOOGLE_PARTNER_PORTAL_LAST_ADMIN_DIALOG. |
| 1604 * - "GOOGLE_PARTNER_CLIENT" : A GOOGLE_PARTNER_CLIENT. |
| 1605 * - "GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE" : A |
| 1606 * GOOGLE_PARTNER_PORTAL_COMPANY_PROFILE. |
| 1607 * - "EXTERNAL_LINKS" : A EXTERNAL_LINKS. |
| 1608 * - "GOOGLE_PARTNER_LANDING" : A GOOGLE_PARTNER_LANDING. |
| 1609 */ |
| 1610 core.String eventCategory; |
| 1611 /** List of event data for the event. */ |
| 1612 core.List<EventData> eventDatas; |
| 1613 /** |
| 1614 * The scope of the event. |
| 1615 * Possible string values are: |
| 1616 * - "EVENT_SCOPE_UNSPECIFIED" : A EVENT_SCOPE_UNSPECIFIED. |
| 1617 * - "VISITOR" : A VISITOR. |
| 1618 * - "SESSION" : A SESSION. |
| 1619 * - "PAGE" : A PAGE. |
| 1620 */ |
| 1621 core.String eventScope; |
| 1622 /** Advertiser lead information. */ |
| 1623 Lead lead; |
| 1624 /** Current request metadata. */ |
| 1625 RequestMetadata requestMetadata; |
| 1626 /** The URL where the event occurred. */ |
| 1627 core.String url; |
| 1628 |
| 1629 LogUserEventRequest(); |
| 1630 |
| 1631 LogUserEventRequest.fromJson(core.Map _json) { |
| 1632 if (_json.containsKey("eventAction")) { |
| 1633 eventAction = _json["eventAction"]; |
| 1634 } |
| 1635 if (_json.containsKey("eventCategory")) { |
| 1636 eventCategory = _json["eventCategory"]; |
| 1637 } |
| 1638 if (_json.containsKey("eventDatas")) { |
| 1639 eventDatas = _json["eventDatas"].map((value) => new EventData.fromJson(val
ue)).toList(); |
| 1640 } |
| 1641 if (_json.containsKey("eventScope")) { |
| 1642 eventScope = _json["eventScope"]; |
| 1643 } |
| 1644 if (_json.containsKey("lead")) { |
| 1645 lead = new Lead.fromJson(_json["lead"]); |
| 1646 } |
| 1647 if (_json.containsKey("requestMetadata")) { |
| 1648 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
| 1649 } |
| 1650 if (_json.containsKey("url")) { |
| 1651 url = _json["url"]; |
| 1652 } |
| 1653 } |
| 1654 |
| 1655 core.Map toJson() { |
| 1656 var _json = new core.Map(); |
| 1657 if (eventAction != null) { |
| 1658 _json["eventAction"] = eventAction; |
| 1659 } |
| 1660 if (eventCategory != null) { |
| 1661 _json["eventCategory"] = eventCategory; |
| 1662 } |
| 1663 if (eventDatas != null) { |
| 1664 _json["eventDatas"] = eventDatas.map((value) => (value).toJson()).toList()
; |
| 1665 } |
| 1666 if (eventScope != null) { |
| 1667 _json["eventScope"] = eventScope; |
| 1668 } |
| 1669 if (lead != null) { |
| 1670 _json["lead"] = (lead).toJson(); |
| 1671 } |
| 1672 if (requestMetadata != null) { |
| 1673 _json["requestMetadata"] = (requestMetadata).toJson(); |
| 1674 } |
| 1675 if (url != null) { |
| 1676 _json["url"] = url; |
| 1677 } |
| 1678 return _json; |
| 1679 } |
| 1680 } |
| 1681 |
| 1682 /** |
| 1683 * Response message for |
| 1684 * [LogUserEvent][google.partners.v2.ClientAuditor.LogUserEvent]. |
| 1685 */ |
| 1686 class LogUserEventResponse { |
| 1687 /** Current response metadata. */ |
| 1688 ResponseMetadata responseMetadata; |
| 1689 |
| 1690 LogUserEventResponse(); |
| 1691 |
| 1692 LogUserEventResponse.fromJson(core.Map _json) { |
| 1693 if (_json.containsKey("responseMetadata")) { |
| 1694 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 1695 } |
| 1696 } |
| 1697 |
| 1698 core.Map toJson() { |
| 1699 var _json = new core.Map(); |
| 1700 if (responseMetadata != null) { |
| 1701 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 1702 } |
| 1703 return _json; |
| 1704 } |
| 1705 } |
| 1706 |
| 1707 /** Represents an amount of money with its currency type. */ |
| 1708 class Money { |
| 1709 /** The 3-letter currency code defined in ISO 4217. */ |
| 1710 core.String currencyCode; |
| 1711 /** |
| 1712 * Number of nano (10^-9) units of the amount. The value must be between |
| 1713 * -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` |
| 1714 * must be positive or zero. If `units` is zero, `nanos` can be positive, |
| 1715 * zero, or negative. If `units` is negative, `nanos` must be negative or |
| 1716 * zero. For example $-1.75 is represented as `units`=-1 and |
| 1717 * `nanos`=-750,000,000. |
| 1718 */ |
| 1719 core.int nanos; |
| 1720 /** |
| 1721 * The whole units of the amount. For example if `currencyCode` is `"USD"`, |
| 1722 * then 1 unit is one US dollar. |
| 1723 */ |
| 1724 core.String units; |
| 1725 |
| 1726 Money(); |
| 1727 |
| 1728 Money.fromJson(core.Map _json) { |
| 1729 if (_json.containsKey("currencyCode")) { |
| 1730 currencyCode = _json["currencyCode"]; |
| 1731 } |
| 1732 if (_json.containsKey("nanos")) { |
| 1733 nanos = _json["nanos"]; |
| 1734 } |
| 1735 if (_json.containsKey("units")) { |
| 1736 units = _json["units"]; |
| 1737 } |
| 1738 } |
| 1739 |
| 1740 core.Map toJson() { |
| 1741 var _json = new core.Map(); |
| 1742 if (currencyCode != null) { |
| 1743 _json["currencyCode"] = currencyCode; |
| 1744 } |
| 1745 if (nanos != null) { |
| 1746 _json["nanos"] = nanos; |
| 1747 } |
| 1748 if (units != null) { |
| 1749 _json["units"] = units; |
| 1750 } |
| 1751 return _json; |
| 1752 } |
| 1753 } |
| 1754 |
| 1755 /** Basic information from a public profile. */ |
| 1756 class PublicProfile { |
| 1757 /** The URL to the main display image of the public profile. */ |
| 1758 core.String displayImageUrl; |
| 1759 /** The display name of the public profile. */ |
| 1760 core.String displayName; |
| 1761 /** |
| 1762 * The ID which can be used to retrieve more details about the public profile. |
| 1763 */ |
| 1764 core.String id; |
| 1765 /** The URL of the public profile. */ |
| 1766 core.String url; |
| 1767 |
| 1768 PublicProfile(); |
| 1769 |
| 1770 PublicProfile.fromJson(core.Map _json) { |
| 1771 if (_json.containsKey("displayImageUrl")) { |
| 1772 displayImageUrl = _json["displayImageUrl"]; |
| 1773 } |
| 1774 if (_json.containsKey("displayName")) { |
| 1775 displayName = _json["displayName"]; |
| 1776 } |
| 1777 if (_json.containsKey("id")) { |
| 1778 id = _json["id"]; |
| 1779 } |
| 1780 if (_json.containsKey("url")) { |
| 1781 url = _json["url"]; |
| 1782 } |
| 1783 } |
| 1784 |
| 1785 core.Map toJson() { |
| 1786 var _json = new core.Map(); |
| 1787 if (displayImageUrl != null) { |
| 1788 _json["displayImageUrl"] = displayImageUrl; |
| 1789 } |
| 1790 if (displayName != null) { |
| 1791 _json["displayName"] = displayName; |
| 1792 } |
| 1793 if (id != null) { |
| 1794 _json["id"] = id; |
| 1795 } |
| 1796 if (url != null) { |
| 1797 _json["url"] = url; |
| 1798 } |
| 1799 return _json; |
| 1800 } |
| 1801 } |
| 1802 |
| 1803 /** Information related to ranking of results. */ |
| 1804 class Rank { |
| 1805 /** |
| 1806 * The type of rank. |
| 1807 * Possible string values are: |
| 1808 * - "RANK_TYPE_UNSPECIFIED" : A RANK_TYPE_UNSPECIFIED. |
| 1809 * - "RT_FINAL_SCORE" : A RT_FINAL_SCORE. |
| 1810 */ |
| 1811 core.String type; |
| 1812 /** The numerical value of the rank. */ |
| 1813 core.double value; |
| 1814 |
| 1815 Rank(); |
| 1816 |
| 1817 Rank.fromJson(core.Map _json) { |
| 1818 if (_json.containsKey("type")) { |
| 1819 type = _json["type"]; |
| 1820 } |
| 1821 if (_json.containsKey("value")) { |
| 1822 value = _json["value"]; |
| 1823 } |
| 1824 } |
| 1825 |
| 1826 core.Map toJson() { |
| 1827 var _json = new core.Map(); |
| 1828 if (type != null) { |
| 1829 _json["type"] = type; |
| 1830 } |
| 1831 if (value != null) { |
| 1832 _json["value"] = value; |
| 1833 } |
| 1834 return _json; |
| 1835 } |
| 1836 } |
| 1837 |
| 1838 /** reCaptcha challenge info. */ |
| 1839 class RecaptchaChallenge { |
| 1840 /** The ID of the reCaptcha challenge. */ |
| 1841 core.String id; |
| 1842 /** The response to the reCaptcha challenge. */ |
| 1843 core.String response; |
| 1844 |
| 1845 RecaptchaChallenge(); |
| 1846 |
| 1847 RecaptchaChallenge.fromJson(core.Map _json) { |
| 1848 if (_json.containsKey("id")) { |
| 1849 id = _json["id"]; |
| 1850 } |
| 1851 if (_json.containsKey("response")) { |
| 1852 response = _json["response"]; |
| 1853 } |
| 1854 } |
| 1855 |
| 1856 core.Map toJson() { |
| 1857 var _json = new core.Map(); |
| 1858 if (id != null) { |
| 1859 _json["id"] = id; |
| 1860 } |
| 1861 if (response != null) { |
| 1862 _json["response"] = response; |
| 1863 } |
| 1864 return _json; |
| 1865 } |
| 1866 } |
| 1867 |
| 1868 /** Common data that is in each API request. */ |
| 1869 class RequestMetadata { |
| 1870 /** Experiment IDs the current request belongs to. */ |
| 1871 core.List<core.String> experimentIds; |
| 1872 /** Locale to use for the current request. */ |
| 1873 core.String locale; |
| 1874 /** Google Partners session ID. */ |
| 1875 core.String partnersSessionId; |
| 1876 |
| 1877 RequestMetadata(); |
| 1878 |
| 1879 RequestMetadata.fromJson(core.Map _json) { |
| 1880 if (_json.containsKey("experimentIds")) { |
| 1881 experimentIds = _json["experimentIds"]; |
| 1882 } |
| 1883 if (_json.containsKey("locale")) { |
| 1884 locale = _json["locale"]; |
| 1885 } |
| 1886 if (_json.containsKey("partnersSessionId")) { |
| 1887 partnersSessionId = _json["partnersSessionId"]; |
| 1888 } |
| 1889 } |
| 1890 |
| 1891 core.Map toJson() { |
| 1892 var _json = new core.Map(); |
| 1893 if (experimentIds != null) { |
| 1894 _json["experimentIds"] = experimentIds; |
| 1895 } |
| 1896 if (locale != null) { |
| 1897 _json["locale"] = locale; |
| 1898 } |
| 1899 if (partnersSessionId != null) { |
| 1900 _json["partnersSessionId"] = partnersSessionId; |
| 1901 } |
| 1902 return _json; |
| 1903 } |
| 1904 } |
| 1905 |
| 1906 /** Common data that is in each API response. */ |
| 1907 class ResponseMetadata { |
| 1908 /** Debug information about this request. */ |
| 1909 DebugInfo debugInfo; |
| 1910 |
| 1911 ResponseMetadata(); |
| 1912 |
| 1913 ResponseMetadata.fromJson(core.Map _json) { |
| 1914 if (_json.containsKey("debugInfo")) { |
| 1915 debugInfo = new DebugInfo.fromJson(_json["debugInfo"]); |
| 1916 } |
| 1917 } |
| 1918 |
| 1919 core.Map toJson() { |
| 1920 var _json = new core.Map(); |
| 1921 if (debugInfo != null) { |
| 1922 _json["debugInfo"] = (debugInfo).toJson(); |
| 1923 } |
| 1924 return _json; |
| 1925 } |
| 1926 } |
OLD | NEW |