OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.people.v1; | 3 library googleapis.people.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client people/v1'; | 15 const core.String USER_AGENT = 'dart-api-client people/v1'; |
16 | 16 |
17 /** | 17 /** Provides access to information about profiles and contacts. */ |
18 * The Google People API service gives access to information about profiles and | |
19 * contacts. | |
20 */ | |
21 class PeopleApi { | 18 class PeopleApi { |
22 /** Manage your contacts */ | 19 /** Manage your contacts */ |
23 static const ContactsScope = "https://www.googleapis.com/auth/contacts"; | 20 static const ContactsScope = "https://www.googleapis.com/auth/contacts"; |
24 | 21 |
25 /** View your contacts */ | 22 /** View your contacts */ |
26 static const ContactsReadonlyScope = "https://www.googleapis.com/auth/contacts
.readonly"; | 23 static const ContactsReadonlyScope = "https://www.googleapis.com/auth/contacts
.readonly"; |
27 | 24 |
28 /** Know your basic profile info and list of people in your circles. */ | 25 /** Know the list of people in your circles, your age range, and language */ |
29 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; | 26 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
30 | 27 |
31 /** View your street addresses */ | 28 /** View your street addresses */ |
32 static const UserAddressesReadScope = "https://www.googleapis.com/auth/user.ad
dresses.read"; | 29 static const UserAddressesReadScope = "https://www.googleapis.com/auth/user.ad
dresses.read"; |
33 | 30 |
34 /** View your complete date of birth */ | 31 /** View your complete date of birth */ |
35 static const UserBirthdayReadScope = "https://www.googleapis.com/auth/user.bir
thday.read"; | 32 static const UserBirthdayReadScope = "https://www.googleapis.com/auth/user.bir
thday.read"; |
36 | 33 |
37 /** View your email addresses */ | 34 /** View your email addresses */ |
38 static const UserEmailsReadScope = "https://www.googleapis.com/auth/user.email
s.read"; | 35 static const UserEmailsReadScope = "https://www.googleapis.com/auth/user.email
s.read"; |
(...skipping 13 matching lines...) Loading... |
52 PeopleResourceApi get people => new PeopleResourceApi(_requester); | 49 PeopleResourceApi get people => new PeopleResourceApi(_requester); |
53 | 50 |
54 PeopleApi(http.Client client, {core.String rootUrl: "https://people.googleapis
.com/", core.String servicePath: ""}) : | 51 PeopleApi(http.Client client, {core.String rootUrl: "https://people.googleapis
.com/", core.String servicePath: ""}) : |
55 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 52 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
56 } | 53 } |
57 | 54 |
58 | 55 |
59 class PeopleResourceApi { | 56 class PeopleResourceApi { |
60 final commons.ApiRequester _requester; | 57 final commons.ApiRequester _requester; |
61 | 58 |
62 PeopleConnectionsResourceApi get connections => new PeopleConnectionsResourceA
pi(_requester); | 59 PeopleMeResourceApi get me => new PeopleMeResourceApi(_requester); |
63 | 60 |
64 PeopleResourceApi(commons.ApiRequester client) : | 61 PeopleResourceApi(commons.ApiRequester client) : |
65 _requester = client; | 62 _requester = client; |
66 | 63 |
67 /** | 64 /** |
68 * Provides information about a person resource for a resource name. Use | 65 * Provides information about a person resource for a resource name. Use |
69 * `people/me` to indicate the authenticated user. | 66 * `people/me` to indicate the authenticated user. |
70 * | 67 * |
71 * Request parameters: | 68 * Request parameters: |
72 * | 69 * |
73 * [resourceName] - The resource name of the person to provide information | 70 * [resourceName] - The resource name of the person to provide information |
74 * about. - To get information about the authenticated user, specify | 71 * about. |
75 * `people/me`. - To get information about any user, specify the resource name | 72 * |
76 * that identifies the user, such as the resource names returned by | 73 * - To get information about the authenticated user, specify `people/me`. |
| 74 * - To get information about any user, specify the resource name that |
| 75 * identifies the user, such as the resource names returned by |
77 * [`people.connections.list`](/people/api/rest/v1/people.connections/list). | 76 * [`people.connections.list`](/people/api/rest/v1/people.connections/list). |
78 * Value must have pattern "^people/[^/]*$". | 77 * Value must have pattern "^people/[^/]+$". |
79 * | 78 * |
80 * [requestMask_includeField] - Comma-separated list of fields to be included | 79 * [requestMask_includeField] - Comma-separated list of fields to be included |
81 * in the response. Omitting this field will include all fields. Each path | 80 * in the response. Omitting |
82 * should start with `person.`: for example, `person.names` or | 81 * this field will include all fields except for connections.list requests, |
| 82 * which have a default mask that includes common fields like metadata, name, |
| 83 * photo, and profile url. |
| 84 * Each path should start with `person.`: for example, `person.names` or |
83 * `person.photos`. | 85 * `person.photos`. |
84 * | 86 * |
85 * Completes with a [Person]. | 87 * Completes with a [Person]. |
86 * | 88 * |
87 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 89 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
88 * error. | 90 * error. |
89 * | 91 * |
90 * If the used [http.Client] completes with an error when making a REST call, | 92 * If the used [http.Client] completes with an error when making a REST call, |
91 * this method will complete with the same error. | 93 * this method will complete with the same error. |
92 */ | 94 */ |
(...skipping 24 matching lines...) Loading... |
117 return _response.then((data) => new Person.fromJson(data)); | 119 return _response.then((data) => new Person.fromJson(data)); |
118 } | 120 } |
119 | 121 |
120 /** | 122 /** |
121 * Provides information about a list of specific people by specifying a list | 123 * Provides information about a list of specific people by specifying a list |
122 * of requested resource names. Use `people/me` to indicate the authenticated | 124 * of requested resource names. Use `people/me` to indicate the authenticated |
123 * user. | 125 * user. |
124 * | 126 * |
125 * Request parameters: | 127 * Request parameters: |
126 * | 128 * |
| 129 * [requestMask_includeField] - Comma-separated list of fields to be included |
| 130 * in the response. Omitting |
| 131 * this field will include all fields except for connections.list requests, |
| 132 * which have a default mask that includes common fields like metadata, name, |
| 133 * photo, and profile url. |
| 134 * Each path should start with `person.`: for example, `person.names` or |
| 135 * `person.photos`. |
| 136 * |
127 * [resourceNames] - The resource name, such as one returned by | 137 * [resourceNames] - The resource name, such as one returned by |
128 * [`people.connections.list`](/people/api/rest/v1/people.connections/list), | 138 * [`people.connections.list`](/people/api/rest/v1/people.connections/list), |
129 * of one of the people to provide information about. You can include this | 139 * of one of the people to provide information about. You can include this |
130 * parameter up to 50 times in one request. | 140 * parameter up to 50 times in one request. |
131 * | 141 * |
132 * [requestMask_includeField] - Comma-separated list of fields to be included | |
133 * in the response. Omitting this field will include all fields. Each path | |
134 * should start with `person.`: for example, `person.names` or | |
135 * `person.photos`. | |
136 * | |
137 * Completes with a [GetPeopleResponse]. | 142 * Completes with a [GetPeopleResponse]. |
138 * | 143 * |
139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 144 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
140 * error. | 145 * error. |
141 * | 146 * |
142 * If the used [http.Client] completes with an error when making a REST call, | 147 * If the used [http.Client] completes with an error when making a REST call, |
143 * this method will complete with the same error. | 148 * this method will complete with the same error. |
144 */ | 149 */ |
145 async.Future<GetPeopleResponse> getBatchGet({core.List<core.String> resourceNa
mes, core.String requestMask_includeField}) { | 150 async.Future<GetPeopleResponse> getBatchGet({core.String requestMask_includeFi
eld, core.List<core.String> resourceNames}) { |
146 var _url = null; | 151 var _url = null; |
147 var _queryParams = new core.Map(); | 152 var _queryParams = new core.Map(); |
148 var _uploadMedia = null; | 153 var _uploadMedia = null; |
149 var _uploadOptions = null; | 154 var _uploadOptions = null; |
150 var _downloadOptions = commons.DownloadOptions.Metadata; | 155 var _downloadOptions = commons.DownloadOptions.Metadata; |
151 var _body = null; | 156 var _body = null; |
152 | 157 |
| 158 if (requestMask_includeField != null) { |
| 159 _queryParams["requestMask.includeField"] = [requestMask_includeField]; |
| 160 } |
153 if (resourceNames != null) { | 161 if (resourceNames != null) { |
154 _queryParams["resourceNames"] = resourceNames; | 162 _queryParams["resourceNames"] = resourceNames; |
155 } | 163 } |
156 if (requestMask_includeField != null) { | |
157 _queryParams["requestMask.includeField"] = [requestMask_includeField]; | |
158 } | |
159 | 164 |
160 _url = 'v1/people:batchGet'; | 165 _url = 'v1/people:batchGet'; |
161 | 166 |
162 var _response = _requester.request(_url, | 167 var _response = _requester.request(_url, |
163 "GET", | 168 "GET", |
164 body: _body, | 169 body: _body, |
165 queryParams: _queryParams, | 170 queryParams: _queryParams, |
166 uploadOptions: _uploadOptions, | 171 uploadOptions: _uploadOptions, |
167 uploadMedia: _uploadMedia, | 172 uploadMedia: _uploadMedia, |
168 downloadOptions: _downloadOptions); | 173 downloadOptions: _downloadOptions); |
169 return _response.then((data) => new GetPeopleResponse.fromJson(data)); | 174 return _response.then((data) => new GetPeopleResponse.fromJson(data)); |
170 } | 175 } |
171 | 176 |
172 } | 177 } |
173 | 178 |
174 | 179 |
175 class PeopleConnectionsResourceApi { | 180 class PeopleMeResourceApi { |
176 final commons.ApiRequester _requester; | 181 final commons.ApiRequester _requester; |
177 | 182 |
178 PeopleConnectionsResourceApi(commons.ApiRequester client) : | 183 PeopleMeConnectionsResourceApi get connections => new PeopleMeConnectionsResou
rceApi(_requester); |
| 184 |
| 185 PeopleMeResourceApi(commons.ApiRequester client) : |
| 186 _requester = client; |
| 187 } |
| 188 |
| 189 |
| 190 class PeopleMeConnectionsResourceApi { |
| 191 final commons.ApiRequester _requester; |
| 192 |
| 193 PeopleMeConnectionsResourceApi(commons.ApiRequester client) : |
179 _requester = client; | 194 _requester = client; |
180 | 195 |
181 /** | 196 /** |
182 * Provides a list of the authenticated user's contacts merged with any linked | 197 * Provides a list of the authenticated user's contacts merged with any |
183 * profiles. | 198 * linked profiles. |
184 * | 199 * |
185 * Request parameters: | 200 * Request parameters: |
186 * | 201 * |
187 * [resourceName] - The resource name to return connections for. Only | |
188 * `people/me` is valid. | |
189 * Value must have pattern "^people/[^/]*$". | |
190 * | |
191 * [pageToken] - The token of the page to be returned. | |
192 * | |
193 * [pageSize] - The number of connections to include in the response. Valid | |
194 * values are between 1 and 500, inclusive. Defaults to 100. | |
195 * | |
196 * [sortOrder] - The order in which the connections should be sorted. Defaults | 202 * [sortOrder] - The order in which the connections should be sorted. Defaults |
197 * to `LAST_MODIFIED_ASCENDING`. | 203 * to |
| 204 * `LAST_MODIFIED_ASCENDING`. |
198 * Possible string values are: | 205 * Possible string values are: |
199 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. | 206 * - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. |
200 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. | 207 * - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. |
201 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. | 208 * - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. |
202 * | 209 * |
203 * [syncToken] - A sync token, returned by a previous call to | 210 * [syncToken] - A sync token, returned by a previous call to |
204 * `people.connections.list`. Only resources changed since the sync token was | 211 * `people.connections.list`. |
205 * created are returned. | 212 * Only resources changed since the sync token was created will be returned. |
| 213 * |
| 214 * [pageToken] - The token of the page to be returned. |
| 215 * |
| 216 * [pageSize] - The number of connections to include in the response. Valid |
| 217 * values are |
| 218 * between 1 and 500, inclusive. Defaults to 100. |
206 * | 219 * |
207 * [requestMask_includeField] - Comma-separated list of fields to be included | 220 * [requestMask_includeField] - Comma-separated list of fields to be included |
208 * in the response. Omitting this field will include all fields. Each path | 221 * in the response. Omitting |
209 * should start with `person.`: for example, `person.names` or | 222 * this field will include all fields except for connections.list requests, |
| 223 * which have a default mask that includes common fields like metadata, name, |
| 224 * photo, and profile url. |
| 225 * Each path should start with `person.`: for example, `person.names` or |
210 * `person.photos`. | 226 * `person.photos`. |
211 * | 227 * |
212 * Completes with a [ListConnectionsResponse]. | 228 * Completes with a [ListConnectionsResponse]. |
213 * | 229 * |
214 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 230 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
215 * error. | 231 * error. |
216 * | 232 * |
217 * If the used [http.Client] completes with an error when making a REST call, | 233 * If the used [http.Client] completes with an error when making a REST call, |
218 * this method will complete with the same error. | 234 * this method will complete with the same error. |
219 */ | 235 */ |
220 async.Future<ListConnectionsResponse> list(core.String resourceName, {core.Str
ing pageToken, core.int pageSize, core.String sortOrder, core.String syncToken,
core.String requestMask_includeField}) { | 236 async.Future<ListConnectionsResponse> list({core.String sortOrder, core.String
syncToken, core.String pageToken, core.int pageSize, core.String requestMask_in
cludeField}) { |
221 var _url = null; | 237 var _url = null; |
222 var _queryParams = new core.Map(); | 238 var _queryParams = new core.Map(); |
223 var _uploadMedia = null; | 239 var _uploadMedia = null; |
224 var _uploadOptions = null; | 240 var _uploadOptions = null; |
225 var _downloadOptions = commons.DownloadOptions.Metadata; | 241 var _downloadOptions = commons.DownloadOptions.Metadata; |
226 var _body = null; | 242 var _body = null; |
227 | 243 |
228 if (resourceName == null) { | 244 if (sortOrder != null) { |
229 throw new core.ArgumentError("Parameter resourceName is required."); | 245 _queryParams["sortOrder"] = [sortOrder]; |
| 246 } |
| 247 if (syncToken != null) { |
| 248 _queryParams["syncToken"] = [syncToken]; |
230 } | 249 } |
231 if (pageToken != null) { | 250 if (pageToken != null) { |
232 _queryParams["pageToken"] = [pageToken]; | 251 _queryParams["pageToken"] = [pageToken]; |
233 } | 252 } |
234 if (pageSize != null) { | 253 if (pageSize != null) { |
235 _queryParams["pageSize"] = ["${pageSize}"]; | 254 _queryParams["pageSize"] = ["${pageSize}"]; |
236 } | 255 } |
237 if (sortOrder != null) { | |
238 _queryParams["sortOrder"] = [sortOrder]; | |
239 } | |
240 if (syncToken != null) { | |
241 _queryParams["syncToken"] = [syncToken]; | |
242 } | |
243 if (requestMask_includeField != null) { | 256 if (requestMask_includeField != null) { |
244 _queryParams["requestMask.includeField"] = [requestMask_includeField]; | 257 _queryParams["requestMask.includeField"] = [requestMask_includeField]; |
245 } | 258 } |
246 | 259 |
247 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/co
nnections'; | 260 _url = 'v1/people/me/connections'; |
248 | 261 |
249 var _response = _requester.request(_url, | 262 var _response = _requester.request(_url, |
250 "GET", | 263 "GET", |
251 body: _body, | 264 body: _body, |
252 queryParams: _queryParams, | 265 queryParams: _queryParams, |
253 uploadOptions: _uploadOptions, | 266 uploadOptions: _uploadOptions, |
254 uploadMedia: _uploadMedia, | 267 uploadMedia: _uploadMedia, |
255 downloadOptions: _downloadOptions); | 268 downloadOptions: _downloadOptions); |
256 return _response.then((data) => new ListConnectionsResponse.fromJson(data)); | 269 return _response.then((data) => new ListConnectionsResponse.fromJson(data)); |
257 } | 270 } |
(...skipping 19 matching lines...) Loading... |
277 /** | 290 /** |
278 * The extended address of the address; for example, the apartment number. | 291 * The extended address of the address; for example, the apartment number. |
279 */ | 292 */ |
280 core.String extendedAddress; | 293 core.String extendedAddress; |
281 /** | 294 /** |
282 * The read-only type of the address translated and formatted in the viewer's | 295 * The read-only type of the address translated and formatted in the viewer's |
283 * account locale or the `Accept-Language` HTTP header locale. | 296 * account locale or the `Accept-Language` HTTP header locale. |
284 */ | 297 */ |
285 core.String formattedType; | 298 core.String formattedType; |
286 /** | 299 /** |
287 * The read-only value of the address formatted in the viewer's account locale | 300 * The unstructured value of the address. If this is not set by the user it |
288 * or the `Accept-Language` HTTP header locale. | 301 * will be automatically constructed from structured values. |
289 */ | 302 */ |
290 core.String formattedValue; | 303 core.String formattedValue; |
291 /** Metadata about the address. */ | 304 /** Metadata about the address. */ |
292 FieldMetadata metadata; | 305 FieldMetadata metadata; |
293 /** The P.O. box of the address. */ | 306 /** The P.O. box of the address. */ |
294 core.String poBox; | 307 core.String poBox; |
295 /** The postal code of the address. */ | 308 /** The postal code of the address. */ |
296 core.String postalCode; | 309 core.String postalCode; |
297 /** The region of the address; for example, the state or province. */ | 310 /** The region of the address; for example, the state or province. */ |
298 core.String region; | 311 core.String region; |
299 /** The street address. */ | 312 /** The street address. */ |
300 core.String streetAddress; | 313 core.String streetAddress; |
301 /** | 314 /** |
302 * The type of the address. The type can be custom or predefined. Possible | 315 * The type of the address. The type can be custom or predefined. |
303 * values include, but are not limited to, the following: * `home` * `work` * | 316 * Possible values include, but are not limited to, the following: |
304 * `other` | 317 * |
| 318 * * `home` |
| 319 * * `work` |
| 320 * * `other` |
305 */ | 321 */ |
306 core.String type; | 322 core.String type; |
307 | 323 |
308 Address(); | 324 Address(); |
309 | 325 |
310 Address.fromJson(core.Map _json) { | 326 Address.fromJson(core.Map _json) { |
311 if (_json.containsKey("city")) { | 327 if (_json.containsKey("city")) { |
312 city = _json["city"]; | 328 city = _json["city"]; |
313 } | 329 } |
314 if (_json.containsKey("country")) { | 330 if (_json.containsKey("country")) { |
(...skipping 68 matching lines...) Loading... |
383 } | 399 } |
384 if (type != null) { | 400 if (type != null) { |
385 _json["type"] = type; | 401 _json["type"] = type; |
386 } | 402 } |
387 return _json; | 403 return _json; |
388 } | 404 } |
389 } | 405 } |
390 | 406 |
391 /** A person's short biography. */ | 407 /** A person's short biography. */ |
392 class Biography { | 408 class Biography { |
| 409 /** |
| 410 * The content type of the biography. |
| 411 * Possible string values are: |
| 412 * - "CONTENT_TYPE_UNSPECIFIED" : Unspecified. |
| 413 * - "TEXT_PLAIN" : Plain text. |
| 414 * - "TEXT_HTML" : HTML text. |
| 415 */ |
| 416 core.String contentType; |
393 /** Metadata about the biography. */ | 417 /** Metadata about the biography. */ |
394 FieldMetadata metadata; | 418 FieldMetadata metadata; |
395 /** The short biography. */ | 419 /** The short biography. */ |
396 core.String value; | 420 core.String value; |
397 | 421 |
398 Biography(); | 422 Biography(); |
399 | 423 |
400 Biography.fromJson(core.Map _json) { | 424 Biography.fromJson(core.Map _json) { |
| 425 if (_json.containsKey("contentType")) { |
| 426 contentType = _json["contentType"]; |
| 427 } |
401 if (_json.containsKey("metadata")) { | 428 if (_json.containsKey("metadata")) { |
402 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 429 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
403 } | 430 } |
404 if (_json.containsKey("value")) { | 431 if (_json.containsKey("value")) { |
405 value = _json["value"]; | 432 value = _json["value"]; |
406 } | 433 } |
407 } | 434 } |
408 | 435 |
409 core.Map toJson() { | 436 core.Map toJson() { |
410 var _json = new core.Map(); | 437 var _json = new core.Map(); |
| 438 if (contentType != null) { |
| 439 _json["contentType"] = contentType; |
| 440 } |
411 if (metadata != null) { | 441 if (metadata != null) { |
412 _json["metadata"] = (metadata).toJson(); | 442 _json["metadata"] = (metadata).toJson(); |
413 } | 443 } |
414 if (value != null) { | 444 if (value != null) { |
415 _json["value"] = value; | 445 _json["value"] = value; |
416 } | 446 } |
417 return _json; | 447 return _json; |
418 } | 448 } |
419 } | 449 } |
420 | 450 |
421 /** | 451 /** |
422 * A person's birthday. At least one of the `date` and `text` fields are | 452 * A person's birthday. At least one of the `date` and `text` fields are |
423 * specified. The `date` and `text` fields typically represent the same date, | 453 * specified. The `date` and `text` fields typically represent the same |
424 * but are not guaranteed to. | 454 * date, but are not guaranteed to. |
425 */ | 455 */ |
426 class Birthday { | 456 class Birthday { |
427 /** The date of the birthday. */ | 457 /** The date of the birthday. */ |
428 Date date; | 458 Date date; |
429 /** Metadata about the birthday. */ | 459 /** Metadata about the birthday. */ |
430 FieldMetadata metadata; | 460 FieldMetadata metadata; |
431 /** A free-form string representing the user's birthday. */ | 461 /** A free-form string representing the user's birthday. */ |
432 core.String text; | 462 core.String text; |
433 | 463 |
434 Birthday(); | 464 Birthday(); |
(...skipping 51 matching lines...) Loading... |
486 if (value != null) { | 516 if (value != null) { |
487 _json["value"] = value; | 517 _json["value"] = value; |
488 } | 518 } |
489 return _json; | 519 return _json; |
490 } | 520 } |
491 } | 521 } |
492 | 522 |
493 /** A Google contact group membership. */ | 523 /** A Google contact group membership. */ |
494 class ContactGroupMembership { | 524 class ContactGroupMembership { |
495 /** | 525 /** |
496 * The contact group ID for the contact group membership. The contact group ID | 526 * The contact group ID for the contact group membership. The contact group |
497 * can be custom or predefined. Possible values include, but are not limited | 527 * ID can be custom or predefined. Possible values include, but are not |
498 * to, the following: * `myContacts` * `starred` * A numerical ID for | 528 * limited to, the following: |
499 * user-created groups. | 529 * |
| 530 * * `myContacts` |
| 531 * * `starred` |
| 532 * * A numerical ID for user-created groups. |
500 */ | 533 */ |
501 core.String contactGroupId; | 534 core.String contactGroupId; |
502 | 535 |
503 ContactGroupMembership(); | 536 ContactGroupMembership(); |
504 | 537 |
505 ContactGroupMembership.fromJson(core.Map _json) { | 538 ContactGroupMembership.fromJson(core.Map _json) { |
506 if (_json.containsKey("contactGroupId")) { | 539 if (_json.containsKey("contactGroupId")) { |
507 contactGroupId = _json["contactGroupId"]; | 540 contactGroupId = _json["contactGroupId"]; |
508 } | 541 } |
509 } | 542 } |
510 | 543 |
511 core.Map toJson() { | 544 core.Map toJson() { |
512 var _json = new core.Map(); | 545 var _json = new core.Map(); |
513 if (contactGroupId != null) { | 546 if (contactGroupId != null) { |
514 _json["contactGroupId"] = contactGroupId; | 547 _json["contactGroupId"] = contactGroupId; |
515 } | 548 } |
516 return _json; | 549 return _json; |
517 } | 550 } |
518 } | 551 } |
519 | 552 |
520 /** | 553 /** |
521 * A person's cover photo. A large image shown on the person's profile page that | 554 * A person's read-only cover photo. A large image shown on the person's |
522 * represents who they are or what they care about. | 555 * profile page that represents who they are or what they care about. |
523 */ | 556 */ |
524 class CoverPhoto { | 557 class CoverPhoto { |
525 /** | 558 /** |
526 * True if the cover photo is the default cover photo; false if the cover | 559 * True if the cover photo is the default cover photo; |
527 * photo is a user-provided cover photo. | 560 * false if the cover photo is a user-provided cover photo. |
528 */ | 561 */ |
529 core.bool default_; | 562 core.bool default_; |
530 /** Metadata about the cover photo. */ | 563 /** Metadata about the cover photo. */ |
531 FieldMetadata metadata; | 564 FieldMetadata metadata; |
532 /** The URL of the cover photo. */ | 565 /** The URL of the cover photo. */ |
533 core.String url; | 566 core.String url; |
534 | 567 |
535 CoverPhoto(); | 568 CoverPhoto(); |
536 | 569 |
537 CoverPhoto.fromJson(core.Map _json) { | 570 CoverPhoto.fromJson(core.Map _json) { |
(...skipping 17 matching lines...) Loading... |
555 _json["metadata"] = (metadata).toJson(); | 588 _json["metadata"] = (metadata).toJson(); |
556 } | 589 } |
557 if (url != null) { | 590 if (url != null) { |
558 _json["url"] = url; | 591 _json["url"] = url; |
559 } | 592 } |
560 return _json; | 593 return _json; |
561 } | 594 } |
562 } | 595 } |
563 | 596 |
564 /** | 597 /** |
565 * Represents a whole calendar date, for example a date of birth. The time of | 598 * Represents a whole calendar date, for example a date of birth. The time |
566 * day and time zone are either specified elsewhere or are not significant. The | 599 * of day and time zone are either specified elsewhere or are not |
567 * date is relative to the [Proleptic Gregorian | 600 * significant. The date is relative to the |
568 * Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The | 601 * [Proleptic Gregorian |
569 * day may be 0 to represent a year and month where the day is not significant. | 602 * Calendar](https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). |
570 * The year may be 0 to represent a month and day independent of year; for | 603 * The day may be 0 to represent a year and month where the day is not |
571 * example, anniversary date. | 604 * significant. The year may be 0 to represent a month and day independent |
| 605 * of year; for example, anniversary date. |
572 */ | 606 */ |
573 class Date { | 607 class Date { |
574 /** | 608 /** |
575 * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 | 609 * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 |
576 * if specifying a year/month where the day is not significant. | 610 * if specifying a year/month where the day is not significant. |
577 */ | 611 */ |
578 core.int day; | 612 core.int day; |
579 /** Month of year. Must be from 1 to 12. */ | 613 /** Month of year. Must be from 1 to 12. */ |
580 core.int month; | 614 core.int month; |
581 /** | 615 /** |
582 * Year of date. Must be from 1 to 9999, or 0 if specifying a date without a | 616 * Year of date. Must be from 1 to 9999, or 0 if specifying a date without |
583 * year. | 617 * a year. |
584 */ | 618 */ |
585 core.int year; | 619 core.int year; |
586 | 620 |
587 Date(); | 621 Date(); |
588 | 622 |
589 Date.fromJson(core.Map _json) { | 623 Date.fromJson(core.Map _json) { |
590 if (_json.containsKey("day")) { | 624 if (_json.containsKey("day")) { |
591 day = _json["day"]; | 625 day = _json["day"]; |
592 } | 626 } |
593 if (_json.containsKey("month")) { | 627 if (_json.containsKey("month")) { |
(...skipping 36 matching lines...) Loading... |
630 var _json = new core.Map(); | 664 var _json = new core.Map(); |
631 if (inViewerDomain != null) { | 665 if (inViewerDomain != null) { |
632 _json["inViewerDomain"] = inViewerDomain; | 666 _json["inViewerDomain"] = inViewerDomain; |
633 } | 667 } |
634 return _json; | 668 return _json; |
635 } | 669 } |
636 } | 670 } |
637 | 671 |
638 /** A person's email address. */ | 672 /** A person's email address. */ |
639 class EmailAddress { | 673 class EmailAddress { |
| 674 /** The display name of the email. */ |
| 675 core.String displayName; |
640 /** | 676 /** |
641 * The read-only type of the email address translated and formatted in the | 677 * The read-only type of the email address translated and formatted in the |
642 * viewer's account locale or the `Accept-Language` HTTP header locale. | 678 * viewer's account locale or the `Accept-Language` HTTP header locale. |
643 */ | 679 */ |
644 core.String formattedType; | 680 core.String formattedType; |
645 /** Metadata about the email address. */ | 681 /** Metadata about the email address. */ |
646 FieldMetadata metadata; | 682 FieldMetadata metadata; |
647 /** | 683 /** |
648 * The type of the email address. The type can be custom or predefined. | 684 * The type of the email address. The type can be custom or predefined. |
649 * Possible values include, but are not limited to, the following: * `home` * | 685 * Possible values include, but are not limited to, the following: |
650 * `work` * `other` | 686 * |
| 687 * * `home` |
| 688 * * `work` |
| 689 * * `other` |
651 */ | 690 */ |
652 core.String type; | 691 core.String type; |
653 /** The email address. */ | 692 /** The email address. */ |
654 core.String value; | 693 core.String value; |
655 | 694 |
656 EmailAddress(); | 695 EmailAddress(); |
657 | 696 |
658 EmailAddress.fromJson(core.Map _json) { | 697 EmailAddress.fromJson(core.Map _json) { |
| 698 if (_json.containsKey("displayName")) { |
| 699 displayName = _json["displayName"]; |
| 700 } |
659 if (_json.containsKey("formattedType")) { | 701 if (_json.containsKey("formattedType")) { |
660 formattedType = _json["formattedType"]; | 702 formattedType = _json["formattedType"]; |
661 } | 703 } |
662 if (_json.containsKey("metadata")) { | 704 if (_json.containsKey("metadata")) { |
663 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 705 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
664 } | 706 } |
665 if (_json.containsKey("type")) { | 707 if (_json.containsKey("type")) { |
666 type = _json["type"]; | 708 type = _json["type"]; |
667 } | 709 } |
668 if (_json.containsKey("value")) { | 710 if (_json.containsKey("value")) { |
669 value = _json["value"]; | 711 value = _json["value"]; |
670 } | 712 } |
671 } | 713 } |
672 | 714 |
673 core.Map toJson() { | 715 core.Map toJson() { |
674 var _json = new core.Map(); | 716 var _json = new core.Map(); |
| 717 if (displayName != null) { |
| 718 _json["displayName"] = displayName; |
| 719 } |
675 if (formattedType != null) { | 720 if (formattedType != null) { |
676 _json["formattedType"] = formattedType; | 721 _json["formattedType"] = formattedType; |
677 } | 722 } |
678 if (metadata != null) { | 723 if (metadata != null) { |
679 _json["metadata"] = (metadata).toJson(); | 724 _json["metadata"] = (metadata).toJson(); |
680 } | 725 } |
681 if (type != null) { | 726 if (type != null) { |
682 _json["type"] = type; | 727 _json["type"] = type; |
683 } | 728 } |
684 if (value != null) { | 729 if (value != null) { |
685 _json["value"] = value; | 730 _json["value"] = value; |
686 } | 731 } |
687 return _json; | 732 return _json; |
688 } | 733 } |
689 } | 734 } |
690 | 735 |
691 /** An event related to the person. */ | 736 /** An event related to the person. */ |
692 class Event { | 737 class Event { |
693 /** The date of the event. */ | 738 /** The date of the event. */ |
694 Date date; | 739 Date date; |
695 /** | 740 /** |
696 * The read-only type of the event translated and formatted in the viewer's | 741 * The read-only type of the event translated and formatted in the |
697 * account locale or the `Accept-Language` HTTP header locale. | 742 * viewer's account locale or the `Accept-Language` HTTP header locale. |
698 */ | 743 */ |
699 core.String formattedType; | 744 core.String formattedType; |
700 /** Metadata about the event. */ | 745 /** Metadata about the event. */ |
701 FieldMetadata metadata; | 746 FieldMetadata metadata; |
702 /** | 747 /** |
703 * The type of the event. The type can be custom or predefined. Possible | 748 * The type of the event. The type can be custom or predefined. |
704 * values include, but are not limited to, the following: * `anniversary` * | 749 * Possible values include, but are not limited to, the following: |
705 * `other` | 750 * |
| 751 * * `anniversary` |
| 752 * * `other` |
706 */ | 753 */ |
707 core.String type; | 754 core.String type; |
708 | 755 |
709 Event(); | 756 Event(); |
710 | 757 |
711 Event.fromJson(core.Map _json) { | 758 Event.fromJson(core.Map _json) { |
712 if (_json.containsKey("date")) { | 759 if (_json.containsKey("date")) { |
713 date = new Date.fromJson(_json["date"]); | 760 date = new Date.fromJson(_json["date"]); |
714 } | 761 } |
715 if (_json.containsKey("formattedType")) { | 762 if (_json.containsKey("formattedType")) { |
(...skipping 28 matching lines...) Loading... |
744 /** Metadata about a field. */ | 791 /** Metadata about a field. */ |
745 class FieldMetadata { | 792 class FieldMetadata { |
746 /** | 793 /** |
747 * True if the field is the primary field; false if the field is a secondary | 794 * True if the field is the primary field; false if the field is a secondary |
748 * field. | 795 * field. |
749 */ | 796 */ |
750 core.bool primary; | 797 core.bool primary; |
751 /** The source of the field. */ | 798 /** The source of the field. */ |
752 Source source; | 799 Source source; |
753 /** | 800 /** |
754 * True if the field is verified; false if the field is unverified. A verified | 801 * True if the field is verified; false if the field is unverified. A |
755 * field is typically a name, email address, phone number, or website that has | 802 * verified field is typically a name, email address, phone number, or |
756 * been confirmed to be owned by the person. | 803 * website that has been confirmed to be owned by the person. |
757 */ | 804 */ |
758 core.bool verified; | 805 core.bool verified; |
759 | 806 |
760 FieldMetadata(); | 807 FieldMetadata(); |
761 | 808 |
762 FieldMetadata.fromJson(core.Map _json) { | 809 FieldMetadata.fromJson(core.Map _json) { |
763 if (_json.containsKey("primary")) { | 810 if (_json.containsKey("primary")) { |
764 primary = _json["primary"]; | 811 primary = _json["primary"]; |
765 } | 812 } |
766 if (_json.containsKey("source")) { | 813 if (_json.containsKey("source")) { |
(...skipping 22 matching lines...) Loading... |
789 /** A person's gender. */ | 836 /** A person's gender. */ |
790 class Gender { | 837 class Gender { |
791 /** | 838 /** |
792 * The read-only value of the gender translated and formatted in the viewer's | 839 * The read-only value of the gender translated and formatted in the viewer's |
793 * account locale or the `Accept-Language` HTTP header locale. | 840 * account locale or the `Accept-Language` HTTP header locale. |
794 */ | 841 */ |
795 core.String formattedValue; | 842 core.String formattedValue; |
796 /** Metadata about the gender. */ | 843 /** Metadata about the gender. */ |
797 FieldMetadata metadata; | 844 FieldMetadata metadata; |
798 /** | 845 /** |
799 * The gender for the person. The gender can be custom or predefined. Possible | 846 * The gender for the person. The gender can be custom or predefined. |
800 * values include, but are not limited to, the following: * `male` * `female` | 847 * Possible values include, but are not limited to, the |
801 * * `other` * `unknown` | 848 * following: |
| 849 * |
| 850 * * `male` |
| 851 * * `female` |
| 852 * * `other` |
| 853 * * `unknown` |
802 */ | 854 */ |
803 core.String value; | 855 core.String value; |
804 | 856 |
805 Gender(); | 857 Gender(); |
806 | 858 |
807 Gender.fromJson(core.Map _json) { | 859 Gender.fromJson(core.Map _json) { |
808 if (_json.containsKey("formattedValue")) { | 860 if (_json.containsKey("formattedValue")) { |
809 formattedValue = _json["formattedValue"]; | 861 formattedValue = _json["formattedValue"]; |
810 } | 862 } |
811 if (_json.containsKey("metadata")) { | 863 if (_json.containsKey("metadata")) { |
(...skipping 49 matching lines...) Loading... |
861 core.String formattedProtocol; | 913 core.String formattedProtocol; |
862 /** | 914 /** |
863 * The read-only type of the IM client translated and formatted in the | 915 * The read-only type of the IM client translated and formatted in the |
864 * viewer's account locale or the `Accept-Language` HTTP header locale. | 916 * viewer's account locale or the `Accept-Language` HTTP header locale. |
865 */ | 917 */ |
866 core.String formattedType; | 918 core.String formattedType; |
867 /** Metadata about the IM client. */ | 919 /** Metadata about the IM client. */ |
868 FieldMetadata metadata; | 920 FieldMetadata metadata; |
869 /** | 921 /** |
870 * The protocol of the IM client. The protocol can be custom or predefined. | 922 * The protocol of the IM client. The protocol can be custom or predefined. |
871 * Possible values include, but are not limited to, the following: * `aim` * | 923 * Possible values include, but are not limited to, the following: |
872 * `msn` * `yahoo` * `skype` * `qq` * `googleTalk` * `icq` * `jabber` * | 924 * |
873 * `netMeeting` | 925 * * `aim` |
| 926 * * `msn` |
| 927 * * `yahoo` |
| 928 * * `skype` |
| 929 * * `qq` |
| 930 * * `googleTalk` |
| 931 * * `icq` |
| 932 * * `jabber` |
| 933 * * `netMeeting` |
874 */ | 934 */ |
875 core.String protocol; | 935 core.String protocol; |
876 /** | 936 /** |
877 * The type of the IM client. The type can be custom or predefined. Possible | 937 * The type of the IM client. The type can be custom or predefined. |
878 * values include, but are not limited to, the following: * `home` * `work` * | 938 * Possible values include, but are not limited to, the following: |
879 * `other` | 939 * |
| 940 * * `home` |
| 941 * * `work` |
| 942 * * `other` |
880 */ | 943 */ |
881 core.String type; | 944 core.String type; |
882 /** The user name used in the IM client. */ | 945 /** The user name used in the IM client. */ |
883 core.String username; | 946 core.String username; |
884 | 947 |
885 ImClient(); | 948 ImClient(); |
886 | 949 |
887 ImClient.fromJson(core.Map _json) { | 950 ImClient.fromJson(core.Map _json) { |
888 if (_json.containsKey("formattedProtocol")) { | 951 if (_json.containsKey("formattedProtocol")) { |
889 formattedProtocol = _json["formattedProtocol"]; | 952 formattedProtocol = _json["formattedProtocol"]; |
(...skipping 104 matching lines...) Loading... |
994 } | 1057 } |
995 return _json; | 1058 return _json; |
996 } | 1059 } |
997 } | 1060 } |
998 | 1061 |
999 /** A person's locale preference. */ | 1062 /** A person's locale preference. */ |
1000 class Locale { | 1063 class Locale { |
1001 /** Metadata about the locale. */ | 1064 /** Metadata about the locale. */ |
1002 FieldMetadata metadata; | 1065 FieldMetadata metadata; |
1003 /** | 1066 /** |
1004 * The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) language | 1067 * The well-formed [IETF BCP 47](https://tools.ietf.org/html/bcp47) |
1005 * tag representing the locale. | 1068 * language tag representing the locale. |
1006 */ | 1069 */ |
1007 core.String value; | 1070 core.String value; |
1008 | 1071 |
1009 Locale(); | 1072 Locale(); |
1010 | 1073 |
1011 Locale.fromJson(core.Map _json) { | 1074 Locale.fromJson(core.Map _json) { |
1012 if (_json.containsKey("metadata")) { | 1075 if (_json.containsKey("metadata")) { |
1013 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1076 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1014 } | 1077 } |
1015 if (_json.containsKey("value")) { | 1078 if (_json.containsKey("value")) { |
1016 value = _json["value"]; | 1079 value = _json["value"]; |
1017 } | 1080 } |
1018 } | 1081 } |
1019 | 1082 |
1020 core.Map toJson() { | 1083 core.Map toJson() { |
1021 var _json = new core.Map(); | 1084 var _json = new core.Map(); |
1022 if (metadata != null) { | 1085 if (metadata != null) { |
1023 _json["metadata"] = (metadata).toJson(); | 1086 _json["metadata"] = (metadata).toJson(); |
1024 } | 1087 } |
1025 if (value != null) { | 1088 if (value != null) { |
1026 _json["value"] = value; | 1089 _json["value"] = value; |
1027 } | 1090 } |
1028 return _json; | 1091 return _json; |
1029 } | 1092 } |
1030 } | 1093 } |
1031 | 1094 |
1032 /** A person's membership in a group. */ | 1095 /** A person's read-only membership in a group. */ |
1033 class Membership { | 1096 class Membership { |
1034 /** The contact group membership. */ | 1097 /** The contact group membership. */ |
1035 ContactGroupMembership contactGroupMembership; | 1098 ContactGroupMembership contactGroupMembership; |
1036 /** The domain membership. */ | 1099 /** The domain membership. */ |
1037 DomainMembership domainMembership; | 1100 DomainMembership domainMembership; |
1038 /** Metadata about the membership. */ | 1101 /** Metadata about the membership. */ |
1039 FieldMetadata metadata; | 1102 FieldMetadata metadata; |
1040 | 1103 |
1041 Membership(); | 1104 Membership(); |
1042 | 1105 |
(...skipping 20 matching lines...) Loading... |
1063 if (metadata != null) { | 1126 if (metadata != null) { |
1064 _json["metadata"] = (metadata).toJson(); | 1127 _json["metadata"] = (metadata).toJson(); |
1065 } | 1128 } |
1066 return _json; | 1129 return _json; |
1067 } | 1130 } |
1068 } | 1131 } |
1069 | 1132 |
1070 /** A person's name. If the name is a mononym, the family name is empty. */ | 1133 /** A person's name. If the name is a mononym, the family name is empty. */ |
1071 class Name { | 1134 class Name { |
1072 /** | 1135 /** |
1073 * The display name formatted according to the locale specified by the | 1136 * The read-only display name formatted according to the locale specified by |
1074 * viewer's account or the Accept-Language HTTP header. | 1137 * the viewer's account or the <code>Accept-Language</code> HTTP header. |
1075 */ | 1138 */ |
1076 core.String displayName; | 1139 core.String displayName; |
| 1140 /** |
| 1141 * The read-only display name with the last name first formatted according to |
| 1142 * the locale specified by the viewer's account or the |
| 1143 * <code>Accept-Language</code> HTTP header. |
| 1144 */ |
| 1145 core.String displayNameLastFirst; |
1077 /** The family name. */ | 1146 /** The family name. */ |
1078 core.String familyName; | 1147 core.String familyName; |
1079 /** The given name. */ | 1148 /** The given name. */ |
1080 core.String givenName; | 1149 core.String givenName; |
1081 /** The honorific prefixes, such as `Mrs.` or `Dr.` */ | 1150 /** The honorific prefixes, such as `Mrs.` or `Dr.` */ |
1082 core.String honorificPrefix; | 1151 core.String honorificPrefix; |
1083 /** The honorific suffixes, such as `Jr.` */ | 1152 /** The honorific suffixes, such as `Jr.` */ |
1084 core.String honorificSuffix; | 1153 core.String honorificSuffix; |
1085 /** Metadata about the name. */ | 1154 /** Metadata about the name. */ |
1086 FieldMetadata metadata; | 1155 FieldMetadata metadata; |
1087 /** The middle name(s). */ | 1156 /** The middle name(s). */ |
1088 core.String middleName; | 1157 core.String middleName; |
1089 /** The family name spelled as it sounds. */ | 1158 /** The family name spelled as it sounds. */ |
1090 core.String phoneticFamilyName; | 1159 core.String phoneticFamilyName; |
| 1160 /** The full name spelled as it sounds. */ |
| 1161 core.String phoneticFullName; |
1091 /** The given name spelled as it sounds. */ | 1162 /** The given name spelled as it sounds. */ |
1092 core.String phoneticGivenName; | 1163 core.String phoneticGivenName; |
1093 /** The honorific prefixes spelled as they sound. */ | 1164 /** The honorific prefixes spelled as they sound. */ |
1094 core.String phoneticHonorificPrefix; | 1165 core.String phoneticHonorificPrefix; |
1095 /** The honorific suffixes spelled as they sound. */ | 1166 /** The honorific suffixes spelled as they sound. */ |
1096 core.String phoneticHonorificSuffix; | 1167 core.String phoneticHonorificSuffix; |
1097 /** The middle name(s) spelled as they sound. */ | 1168 /** The middle name(s) spelled as they sound. */ |
1098 core.String phoneticMiddleName; | 1169 core.String phoneticMiddleName; |
1099 | 1170 |
1100 Name(); | 1171 Name(); |
1101 | 1172 |
1102 Name.fromJson(core.Map _json) { | 1173 Name.fromJson(core.Map _json) { |
1103 if (_json.containsKey("displayName")) { | 1174 if (_json.containsKey("displayName")) { |
1104 displayName = _json["displayName"]; | 1175 displayName = _json["displayName"]; |
1105 } | 1176 } |
| 1177 if (_json.containsKey("displayNameLastFirst")) { |
| 1178 displayNameLastFirst = _json["displayNameLastFirst"]; |
| 1179 } |
1106 if (_json.containsKey("familyName")) { | 1180 if (_json.containsKey("familyName")) { |
1107 familyName = _json["familyName"]; | 1181 familyName = _json["familyName"]; |
1108 } | 1182 } |
1109 if (_json.containsKey("givenName")) { | 1183 if (_json.containsKey("givenName")) { |
1110 givenName = _json["givenName"]; | 1184 givenName = _json["givenName"]; |
1111 } | 1185 } |
1112 if (_json.containsKey("honorificPrefix")) { | 1186 if (_json.containsKey("honorificPrefix")) { |
1113 honorificPrefix = _json["honorificPrefix"]; | 1187 honorificPrefix = _json["honorificPrefix"]; |
1114 } | 1188 } |
1115 if (_json.containsKey("honorificSuffix")) { | 1189 if (_json.containsKey("honorificSuffix")) { |
1116 honorificSuffix = _json["honorificSuffix"]; | 1190 honorificSuffix = _json["honorificSuffix"]; |
1117 } | 1191 } |
1118 if (_json.containsKey("metadata")) { | 1192 if (_json.containsKey("metadata")) { |
1119 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1193 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
1120 } | 1194 } |
1121 if (_json.containsKey("middleName")) { | 1195 if (_json.containsKey("middleName")) { |
1122 middleName = _json["middleName"]; | 1196 middleName = _json["middleName"]; |
1123 } | 1197 } |
1124 if (_json.containsKey("phoneticFamilyName")) { | 1198 if (_json.containsKey("phoneticFamilyName")) { |
1125 phoneticFamilyName = _json["phoneticFamilyName"]; | 1199 phoneticFamilyName = _json["phoneticFamilyName"]; |
1126 } | 1200 } |
| 1201 if (_json.containsKey("phoneticFullName")) { |
| 1202 phoneticFullName = _json["phoneticFullName"]; |
| 1203 } |
1127 if (_json.containsKey("phoneticGivenName")) { | 1204 if (_json.containsKey("phoneticGivenName")) { |
1128 phoneticGivenName = _json["phoneticGivenName"]; | 1205 phoneticGivenName = _json["phoneticGivenName"]; |
1129 } | 1206 } |
1130 if (_json.containsKey("phoneticHonorificPrefix")) { | 1207 if (_json.containsKey("phoneticHonorificPrefix")) { |
1131 phoneticHonorificPrefix = _json["phoneticHonorificPrefix"]; | 1208 phoneticHonorificPrefix = _json["phoneticHonorificPrefix"]; |
1132 } | 1209 } |
1133 if (_json.containsKey("phoneticHonorificSuffix")) { | 1210 if (_json.containsKey("phoneticHonorificSuffix")) { |
1134 phoneticHonorificSuffix = _json["phoneticHonorificSuffix"]; | 1211 phoneticHonorificSuffix = _json["phoneticHonorificSuffix"]; |
1135 } | 1212 } |
1136 if (_json.containsKey("phoneticMiddleName")) { | 1213 if (_json.containsKey("phoneticMiddleName")) { |
1137 phoneticMiddleName = _json["phoneticMiddleName"]; | 1214 phoneticMiddleName = _json["phoneticMiddleName"]; |
1138 } | 1215 } |
1139 } | 1216 } |
1140 | 1217 |
1141 core.Map toJson() { | 1218 core.Map toJson() { |
1142 var _json = new core.Map(); | 1219 var _json = new core.Map(); |
1143 if (displayName != null) { | 1220 if (displayName != null) { |
1144 _json["displayName"] = displayName; | 1221 _json["displayName"] = displayName; |
1145 } | 1222 } |
| 1223 if (displayNameLastFirst != null) { |
| 1224 _json["displayNameLastFirst"] = displayNameLastFirst; |
| 1225 } |
1146 if (familyName != null) { | 1226 if (familyName != null) { |
1147 _json["familyName"] = familyName; | 1227 _json["familyName"] = familyName; |
1148 } | 1228 } |
1149 if (givenName != null) { | 1229 if (givenName != null) { |
1150 _json["givenName"] = givenName; | 1230 _json["givenName"] = givenName; |
1151 } | 1231 } |
1152 if (honorificPrefix != null) { | 1232 if (honorificPrefix != null) { |
1153 _json["honorificPrefix"] = honorificPrefix; | 1233 _json["honorificPrefix"] = honorificPrefix; |
1154 } | 1234 } |
1155 if (honorificSuffix != null) { | 1235 if (honorificSuffix != null) { |
1156 _json["honorificSuffix"] = honorificSuffix; | 1236 _json["honorificSuffix"] = honorificSuffix; |
1157 } | 1237 } |
1158 if (metadata != null) { | 1238 if (metadata != null) { |
1159 _json["metadata"] = (metadata).toJson(); | 1239 _json["metadata"] = (metadata).toJson(); |
1160 } | 1240 } |
1161 if (middleName != null) { | 1241 if (middleName != null) { |
1162 _json["middleName"] = middleName; | 1242 _json["middleName"] = middleName; |
1163 } | 1243 } |
1164 if (phoneticFamilyName != null) { | 1244 if (phoneticFamilyName != null) { |
1165 _json["phoneticFamilyName"] = phoneticFamilyName; | 1245 _json["phoneticFamilyName"] = phoneticFamilyName; |
1166 } | 1246 } |
| 1247 if (phoneticFullName != null) { |
| 1248 _json["phoneticFullName"] = phoneticFullName; |
| 1249 } |
1167 if (phoneticGivenName != null) { | 1250 if (phoneticGivenName != null) { |
1168 _json["phoneticGivenName"] = phoneticGivenName; | 1251 _json["phoneticGivenName"] = phoneticGivenName; |
1169 } | 1252 } |
1170 if (phoneticHonorificPrefix != null) { | 1253 if (phoneticHonorificPrefix != null) { |
1171 _json["phoneticHonorificPrefix"] = phoneticHonorificPrefix; | 1254 _json["phoneticHonorificPrefix"] = phoneticHonorificPrefix; |
1172 } | 1255 } |
1173 if (phoneticHonorificSuffix != null) { | 1256 if (phoneticHonorificSuffix != null) { |
1174 _json["phoneticHonorificSuffix"] = phoneticHonorificSuffix; | 1257 _json["phoneticHonorificSuffix"] = phoneticHonorificSuffix; |
1175 } | 1258 } |
1176 if (phoneticMiddleName != null) { | 1259 if (phoneticMiddleName != null) { |
1177 _json["phoneticMiddleName"] = phoneticMiddleName; | 1260 _json["phoneticMiddleName"] = phoneticMiddleName; |
1178 } | 1261 } |
1179 return _json; | 1262 return _json; |
1180 } | 1263 } |
1181 } | 1264 } |
1182 | 1265 |
1183 /** A person's nickname. */ | 1266 /** A person's nickname. */ |
1184 class Nickname { | 1267 class Nickname { |
1185 /** Metadata about the nickname. */ | 1268 /** Metadata about the nickname. */ |
1186 FieldMetadata metadata; | 1269 FieldMetadata metadata; |
1187 /** | 1270 /** |
1188 * The type of the nickname. | 1271 * The type of the nickname. |
1189 * Possible string values are: | 1272 * Possible string values are: |
1190 * - "DEFAULT" : A DEFAULT. | 1273 * - "DEFAULT" : Generic nickname. |
1191 * - "MAIDEN_NAME" : A MAIDEN_NAME. | 1274 * - "MAIDEN_NAME" : Maiden name or birth family name. Used when the person's |
1192 * - "INITIALS" : A INITIALS. | 1275 * family name has |
1193 * - "GPLUS" : A GPLUS. | 1276 * changed as a result of marriage. |
1194 * - "OTHER_NAME" : A OTHER_NAME. | 1277 * - "INITIALS" : Initials. |
| 1278 * - "GPLUS" : Google+ profile nickname. |
| 1279 * - "OTHER_NAME" : A professional affiliation or other name; for example, |
| 1280 * `Dr. Smith.` |
1195 */ | 1281 */ |
1196 core.String type; | 1282 core.String type; |
1197 /** The nickname. */ | 1283 /** The nickname. */ |
1198 core.String value; | 1284 core.String value; |
1199 | 1285 |
1200 Nickname(); | 1286 Nickname(); |
1201 | 1287 |
1202 Nickname.fromJson(core.Map _json) { | 1288 Nickname.fromJson(core.Map _json) { |
1203 if (_json.containsKey("metadata")) { | 1289 if (_json.containsKey("metadata")) { |
1204 metadata = new FieldMetadata.fromJson(_json["metadata"]); | 1290 metadata = new FieldMetadata.fromJson(_json["metadata"]); |
(...skipping 50 matching lines...) Loading... |
1255 return _json; | 1341 return _json; |
1256 } | 1342 } |
1257 } | 1343 } |
1258 | 1344 |
1259 /** | 1345 /** |
1260 * A person's past or current organization. Overlapping date ranges are | 1346 * A person's past or current organization. Overlapping date ranges are |
1261 * permitted. | 1347 * permitted. |
1262 */ | 1348 */ |
1263 class Organization { | 1349 class Organization { |
1264 /** | 1350 /** |
1265 * True if the organization is the person's current organization; false if the | 1351 * True if the organization is the person's current organization; |
1266 * organization is a past organization. | 1352 * false if the organization is a past organization. |
1267 */ | 1353 */ |
1268 core.bool current; | 1354 core.bool current; |
1269 /** The person's department at the organization. */ | 1355 /** The person's department at the organization. */ |
1270 core.String department; | 1356 core.String department; |
1271 /** | 1357 /** |
1272 * The domain name associated with the organization; for example, | 1358 * The domain name associated with the organization; for example, |
1273 * `google.com`. | 1359 * `google.com`. |
1274 */ | 1360 */ |
1275 core.String domain; | 1361 core.String domain; |
1276 /** The end date when the person left the organization. */ | 1362 /** The end date when the person left the organization. */ |
(...skipping 17 matching lines...) Loading... |
1294 Date startDate; | 1380 Date startDate; |
1295 /** | 1381 /** |
1296 * The symbol associated with the organization; for example, a stock ticker | 1382 * The symbol associated with the organization; for example, a stock ticker |
1297 * symbol, abbreviation, or acronym. | 1383 * symbol, abbreviation, or acronym. |
1298 */ | 1384 */ |
1299 core.String symbol; | 1385 core.String symbol; |
1300 /** The person's job title at the organization. */ | 1386 /** The person's job title at the organization. */ |
1301 core.String title; | 1387 core.String title; |
1302 /** | 1388 /** |
1303 * The type of the organization. The type can be custom or predefined. | 1389 * The type of the organization. The type can be custom or predefined. |
1304 * Possible values include, but are not limited to, the following: * `work` * | 1390 * Possible values include, but are not limited to, the following: |
1305 * `school` | 1391 * |
| 1392 * * `work` |
| 1393 * * `school` |
1306 */ | 1394 */ |
1307 core.String type; | 1395 core.String type; |
1308 | 1396 |
1309 Organization(); | 1397 Organization(); |
1310 | 1398 |
1311 Organization.fromJson(core.Map _json) { | 1399 Organization.fromJson(core.Map _json) { |
1312 if (_json.containsKey("current")) { | 1400 if (_json.containsKey("current")) { |
1313 current = _json["current"]; | 1401 current = _json["current"]; |
1314 } | 1402 } |
1315 if (_json.containsKey("department")) { | 1403 if (_json.containsKey("department")) { |
(...skipping 81 matching lines...) Loading... |
1397 if (type != null) { | 1485 if (type != null) { |
1398 _json["type"] = type; | 1486 _json["type"] = type; |
1399 } | 1487 } |
1400 return _json; | 1488 return _json; |
1401 } | 1489 } |
1402 } | 1490 } |
1403 | 1491 |
1404 /** | 1492 /** |
1405 * Information about a person merged from various data sources such as the | 1493 * Information about a person merged from various data sources such as the |
1406 * authenticated user's contacts and profile data. Fields other than IDs, | 1494 * authenticated user's contacts and profile data. Fields other than IDs, |
1407 * metadata, and group memberships are user-edited. Most fields can have | 1495 * metadata, and group memberships are user-edited. |
1408 * multiple items. The items in a field have no guaranteed order, but each | 1496 * |
1409 * non-empty field is guaranteed to have exactly one field with | 1497 * Most fields can have multiple items. The items in a field have no guaranteed |
| 1498 * order, but each non-empty field is guaranteed to have exactly one field with |
1410 * `metadata.primary` set to true. | 1499 * `metadata.primary` set to true. |
1411 */ | 1500 */ |
1412 class Person { | 1501 class Person { |
1413 /** The person's street addresses. */ | 1502 /** The person's street addresses. */ |
1414 core.List<Address> addresses; | 1503 core.List<Address> addresses; |
1415 /** | 1504 /** |
1416 * The person's age range. | 1505 * The person's age range. |
1417 * Possible string values are: | 1506 * Possible string values are: |
1418 * - "AGE_RANGE_UNSPECIFIED" : A AGE_RANGE_UNSPECIFIED. | 1507 * - "AGE_RANGE_UNSPECIFIED" : Unspecified. |
1419 * - "LESS_THAN_EIGHTEEN" : A LESS_THAN_EIGHTEEN. | 1508 * - "LESS_THAN_EIGHTEEN" : Younger than eighteen. |
1420 * - "EIGHTEEN_TO_TWENTY" : A EIGHTEEN_TO_TWENTY. | 1509 * - "EIGHTEEN_TO_TWENTY" : Between eighteen and twenty. |
1421 * - "TWENTY_ONE_OR_OLDER" : A TWENTY_ONE_OR_OLDER. | 1510 * - "TWENTY_ONE_OR_OLDER" : Twenty-one and older. |
1422 */ | 1511 */ |
1423 core.String ageRange; | 1512 core.String ageRange; |
1424 /** The person's biographies. */ | 1513 /** The person's biographies. */ |
1425 core.List<Biography> biographies; | 1514 core.List<Biography> biographies; |
1426 /** The person's birthdays. */ | 1515 /** The person's birthdays. */ |
1427 core.List<Birthday> birthdays; | 1516 core.List<Birthday> birthdays; |
1428 /** The person's bragging rights. */ | 1517 /** The person's bragging rights. */ |
1429 core.List<BraggingRights> braggingRights; | 1518 core.List<BraggingRights> braggingRights; |
1430 /** The person's cover photos. */ | 1519 /** The person's cover photos. */ |
1431 core.List<CoverPhoto> coverPhotos; | 1520 core.List<CoverPhoto> coverPhotos; |
(...skipping 228 matching lines...) Loading... |
1660 if (taglines != null) { | 1749 if (taglines != null) { |
1661 _json["taglines"] = taglines.map((value) => (value).toJson()).toList(); | 1750 _json["taglines"] = taglines.map((value) => (value).toJson()).toList(); |
1662 } | 1751 } |
1663 if (urls != null) { | 1752 if (urls != null) { |
1664 _json["urls"] = urls.map((value) => (value).toJson()).toList(); | 1753 _json["urls"] = urls.map((value) => (value).toJson()).toList(); |
1665 } | 1754 } |
1666 return _json; | 1755 return _json; |
1667 } | 1756 } |
1668 } | 1757 } |
1669 | 1758 |
1670 /** Metadata about a person. */ | 1759 /** The read-only metadata about a person. */ |
1671 class PersonMetadata { | 1760 class PersonMetadata { |
1672 /** | 1761 /** |
1673 * True if the person resource has been deleted. Populated only for | 1762 * True if the person resource has been deleted. Populated only for |
1674 * [`connections.list`](/people/api/rest/v1/people.connections/list) requests | 1763 * [`connections.list`](/people/api/rest/v1/people.connections/list) requests |
1675 * that include a sync token. | 1764 * that include a sync token. |
1676 */ | 1765 */ |
1677 core.bool deleted; | 1766 core.bool deleted; |
| 1767 /** Resource names of people linked to this resource. */ |
| 1768 core.List<core.String> linkedPeopleResourceNames; |
1678 /** | 1769 /** |
1679 * The type of the person object. | 1770 * The type of the person object. |
1680 * Possible string values are: | 1771 * Possible string values are: |
1681 * - "OBJECT_TYPE_UNSPECIFIED" : A OBJECT_TYPE_UNSPECIFIED. | 1772 * - "OBJECT_TYPE_UNSPECIFIED" : Unspecified. |
1682 * - "PERSON" : A PERSON. | 1773 * - "PERSON" : Person. |
1683 * - "PAGE" : A PAGE. | 1774 * - "PAGE" : [Google+ Page.](http://www.google.com/+/brands/) |
1684 */ | 1775 */ |
1685 core.String objectType; | 1776 core.String objectType; |
1686 /** | 1777 /** |
1687 * Any former resource names this person has had. Populated only for | 1778 * Any former resource names this person has had. Populated only for |
1688 * [`connections.list`](/people/api/rest/v1/people.connections/list) requests | 1779 * [`connections.list`](/people/api/rest/v1/people.connections/list) requests |
1689 * that include a sync token. The resource name may change when adding or | 1780 * that include a sync token. |
1690 * removing fields that link a contact and profile such as a verified email, | 1781 * |
1691 * verified phone number, or profile URL. | 1782 * The resource name may change when adding or removing fields that link a |
| 1783 * contact and profile such as a verified email, verified phone number, or |
| 1784 * profile URL. |
1692 */ | 1785 */ |
1693 core.List<core.String> previousResourceNames; | 1786 core.List<core.String> previousResourceNames; |
1694 /** The sources of data for the person. */ | 1787 /** The sources of data for the person. */ |
1695 core.List<Source> sources; | 1788 core.List<Source> sources; |
1696 | 1789 |
1697 PersonMetadata(); | 1790 PersonMetadata(); |
1698 | 1791 |
1699 PersonMetadata.fromJson(core.Map _json) { | 1792 PersonMetadata.fromJson(core.Map _json) { |
1700 if (_json.containsKey("deleted")) { | 1793 if (_json.containsKey("deleted")) { |
1701 deleted = _json["deleted"]; | 1794 deleted = _json["deleted"]; |
1702 } | 1795 } |
| 1796 if (_json.containsKey("linkedPeopleResourceNames")) { |
| 1797 linkedPeopleResourceNames = _json["linkedPeopleResourceNames"]; |
| 1798 } |
1703 if (_json.containsKey("objectType")) { | 1799 if (_json.containsKey("objectType")) { |
1704 objectType = _json["objectType"]; | 1800 objectType = _json["objectType"]; |
1705 } | 1801 } |
1706 if (_json.containsKey("previousResourceNames")) { | 1802 if (_json.containsKey("previousResourceNames")) { |
1707 previousResourceNames = _json["previousResourceNames"]; | 1803 previousResourceNames = _json["previousResourceNames"]; |
1708 } | 1804 } |
1709 if (_json.containsKey("sources")) { | 1805 if (_json.containsKey("sources")) { |
1710 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi
st(); | 1806 sources = _json["sources"].map((value) => new Source.fromJson(value)).toLi
st(); |
1711 } | 1807 } |
1712 } | 1808 } |
1713 | 1809 |
1714 core.Map toJson() { | 1810 core.Map toJson() { |
1715 var _json = new core.Map(); | 1811 var _json = new core.Map(); |
1716 if (deleted != null) { | 1812 if (deleted != null) { |
1717 _json["deleted"] = deleted; | 1813 _json["deleted"] = deleted; |
1718 } | 1814 } |
| 1815 if (linkedPeopleResourceNames != null) { |
| 1816 _json["linkedPeopleResourceNames"] = linkedPeopleResourceNames; |
| 1817 } |
1719 if (objectType != null) { | 1818 if (objectType != null) { |
1720 _json["objectType"] = objectType; | 1819 _json["objectType"] = objectType; |
1721 } | 1820 } |
1722 if (previousResourceNames != null) { | 1821 if (previousResourceNames != null) { |
1723 _json["previousResourceNames"] = previousResourceNames; | 1822 _json["previousResourceNames"] = previousResourceNames; |
1724 } | 1823 } |
1725 if (sources != null) { | 1824 if (sources != null) { |
1726 _json["sources"] = sources.map((value) => (value).toJson()).toList(); | 1825 _json["sources"] = sources.map((value) => (value).toJson()).toList(); |
1727 } | 1826 } |
1728 return _json; | 1827 return _json; |
1729 } | 1828 } |
1730 } | 1829 } |
1731 | 1830 |
1732 /** The response for a single person */ | 1831 /** The response for a single person */ |
1733 class PersonResponse { | 1832 class PersonResponse { |
1734 /** | 1833 /** |
1735 * [HTTP 1.1 status | 1834 * [HTTP 1.1 status |
1736 * code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). | 1835 * code](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). |
1737 */ | 1836 */ |
1738 core.int httpStatusCode; | 1837 core.int httpStatusCode; |
1739 /** The person. */ | 1838 /** The person. */ |
1740 Person person; | 1839 Person person; |
1741 /** | 1840 /** |
1742 * The original requested resource name. May be different than the resource | 1841 * The original requested resource name. May be different than the resource |
1743 * name on the returned person. The resource name can change when adding or | 1842 * name on the returned person. |
1744 * removing fields that link a contact and profile such as a verified email, | 1843 * |
1745 * verified phone number, or a profile URL. | 1844 * The resource name can change when adding or removing fields that link a |
| 1845 * contact and profile such as a verified email, verified phone number, or a |
| 1846 * profile URL. |
1746 */ | 1847 */ |
1747 core.String requestedResourceName; | 1848 core.String requestedResourceName; |
1748 | 1849 |
1749 PersonResponse(); | 1850 PersonResponse(); |
1750 | 1851 |
1751 PersonResponse.fromJson(core.Map _json) { | 1852 PersonResponse.fromJson(core.Map _json) { |
1752 if (_json.containsKey("httpStatusCode")) { | 1853 if (_json.containsKey("httpStatusCode")) { |
1753 httpStatusCode = _json["httpStatusCode"]; | 1854 httpStatusCode = _json["httpStatusCode"]; |
1754 } | 1855 } |
1755 if (_json.containsKey("person")) { | 1856 if (_json.containsKey("person")) { |
(...skipping 29 matching lines...) Loading... |
1785 core.String canonicalForm; | 1886 core.String canonicalForm; |
1786 /** | 1887 /** |
1787 * The read-only type of the phone number translated and formatted in the | 1888 * The read-only type of the phone number translated and formatted in the |
1788 * viewer's account locale or the the `Accept-Language` HTTP header locale. | 1889 * viewer's account locale or the the `Accept-Language` HTTP header locale. |
1789 */ | 1890 */ |
1790 core.String formattedType; | 1891 core.String formattedType; |
1791 /** Metadata about the phone number. */ | 1892 /** Metadata about the phone number. */ |
1792 FieldMetadata metadata; | 1893 FieldMetadata metadata; |
1793 /** | 1894 /** |
1794 * The type of the phone number. The type can be custom or predefined. | 1895 * The type of the phone number. The type can be custom or predefined. |
1795 * Possible values include, but are not limited to, the following: * `home` * | 1896 * Possible values include, but are not limited to, the following: |
1796 * `work` * `mobile` * `homeFax` * `workFax` * `otherFax` * `pager` * | 1897 * |
1797 * `workMobile` * `workPager` * `main` * `googleVoice` * `other` | 1898 * * `home` |
| 1899 * * `work` |
| 1900 * * `mobile` |
| 1901 * * `homeFax` |
| 1902 * * `workFax` |
| 1903 * * `otherFax` |
| 1904 * * `pager` |
| 1905 * * `workMobile` |
| 1906 * * `workPager` |
| 1907 * * `main` |
| 1908 * * `googleVoice` |
| 1909 * * `other` |
1798 */ | 1910 */ |
1799 core.String type; | 1911 core.String type; |
1800 /** The phone number. */ | 1912 /** The phone number. */ |
1801 core.String value; | 1913 core.String value; |
1802 | 1914 |
1803 PhoneNumber(); | 1915 PhoneNumber(); |
1804 | 1916 |
1805 PhoneNumber.fromJson(core.Map _json) { | 1917 PhoneNumber.fromJson(core.Map _json) { |
1806 if (_json.containsKey("canonicalForm")) { | 1918 if (_json.containsKey("canonicalForm")) { |
1807 canonicalForm = _json["canonicalForm"]; | 1919 canonicalForm = _json["canonicalForm"]; |
(...skipping 27 matching lines...) Loading... |
1835 _json["type"] = type; | 1947 _json["type"] = type; |
1836 } | 1948 } |
1837 if (value != null) { | 1949 if (value != null) { |
1838 _json["value"] = value; | 1950 _json["value"] = value; |
1839 } | 1951 } |
1840 return _json; | 1952 return _json; |
1841 } | 1953 } |
1842 } | 1954 } |
1843 | 1955 |
1844 /** | 1956 /** |
1845 * A person's photo. A picture shown next to the person's name to help others | 1957 * A person's read-only photo. A picture shown next to the person's name to |
1846 * recognize the person. | 1958 * help others recognize the person. |
1847 */ | 1959 */ |
1848 class Photo { | 1960 class Photo { |
1849 /** Metadata about the photo. */ | 1961 /** Metadata about the photo. */ |
1850 FieldMetadata metadata; | 1962 FieldMetadata metadata; |
1851 /** The URL of the photo. */ | 1963 /** The URL of the photo. */ |
1852 core.String url; | 1964 core.String url; |
1853 | 1965 |
1854 Photo(); | 1966 Photo(); |
1855 | 1967 |
1856 Photo.fromJson(core.Map _json) { | 1968 Photo.fromJson(core.Map _json) { |
(...skipping 23 matching lines...) Loading... |
1880 * The type of the relation translated and formatted in the viewer's account | 1992 * The type of the relation translated and formatted in the viewer's account |
1881 * locale or the locale specified in the Accept-Language HTTP header. | 1993 * locale or the locale specified in the Accept-Language HTTP header. |
1882 */ | 1994 */ |
1883 core.String formattedType; | 1995 core.String formattedType; |
1884 /** Metadata about the relation. */ | 1996 /** Metadata about the relation. */ |
1885 FieldMetadata metadata; | 1997 FieldMetadata metadata; |
1886 /** The name of the other person this relation refers to. */ | 1998 /** The name of the other person this relation refers to. */ |
1887 core.String person; | 1999 core.String person; |
1888 /** | 2000 /** |
1889 * The person's relation to the other person. The type can be custom or | 2001 * The person's relation to the other person. The type can be custom or |
1890 * predefined. Possible values include, but are not limited to, the following | 2002 * predefined. |
1891 * values: * `spouse` * `child` * `mother` * `father` * `parent` * `brother` * | 2003 * Possible values include, but are not limited to, the following values: |
1892 * `sister` * `friend` * `relative` * `domesticPartner` * `manager` * | 2004 * |
1893 * `assistant` * `referredBy` * `partner` | 2005 * * `spouse` |
| 2006 * * `child` |
| 2007 * * `mother` |
| 2008 * * `father` |
| 2009 * * `parent` |
| 2010 * * `brother` |
| 2011 * * `sister` |
| 2012 * * `friend` |
| 2013 * * `relative` |
| 2014 * * `domesticPartner` |
| 2015 * * `manager` |
| 2016 * * `assistant` |
| 2017 * * `referredBy` |
| 2018 * * `partner` |
1894 */ | 2019 */ |
1895 core.String type; | 2020 core.String type; |
1896 | 2021 |
1897 Relation(); | 2022 Relation(); |
1898 | 2023 |
1899 Relation.fromJson(core.Map _json) { | 2024 Relation.fromJson(core.Map _json) { |
1900 if (_json.containsKey("formattedType")) { | 2025 if (_json.containsKey("formattedType")) { |
1901 formattedType = _json["formattedType"]; | 2026 formattedType = _json["formattedType"]; |
1902 } | 2027 } |
1903 if (_json.containsKey("metadata")) { | 2028 if (_json.containsKey("metadata")) { |
(...skipping 18 matching lines...) Loading... |
1922 if (person != null) { | 2047 if (person != null) { |
1923 _json["person"] = person; | 2048 _json["person"] = person; |
1924 } | 2049 } |
1925 if (type != null) { | 2050 if (type != null) { |
1926 _json["type"] = type; | 2051 _json["type"] = type; |
1927 } | 2052 } |
1928 return _json; | 2053 return _json; |
1929 } | 2054 } |
1930 } | 2055 } |
1931 | 2056 |
1932 /** The kind of relationship the person is looking for. */ | 2057 /** A person's read-only relationship interest . */ |
1933 class RelationshipInterest { | 2058 class RelationshipInterest { |
1934 /** | 2059 /** |
1935 * The value of the relationship interest translated and formatted in the | 2060 * The value of the relationship interest translated and formatted in the |
1936 * viewer's account locale or the locale specified in the Accept-Language HTTP | 2061 * viewer's account locale or the locale specified in the Accept-Language |
1937 * header. | 2062 * HTTP header. |
1938 */ | 2063 */ |
1939 core.String formattedValue; | 2064 core.String formattedValue; |
1940 /** Metadata about the relationship interest. */ | 2065 /** Metadata about the relationship interest. */ |
1941 FieldMetadata metadata; | 2066 FieldMetadata metadata; |
1942 /** | 2067 /** |
1943 * The kind of relationship the person is looking for. The value can be custom | 2068 * The kind of relationship the person is looking for. The value can be custom |
1944 * or predefined. Possible values include, but are not limited to, the | 2069 * or predefined. Possible values include, but are not limited to, the |
1945 * following values: * `friend` * `date` * `relationship` * `networking` | 2070 * following values: |
| 2071 * |
| 2072 * * `friend` |
| 2073 * * `date` |
| 2074 * * `relationship` |
| 2075 * * `networking` |
1946 */ | 2076 */ |
1947 core.String value; | 2077 core.String value; |
1948 | 2078 |
1949 RelationshipInterest(); | 2079 RelationshipInterest(); |
1950 | 2080 |
1951 RelationshipInterest.fromJson(core.Map _json) { | 2081 RelationshipInterest.fromJson(core.Map _json) { |
1952 if (_json.containsKey("formattedValue")) { | 2082 if (_json.containsKey("formattedValue")) { |
1953 formattedValue = _json["formattedValue"]; | 2083 formattedValue = _json["formattedValue"]; |
1954 } | 2084 } |
1955 if (_json.containsKey("metadata")) { | 2085 if (_json.containsKey("metadata")) { |
(...skipping 12 matching lines...) Loading... |
1968 if (metadata != null) { | 2098 if (metadata != null) { |
1969 _json["metadata"] = (metadata).toJson(); | 2099 _json["metadata"] = (metadata).toJson(); |
1970 } | 2100 } |
1971 if (value != null) { | 2101 if (value != null) { |
1972 _json["value"] = value; | 2102 _json["value"] = value; |
1973 } | 2103 } |
1974 return _json; | 2104 return _json; |
1975 } | 2105 } |
1976 } | 2106 } |
1977 | 2107 |
1978 /** A person's relationship status. */ | 2108 /** A person's read-only relationship status. */ |
1979 class RelationshipStatus { | 2109 class RelationshipStatus { |
1980 /** | 2110 /** |
1981 * The read-only value of the relationship status translated and formatted in | 2111 * The read-only value of the relationship status translated and formatted in |
1982 * the viewer's account locale or the `Accept-Language` HTTP header locale. | 2112 * the viewer's account locale or the `Accept-Language` HTTP header locale. |
1983 */ | 2113 */ |
1984 core.String formattedValue; | 2114 core.String formattedValue; |
1985 /** Metadata about the relationship status. */ | 2115 /** Metadata about the relationship status. */ |
1986 FieldMetadata metadata; | 2116 FieldMetadata metadata; |
1987 /** | 2117 /** |
1988 * The relationship status. The value can be custom or predefined. Possible | 2118 * The relationship status. The value can be custom or predefined. |
1989 * values include, but are not limited to, the following: * `single` * | 2119 * Possible values include, but are not limited to, the following: |
1990 * `inARelationship` * `engaged` * `married` * `itsComplicated` * | 2120 * |
1991 * `openRelationship` * `widowed` * `inDomesticPartnership` * `inCivilUnion` | 2121 * * `single` |
| 2122 * * `inARelationship` |
| 2123 * * `engaged` |
| 2124 * * `married` |
| 2125 * * `itsComplicated` |
| 2126 * * `openRelationship` |
| 2127 * * `widowed` |
| 2128 * * `inDomesticPartnership` |
| 2129 * * `inCivilUnion` |
1992 */ | 2130 */ |
1993 core.String value; | 2131 core.String value; |
1994 | 2132 |
1995 RelationshipStatus(); | 2133 RelationshipStatus(); |
1996 | 2134 |
1997 RelationshipStatus.fromJson(core.Map _json) { | 2135 RelationshipStatus.fromJson(core.Map _json) { |
1998 if (_json.containsKey("formattedValue")) { | 2136 if (_json.containsKey("formattedValue")) { |
1999 formattedValue = _json["formattedValue"]; | 2137 formattedValue = _json["formattedValue"]; |
2000 } | 2138 } |
2001 if (_json.containsKey("metadata")) { | 2139 if (_json.containsKey("metadata")) { |
(...skipping 15 matching lines...) Loading... |
2017 if (value != null) { | 2155 if (value != null) { |
2018 _json["value"] = value; | 2156 _json["value"] = value; |
2019 } | 2157 } |
2020 return _json; | 2158 return _json; |
2021 } | 2159 } |
2022 } | 2160 } |
2023 | 2161 |
2024 /** A person's past or current residence. */ | 2162 /** A person's past or current residence. */ |
2025 class Residence { | 2163 class Residence { |
2026 /** | 2164 /** |
2027 * True if the residence is the person's current residence; false if the | 2165 * True if the residence is the person's current residence; |
2028 * residence is a past residence. | 2166 * false if the residence is a past residence. |
2029 */ | 2167 */ |
2030 core.bool current; | 2168 core.bool current; |
2031 /** Metadata about the residence. */ | 2169 /** Metadata about the residence. */ |
2032 FieldMetadata metadata; | 2170 FieldMetadata metadata; |
2033 /** The address of the residence. */ | 2171 /** The address of the residence. */ |
2034 core.String value; | 2172 core.String value; |
2035 | 2173 |
2036 Residence(); | 2174 Residence(); |
2037 | 2175 |
2038 Residence.fromJson(core.Map _json) { | 2176 Residence.fromJson(core.Map _json) { |
(...skipping 48 matching lines...) Loading... |
2087 } | 2225 } |
2088 if (value != null) { | 2226 if (value != null) { |
2089 _json["value"] = value; | 2227 _json["value"] = value; |
2090 } | 2228 } |
2091 return _json; | 2229 return _json; |
2092 } | 2230 } |
2093 } | 2231 } |
2094 | 2232 |
2095 /** The source of a field. */ | 2233 /** The source of a field. */ |
2096 class Source { | 2234 class Source { |
2097 /** A unique identifier within the source type generated by the server. */ | 2235 /** |
| 2236 * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the |
| 2237 * source. Used for web cache validation. Only populated in |
| 2238 * person.metadata.sources. |
| 2239 */ |
| 2240 core.String etag; |
| 2241 /** The unique identifier within the source type generated by the server. */ |
2098 core.String id; | 2242 core.String id; |
2099 /** | 2243 /** |
| 2244 * The resource name of the source. Only set if there is a separate |
| 2245 * resource endpoint. |
| 2246 */ |
| 2247 core.String resourceName; |
| 2248 /** |
2100 * The source type. | 2249 * The source type. |
2101 * Possible string values are: | 2250 * Possible string values are: |
2102 * - "OTHER" : A OTHER. | 2251 * - "SOURCE_TYPE_UNSPECIFIED" : Unspecified. |
2103 * - "ACCOUNT" : A ACCOUNT. | 2252 * - "ACCOUNT" : [Google Account](https://accounts.google.com). |
2104 * - "PROFILE" : A PROFILE. | 2253 * - "PROFILE" : [Google profile](https://profiles.google.com). You can view |
2105 * - "DOMAIN_PROFILE" : A DOMAIN_PROFILE. | 2254 * the |
2106 * - "CONTACT" : A CONTACT. | 2255 * profile at https://profiles.google.com/<id> where <id> is the source |
| 2256 * id. |
| 2257 * - "DOMAIN_PROFILE" : [Google Apps domain |
| 2258 * profile](https://admin.google.com). |
| 2259 * - "CONTACT" : [Google contact](https://contacts.google.com). You can view |
| 2260 * the |
| 2261 * contact at https://contact.google.com/<id> where <id> is the source |
| 2262 * id. |
2107 */ | 2263 */ |
2108 core.String type; | 2264 core.String type; |
2109 | 2265 |
2110 Source(); | 2266 Source(); |
2111 | 2267 |
2112 Source.fromJson(core.Map _json) { | 2268 Source.fromJson(core.Map _json) { |
| 2269 if (_json.containsKey("etag")) { |
| 2270 etag = _json["etag"]; |
| 2271 } |
2113 if (_json.containsKey("id")) { | 2272 if (_json.containsKey("id")) { |
2114 id = _json["id"]; | 2273 id = _json["id"]; |
2115 } | 2274 } |
| 2275 if (_json.containsKey("resourceName")) { |
| 2276 resourceName = _json["resourceName"]; |
| 2277 } |
2116 if (_json.containsKey("type")) { | 2278 if (_json.containsKey("type")) { |
2117 type = _json["type"]; | 2279 type = _json["type"]; |
2118 } | 2280 } |
2119 } | 2281 } |
2120 | 2282 |
2121 core.Map toJson() { | 2283 core.Map toJson() { |
2122 var _json = new core.Map(); | 2284 var _json = new core.Map(); |
| 2285 if (etag != null) { |
| 2286 _json["etag"] = etag; |
| 2287 } |
2123 if (id != null) { | 2288 if (id != null) { |
2124 _json["id"] = id; | 2289 _json["id"] = id; |
2125 } | 2290 } |
| 2291 if (resourceName != null) { |
| 2292 _json["resourceName"] = resourceName; |
| 2293 } |
2126 if (type != null) { | 2294 if (type != null) { |
2127 _json["type"] = type; | 2295 _json["type"] = type; |
2128 } | 2296 } |
2129 return _json; | 2297 return _json; |
2130 } | 2298 } |
2131 } | 2299 } |
2132 | 2300 |
2133 /** A brief one-line description of the person. */ | 2301 /** A read-only brief one-line description of the person. */ |
2134 class Tagline { | 2302 class Tagline { |
2135 /** Metadata about the tagline. */ | 2303 /** Metadata about the tagline. */ |
2136 FieldMetadata metadata; | 2304 FieldMetadata metadata; |
2137 /** The tagline. */ | 2305 /** The tagline. */ |
2138 core.String value; | 2306 core.String value; |
2139 | 2307 |
2140 Tagline(); | 2308 Tagline(); |
2141 | 2309 |
2142 Tagline.fromJson(core.Map _json) { | 2310 Tagline.fromJson(core.Map _json) { |
2143 if (_json.containsKey("metadata")) { | 2311 if (_json.containsKey("metadata")) { |
(...skipping 19 matching lines...) Loading... |
2163 /** A person's associated URLs. */ | 2331 /** A person's associated URLs. */ |
2164 class Url { | 2332 class Url { |
2165 /** | 2333 /** |
2166 * The read-only type of the URL translated and formatted in the viewer's | 2334 * The read-only type of the URL translated and formatted in the viewer's |
2167 * account locale or the `Accept-Language` HTTP header locale. | 2335 * account locale or the `Accept-Language` HTTP header locale. |
2168 */ | 2336 */ |
2169 core.String formattedType; | 2337 core.String formattedType; |
2170 /** Metadata about the URL. */ | 2338 /** Metadata about the URL. */ |
2171 FieldMetadata metadata; | 2339 FieldMetadata metadata; |
2172 /** | 2340 /** |
2173 * The type of the URL. The type can be custom or predefined. Possible values | 2341 * The type of the URL. The type can be custom or predefined. |
2174 * include, but are not limited to, the following: * `home` * `work` * `blog` | 2342 * Possible values include, but are not limited to, the following: |
2175 * * `profile` * `homePage` * `ftp` * `reservations` * `appInstallPage`: | 2343 * |
2176 * website for a Google+ application. * `other` | 2344 * * `home` |
| 2345 * * `work` |
| 2346 * * `blog` |
| 2347 * * `profile` |
| 2348 * * `homePage` |
| 2349 * * `ftp` |
| 2350 * * `reservations` |
| 2351 * * `appInstallPage`: website for a Google+ application. |
| 2352 * * `other` |
2177 */ | 2353 */ |
2178 core.String type; | 2354 core.String type; |
2179 /** The URL. */ | 2355 /** The URL. */ |
2180 core.String value; | 2356 core.String value; |
2181 | 2357 |
2182 Url(); | 2358 Url(); |
2183 | 2359 |
2184 Url.fromJson(core.Map _json) { | 2360 Url.fromJson(core.Map _json) { |
2185 if (_json.containsKey("formattedType")) { | 2361 if (_json.containsKey("formattedType")) { |
2186 formattedType = _json["formattedType"]; | 2362 formattedType = _json["formattedType"]; |
(...skipping 19 matching lines...) Loading... |
2206 } | 2382 } |
2207 if (type != null) { | 2383 if (type != null) { |
2208 _json["type"] = type; | 2384 _json["type"] = type; |
2209 } | 2385 } |
2210 if (value != null) { | 2386 if (value != null) { |
2211 _json["value"] = value; | 2387 _json["value"] = value; |
2212 } | 2388 } |
2213 return _json; | 2389 return _json; |
2214 } | 2390 } |
2215 } | 2391 } |
OLD | NEW |