1// 2package vocab 3 4import ( 5 "net/url" 6 "time" 7) 8 9// ImageType is an interface for accepting types that extend from 'Image'. 10type ImageType interface { 11 Serializer 12 Deserializer 13 IsHeight() (ok bool) 14 GetHeight() (v int64) 15 SetHeight(v int64) 16 IsHeightIRI() (ok bool) 17 GetHeightIRI() (v *url.URL) 18 SetHeightIRI(v *url.URL) 19 IsWidth() (ok bool) 20 GetWidth() (v int64) 21 SetWidth(v int64) 22 IsWidthIRI() (ok bool) 23 GetWidthIRI() (v *url.URL) 24 SetWidthIRI(v *url.URL) 25 IsAltitude() (ok bool) 26 GetAltitude() (v float64) 27 SetAltitude(v float64) 28 IsAltitudeIRI() (ok bool) 29 GetAltitudeIRI() (v *url.URL) 30 SetAltitudeIRI(v *url.URL) 31 AttachmentLen() (l int) 32 IsAttachmentObject(index int) (ok bool) 33 GetAttachmentObject(index int) (v ObjectType) 34 AppendAttachmentObject(v ObjectType) 35 PrependAttachmentObject(v ObjectType) 36 RemoveAttachmentObject(index int) 37 IsAttachmentLink(index int) (ok bool) 38 GetAttachmentLink(index int) (v LinkType) 39 AppendAttachmentLink(v LinkType) 40 PrependAttachmentLink(v LinkType) 41 RemoveAttachmentLink(index int) 42 IsAttachmentIRI(index int) (ok bool) 43 GetAttachmentIRI(index int) (v *url.URL) 44 AppendAttachmentIRI(v *url.URL) 45 PrependAttachmentIRI(v *url.URL) 46 RemoveAttachmentIRI(index int) 47 AttributedToLen() (l int) 48 IsAttributedToObject(index int) (ok bool) 49 GetAttributedToObject(index int) (v ObjectType) 50 AppendAttributedToObject(v ObjectType) 51 PrependAttributedToObject(v ObjectType) 52 RemoveAttributedToObject(index int) 53 IsAttributedToLink(index int) (ok bool) 54 GetAttributedToLink(index int) (v LinkType) 55 AppendAttributedToLink(v LinkType) 56 PrependAttributedToLink(v LinkType) 57 RemoveAttributedToLink(index int) 58 IsAttributedToIRI(index int) (ok bool) 59 GetAttributedToIRI(index int) (v *url.URL) 60 AppendAttributedToIRI(v *url.URL) 61 PrependAttributedToIRI(v *url.URL) 62 RemoveAttributedToIRI(index int) 63 AudienceLen() (l int) 64 IsAudienceObject(index int) (ok bool) 65 GetAudienceObject(index int) (v ObjectType) 66 AppendAudienceObject(v ObjectType) 67 PrependAudienceObject(v ObjectType) 68 RemoveAudienceObject(index int) 69 IsAudienceLink(index int) (ok bool) 70 GetAudienceLink(index int) (v LinkType) 71 AppendAudienceLink(v LinkType) 72 PrependAudienceLink(v LinkType) 73 RemoveAudienceLink(index int) 74 IsAudienceIRI(index int) (ok bool) 75 GetAudienceIRI(index int) (v *url.URL) 76 AppendAudienceIRI(v *url.URL) 77 PrependAudienceIRI(v *url.URL) 78 RemoveAudienceIRI(index int) 79 ContentLen() (l int) 80 IsContentString(index int) (ok bool) 81 GetContentString(index int) (v string) 82 AppendContentString(v string) 83 PrependContentString(v string) 84 RemoveContentString(index int) 85 IsContentLangString(index int) (ok bool) 86 GetContentLangString(index int) (v string) 87 AppendContentLangString(v string) 88 PrependContentLangString(v string) 89 RemoveContentLangString(index int) 90 IsContentIRI(index int) (ok bool) 91 GetContentIRI(index int) (v *url.URL) 92 AppendContentIRI(v *url.URL) 93 PrependContentIRI(v *url.URL) 94 RemoveContentIRI(index int) 95 ContentMapLanguages() (l []string) 96 GetContentMap(l string) (v string) 97 SetContentMap(l string, v string) 98 ContextLen() (l int) 99 IsContextObject(index int) (ok bool) 100 GetContextObject(index int) (v ObjectType) 101 AppendContextObject(v ObjectType) 102 PrependContextObject(v ObjectType) 103 RemoveContextObject(index int) 104 IsContextLink(index int) (ok bool) 105 GetContextLink(index int) (v LinkType) 106 AppendContextLink(v LinkType) 107 PrependContextLink(v LinkType) 108 RemoveContextLink(index int) 109 IsContextIRI(index int) (ok bool) 110 GetContextIRI(index int) (v *url.URL) 111 AppendContextIRI(v *url.URL) 112 PrependContextIRI(v *url.URL) 113 RemoveContextIRI(index int) 114 NameLen() (l int) 115 IsNameString(index int) (ok bool) 116 GetNameString(index int) (v string) 117 AppendNameString(v string) 118 PrependNameString(v string) 119 RemoveNameString(index int) 120 IsNameLangString(index int) (ok bool) 121 GetNameLangString(index int) (v string) 122 AppendNameLangString(v string) 123 PrependNameLangString(v string) 124 RemoveNameLangString(index int) 125 IsNameIRI(index int) (ok bool) 126 GetNameIRI(index int) (v *url.URL) 127 AppendNameIRI(v *url.URL) 128 PrependNameIRI(v *url.URL) 129 RemoveNameIRI(index int) 130 NameMapLanguages() (l []string) 131 GetNameMap(l string) (v string) 132 SetNameMap(l string, v string) 133 IsEndTime() (ok bool) 134 GetEndTime() (v time.Time) 135 SetEndTime(v time.Time) 136 IsEndTimeIRI() (ok bool) 137 GetEndTimeIRI() (v *url.URL) 138 SetEndTimeIRI(v *url.URL) 139 GeneratorLen() (l int) 140 IsGeneratorObject(index int) (ok bool) 141 GetGeneratorObject(index int) (v ObjectType) 142 AppendGeneratorObject(v ObjectType) 143 PrependGeneratorObject(v ObjectType) 144 RemoveGeneratorObject(index int) 145 IsGeneratorLink(index int) (ok bool) 146 GetGeneratorLink(index int) (v LinkType) 147 AppendGeneratorLink(v LinkType) 148 PrependGeneratorLink(v LinkType) 149 RemoveGeneratorLink(index int) 150 IsGeneratorIRI(index int) (ok bool) 151 GetGeneratorIRI(index int) (v *url.URL) 152 AppendGeneratorIRI(v *url.URL) 153 PrependGeneratorIRI(v *url.URL) 154 RemoveGeneratorIRI(index int) 155 IconLen() (l int) 156 IsIconImage(index int) (ok bool) 157 GetIconImage(index int) (v ImageType) 158 AppendIconImage(v ImageType) 159 PrependIconImage(v ImageType) 160 RemoveIconImage(index int) 161 IsIconLink(index int) (ok bool) 162 GetIconLink(index int) (v LinkType) 163 AppendIconLink(v LinkType) 164 PrependIconLink(v LinkType) 165 RemoveIconLink(index int) 166 IsIconIRI(index int) (ok bool) 167 GetIconIRI(index int) (v *url.URL) 168 AppendIconIRI(v *url.URL) 169 PrependIconIRI(v *url.URL) 170 RemoveIconIRI(index int) 171 HasId() (ok bool) 172 GetId() (v *url.URL) 173 SetId(v *url.URL) 174 HasUnknownId() (ok bool) 175 GetUnknownId() (v interface{}) 176 SetUnknownId(i interface{}) 177 ImageLen() (l int) 178 IsImageImage(index int) (ok bool) 179 GetImageImage(index int) (v ImageType) 180 AppendImageImage(v ImageType) 181 PrependImageImage(v ImageType) 182 RemoveImageImage(index int) 183 IsImageLink(index int) (ok bool) 184 GetImageLink(index int) (v LinkType) 185 AppendImageLink(v LinkType) 186 PrependImageLink(v LinkType) 187 RemoveImageLink(index int) 188 IsImageIRI(index int) (ok bool) 189 GetImageIRI(index int) (v *url.URL) 190 AppendImageIRI(v *url.URL) 191 PrependImageIRI(v *url.URL) 192 RemoveImageIRI(index int) 193 InReplyToLen() (l int) 194 IsInReplyToObject(index int) (ok bool) 195 GetInReplyToObject(index int) (v ObjectType) 196 AppendInReplyToObject(v ObjectType) 197 PrependInReplyToObject(v ObjectType) 198 RemoveInReplyToObject(index int) 199 IsInReplyToLink(index int) (ok bool) 200 GetInReplyToLink(index int) (v LinkType) 201 AppendInReplyToLink(v LinkType) 202 PrependInReplyToLink(v LinkType) 203 RemoveInReplyToLink(index int) 204 IsInReplyToIRI(index int) (ok bool) 205 GetInReplyToIRI(index int) (v *url.URL) 206 AppendInReplyToIRI(v *url.URL) 207 PrependInReplyToIRI(v *url.URL) 208 RemoveInReplyToIRI(index int) 209 LocationLen() (l int) 210 IsLocationObject(index int) (ok bool) 211 GetLocationObject(index int) (v ObjectType) 212 AppendLocationObject(v ObjectType) 213 PrependLocationObject(v ObjectType) 214 RemoveLocationObject(index int) 215 IsLocationLink(index int) (ok bool) 216 GetLocationLink(index int) (v LinkType) 217 AppendLocationLink(v LinkType) 218 PrependLocationLink(v LinkType) 219 RemoveLocationLink(index int) 220 IsLocationIRI(index int) (ok bool) 221 GetLocationIRI(index int) (v *url.URL) 222 AppendLocationIRI(v *url.URL) 223 PrependLocationIRI(v *url.URL) 224 RemoveLocationIRI(index int) 225 PreviewLen() (l int) 226 IsPreviewObject(index int) (ok bool) 227 GetPreviewObject(index int) (v ObjectType) 228 AppendPreviewObject(v ObjectType) 229 PrependPreviewObject(v ObjectType) 230 RemovePreviewObject(index int) 231 IsPreviewLink(index int) (ok bool) 232 GetPreviewLink(index int) (v LinkType) 233 AppendPreviewLink(v LinkType) 234 PrependPreviewLink(v LinkType) 235 RemovePreviewLink(index int) 236 IsPreviewIRI(index int) (ok bool) 237 GetPreviewIRI(index int) (v *url.URL) 238 AppendPreviewIRI(v *url.URL) 239 PrependPreviewIRI(v *url.URL) 240 RemovePreviewIRI(index int) 241 IsPublished() (ok bool) 242 GetPublished() (v time.Time) 243 SetPublished(v time.Time) 244 IsPublishedIRI() (ok bool) 245 GetPublishedIRI() (v *url.URL) 246 SetPublishedIRI(v *url.URL) 247 IsReplies() (ok bool) 248 GetReplies() (v CollectionType) 249 SetReplies(v CollectionType) 250 IsRepliesIRI() (ok bool) 251 GetRepliesIRI() (v *url.URL) 252 SetRepliesIRI(v *url.URL) 253 IsStartTime() (ok bool) 254 GetStartTime() (v time.Time) 255 SetStartTime(v time.Time) 256 IsStartTimeIRI() (ok bool) 257 GetStartTimeIRI() (v *url.URL) 258 SetStartTimeIRI(v *url.URL) 259 SummaryLen() (l int) 260 IsSummaryString(index int) (ok bool) 261 GetSummaryString(index int) (v string) 262 AppendSummaryString(v string) 263 PrependSummaryString(v string) 264 RemoveSummaryString(index int) 265 IsSummaryLangString(index int) (ok bool) 266 GetSummaryLangString(index int) (v string) 267 AppendSummaryLangString(v string) 268 PrependSummaryLangString(v string) 269 RemoveSummaryLangString(index int) 270 IsSummaryIRI(index int) (ok bool) 271 GetSummaryIRI(index int) (v *url.URL) 272 AppendSummaryIRI(v *url.URL) 273 PrependSummaryIRI(v *url.URL) 274 RemoveSummaryIRI(index int) 275 SummaryMapLanguages() (l []string) 276 GetSummaryMap(l string) (v string) 277 SetSummaryMap(l string, v string) 278 TagLen() (l int) 279 IsTagObject(index int) (ok bool) 280 GetTagObject(index int) (v ObjectType) 281 AppendTagObject(v ObjectType) 282 PrependTagObject(v ObjectType) 283 RemoveTagObject(index int) 284 IsTagLink(index int) (ok bool) 285 GetTagLink(index int) (v LinkType) 286 AppendTagLink(v LinkType) 287 PrependTagLink(v LinkType) 288 RemoveTagLink(index int) 289 IsTagIRI(index int) (ok bool) 290 GetTagIRI(index int) (v *url.URL) 291 AppendTagIRI(v *url.URL) 292 PrependTagIRI(v *url.URL) 293 RemoveTagIRI(index int) 294 TypeLen() (l int) 295 GetType(index int) (v interface{}) 296 AppendType(v interface{}) 297 PrependType(v interface{}) 298 RemoveType(index int) 299 IsUpdated() (ok bool) 300 GetUpdated() (v time.Time) 301 SetUpdated(v time.Time) 302 IsUpdatedIRI() (ok bool) 303 GetUpdatedIRI() (v *url.URL) 304 SetUpdatedIRI(v *url.URL) 305 UrlLen() (l int) 306 IsUrlAnyURI(index int) (ok bool) 307 GetUrlAnyURI(index int) (v *url.URL) 308 AppendUrlAnyURI(v *url.URL) 309 PrependUrlAnyURI(v *url.URL) 310 RemoveUrlAnyURI(index int) 311 IsUrlLink(index int) (ok bool) 312 GetUrlLink(index int) (v LinkType) 313 AppendUrlLink(v LinkType) 314 PrependUrlLink(v LinkType) 315 RemoveUrlLink(index int) 316 ToLen() (l int) 317 IsToObject(index int) (ok bool) 318 GetToObject(index int) (v ObjectType) 319 AppendToObject(v ObjectType) 320 PrependToObject(v ObjectType) 321 RemoveToObject(index int) 322 IsToLink(index int) (ok bool) 323 GetToLink(index int) (v LinkType) 324 AppendToLink(v LinkType) 325 PrependToLink(v LinkType) 326 RemoveToLink(index int) 327 IsToIRI(index int) (ok bool) 328 GetToIRI(index int) (v *url.URL) 329 AppendToIRI(v *url.URL) 330 PrependToIRI(v *url.URL) 331 RemoveToIRI(index int) 332 BtoLen() (l int) 333 IsBtoObject(index int) (ok bool) 334 GetBtoObject(index int) (v ObjectType) 335 AppendBtoObject(v ObjectType) 336 PrependBtoObject(v ObjectType) 337 RemoveBtoObject(index int) 338 IsBtoLink(index int) (ok bool) 339 GetBtoLink(index int) (v LinkType) 340 AppendBtoLink(v LinkType) 341 PrependBtoLink(v LinkType) 342 RemoveBtoLink(index int) 343 IsBtoIRI(index int) (ok bool) 344 GetBtoIRI(index int) (v *url.URL) 345 AppendBtoIRI(v *url.URL) 346 PrependBtoIRI(v *url.URL) 347 RemoveBtoIRI(index int) 348 CcLen() (l int) 349 IsCcObject(index int) (ok bool) 350 GetCcObject(index int) (v ObjectType) 351 AppendCcObject(v ObjectType) 352 PrependCcObject(v ObjectType) 353 RemoveCcObject(index int) 354 IsCcLink(index int) (ok bool) 355 GetCcLink(index int) (v LinkType) 356 AppendCcLink(v LinkType) 357 PrependCcLink(v LinkType) 358 RemoveCcLink(index int) 359 IsCcIRI(index int) (ok bool) 360 GetCcIRI(index int) (v *url.URL) 361 AppendCcIRI(v *url.URL) 362 PrependCcIRI(v *url.URL) 363 RemoveCcIRI(index int) 364 BccLen() (l int) 365 IsBccObject(index int) (ok bool) 366 GetBccObject(index int) (v ObjectType) 367 AppendBccObject(v ObjectType) 368 PrependBccObject(v ObjectType) 369 RemoveBccObject(index int) 370 IsBccLink(index int) (ok bool) 371 GetBccLink(index int) (v LinkType) 372 AppendBccLink(v LinkType) 373 PrependBccLink(v LinkType) 374 RemoveBccLink(index int) 375 IsBccIRI(index int) (ok bool) 376 GetBccIRI(index int) (v *url.URL) 377 AppendBccIRI(v *url.URL) 378 PrependBccIRI(v *url.URL) 379 RemoveBccIRI(index int) 380 IsMediaType() (ok bool) 381 GetMediaType() (v string) 382 SetMediaType(v string) 383 IsMediaTypeIRI() (ok bool) 384 GetMediaTypeIRI() (v *url.URL) 385 SetMediaTypeIRI(v *url.URL) 386 IsDuration() (ok bool) 387 GetDuration() (v time.Duration) 388 SetDuration(v time.Duration) 389 IsDurationIRI() (ok bool) 390 GetDurationIRI() (v *url.URL) 391 SetDurationIRI(v *url.URL) 392 IsSource() (ok bool) 393 GetSource() (v ObjectType) 394 SetSource(v ObjectType) 395 IsSourceIRI() (ok bool) 396 GetSourceIRI() (v *url.URL) 397 SetSourceIRI(v *url.URL) 398 IsInboxOrderedCollection() (ok bool) 399 GetInboxOrderedCollection() (v OrderedCollectionType) 400 SetInboxOrderedCollection(v OrderedCollectionType) 401 IsInboxAnyURI() (ok bool) 402 GetInboxAnyURI() (v *url.URL) 403 SetInboxAnyURI(v *url.URL) 404 IsOutboxOrderedCollection() (ok bool) 405 GetOutboxOrderedCollection() (v OrderedCollectionType) 406 SetOutboxOrderedCollection(v OrderedCollectionType) 407 IsOutboxAnyURI() (ok bool) 408 GetOutboxAnyURI() (v *url.URL) 409 SetOutboxAnyURI(v *url.URL) 410 IsFollowingCollection() (ok bool) 411 GetFollowingCollection() (v CollectionType) 412 SetFollowingCollection(v CollectionType) 413 IsFollowingOrderedCollection() (ok bool) 414 GetFollowingOrderedCollection() (v OrderedCollectionType) 415 SetFollowingOrderedCollection(v OrderedCollectionType) 416 IsFollowingAnyURI() (ok bool) 417 GetFollowingAnyURI() (v *url.URL) 418 SetFollowingAnyURI(v *url.URL) 419 IsFollowersCollection() (ok bool) 420 GetFollowersCollection() (v CollectionType) 421 SetFollowersCollection(v CollectionType) 422 IsFollowersOrderedCollection() (ok bool) 423 GetFollowersOrderedCollection() (v OrderedCollectionType) 424 SetFollowersOrderedCollection(v OrderedCollectionType) 425 IsFollowersAnyURI() (ok bool) 426 GetFollowersAnyURI() (v *url.URL) 427 SetFollowersAnyURI(v *url.URL) 428 IsLikedCollection() (ok bool) 429 GetLikedCollection() (v CollectionType) 430 SetLikedCollection(v CollectionType) 431 IsLikedOrderedCollection() (ok bool) 432 GetLikedOrderedCollection() (v OrderedCollectionType) 433 SetLikedOrderedCollection(v OrderedCollectionType) 434 IsLikedAnyURI() (ok bool) 435 GetLikedAnyURI() (v *url.URL) 436 SetLikedAnyURI(v *url.URL) 437 IsLikesCollection() (ok bool) 438 GetLikesCollection() (v CollectionType) 439 SetLikesCollection(v CollectionType) 440 IsLikesOrderedCollection() (ok bool) 441 GetLikesOrderedCollection() (v OrderedCollectionType) 442 SetLikesOrderedCollection(v OrderedCollectionType) 443 IsLikesAnyURI() (ok bool) 444 GetLikesAnyURI() (v *url.URL) 445 SetLikesAnyURI(v *url.URL) 446 StreamsLen() (l int) 447 GetStreams(index int) (v *url.URL) 448 AppendStreams(v *url.URL) 449 PrependStreams(v *url.URL) 450 RemoveStreams(index int) 451 HasUnknownStreams() (ok bool) 452 GetUnknownStreams() (v interface{}) 453 SetUnknownStreams(i interface{}) 454 IsPreferredUsername() (ok bool) 455 GetPreferredUsername() (v string) 456 SetPreferredUsername(v string) 457 IsPreferredUsernameIRI() (ok bool) 458 GetPreferredUsernameIRI() (v *url.URL) 459 SetPreferredUsernameIRI(v *url.URL) 460 PreferredUsernameMapLanguages() (l []string) 461 GetPreferredUsernameMap(l string) (v string) 462 SetPreferredUsernameMap(l string, v string) 463 IsEndpoints() (ok bool) 464 GetEndpoints() (v ObjectType) 465 SetEndpoints(v ObjectType) 466 IsEndpointsIRI() (ok bool) 467 GetEndpointsIRI() (v *url.URL) 468 SetEndpointsIRI(v *url.URL) 469 HasProxyUrl() (ok bool) 470 GetProxyUrl() (v *url.URL) 471 SetProxyUrl(v *url.URL) 472 HasUnknownProxyUrl() (ok bool) 473 GetUnknownProxyUrl() (v interface{}) 474 SetUnknownProxyUrl(i interface{}) 475 HasOauthAuthorizationEndpoint() (ok bool) 476 GetOauthAuthorizationEndpoint() (v *url.URL) 477 SetOauthAuthorizationEndpoint(v *url.URL) 478 HasUnknownOauthAuthorizationEndpoint() (ok bool) 479 GetUnknownOauthAuthorizationEndpoint() (v interface{}) 480 SetUnknownOauthAuthorizationEndpoint(i interface{}) 481 HasOauthTokenEndpoint() (ok bool) 482 GetOauthTokenEndpoint() (v *url.URL) 483 SetOauthTokenEndpoint(v *url.URL) 484 HasUnknownOauthTokenEndpoint() (ok bool) 485 GetUnknownOauthTokenEndpoint() (v interface{}) 486 SetUnknownOauthTokenEndpoint(i interface{}) 487 HasProvideClientKey() (ok bool) 488 GetProvideClientKey() (v *url.URL) 489 SetProvideClientKey(v *url.URL) 490 HasUnknownProvideClientKey() (ok bool) 491 GetUnknownProvideClientKey() (v interface{}) 492 SetUnknownProvideClientKey(i interface{}) 493 HasSignClientKey() (ok bool) 494 GetSignClientKey() (v *url.URL) 495 SetSignClientKey(v *url.URL) 496 HasUnknownSignClientKey() (ok bool) 497 GetUnknownSignClientKey() (v interface{}) 498 SetUnknownSignClientKey(i interface{}) 499 HasSharedInbox() (ok bool) 500 GetSharedInbox() (v *url.URL) 501 SetSharedInbox(v *url.URL) 502 HasUnknownSharedInbox() (ok bool) 503 GetUnknownSharedInbox() (v interface{}) 504 SetUnknownSharedInbox(i interface{}) 505} 506 507// An image document of any kind 508type Image struct { 509 // An unknown value. 510 unknown_ map[string]interface{} 511 // The functional 'height' value could have multiple types, but only a single value 512 height *heightIntermediateType 513 // The functional 'width' value could have multiple types, but only a single value 514 width *widthIntermediateType 515 // The functional 'altitude' value could have multiple types, but only a single value 516 altitude *altitudeIntermediateType 517 // The 'attachment' value could have multiple types and values 518 attachment []*attachmentIntermediateType 519 // The 'attributedTo' value could have multiple types and values 520 attributedTo []*attributedToIntermediateType 521 // The 'audience' value could have multiple types and values 522 audience []*audienceIntermediateType 523 // The 'content' value could have multiple types and values 524 content []*contentIntermediateType 525 // The 'contentMap' value holds language-specific values for property 'content' 526 contentMap map[string]string 527 // The 'context' value could have multiple types and values 528 context []*contextIntermediateType 529 // The 'name' value could have multiple types and values 530 name []*nameIntermediateType 531 // The 'nameMap' value holds language-specific values for property 'name' 532 nameMap map[string]string 533 // The functional 'endTime' value could have multiple types, but only a single value 534 endTime *endTimeIntermediateType 535 // The 'generator' value could have multiple types and values 536 generator []*generatorIntermediateType 537 // The 'icon' value could have multiple types and values 538 icon []*iconIntermediateType 539 // The functional 'id' value holds a single type and a single value 540 id *url.URL 541 // The 'image' value could have multiple types and values 542 image []*imageIntermediateType 543 // The 'inReplyTo' value could have multiple types and values 544 inReplyTo []*inReplyToIntermediateType 545 // The 'location' value could have multiple types and values 546 location []*locationIntermediateType 547 // The 'preview' value could have multiple types and values 548 preview []*previewIntermediateType 549 // The functional 'published' value could have multiple types, but only a single value 550 published *publishedIntermediateType 551 // The functional 'replies' value could have multiple types, but only a single value 552 replies *repliesIntermediateType 553 // The functional 'startTime' value could have multiple types, but only a single value 554 startTime *startTimeIntermediateType 555 // The 'summary' value could have multiple types and values 556 summary []*summaryIntermediateType 557 // The 'summaryMap' value holds language-specific values for property 'summary' 558 summaryMap map[string]string 559 // The 'tag' value could have multiple types and values 560 tag []*tagIntermediateType 561 // The 'type' value can hold any type and any number of values 562 typeName []interface{} 563 // The functional 'updated' value could have multiple types, but only a single value 564 updated *updatedIntermediateType 565 // The 'url' value could have multiple types and values 566 url []*urlIntermediateType 567 // The 'to' value could have multiple types and values 568 to []*toIntermediateType 569 // The 'bto' value could have multiple types and values 570 bto []*btoIntermediateType 571 // The 'cc' value could have multiple types and values 572 cc []*ccIntermediateType 573 // The 'bcc' value could have multiple types and values 574 bcc []*bccIntermediateType 575 // The functional 'mediaType' value could have multiple types, but only a single value 576 mediaType *mediaTypeIntermediateType 577 // The functional 'duration' value could have multiple types, but only a single value 578 duration *durationIntermediateType 579 // The functional 'source' value could have multiple types, but only a single value 580 source *sourceIntermediateType 581 // The functional 'inbox' value could have multiple types, but only a single value 582 inbox *inboxIntermediateType 583 // The functional 'outbox' value could have multiple types, but only a single value 584 outbox *outboxIntermediateType 585 // The functional 'following' value could have multiple types, but only a single value 586 following *followingIntermediateType 587 // The functional 'followers' value could have multiple types, but only a single value 588 followers *followersIntermediateType 589 // The functional 'liked' value could have multiple types, but only a single value 590 liked *likedIntermediateType 591 // The functional 'likes' value could have multiple types, but only a single value 592 likes *likesIntermediateType 593 // The 'streams' value holds a single type and any number of values 594 streams []*url.URL 595 // The functional 'preferredUsername' value could have multiple types, but only a single value 596 preferredUsername *preferredUsernameIntermediateType 597 // The 'preferredUsernameMap' value holds language-specific values for property 'preferredUsername' 598 preferredUsernameMap map[string]string 599 // The functional 'endpoints' value could have multiple types, but only a single value 600 endpoints *endpointsIntermediateType 601 // The functional 'proxyUrl' value holds a single type and a single value 602 proxyUrl *url.URL 603 // The functional 'oauthAuthorizationEndpoint' value holds a single type and a single value 604 oauthAuthorizationEndpoint *url.URL 605 // The functional 'oauthTokenEndpoint' value holds a single type and a single value 606 oauthTokenEndpoint *url.URL 607 // The functional 'provideClientKey' value holds a single type and a single value 608 provideClientKey *url.URL 609 // The functional 'signClientKey' value holds a single type and a single value 610 signClientKey *url.URL 611 // The functional 'sharedInbox' value holds a single type and a single value 612 sharedInbox *url.URL 613} 614 615// IsHeight determines whether the call to GetHeight is safe 616func (t *Image) IsHeight() (ok bool) { 617 return t.height != nil && t.height.nonNegativeInteger != nil 618 619} 620 621// GetHeight returns the value safely if IsHeight returned true 622func (t *Image) GetHeight() (v int64) { 623 return *t.height.nonNegativeInteger 624 625} 626 627// SetHeight sets the value of height to be of int64 type 628func (t *Image) SetHeight(v int64) { 629 t.height = &heightIntermediateType{nonNegativeInteger: &v} 630 631} 632 633// IsHeightIRI determines whether the call to GetHeightIRI is safe 634func (t *Image) IsHeightIRI() (ok bool) { 635 return t.height != nil && t.height.IRI != nil 636 637} 638 639// GetHeightIRI returns the value safely if IsHeightIRI returned true 640func (t *Image) GetHeightIRI() (v *url.URL) { 641 return t.height.IRI 642 643} 644 645// SetHeightIRI sets the value of height to be of *url.URL type 646func (t *Image) SetHeightIRI(v *url.URL) { 647 t.height = &heightIntermediateType{IRI: v} 648 649} 650 651// HasUnknownHeight determines whether the call to GetUnknownHeight is safe 652func (t *Image) HasUnknownHeight() (ok bool) { 653 return t.height != nil && t.height.unknown_ != nil 654 655} 656 657// GetUnknownHeight returns the unknown value for height 658func (t *Image) GetUnknownHeight() (v interface{}) { 659 return t.height.unknown_ 660 661} 662 663// SetUnknownHeight sets the unknown value of height 664func (t *Image) SetUnknownHeight(i interface{}) { 665 if t.unknown_ == nil { 666 t.unknown_ = make(map[string]interface{}) 667 } 668 tmp := &heightIntermediateType{} 669 tmp.unknown_ = i 670 t.height = tmp 671 672} 673 674// IsWidth determines whether the call to GetWidth is safe 675func (t *Image) IsWidth() (ok bool) { 676 return t.width != nil && t.width.nonNegativeInteger != nil 677 678} 679 680// GetWidth returns the value safely if IsWidth returned true 681func (t *Image) GetWidth() (v int64) { 682 return *t.width.nonNegativeInteger 683 684} 685 686// SetWidth sets the value of width to be of int64 type 687func (t *Image) SetWidth(v int64) { 688 t.width = &widthIntermediateType{nonNegativeInteger: &v} 689 690} 691 692// IsWidthIRI determines whether the call to GetWidthIRI is safe 693func (t *Image) IsWidthIRI() (ok bool) { 694 return t.width != nil && t.width.IRI != nil 695 696} 697 698// GetWidthIRI returns the value safely if IsWidthIRI returned true 699func (t *Image) GetWidthIRI() (v *url.URL) { 700 return t.width.IRI 701 702} 703 704// SetWidthIRI sets the value of width to be of *url.URL type 705func (t *Image) SetWidthIRI(v *url.URL) { 706 t.width = &widthIntermediateType{IRI: v} 707 708} 709 710// HasUnknownWidth determines whether the call to GetUnknownWidth is safe 711func (t *Image) HasUnknownWidth() (ok bool) { 712 return t.width != nil && t.width.unknown_ != nil 713 714} 715 716// GetUnknownWidth returns the unknown value for width 717func (t *Image) GetUnknownWidth() (v interface{}) { 718 return t.width.unknown_ 719 720} 721 722// SetUnknownWidth sets the unknown value of width 723func (t *Image) SetUnknownWidth(i interface{}) { 724 if t.unknown_ == nil { 725 t.unknown_ = make(map[string]interface{}) 726 } 727 tmp := &widthIntermediateType{} 728 tmp.unknown_ = i 729 t.width = tmp 730 731} 732 733// IsAltitude determines whether the call to GetAltitude is safe 734func (t *Image) IsAltitude() (ok bool) { 735 return t.altitude != nil && t.altitude.float != nil 736 737} 738 739// GetAltitude returns the value safely if IsAltitude returned true 740func (t *Image) GetAltitude() (v float64) { 741 return *t.altitude.float 742 743} 744 745// SetAltitude sets the value of altitude to be of float64 type 746func (t *Image) SetAltitude(v float64) { 747 t.altitude = &altitudeIntermediateType{float: &v} 748 749} 750 751// IsAltitudeIRI determines whether the call to GetAltitudeIRI is safe 752func (t *Image) IsAltitudeIRI() (ok bool) { 753 return t.altitude != nil && t.altitude.IRI != nil 754 755} 756 757// GetAltitudeIRI returns the value safely if IsAltitudeIRI returned true 758func (t *Image) GetAltitudeIRI() (v *url.URL) { 759 return t.altitude.IRI 760 761} 762 763// SetAltitudeIRI sets the value of altitude to be of *url.URL type 764func (t *Image) SetAltitudeIRI(v *url.URL) { 765 t.altitude = &altitudeIntermediateType{IRI: v} 766 767} 768 769// HasUnknownAltitude determines whether the call to GetUnknownAltitude is safe 770func (t *Image) HasUnknownAltitude() (ok bool) { 771 return t.altitude != nil && t.altitude.unknown_ != nil 772 773} 774 775// GetUnknownAltitude returns the unknown value for altitude 776func (t *Image) GetUnknownAltitude() (v interface{}) { 777 return t.altitude.unknown_ 778 779} 780 781// SetUnknownAltitude sets the unknown value of altitude 782func (t *Image) SetUnknownAltitude(i interface{}) { 783 if t.unknown_ == nil { 784 t.unknown_ = make(map[string]interface{}) 785 } 786 tmp := &altitudeIntermediateType{} 787 tmp.unknown_ = i 788 t.altitude = tmp 789 790} 791 792// AttachmentLen determines the number of elements able to be used for the IsAttachmentObject, GetAttachmentObject, and RemoveAttachmentObject functions 793func (t *Image) AttachmentLen() (l int) { 794 return len(t.attachment) 795 796} 797 798// IsAttachmentObject determines whether the call to GetAttachmentObject is safe for the specified index 799func (t *Image) IsAttachmentObject(index int) (ok bool) { 800 return t.attachment[index].Object != nil 801 802} 803 804// GetAttachmentObject returns the value safely if IsAttachmentObject returned true for the specified index 805func (t *Image) GetAttachmentObject(index int) (v ObjectType) { 806 return t.attachment[index].Object 807 808} 809 810// AppendAttachmentObject adds to the back of attachment a ObjectType type 811func (t *Image) AppendAttachmentObject(v ObjectType) { 812 t.attachment = append(t.attachment, &attachmentIntermediateType{Object: v}) 813 814} 815 816// PrependAttachmentObject adds to the front of attachment a ObjectType type 817func (t *Image) PrependAttachmentObject(v ObjectType) { 818 t.attachment = append([]*attachmentIntermediateType{&attachmentIntermediateType{Object: v}}, t.attachment...) 819 820} 821 822// RemoveAttachmentObject deletes the value from the specified index 823func (t *Image) RemoveAttachmentObject(index int) { 824 copy(t.attachment[index:], t.attachment[index+1:]) 825 t.attachment[len(t.attachment)-1] = nil 826 t.attachment = t.attachment[:len(t.attachment)-1] 827 828} 829 830// IsAttachmentLink determines whether the call to GetAttachmentLink is safe for the specified index 831func (t *Image) IsAttachmentLink(index int) (ok bool) { 832 return t.attachment[index].Link != nil 833 834} 835 836// GetAttachmentLink returns the value safely if IsAttachmentLink returned true for the specified index 837func (t *Image) GetAttachmentLink(index int) (v LinkType) { 838 return t.attachment[index].Link 839 840} 841 842// AppendAttachmentLink adds to the back of attachment a LinkType type 843func (t *Image) AppendAttachmentLink(v LinkType) { 844 t.attachment = append(t.attachment, &attachmentIntermediateType{Link: v}) 845 846} 847 848// PrependAttachmentLink adds to the front of attachment a LinkType type 849func (t *Image) PrependAttachmentLink(v LinkType) { 850 t.attachment = append([]*attachmentIntermediateType{&attachmentIntermediateType{Link: v}}, t.attachment...) 851 852} 853 854// RemoveAttachmentLink deletes the value from the specified index 855func (t *Image) RemoveAttachmentLink(index int) { 856 copy(t.attachment[index:], t.attachment[index+1:]) 857 t.attachment[len(t.attachment)-1] = nil 858 t.attachment = t.attachment[:len(t.attachment)-1] 859 860} 861 862// IsAttachmentIRI determines whether the call to GetAttachmentIRI is safe for the specified index 863func (t *Image) IsAttachmentIRI(index int) (ok bool) { 864 return t.attachment[index].IRI != nil 865 866} 867 868// GetAttachmentIRI returns the value safely if IsAttachmentIRI returned true for the specified index 869func (t *Image) GetAttachmentIRI(index int) (v *url.URL) { 870 return t.attachment[index].IRI 871 872} 873 874// AppendAttachmentIRI adds to the back of attachment a *url.URL type 875func (t *Image) AppendAttachmentIRI(v *url.URL) { 876 t.attachment = append(t.attachment, &attachmentIntermediateType{IRI: v}) 877 878} 879 880// PrependAttachmentIRI adds to the front of attachment a *url.URL type 881func (t *Image) PrependAttachmentIRI(v *url.URL) { 882 t.attachment = append([]*attachmentIntermediateType{&attachmentIntermediateType{IRI: v}}, t.attachment...) 883 884} 885 886// RemoveAttachmentIRI deletes the value from the specified index 887func (t *Image) RemoveAttachmentIRI(index int) { 888 copy(t.attachment[index:], t.attachment[index+1:]) 889 t.attachment[len(t.attachment)-1] = nil 890 t.attachment = t.attachment[:len(t.attachment)-1] 891 892} 893 894// HasUnknownAttachment determines whether the call to GetUnknownAttachment is safe 895func (t *Image) HasUnknownAttachment() (ok bool) { 896 return t.attachment != nil && t.attachment[0].unknown_ != nil 897 898} 899 900// GetUnknownAttachment returns the unknown value for attachment 901func (t *Image) GetUnknownAttachment() (v interface{}) { 902 return t.attachment[0].unknown_ 903 904} 905 906// SetUnknownAttachment sets the unknown value of attachment 907func (t *Image) SetUnknownAttachment(i interface{}) { 908 if t.unknown_ == nil { 909 t.unknown_ = make(map[string]interface{}) 910 } 911 tmp := &attachmentIntermediateType{} 912 tmp.unknown_ = i 913 t.attachment = append(t.attachment, tmp) 914 915} 916 917// AttributedToLen determines the number of elements able to be used for the IsAttributedToObject, GetAttributedToObject, and RemoveAttributedToObject functions 918func (t *Image) AttributedToLen() (l int) { 919 return len(t.attributedTo) 920 921} 922 923// IsAttributedToObject determines whether the call to GetAttributedToObject is safe for the specified index 924func (t *Image) IsAttributedToObject(index int) (ok bool) { 925 return t.attributedTo[index].Object != nil 926 927} 928 929// GetAttributedToObject returns the value safely if IsAttributedToObject returned true for the specified index 930func (t *Image) GetAttributedToObject(index int) (v ObjectType) { 931 return t.attributedTo[index].Object 932 933} 934 935// AppendAttributedToObject adds to the back of attributedTo a ObjectType type 936func (t *Image) AppendAttributedToObject(v ObjectType) { 937 t.attributedTo = append(t.attributedTo, &attributedToIntermediateType{Object: v}) 938 939} 940 941// PrependAttributedToObject adds to the front of attributedTo a ObjectType type 942func (t *Image) PrependAttributedToObject(v ObjectType) { 943 t.attributedTo = append([]*attributedToIntermediateType{&attributedToIntermediateType{Object: v}}, t.attributedTo...) 944 945} 946 947// RemoveAttributedToObject deletes the value from the specified index 948func (t *Image) RemoveAttributedToObject(index int) { 949 copy(t.attributedTo[index:], t.attributedTo[index+1:]) 950 t.attributedTo[len(t.attributedTo)-1] = nil 951 t.attributedTo = t.attributedTo[:len(t.attributedTo)-1] 952 953} 954 955// IsAttributedToLink determines whether the call to GetAttributedToLink is safe for the specified index 956func (t *Image) IsAttributedToLink(index int) (ok bool) { 957 return t.attributedTo[index].Link != nil 958 959} 960 961// GetAttributedToLink returns the value safely if IsAttributedToLink returned true for the specified index 962func (t *Image) GetAttributedToLink(index int) (v LinkType) { 963 return t.attributedTo[index].Link 964 965} 966 967// AppendAttributedToLink adds to the back of attributedTo a LinkType type 968func (t *Image) AppendAttributedToLink(v LinkType) { 969 t.attributedTo = append(t.attributedTo, &attributedToIntermediateType{Link: v}) 970 971} 972 973// PrependAttributedToLink adds to the front of attributedTo a LinkType type 974func (t *Image) PrependAttributedToLink(v LinkType) { 975 t.attributedTo = append([]*attributedToIntermediateType{&attributedToIntermediateType{Link: v}}, t.attributedTo...) 976 977} 978 979// RemoveAttributedToLink deletes the value from the specified index 980func (t *Image) RemoveAttributedToLink(index int) { 981 copy(t.attributedTo[index:], t.attributedTo[index+1:]) 982 t.attributedTo[len(t.attributedTo)-1] = nil 983 t.attributedTo = t.attributedTo[:len(t.attributedTo)-1] 984 985} 986 987// IsAttributedToIRI determines whether the call to GetAttributedToIRI is safe for the specified index 988func (t *Image) IsAttributedToIRI(index int) (ok bool) { 989 return t.attributedTo[index].IRI != nil 990 991} 992 993// GetAttributedToIRI returns the value safely if IsAttributedToIRI returned true for the specified index 994func (t *Image) GetAttributedToIRI(index int) (v *url.URL) { 995 return t.attributedTo[index].IRI 996 997} 998 999// AppendAttributedToIRI adds to the back of attributedTo a *url.URL type 1000func (t *Image) AppendAttributedToIRI(v *url.URL) { 1001 t.attributedTo = append(t.attributedTo, &attributedToIntermediateType{IRI: v}) 1002 1003} 1004 1005// PrependAttributedToIRI adds to the front of attributedTo a *url.URL type 1006func (t *Image) PrependAttributedToIRI(v *url.URL) { 1007 t.attributedTo = append([]*attributedToIntermediateType{&attributedToIntermediateType{IRI: v}}, t.attributedTo...) 1008 1009} 1010 1011// RemoveAttributedToIRI deletes the value from the specified index 1012func (t *Image) RemoveAttributedToIRI(index int) { 1013 copy(t.attributedTo[index:], t.attributedTo[index+1:]) 1014 t.attributedTo[len(t.attributedTo)-1] = nil 1015 t.attributedTo = t.attributedTo[:len(t.attributedTo)-1] 1016 1017} 1018 1019// HasUnknownAttributedTo determines whether the call to GetUnknownAttributedTo is safe 1020func (t *Image) HasUnknownAttributedTo() (ok bool) { 1021 return t.attributedTo != nil && t.attributedTo[0].unknown_ != nil 1022 1023} 1024 1025// GetUnknownAttributedTo returns the unknown value for attributedTo 1026func (t *Image) GetUnknownAttributedTo() (v interface{}) { 1027 return t.attributedTo[0].unknown_ 1028 1029} 1030 1031// SetUnknownAttributedTo sets the unknown value of attributedTo 1032func (t *Image) SetUnknownAttributedTo(i interface{}) { 1033 if t.unknown_ == nil { 1034 t.unknown_ = make(map[string]interface{}) 1035 } 1036 tmp := &attributedToIntermediateType{} 1037 tmp.unknown_ = i 1038 t.attributedTo = append(t.attributedTo, tmp) 1039 1040} 1041 1042// AudienceLen determines the number of elements able to be used for the IsAudienceObject, GetAudienceObject, and RemoveAudienceObject functions 1043func (t *Image) AudienceLen() (l int) { 1044 return len(t.audience) 1045 1046} 1047 1048// IsAudienceObject determines whether the call to GetAudienceObject is safe for the specified index 1049func (t *Image) IsAudienceObject(index int) (ok bool) { 1050 return t.audience[index].Object != nil 1051 1052} 1053 1054// GetAudienceObject returns the value safely if IsAudienceObject returned true for the specified index 1055func (t *Image) GetAudienceObject(index int) (v ObjectType) { 1056 return t.audience[index].Object 1057 1058} 1059 1060// AppendAudienceObject adds to the back of audience a ObjectType type 1061func (t *Image) AppendAudienceObject(v ObjectType) { 1062 t.audience = append(t.audience, &audienceIntermediateType{Object: v}) 1063 1064} 1065 1066// PrependAudienceObject adds to the front of audience a ObjectType type 1067func (t *Image) PrependAudienceObject(v ObjectType) { 1068 t.audience = append([]*audienceIntermediateType{&audienceIntermediateType{Object: v}}, t.audience...) 1069 1070} 1071 1072// RemoveAudienceObject deletes the value from the specified index 1073func (t *Image) RemoveAudienceObject(index int) { 1074 copy(t.audience[index:], t.audience[index+1:]) 1075 t.audience[len(t.audience)-1] = nil 1076 t.audience = t.audience[:len(t.audience)-1] 1077 1078} 1079 1080// IsAudienceLink determines whether the call to GetAudienceLink is safe for the specified index 1081func (t *Image) IsAudienceLink(index int) (ok bool) { 1082 return t.audience[index].Link != nil 1083 1084} 1085 1086// GetAudienceLink returns the value safely if IsAudienceLink returned true for the specified index 1087func (t *Image) GetAudienceLink(index int) (v LinkType) { 1088 return t.audience[index].Link 1089 1090} 1091 1092// AppendAudienceLink adds to the back of audience a LinkType type 1093func (t *Image) AppendAudienceLink(v LinkType) { 1094 t.audience = append(t.audience, &audienceIntermediateType{Link: v}) 1095 1096} 1097 1098// PrependAudienceLink adds to the front of audience a LinkType type 1099func (t *Image) PrependAudienceLink(v LinkType) { 1100 t.audience = append([]*audienceIntermediateType{&audienceIntermediateType{Link: v}}, t.audience...) 1101 1102} 1103 1104// RemoveAudienceLink deletes the value from the specified index 1105func (t *Image) RemoveAudienceLink(index int) { 1106 copy(t.audience[index:], t.audience[index+1:]) 1107 t.audience[len(t.audience)-1] = nil 1108 t.audience = t.audience[:len(t.audience)-1] 1109 1110} 1111 1112// IsAudienceIRI determines whether the call to GetAudienceIRI is safe for the specified index 1113func (t *Image) IsAudienceIRI(index int) (ok bool) { 1114 return t.audience[index].IRI != nil 1115 1116} 1117 1118// GetAudienceIRI returns the value safely if IsAudienceIRI returned true for the specified index 1119func (t *Image) GetAudienceIRI(index int) (v *url.URL) { 1120 return t.audience[index].IRI 1121 1122} 1123 1124// AppendAudienceIRI adds to the back of audience a *url.URL type 1125func (t *Image) AppendAudienceIRI(v *url.URL) { 1126 t.audience = append(t.audience, &audienceIntermediateType{IRI: v}) 1127 1128} 1129 1130// PrependAudienceIRI adds to the front of audience a *url.URL type 1131func (t *Image) PrependAudienceIRI(v *url.URL) { 1132 t.audience = append([]*audienceIntermediateType{&audienceIntermediateType{IRI: v}}, t.audience...) 1133 1134} 1135 1136// RemoveAudienceIRI deletes the value from the specified index 1137func (t *Image) RemoveAudienceIRI(index int) { 1138 copy(t.audience[index:], t.audience[index+1:]) 1139 t.audience[len(t.audience)-1] = nil 1140 t.audience = t.audience[:len(t.audience)-1] 1141 1142} 1143 1144// HasUnknownAudience determines whether the call to GetUnknownAudience is safe 1145func (t *Image) HasUnknownAudience() (ok bool) { 1146 return t.audience != nil && t.audience[0].unknown_ != nil 1147 1148} 1149 1150// GetUnknownAudience returns the unknown value for audience 1151func (t *Image) GetUnknownAudience() (v interface{}) { 1152 return t.audience[0].unknown_ 1153 1154} 1155 1156// SetUnknownAudience sets the unknown value of audience 1157func (t *Image) SetUnknownAudience(i interface{}) { 1158 if t.unknown_ == nil { 1159 t.unknown_ = make(map[string]interface{}) 1160 } 1161 tmp := &audienceIntermediateType{} 1162 tmp.unknown_ = i 1163 t.audience = append(t.audience, tmp) 1164 1165} 1166 1167// ContentLen determines the number of elements able to be used for the IsContentString, GetContentString, and RemoveContentString functions 1168func (t *Image) ContentLen() (l int) { 1169 return len(t.content) 1170 1171} 1172 1173// IsContentString determines whether the call to GetContentString is safe for the specified index 1174func (t *Image) IsContentString(index int) (ok bool) { 1175 return t.content[index].stringName != nil 1176 1177} 1178 1179// GetContentString returns the value safely if IsContentString returned true for the specified index 1180func (t *Image) GetContentString(index int) (v string) { 1181 return *t.content[index].stringName 1182 1183} 1184 1185// AppendContentString adds to the back of content a string type 1186func (t *Image) AppendContentString(v string) { 1187 t.content = append(t.content, &contentIntermediateType{stringName: &v}) 1188 1189} 1190 1191// PrependContentString adds to the front of content a string type 1192func (t *Image) PrependContentString(v string) { 1193 t.content = append([]*contentIntermediateType{&contentIntermediateType{stringName: &v}}, t.content...) 1194 1195} 1196 1197// RemoveContentString deletes the value from the specified index 1198func (t *Image) RemoveContentString(index int) { 1199 copy(t.content[index:], t.content[index+1:]) 1200 t.content[len(t.content)-1] = nil 1201 t.content = t.content[:len(t.content)-1] 1202 1203} 1204 1205// IsContentLangString determines whether the call to GetContentLangString is safe for the specified index 1206func (t *Image) IsContentLangString(index int) (ok bool) { 1207 return t.content[index].langString != nil 1208 1209} 1210 1211// GetContentLangString returns the value safely if IsContentLangString returned true for the specified index 1212func (t *Image) GetContentLangString(index int) (v string) { 1213 return *t.content[index].langString 1214 1215} 1216 1217// AppendContentLangString adds to the back of content a string type 1218func (t *Image) AppendContentLangString(v string) { 1219 t.content = append(t.content, &contentIntermediateType{langString: &v}) 1220 1221} 1222 1223// PrependContentLangString adds to the front of content a string type 1224func (t *Image) PrependContentLangString(v string) { 1225 t.content = append([]*contentIntermediateType{&contentIntermediateType{langString: &v}}, t.content...) 1226 1227} 1228 1229// RemoveContentLangString deletes the value from the specified index 1230func (t *Image) RemoveContentLangString(index int) { 1231 copy(t.content[index:], t.content[index+1:]) 1232 t.content[len(t.content)-1] = nil 1233 t.content = t.content[:len(t.content)-1] 1234 1235} 1236 1237// IsContentIRI determines whether the call to GetContentIRI is safe for the specified index 1238func (t *Image) IsContentIRI(index int) (ok bool) { 1239 return t.content[index].IRI != nil 1240 1241} 1242 1243// GetContentIRI returns the value safely if IsContentIRI returned true for the specified index 1244func (t *Image) GetContentIRI(index int) (v *url.URL) { 1245 return t.content[index].IRI 1246 1247} 1248 1249// AppendContentIRI adds to the back of content a *url.URL type 1250func (t *Image) AppendContentIRI(v *url.URL) { 1251 t.content = append(t.content, &contentIntermediateType{IRI: v}) 1252 1253} 1254 1255// PrependContentIRI adds to the front of content a *url.URL type 1256func (t *Image) PrependContentIRI(v *url.URL) { 1257 t.content = append([]*contentIntermediateType{&contentIntermediateType{IRI: v}}, t.content...) 1258 1259} 1260 1261// RemoveContentIRI deletes the value from the specified index 1262func (t *Image) RemoveContentIRI(index int) { 1263 copy(t.content[index:], t.content[index+1:]) 1264 t.content[len(t.content)-1] = nil 1265 t.content = t.content[:len(t.content)-1] 1266 1267} 1268 1269// HasUnknownContent determines whether the call to GetUnknownContent is safe 1270func (t *Image) HasUnknownContent() (ok bool) { 1271 return t.content != nil && t.content[0].unknown_ != nil 1272 1273} 1274 1275// GetUnknownContent returns the unknown value for content 1276func (t *Image) GetUnknownContent() (v interface{}) { 1277 return t.content[0].unknown_ 1278 1279} 1280 1281// SetUnknownContent sets the unknown value of content 1282func (t *Image) SetUnknownContent(i interface{}) { 1283 if t.unknown_ == nil { 1284 t.unknown_ = make(map[string]interface{}) 1285 } 1286 tmp := &contentIntermediateType{} 1287 tmp.unknown_ = i 1288 t.content = append(t.content, tmp) 1289 1290} 1291 1292// ContentMapLanguages returns all languages for this property's language mapping, or nil if there are none. 1293func (t *Image) ContentMapLanguages() (l []string) { 1294 if t.contentMap == nil || len(t.contentMap) == 0 { 1295 return nil 1296 } 1297 for k := range t.contentMap { 1298 l = append(l, k) 1299 } 1300 return 1301 1302} 1303 1304// GetContentMap retrieves the value of the property for the specified language, or an empty string if it does not exist 1305func (t *Image) GetContentMap(l string) (v string) { 1306 if t.contentMap == nil { 1307 return "" 1308 } 1309 ok := false 1310 v, ok = t.contentMap[l] 1311 if !ok { 1312 return "" 1313 } 1314 return v 1315 1316} 1317 1318// SetContentMap sets the value of the property for the specified language 1319func (t *Image) SetContentMap(l string, v string) { 1320 if t.contentMap == nil { 1321 t.contentMap = make(map[string]string) 1322 } 1323 t.contentMap[l] = v 1324 1325} 1326 1327// ContextLen determines the number of elements able to be used for the IsContextObject, GetContextObject, and RemoveContextObject functions 1328func (t *Image) ContextLen() (l int) { 1329 return len(t.context) 1330 1331} 1332 1333// IsContextObject determines whether the call to GetContextObject is safe for the specified index 1334func (t *Image) IsContextObject(index int) (ok bool) { 1335 return t.context[index].Object != nil 1336 1337} 1338 1339// GetContextObject returns the value safely if IsContextObject returned true for the specified index 1340func (t *Image) GetContextObject(index int) (v ObjectType) { 1341 return t.context[index].Object 1342 1343} 1344 1345// AppendContextObject adds to the back of context a ObjectType type 1346func (t *Image) AppendContextObject(v ObjectType) { 1347 t.context = append(t.context, &contextIntermediateType{Object: v}) 1348 1349} 1350 1351// PrependContextObject adds to the front of context a ObjectType type 1352func (t *Image) PrependContextObject(v ObjectType) { 1353 t.context = append([]*contextIntermediateType{&contextIntermediateType{Object: v}}, t.context...) 1354 1355} 1356 1357// RemoveContextObject deletes the value from the specified index 1358func (t *Image) RemoveContextObject(index int) { 1359 copy(t.context[index:], t.context[index+1:]) 1360 t.context[len(t.context)-1] = nil 1361 t.context = t.context[:len(t.context)-1] 1362 1363} 1364 1365// IsContextLink determines whether the call to GetContextLink is safe for the specified index 1366func (t *Image) IsContextLink(index int) (ok bool) { 1367 return t.context[index].Link != nil 1368 1369} 1370 1371// GetContextLink returns the value safely if IsContextLink returned true for the specified index 1372func (t *Image) GetContextLink(index int) (v LinkType) { 1373 return t.context[index].Link 1374 1375} 1376 1377// AppendContextLink adds to the back of context a LinkType type 1378func (t *Image) AppendContextLink(v LinkType) { 1379 t.context = append(t.context, &contextIntermediateType{Link: v}) 1380 1381} 1382 1383// PrependContextLink adds to the front of context a LinkType type 1384func (t *Image) PrependContextLink(v LinkType) { 1385 t.context = append([]*contextIntermediateType{&contextIntermediateType{Link: v}}, t.context...) 1386 1387} 1388 1389// RemoveContextLink deletes the value from the specified index 1390func (t *Image) RemoveContextLink(index int) { 1391 copy(t.context[index:], t.context[index+1:]) 1392 t.context[len(t.context)-1] = nil 1393 t.context = t.context[:len(t.context)-1] 1394 1395} 1396 1397// IsContextIRI determines whether the call to GetContextIRI is safe for the specified index 1398func (t *Image) IsContextIRI(index int) (ok bool) { 1399 return t.context[index].IRI != nil 1400 1401} 1402 1403// GetContextIRI returns the value safely if IsContextIRI returned true for the specified index 1404func (t *Image) GetContextIRI(index int) (v *url.URL) { 1405 return t.context[index].IRI 1406 1407} 1408 1409// AppendContextIRI adds to the back of context a *url.URL type 1410func (t *Image) AppendContextIRI(v *url.URL) { 1411 t.context = append(t.context, &contextIntermediateType{IRI: v}) 1412 1413} 1414 1415// PrependContextIRI adds to the front of context a *url.URL type 1416func (t *Image) PrependContextIRI(v *url.URL) { 1417 t.context = append([]*contextIntermediateType{&contextIntermediateType{IRI: v}}, t.context...) 1418 1419} 1420 1421// RemoveContextIRI deletes the value from the specified index 1422func (t *Image) RemoveContextIRI(index int) { 1423 copy(t.context[index:], t.context[index+1:]) 1424 t.context[len(t.context)-1] = nil 1425 t.context = t.context[:len(t.context)-1] 1426 1427} 1428 1429// HasUnknownContext determines whether the call to GetUnknownContext is safe 1430func (t *Image) HasUnknownContext() (ok bool) { 1431 return t.context != nil && t.context[0].unknown_ != nil 1432 1433} 1434 1435// GetUnknownContext returns the unknown value for context 1436func (t *Image) GetUnknownContext() (v interface{}) { 1437 return t.context[0].unknown_ 1438 1439} 1440 1441// SetUnknownContext sets the unknown value of context 1442func (t *Image) SetUnknownContext(i interface{}) { 1443 if t.unknown_ == nil { 1444 t.unknown_ = make(map[string]interface{}) 1445 } 1446 tmp := &contextIntermediateType{} 1447 tmp.unknown_ = i 1448 t.context = append(t.context, tmp) 1449 1450} 1451 1452// NameLen determines the number of elements able to be used for the IsNameString, GetNameString, and RemoveNameString functions 1453func (t *Image) NameLen() (l int) { 1454 return len(t.name) 1455 1456} 1457 1458// IsNameString determines whether the call to GetNameString is safe for the specified index 1459func (t *Image) IsNameString(index int) (ok bool) { 1460 return t.name[index].stringName != nil 1461 1462} 1463 1464// GetNameString returns the value safely if IsNameString returned true for the specified index 1465func (t *Image) GetNameString(index int) (v string) { 1466 return *t.name[index].stringName 1467 1468} 1469 1470// AppendNameString adds to the back of name a string type 1471func (t *Image) AppendNameString(v string) { 1472 t.name = append(t.name, &nameIntermediateType{stringName: &v}) 1473 1474} 1475 1476// PrependNameString adds to the front of name a string type 1477func (t *Image) PrependNameString(v string) { 1478 t.name = append([]*nameIntermediateType{&nameIntermediateType{stringName: &v}}, t.name...) 1479 1480} 1481 1482// RemoveNameString deletes the value from the specified index 1483func (t *Image) RemoveNameString(index int) { 1484 copy(t.name[index:], t.name[index+1:]) 1485 t.name[len(t.name)-1] = nil 1486 t.name = t.name[:len(t.name)-1] 1487 1488} 1489 1490// IsNameLangString determines whether the call to GetNameLangString is safe for the specified index 1491func (t *Image) IsNameLangString(index int) (ok bool) { 1492 return t.name[index].langString != nil 1493 1494} 1495 1496// GetNameLangString returns the value safely if IsNameLangString returned true for the specified index 1497func (t *Image) GetNameLangString(index int) (v string) { 1498 return *t.name[index].langString 1499 1500} 1501 1502// AppendNameLangString adds to the back of name a string type 1503func (t *Image) AppendNameLangString(v string) { 1504 t.name = append(t.name, &nameIntermediateType{langString: &v}) 1505 1506} 1507 1508// PrependNameLangString adds to the front of name a string type 1509func (t *Image) PrependNameLangString(v string) { 1510 t.name = append([]*nameIntermediateType{&nameIntermediateType{langString: &v}}, t.name...) 1511 1512} 1513 1514// RemoveNameLangString deletes the value from the specified index 1515func (t *Image) RemoveNameLangString(index int) { 1516 copy(t.name[index:], t.name[index+1:]) 1517 t.name[len(t.name)-1] = nil 1518 t.name = t.name[:len(t.name)-1] 1519 1520} 1521 1522// IsNameIRI determines whether the call to GetNameIRI is safe for the specified index 1523func (t *Image) IsNameIRI(index int) (ok bool) { 1524 return t.name[index].IRI != nil 1525 1526} 1527 1528// GetNameIRI returns the value safely if IsNameIRI returned true for the specified index 1529func (t *Image) GetNameIRI(index int) (v *url.URL) { 1530 return t.name[index].IRI 1531 1532} 1533 1534// AppendNameIRI adds to the back of name a *url.URL type 1535func (t *Image) AppendNameIRI(v *url.URL) { 1536 t.name = append(t.name, &nameIntermediateType{IRI: v}) 1537 1538} 1539 1540// PrependNameIRI adds to the front of name a *url.URL type 1541func (t *Image) PrependNameIRI(v *url.URL) { 1542 t.name = append([]*nameIntermediateType{&nameIntermediateType{IRI: v}}, t.name...) 1543 1544} 1545 1546// RemoveNameIRI deletes the value from the specified index 1547func (t *Image) RemoveNameIRI(index int) { 1548 copy(t.name[index:], t.name[index+1:]) 1549 t.name[len(t.name)-1] = nil 1550 t.name = t.name[:len(t.name)-1] 1551 1552} 1553 1554// HasUnknownName determines whether the call to GetUnknownName is safe 1555func (t *Image) HasUnknownName() (ok bool) { 1556 return t.name != nil && t.name[0].unknown_ != nil 1557 1558} 1559 1560// GetUnknownName returns the unknown value for name 1561func (t *Image) GetUnknownName() (v interface{}) { 1562 return t.name[0].unknown_ 1563 1564} 1565 1566// SetUnknownName sets the unknown value of name 1567func (t *Image) SetUnknownName(i interface{}) { 1568 if t.unknown_ == nil { 1569 t.unknown_ = make(map[string]interface{}) 1570 } 1571 tmp := &nameIntermediateType{} 1572 tmp.unknown_ = i 1573 t.name = append(t.name, tmp) 1574 1575} 1576 1577// NameMapLanguages returns all languages for this property's language mapping, or nil if there are none. 1578func (t *Image) NameMapLanguages() (l []string) { 1579 if t.nameMap == nil || len(t.nameMap) == 0 { 1580 return nil 1581 } 1582 for k := range t.nameMap { 1583 l = append(l, k) 1584 } 1585 return 1586 1587} 1588 1589// GetNameMap retrieves the value of the property for the specified language, or an empty string if it does not exist 1590func (t *Image) GetNameMap(l string) (v string) { 1591 if t.nameMap == nil { 1592 return "" 1593 } 1594 ok := false 1595 v, ok = t.nameMap[l] 1596 if !ok { 1597 return "" 1598 } 1599 return v 1600 1601} 1602 1603// SetNameMap sets the value of the property for the specified language 1604func (t *Image) SetNameMap(l string, v string) { 1605 if t.nameMap == nil { 1606 t.nameMap = make(map[string]string) 1607 } 1608 t.nameMap[l] = v 1609 1610} 1611 1612// IsEndTime determines whether the call to GetEndTime is safe 1613func (t *Image) IsEndTime() (ok bool) { 1614 return t.endTime != nil && t.endTime.dateTime != nil 1615 1616} 1617 1618// GetEndTime returns the value safely if IsEndTime returned true 1619func (t *Image) GetEndTime() (v time.Time) { 1620 return *t.endTime.dateTime 1621 1622} 1623 1624// SetEndTime sets the value of endTime to be of time.Time type 1625func (t *Image) SetEndTime(v time.Time) { 1626 t.endTime = &endTimeIntermediateType{dateTime: &v} 1627 1628} 1629 1630// IsEndTimeIRI determines whether the call to GetEndTimeIRI is safe 1631func (t *Image) IsEndTimeIRI() (ok bool) { 1632 return t.endTime != nil && t.endTime.IRI != nil 1633 1634} 1635 1636// GetEndTimeIRI returns the value safely if IsEndTimeIRI returned true 1637func (t *Image) GetEndTimeIRI() (v *url.URL) { 1638 return t.endTime.IRI 1639 1640} 1641 1642// SetEndTimeIRI sets the value of endTime to be of *url.URL type 1643func (t *Image) SetEndTimeIRI(v *url.URL) { 1644 t.endTime = &endTimeIntermediateType{IRI: v} 1645 1646} 1647 1648// HasUnknownEndTime determines whether the call to GetUnknownEndTime is safe 1649func (t *Image) HasUnknownEndTime() (ok bool) { 1650 return t.endTime != nil && t.endTime.unknown_ != nil 1651 1652} 1653 1654// GetUnknownEndTime returns the unknown value for endTime 1655func (t *Image) GetUnknownEndTime() (v interface{}) { 1656 return t.endTime.unknown_ 1657 1658} 1659 1660// SetUnknownEndTime sets the unknown value of endTime 1661func (t *Image) SetUnknownEndTime(i interface{}) { 1662 if t.unknown_ == nil { 1663 t.unknown_ = make(map[string]interface{}) 1664 } 1665 tmp := &endTimeIntermediateType{} 1666 tmp.unknown_ = i 1667 t.endTime = tmp 1668 1669} 1670 1671// GeneratorLen determines the number of elements able to be used for the IsGeneratorObject, GetGeneratorObject, and RemoveGeneratorObject functions 1672func (t *Image) GeneratorLen() (l int) { 1673 return len(t.generator) 1674 1675} 1676 1677// IsGeneratorObject determines whether the call to GetGeneratorObject is safe for the specified index 1678func (t *Image) IsGeneratorObject(index int) (ok bool) { 1679 return t.generator[index].Object != nil 1680 1681} 1682 1683// GetGeneratorObject returns the value safely if IsGeneratorObject returned true for the specified index 1684func (t *Image) GetGeneratorObject(index int) (v ObjectType) { 1685 return t.generator[index].Object 1686 1687} 1688 1689// AppendGeneratorObject adds to the back of generator a ObjectType type 1690func (t *Image) AppendGeneratorObject(v ObjectType) { 1691 t.generator = append(t.generator, &generatorIntermediateType{Object: v}) 1692 1693} 1694 1695// PrependGeneratorObject adds to the front of generator a ObjectType type 1696func (t *Image) PrependGeneratorObject(v ObjectType) { 1697 t.generator = append([]*generatorIntermediateType{&generatorIntermediateType{Object: v}}, t.generator...) 1698 1699} 1700 1701// RemoveGeneratorObject deletes the value from the specified index 1702func (t *Image) RemoveGeneratorObject(index int) { 1703 copy(t.generator[index:], t.generator[index+1:]) 1704 t.generator[len(t.generator)-1] = nil 1705 t.generator = t.generator[:len(t.generator)-1] 1706 1707} 1708 1709// IsGeneratorLink determines whether the call to GetGeneratorLink is safe for the specified index 1710func (t *Image) IsGeneratorLink(index int) (ok bool) { 1711 return t.generator[index].Link != nil 1712 1713} 1714 1715// GetGeneratorLink returns the value safely if IsGeneratorLink returned true for the specified index 1716func (t *Image) GetGeneratorLink(index int) (v LinkType) { 1717 return t.generator[index].Link 1718 1719} 1720 1721// AppendGeneratorLink adds to the back of generator a LinkType type 1722func (t *Image) AppendGeneratorLink(v LinkType) { 1723 t.generator = append(t.generator, &generatorIntermediateType{Link: v}) 1724 1725} 1726 1727// PrependGeneratorLink adds to the front of generator a LinkType type 1728func (t *Image) PrependGeneratorLink(v LinkType) { 1729 t.generator = append([]*generatorIntermediateType{&generatorIntermediateType{Link: v}}, t.generator...) 1730 1731} 1732 1733// RemoveGeneratorLink deletes the value from the specified index 1734func (t *Image) RemoveGeneratorLink(index int) { 1735 copy(t.generator[index:], t.generator[index+1:]) 1736 t.generator[len(t.generator)-1] = nil 1737 t.generator = t.generator[:len(t.generator)-1] 1738 1739} 1740 1741// IsGeneratorIRI determines whether the call to GetGeneratorIRI is safe for the specified index 1742func (t *Image) IsGeneratorIRI(index int) (ok bool) { 1743 return t.generator[index].IRI != nil 1744 1745} 1746 1747// GetGeneratorIRI returns the value safely if IsGeneratorIRI returned true for the specified index 1748func (t *Image) GetGeneratorIRI(index int) (v *url.URL) { 1749 return t.generator[index].IRI 1750 1751} 1752 1753// AppendGeneratorIRI adds to the back of generator a *url.URL type 1754func (t *Image) AppendGeneratorIRI(v *url.URL) { 1755 t.generator = append(t.generator, &generatorIntermediateType{IRI: v}) 1756 1757} 1758 1759// PrependGeneratorIRI adds to the front of generator a *url.URL type 1760func (t *Image) PrependGeneratorIRI(v *url.URL) { 1761 t.generator = append([]*generatorIntermediateType{&generatorIntermediateType{IRI: v}}, t.generator...) 1762 1763} 1764 1765// RemoveGeneratorIRI deletes the value from the specified index 1766func (t *Image) RemoveGeneratorIRI(index int) { 1767 copy(t.generator[index:], t.generator[index+1:]) 1768 t.generator[len(t.generator)-1] = nil 1769 t.generator = t.generator[:len(t.generator)-1] 1770 1771} 1772 1773// HasUnknownGenerator determines whether the call to GetUnknownGenerator is safe 1774func (t *Image) HasUnknownGenerator() (ok bool) { 1775 return t.generator != nil && t.generator[0].unknown_ != nil 1776 1777} 1778 1779// GetUnknownGenerator returns the unknown value for generator 1780func (t *Image) GetUnknownGenerator() (v interface{}) { 1781 return t.generator[0].unknown_ 1782 1783} 1784 1785// SetUnknownGenerator sets the unknown value of generator 1786func (t *Image) SetUnknownGenerator(i interface{}) { 1787 if t.unknown_ == nil { 1788 t.unknown_ = make(map[string]interface{}) 1789 } 1790 tmp := &generatorIntermediateType{} 1791 tmp.unknown_ = i 1792 t.generator = append(t.generator, tmp) 1793 1794} 1795 1796// IconLen determines the number of elements able to be used for the IsIconImage, GetIconImage, and RemoveIconImage functions 1797func (t *Image) IconLen() (l int) { 1798 return len(t.icon) 1799 1800} 1801 1802// IsIconImage determines whether the call to GetIconImage is safe for the specified index 1803func (t *Image) IsIconImage(index int) (ok bool) { 1804 return t.icon[index].Image != nil 1805 1806} 1807 1808// GetIconImage returns the value safely if IsIconImage returned true for the specified index 1809func (t *Image) GetIconImage(index int) (v ImageType) { 1810 return t.icon[index].Image 1811 1812} 1813 1814// AppendIconImage adds to the back of icon a ImageType type 1815func (t *Image) AppendIconImage(v ImageType) { 1816 t.icon = append(t.icon, &iconIntermediateType{Image: v}) 1817 1818} 1819 1820// PrependIconImage adds to the front of icon a ImageType type 1821func (t *Image) PrependIconImage(v ImageType) { 1822 t.icon = append([]*iconIntermediateType{&iconIntermediateType{Image: v}}, t.icon...) 1823 1824} 1825 1826// RemoveIconImage deletes the value from the specified index 1827func (t *Image) RemoveIconImage(index int) { 1828 copy(t.icon[index:], t.icon[index+1:]) 1829 t.icon[len(t.icon)-1] = nil 1830 t.icon = t.icon[:len(t.icon)-1] 1831 1832} 1833 1834// IsIconLink determines whether the call to GetIconLink is safe for the specified index 1835func (t *Image) IsIconLink(index int) (ok bool) { 1836 return t.icon[index].Link != nil 1837 1838} 1839 1840// GetIconLink returns the value safely if IsIconLink returned true for the specified index 1841func (t *Image) GetIconLink(index int) (v LinkType) { 1842 return t.icon[index].Link 1843 1844} 1845 1846// AppendIconLink adds to the back of icon a LinkType type 1847func (t *Image) AppendIconLink(v LinkType) { 1848 t.icon = append(t.icon, &iconIntermediateType{Link: v}) 1849 1850} 1851 1852// PrependIconLink adds to the front of icon a LinkType type 1853func (t *Image) PrependIconLink(v LinkType) { 1854 t.icon = append([]*iconIntermediateType{&iconIntermediateType{Link: v}}, t.icon...) 1855 1856} 1857 1858// RemoveIconLink deletes the value from the specified index 1859func (t *Image) RemoveIconLink(index int) { 1860 copy(t.icon[index:], t.icon[index+1:]) 1861 t.icon[len(t.icon)-1] = nil 1862 t.icon = t.icon[:len(t.icon)-1] 1863 1864} 1865 1866// IsIconIRI determines whether the call to GetIconIRI is safe for the specified index 1867func (t *Image) IsIconIRI(index int) (ok bool) { 1868 return t.icon[index].IRI != nil 1869 1870} 1871 1872// GetIconIRI returns the value safely if IsIconIRI returned true for the specified index 1873func (t *Image) GetIconIRI(index int) (v *url.URL) { 1874 return t.icon[index].IRI 1875 1876} 1877 1878// AppendIconIRI adds to the back of icon a *url.URL type 1879func (t *Image) AppendIconIRI(v *url.URL) { 1880 t.icon = append(t.icon, &iconIntermediateType{IRI: v}) 1881 1882} 1883 1884// PrependIconIRI adds to the front of icon a *url.URL type 1885func (t *Image) PrependIconIRI(v *url.URL) { 1886 t.icon = append([]*iconIntermediateType{&iconIntermediateType{IRI: v}}, t.icon...) 1887 1888} 1889 1890// RemoveIconIRI deletes the value from the specified index 1891func (t *Image) RemoveIconIRI(index int) { 1892 copy(t.icon[index:], t.icon[index+1:]) 1893 t.icon[len(t.icon)-1] = nil 1894 t.icon = t.icon[:len(t.icon)-1] 1895 1896} 1897 1898// HasUnknownIcon determines whether the call to GetUnknownIcon is safe 1899func (t *Image) HasUnknownIcon() (ok bool) { 1900 return t.icon != nil && t.icon[0].unknown_ != nil 1901 1902} 1903 1904// GetUnknownIcon returns the unknown value for icon 1905func (t *Image) GetUnknownIcon() (v interface{}) { 1906 return t.icon[0].unknown_ 1907 1908} 1909 1910// SetUnknownIcon sets the unknown value of icon 1911func (t *Image) SetUnknownIcon(i interface{}) { 1912 if t.unknown_ == nil { 1913 t.unknown_ = make(map[string]interface{}) 1914 } 1915 tmp := &iconIntermediateType{} 1916 tmp.unknown_ = i 1917 t.icon = append(t.icon, tmp) 1918 1919} 1920 1921// HasId determines whether the call to GetId is safe 1922func (t *Image) HasId() (ok bool) { 1923 return t.id != nil 1924 1925} 1926 1927// GetId returns the value for id 1928func (t *Image) GetId() (v *url.URL) { 1929 return t.id 1930 1931} 1932 1933// SetId sets the value of id 1934func (t *Image) SetId(v *url.URL) { 1935 t.id = v 1936 1937} 1938 1939// HasUnknownId determines whether the call to GetUnknownId is safe 1940func (t *Image) HasUnknownId() (ok bool) { 1941 return t.unknown_ != nil && t.unknown_["id"] != nil 1942 1943} 1944 1945// GetUnknownId returns the unknown value for id 1946func (t *Image) GetUnknownId() (v interface{}) { 1947 return t.unknown_["id"] 1948 1949} 1950 1951// SetUnknownId sets the unknown value of id 1952func (t *Image) SetUnknownId(i interface{}) { 1953 if t.unknown_ == nil { 1954 t.unknown_ = make(map[string]interface{}) 1955 } 1956 t.unknown_["id"] = i 1957 1958} 1959 1960// ImageLen determines the number of elements able to be used for the IsImageImage, GetImageImage, and RemoveImageImage functions 1961func (t *Image) ImageLen() (l int) { 1962 return len(t.image) 1963 1964} 1965 1966// IsImageImage determines whether the call to GetImageImage is safe for the specified index 1967func (t *Image) IsImageImage(index int) (ok bool) { 1968 return t.image[index].Image != nil 1969 1970} 1971 1972// GetImageImage returns the value safely if IsImageImage returned true for the specified index 1973func (t *Image) GetImageImage(index int) (v ImageType) { 1974 return t.image[index].Image 1975 1976} 1977 1978// AppendImageImage adds to the back of image a ImageType type 1979func (t *Image) AppendImageImage(v ImageType) { 1980 t.image = append(t.image, &imageIntermediateType{Image: v}) 1981 1982} 1983 1984// PrependImageImage adds to the front of image a ImageType type 1985func (t *Image) PrependImageImage(v ImageType) { 1986 t.image = append([]*imageIntermediateType{&imageIntermediateType{Image: v}}, t.image...) 1987 1988} 1989 1990// RemoveImageImage deletes the value from the specified index 1991func (t *Image) RemoveImageImage(index int) { 1992 copy(t.image[index:], t.image[index+1:]) 1993 t.image[len(t.image)-1] = nil 1994 t.image = t.image[:len(t.image)-1] 1995 1996} 1997 1998// IsImageLink determines whether the call to GetImageLink is safe for the specified index 1999func (t *Image) IsImageLink(index int) (ok bool) { 2000 return t.image[index].Link != nil 2001 2002} 2003 2004// GetImageLink returns the value safely if IsImageLink returned true for the specified index 2005func (t *Image) GetImageLink(index int) (v LinkType) { 2006 return t.image[index].Link 2007 2008} 2009 2010// AppendImageLink adds to the back of image a LinkType type 2011func (t *Image) AppendImageLink(v LinkType) { 2012 t.image = append(t.image, &imageIntermediateType{Link: v}) 2013 2014} 2015 2016// PrependImageLink adds to the front of image a LinkType type 2017func (t *Image) PrependImageLink(v LinkType) { 2018 t.image = append([]*imageIntermediateType{&imageIntermediateType{Link: v}}, t.image...) 2019 2020} 2021 2022// RemoveImageLink deletes the value from the specified index 2023func (t *Image) RemoveImageLink(index int) { 2024 copy(t.image[index:], t.image[index+1:]) 2025 t.image[len(t.image)-1] = nil 2026 t.image = t.image[:len(t.image)-1] 2027 2028} 2029 2030// IsImageIRI determines whether the call to GetImageIRI is safe for the specified index 2031func (t *Image) IsImageIRI(index int) (ok bool) { 2032 return t.image[index].IRI != nil 2033 2034} 2035 2036// GetImageIRI returns the value safely if IsImageIRI returned true for the specified index 2037func (t *Image) GetImageIRI(index int) (v *url.URL) { 2038 return t.image[index].IRI 2039 2040} 2041 2042// AppendImageIRI adds to the back of image a *url.URL type 2043func (t *Image) AppendImageIRI(v *url.URL) { 2044 t.image = append(t.image, &imageIntermediateType{IRI: v}) 2045 2046} 2047 2048// PrependImageIRI adds to the front of image a *url.URL type 2049func (t *Image) PrependImageIRI(v *url.URL) { 2050 t.image = append([]*imageIntermediateType{&imageIntermediateType{IRI: v}}, t.image...) 2051 2052} 2053 2054// RemoveImageIRI deletes the value from the specified index 2055func (t *Image) RemoveImageIRI(index int) { 2056 copy(t.image[index:], t.image[index+1:]) 2057 t.image[len(t.image)-1] = nil 2058 t.image = t.image[:len(t.image)-1] 2059 2060} 2061 2062// HasUnknownImage determines whether the call to GetUnknownImage is safe 2063func (t *Image) HasUnknownImage() (ok bool) { 2064 return t.image != nil && t.image[0].unknown_ != nil 2065 2066} 2067 2068// GetUnknownImage returns the unknown value for image 2069func (t *Image) GetUnknownImage() (v interface{}) { 2070 return t.image[0].unknown_ 2071 2072} 2073 2074// SetUnknownImage sets the unknown value of image 2075func (t *Image) SetUnknownImage(i interface{}) { 2076 if t.unknown_ == nil { 2077 t.unknown_ = make(map[string]interface{}) 2078 } 2079 tmp := &imageIntermediateType{} 2080 tmp.unknown_ = i 2081 t.image = append(t.image, tmp) 2082 2083} 2084 2085// InReplyToLen determines the number of elements able to be used for the IsInReplyToObject, GetInReplyToObject, and RemoveInReplyToObject functions 2086func (t *Image) InReplyToLen() (l int) { 2087 return len(t.inReplyTo) 2088 2089} 2090 2091// IsInReplyToObject determines whether the call to GetInReplyToObject is safe for the specified index 2092func (t *Image) IsInReplyToObject(index int) (ok bool) { 2093 return t.inReplyTo[index].Object != nil 2094 2095} 2096 2097// GetInReplyToObject returns the value safely if IsInReplyToObject returned true for the specified index 2098func (t *Image) GetInReplyToObject(index int) (v ObjectType) { 2099 return t.inReplyTo[index].Object 2100 2101} 2102 2103// AppendInReplyToObject adds to the back of inReplyTo a ObjectType type 2104func (t *Image) AppendInReplyToObject(v ObjectType) { 2105 t.inReplyTo = append(t.inReplyTo, &inReplyToIntermediateType{Object: v}) 2106 2107} 2108 2109// PrependInReplyToObject adds to the front of inReplyTo a ObjectType type 2110func (t *Image) PrependInReplyToObject(v ObjectType) { 2111 t.inReplyTo = append([]*inReplyToIntermediateType{&inReplyToIntermediateType{Object: v}}, t.inReplyTo...) 2112 2113} 2114 2115// RemoveInReplyToObject deletes the value from the specified index 2116func (t *Image) RemoveInReplyToObject(index int) { 2117 copy(t.inReplyTo[index:], t.inReplyTo[index+1:]) 2118 t.inReplyTo[len(t.inReplyTo)-1] = nil 2119 t.inReplyTo = t.inReplyTo[:len(t.inReplyTo)-1] 2120 2121} 2122 2123// IsInReplyToLink determines whether the call to GetInReplyToLink is safe for the specified index 2124func (t *Image) IsInReplyToLink(index int) (ok bool) { 2125 return t.inReplyTo[index].Link != nil 2126 2127} 2128 2129// GetInReplyToLink returns the value safely if IsInReplyToLink returned true for the specified index 2130func (t *Image) GetInReplyToLink(index int) (v LinkType) { 2131 return t.inReplyTo[index].Link 2132 2133} 2134 2135// AppendInReplyToLink adds to the back of inReplyTo a LinkType type 2136func (t *Image) AppendInReplyToLink(v LinkType) { 2137 t.inReplyTo = append(t.inReplyTo, &inReplyToIntermediateType{Link: v}) 2138 2139} 2140 2141// PrependInReplyToLink adds to the front of inReplyTo a LinkType type 2142func (t *Image) PrependInReplyToLink(v LinkType) { 2143 t.inReplyTo = append([]*inReplyToIntermediateType{&inReplyToIntermediateType{Link: v}}, t.inReplyTo...) 2144 2145} 2146 2147// RemoveInReplyToLink deletes the value from the specified index 2148func (t *Image) RemoveInReplyToLink(index int) { 2149 copy(t.inReplyTo[index:], t.inReplyTo[index+1:]) 2150 t.inReplyTo[len(t.inReplyTo)-1] = nil 2151 t.inReplyTo = t.inReplyTo[:len(t.inReplyTo)-1] 2152 2153} 2154 2155// IsInReplyToIRI determines whether the call to GetInReplyToIRI is safe for the specified index 2156func (t *Image) IsInReplyToIRI(index int) (ok bool) { 2157 return t.inReplyTo[index].IRI != nil 2158 2159} 2160 2161// GetInReplyToIRI returns the value safely if IsInReplyToIRI returned true for the specified index 2162func (t *Image) GetInReplyToIRI(index int) (v *url.URL) { 2163 return t.inReplyTo[index].IRI 2164 2165} 2166 2167// AppendInReplyToIRI adds to the back of inReplyTo a *url.URL type 2168func (t *Image) AppendInReplyToIRI(v *url.URL) { 2169 t.inReplyTo = append(t.inReplyTo, &inReplyToIntermediateType{IRI: v}) 2170 2171} 2172 2173// PrependInReplyToIRI adds to the front of inReplyTo a *url.URL type 2174func (t *Image) PrependInReplyToIRI(v *url.URL) { 2175 t.inReplyTo = append([]*inReplyToIntermediateType{&inReplyToIntermediateType{IRI: v}}, t.inReplyTo...) 2176 2177} 2178 2179// RemoveInReplyToIRI deletes the value from the specified index 2180func (t *Image) RemoveInReplyToIRI(index int) { 2181 copy(t.inReplyTo[index:], t.inReplyTo[index+1:]) 2182 t.inReplyTo[len(t.inReplyTo)-1] = nil 2183 t.inReplyTo = t.inReplyTo[:len(t.inReplyTo)-1] 2184 2185} 2186 2187// HasUnknownInReplyTo determines whether the call to GetUnknownInReplyTo is safe 2188func (t *Image) HasUnknownInReplyTo() (ok bool) { 2189 return t.inReplyTo != nil && t.inReplyTo[0].unknown_ != nil 2190 2191} 2192 2193// GetUnknownInReplyTo returns the unknown value for inReplyTo 2194func (t *Image) GetUnknownInReplyTo() (v interface{}) { 2195 return t.inReplyTo[0].unknown_ 2196 2197} 2198 2199// SetUnknownInReplyTo sets the unknown value of inReplyTo 2200func (t *Image) SetUnknownInReplyTo(i interface{}) { 2201 if t.unknown_ == nil { 2202 t.unknown_ = make(map[string]interface{}) 2203 } 2204 tmp := &inReplyToIntermediateType{} 2205 tmp.unknown_ = i 2206 t.inReplyTo = append(t.inReplyTo, tmp) 2207 2208} 2209 2210// LocationLen determines the number of elements able to be used for the IsLocationObject, GetLocationObject, and RemoveLocationObject functions 2211func (t *Image) LocationLen() (l int) { 2212 return len(t.location) 2213 2214} 2215 2216// IsLocationObject determines whether the call to GetLocationObject is safe for the specified index 2217func (t *Image) IsLocationObject(index int) (ok bool) { 2218 return t.location[index].Object != nil 2219 2220} 2221 2222// GetLocationObject returns the value safely if IsLocationObject returned true for the specified index 2223func (t *Image) GetLocationObject(index int) (v ObjectType) { 2224 return t.location[index].Object 2225 2226} 2227 2228// AppendLocationObject adds to the back of location a ObjectType type 2229func (t *Image) AppendLocationObject(v ObjectType) { 2230 t.location = append(t.location, &locationIntermediateType{Object: v}) 2231 2232} 2233 2234// PrependLocationObject adds to the front of location a ObjectType type 2235func (t *Image) PrependLocationObject(v ObjectType) { 2236 t.location = append([]*locationIntermediateType{&locationIntermediateType{Object: v}}, t.location...) 2237 2238} 2239 2240// RemoveLocationObject deletes the value from the specified index 2241func (t *Image) RemoveLocationObject(index int) { 2242 copy(t.location[index:], t.location[index+1:]) 2243 t.location[len(t.location)-1] = nil 2244 t.location = t.location[:len(t.location)-1] 2245 2246} 2247 2248// IsLocationLink determines whether the call to GetLocationLink is safe for the specified index 2249func (t *Image) IsLocationLink(index int) (ok bool) { 2250 return t.location[index].Link != nil 2251 2252} 2253 2254// GetLocationLink returns the value safely if IsLocationLink returned true for the specified index 2255func (t *Image) GetLocationLink(index int) (v LinkType) { 2256 return t.location[index].Link 2257 2258} 2259 2260// AppendLocationLink adds to the back of location a LinkType type 2261func (t *Image) AppendLocationLink(v LinkType) { 2262 t.location = append(t.location, &locationIntermediateType{Link: v}) 2263 2264} 2265 2266// PrependLocationLink adds to the front of location a LinkType type 2267func (t *Image) PrependLocationLink(v LinkType) { 2268 t.location = append([]*locationIntermediateType{&locationIntermediateType{Link: v}}, t.location...) 2269 2270} 2271 2272// RemoveLocationLink deletes the value from the specified index 2273func (t *Image) RemoveLocationLink(index int) { 2274 copy(t.location[index:], t.location[index+1:]) 2275 t.location[len(t.location)-1] = nil 2276 t.location = t.location[:len(t.location)-1] 2277 2278} 2279 2280// IsLocationIRI determines whether the call to GetLocationIRI is safe for the specified index 2281func (t *Image) IsLocationIRI(index int) (ok bool) { 2282 return t.location[index].IRI != nil 2283 2284} 2285 2286// GetLocationIRI returns the value safely if IsLocationIRI returned true for the specified index 2287func (t *Image) GetLocationIRI(index int) (v *url.URL) { 2288 return t.location[index].IRI 2289 2290} 2291 2292// AppendLocationIRI adds to the back of location a *url.URL type 2293func (t *Image) AppendLocationIRI(v *url.URL) { 2294 t.location = append(t.location, &locationIntermediateType{IRI: v}) 2295 2296} 2297 2298// PrependLocationIRI adds to the front of location a *url.URL type 2299func (t *Image) PrependLocationIRI(v *url.URL) { 2300 t.location = append([]*locationIntermediateType{&locationIntermediateType{IRI: v}}, t.location...) 2301 2302} 2303 2304// RemoveLocationIRI deletes the value from the specified index 2305func (t *Image) RemoveLocationIRI(index int) { 2306 copy(t.location[index:], t.location[index+1:]) 2307 t.location[len(t.location)-1] = nil 2308 t.location = t.location[:len(t.location)-1] 2309 2310} 2311 2312// HasUnknownLocation determines whether the call to GetUnknownLocation is safe 2313func (t *Image) HasUnknownLocation() (ok bool) { 2314 return t.location != nil && t.location[0].unknown_ != nil 2315 2316} 2317 2318// GetUnknownLocation returns the unknown value for location 2319func (t *Image) GetUnknownLocation() (v interface{}) { 2320 return t.location[0].unknown_ 2321 2322} 2323 2324// SetUnknownLocation sets the unknown value of location 2325func (t *Image) SetUnknownLocation(i interface{}) { 2326 if t.unknown_ == nil { 2327 t.unknown_ = make(map[string]interface{}) 2328 } 2329 tmp := &locationIntermediateType{} 2330 tmp.unknown_ = i 2331 t.location = append(t.location, tmp) 2332 2333} 2334 2335// PreviewLen determines the number of elements able to be used for the IsPreviewObject, GetPreviewObject, and RemovePreviewObject functions 2336func (t *Image) PreviewLen() (l int) { 2337 return len(t.preview) 2338 2339} 2340 2341// IsPreviewObject determines whether the call to GetPreviewObject is safe for the specified index 2342func (t *Image) IsPreviewObject(index int) (ok bool) { 2343 return t.preview[index].Object != nil 2344 2345} 2346 2347// GetPreviewObject returns the value safely if IsPreviewObject returned true for the specified index 2348func (t *Image) GetPreviewObject(index int) (v ObjectType) { 2349 return t.preview[index].Object 2350 2351} 2352 2353// AppendPreviewObject adds to the back of preview a ObjectType type 2354func (t *Image) AppendPreviewObject(v ObjectType) { 2355 t.preview = append(t.preview, &previewIntermediateType{Object: v}) 2356 2357} 2358 2359// PrependPreviewObject adds to the front of preview a ObjectType type 2360func (t *Image) PrependPreviewObject(v ObjectType) { 2361 t.preview = append([]*previewIntermediateType{&previewIntermediateType{Object: v}}, t.preview...) 2362 2363} 2364 2365// RemovePreviewObject deletes the value from the specified index 2366func (t *Image) RemovePreviewObject(index int) { 2367 copy(t.preview[index:], t.preview[index+1:]) 2368 t.preview[len(t.preview)-1] = nil 2369 t.preview = t.preview[:len(t.preview)-1] 2370 2371} 2372 2373// IsPreviewLink determines whether the call to GetPreviewLink is safe for the specified index 2374func (t *Image) IsPreviewLink(index int) (ok bool) { 2375 return t.preview[index].Link != nil 2376 2377} 2378 2379// GetPreviewLink returns the value safely if IsPreviewLink returned true for the specified index 2380func (t *Image) GetPreviewLink(index int) (v LinkType) { 2381 return t.preview[index].Link 2382 2383} 2384 2385// AppendPreviewLink adds to the back of preview a LinkType type 2386func (t *Image) AppendPreviewLink(v LinkType) { 2387 t.preview = append(t.preview, &previewIntermediateType{Link: v}) 2388 2389} 2390 2391// PrependPreviewLink adds to the front of preview a LinkType type 2392func (t *Image) PrependPreviewLink(v LinkType) { 2393 t.preview = append([]*previewIntermediateType{&previewIntermediateType{Link: v}}, t.preview...) 2394 2395} 2396 2397// RemovePreviewLink deletes the value from the specified index 2398func (t *Image) RemovePreviewLink(index int) { 2399 copy(t.preview[index:], t.preview[index+1:]) 2400 t.preview[len(t.preview)-1] = nil 2401 t.preview = t.preview[:len(t.preview)-1] 2402 2403} 2404 2405// IsPreviewIRI determines whether the call to GetPreviewIRI is safe for the specified index 2406func (t *Image) IsPreviewIRI(index int) (ok bool) { 2407 return t.preview[index].IRI != nil 2408 2409} 2410 2411// GetPreviewIRI returns the value safely if IsPreviewIRI returned true for the specified index 2412func (t *Image) GetPreviewIRI(index int) (v *url.URL) { 2413 return t.preview[index].IRI 2414 2415} 2416 2417// AppendPreviewIRI adds to the back of preview a *url.URL type 2418func (t *Image) AppendPreviewIRI(v *url.URL) { 2419 t.preview = append(t.preview, &previewIntermediateType{IRI: v}) 2420 2421} 2422 2423// PrependPreviewIRI adds to the front of preview a *url.URL type 2424func (t *Image) PrependPreviewIRI(v *url.URL) { 2425 t.preview = append([]*previewIntermediateType{&previewIntermediateType{IRI: v}}, t.preview...) 2426 2427} 2428 2429// RemovePreviewIRI deletes the value from the specified index 2430func (t *Image) RemovePreviewIRI(index int) { 2431 copy(t.preview[index:], t.preview[index+1:]) 2432 t.preview[len(t.preview)-1] = nil 2433 t.preview = t.preview[:len(t.preview)-1] 2434 2435} 2436 2437// HasUnknownPreview determines whether the call to GetUnknownPreview is safe 2438func (t *Image) HasUnknownPreview() (ok bool) { 2439 return t.preview != nil && t.preview[0].unknown_ != nil 2440 2441} 2442 2443// GetUnknownPreview returns the unknown value for preview 2444func (t *Image) GetUnknownPreview() (v interface{}) { 2445 return t.preview[0].unknown_ 2446 2447} 2448 2449// SetUnknownPreview sets the unknown value of preview 2450func (t *Image) SetUnknownPreview(i interface{}) { 2451 if t.unknown_ == nil { 2452 t.unknown_ = make(map[string]interface{}) 2453 } 2454 tmp := &previewIntermediateType{} 2455 tmp.unknown_ = i 2456 t.preview = append(t.preview, tmp) 2457 2458} 2459 2460// IsPublished determines whether the call to GetPublished is safe 2461func (t *Image) IsPublished() (ok bool) { 2462 return t.published != nil && t.published.dateTime != nil 2463 2464} 2465 2466// GetPublished returns the value safely if IsPublished returned true 2467func (t *Image) GetPublished() (v time.Time) { 2468 return *t.published.dateTime 2469 2470} 2471 2472// SetPublished sets the value of published to be of time.Time type 2473func (t *Image) SetPublished(v time.Time) { 2474 t.published = &publishedIntermediateType{dateTime: &v} 2475 2476} 2477 2478// IsPublishedIRI determines whether the call to GetPublishedIRI is safe 2479func (t *Image) IsPublishedIRI() (ok bool) { 2480 return t.published != nil && t.published.IRI != nil 2481 2482} 2483 2484// GetPublishedIRI returns the value safely if IsPublishedIRI returned true 2485func (t *Image) GetPublishedIRI() (v *url.URL) { 2486 return t.published.IRI 2487 2488} 2489 2490// SetPublishedIRI sets the value of published to be of *url.URL type 2491func (t *Image) SetPublishedIRI(v *url.URL) { 2492 t.published = &publishedIntermediateType{IRI: v} 2493 2494} 2495 2496// HasUnknownPublished determines whether the call to GetUnknownPublished is safe 2497func (t *Image) HasUnknownPublished() (ok bool) { 2498 return t.published != nil && t.published.unknown_ != nil 2499 2500} 2501 2502// GetUnknownPublished returns the unknown value for published 2503func (t *Image) GetUnknownPublished() (v interface{}) { 2504 return t.published.unknown_ 2505 2506} 2507 2508// SetUnknownPublished sets the unknown value of published 2509func (t *Image) SetUnknownPublished(i interface{}) { 2510 if t.unknown_ == nil { 2511 t.unknown_ = make(map[string]interface{}) 2512 } 2513 tmp := &publishedIntermediateType{} 2514 tmp.unknown_ = i 2515 t.published = tmp 2516 2517} 2518 2519// IsReplies determines whether the call to GetReplies is safe 2520func (t *Image) IsReplies() (ok bool) { 2521 return t.replies != nil && t.replies.Collection != nil 2522 2523} 2524 2525// GetReplies returns the value safely if IsReplies returned true 2526func (t *Image) GetReplies() (v CollectionType) { 2527 return t.replies.Collection 2528 2529} 2530 2531// SetReplies sets the value of replies to be of CollectionType type 2532func (t *Image) SetReplies(v CollectionType) { 2533 t.replies = &repliesIntermediateType{Collection: v} 2534 2535} 2536 2537// IsRepliesIRI determines whether the call to GetRepliesIRI is safe 2538func (t *Image) IsRepliesIRI() (ok bool) { 2539 return t.replies != nil && t.replies.IRI != nil 2540 2541} 2542 2543// GetRepliesIRI returns the value safely if IsRepliesIRI returned true 2544func (t *Image) GetRepliesIRI() (v *url.URL) { 2545 return t.replies.IRI 2546 2547} 2548 2549// SetRepliesIRI sets the value of replies to be of *url.URL type 2550func (t *Image) SetRepliesIRI(v *url.URL) { 2551 t.replies = &repliesIntermediateType{IRI: v} 2552 2553} 2554 2555// HasUnknownReplies determines whether the call to GetUnknownReplies is safe 2556func (t *Image) HasUnknownReplies() (ok bool) { 2557 return t.replies != nil && t.replies.unknown_ != nil 2558 2559} 2560 2561// GetUnknownReplies returns the unknown value for replies 2562func (t *Image) GetUnknownReplies() (v interface{}) { 2563 return t.replies.unknown_ 2564 2565} 2566 2567// SetUnknownReplies sets the unknown value of replies 2568func (t *Image) SetUnknownReplies(i interface{}) { 2569 if t.unknown_ == nil { 2570 t.unknown_ = make(map[string]interface{}) 2571 } 2572 tmp := &repliesIntermediateType{} 2573 tmp.unknown_ = i 2574 t.replies = tmp 2575 2576} 2577 2578// IsStartTime determines whether the call to GetStartTime is safe 2579func (t *Image) IsStartTime() (ok bool) { 2580 return t.startTime != nil && t.startTime.dateTime != nil 2581 2582} 2583 2584// GetStartTime returns the value safely if IsStartTime returned true 2585func (t *Image) GetStartTime() (v time.Time) { 2586 return *t.startTime.dateTime 2587 2588} 2589 2590// SetStartTime sets the value of startTime to be of time.Time type 2591func (t *Image) SetStartTime(v time.Time) { 2592 t.startTime = &startTimeIntermediateType{dateTime: &v} 2593 2594} 2595 2596// IsStartTimeIRI determines whether the call to GetStartTimeIRI is safe 2597func (t *Image) IsStartTimeIRI() (ok bool) { 2598 return t.startTime != nil && t.startTime.IRI != nil 2599 2600} 2601 2602// GetStartTimeIRI returns the value safely if IsStartTimeIRI returned true 2603func (t *Image) GetStartTimeIRI() (v *url.URL) { 2604 return t.startTime.IRI 2605 2606} 2607 2608// SetStartTimeIRI sets the value of startTime to be of *url.URL type 2609func (t *Image) SetStartTimeIRI(v *url.URL) { 2610 t.startTime = &startTimeIntermediateType{IRI: v} 2611 2612} 2613 2614// HasUnknownStartTime determines whether the call to GetUnknownStartTime is safe 2615func (t *Image) HasUnknownStartTime() (ok bool) { 2616 return t.startTime != nil && t.startTime.unknown_ != nil 2617 2618} 2619 2620// GetUnknownStartTime returns the unknown value for startTime 2621func (t *Image) GetUnknownStartTime() (v interface{}) { 2622 return t.startTime.unknown_ 2623 2624} 2625 2626// SetUnknownStartTime sets the unknown value of startTime 2627func (t *Image) SetUnknownStartTime(i interface{}) { 2628 if t.unknown_ == nil { 2629 t.unknown_ = make(map[string]interface{}) 2630 } 2631 tmp := &startTimeIntermediateType{} 2632 tmp.unknown_ = i 2633 t.startTime = tmp 2634 2635} 2636 2637// SummaryLen determines the number of elements able to be used for the IsSummaryString, GetSummaryString, and RemoveSummaryString functions 2638func (t *Image) SummaryLen() (l int) { 2639 return len(t.summary) 2640 2641} 2642 2643// IsSummaryString determines whether the call to GetSummaryString is safe for the specified index 2644func (t *Image) IsSummaryString(index int) (ok bool) { 2645 return t.summary[index].stringName != nil 2646 2647} 2648 2649// GetSummaryString returns the value safely if IsSummaryString returned true for the specified index 2650func (t *Image) GetSummaryString(index int) (v string) { 2651 return *t.summary[index].stringName 2652 2653} 2654 2655// AppendSummaryString adds to the back of summary a string type 2656func (t *Image) AppendSummaryString(v string) { 2657 t.summary = append(t.summary, &summaryIntermediateType{stringName: &v}) 2658 2659} 2660 2661// PrependSummaryString adds to the front of summary a string type 2662func (t *Image) PrependSummaryString(v string) { 2663 t.summary = append([]*summaryIntermediateType{&summaryIntermediateType{stringName: &v}}, t.summary...) 2664 2665} 2666 2667// RemoveSummaryString deletes the value from the specified index 2668func (t *Image) RemoveSummaryString(index int) { 2669 copy(t.summary[index:], t.summary[index+1:]) 2670 t.summary[len(t.summary)-1] = nil 2671 t.summary = t.summary[:len(t.summary)-1] 2672 2673} 2674 2675// IsSummaryLangString determines whether the call to GetSummaryLangString is safe for the specified index 2676func (t *Image) IsSummaryLangString(index int) (ok bool) { 2677 return t.summary[index].langString != nil 2678 2679} 2680 2681// GetSummaryLangString returns the value safely if IsSummaryLangString returned true for the specified index 2682func (t *Image) GetSummaryLangString(index int) (v string) { 2683 return *t.summary[index].langString 2684 2685} 2686 2687// AppendSummaryLangString adds to the back of summary a string type 2688func (t *Image) AppendSummaryLangString(v string) { 2689 t.summary = append(t.summary, &summaryIntermediateType{langString: &v}) 2690 2691} 2692 2693// PrependSummaryLangString adds to the front of summary a string type 2694func (t *Image) PrependSummaryLangString(v string) { 2695 t.summary = append([]*summaryIntermediateType{&summaryIntermediateType{langString: &v}}, t.summary...) 2696 2697} 2698 2699// RemoveSummaryLangString deletes the value from the specified index 2700func (t *Image) RemoveSummaryLangString(index int) { 2701 copy(t.summary[index:], t.summary[index+1:]) 2702 t.summary[len(t.summary)-1] = nil 2703 t.summary = t.summary[:len(t.summary)-1] 2704 2705} 2706 2707// IsSummaryIRI determines whether the call to GetSummaryIRI is safe for the specified index 2708func (t *Image) IsSummaryIRI(index int) (ok bool) { 2709 return t.summary[index].IRI != nil 2710 2711} 2712 2713// GetSummaryIRI returns the value safely if IsSummaryIRI returned true for the specified index 2714func (t *Image) GetSummaryIRI(index int) (v *url.URL) { 2715 return t.summary[index].IRI 2716 2717} 2718 2719// AppendSummaryIRI adds to the back of summary a *url.URL type 2720func (t *Image) AppendSummaryIRI(v *url.URL) { 2721 t.summary = append(t.summary, &summaryIntermediateType{IRI: v}) 2722 2723} 2724 2725// PrependSummaryIRI adds to the front of summary a *url.URL type 2726func (t *Image) PrependSummaryIRI(v *url.URL) { 2727 t.summary = append([]*summaryIntermediateType{&summaryIntermediateType{IRI: v}}, t.summary...) 2728 2729} 2730 2731// RemoveSummaryIRI deletes the value from the specified index 2732func (t *Image) RemoveSummaryIRI(index int) { 2733 copy(t.summary[index:], t.summary[index+1:]) 2734 t.summary[len(t.summary)-1] = nil 2735 t.summary = t.summary[:len(t.summary)-1] 2736 2737} 2738 2739// HasUnknownSummary determines whether the call to GetUnknownSummary is safe 2740func (t *Image) HasUnknownSummary() (ok bool) { 2741 return t.summary != nil && t.summary[0].unknown_ != nil 2742 2743} 2744 2745// GetUnknownSummary returns the unknown value for summary 2746func (t *Image) GetUnknownSummary() (v interface{}) { 2747 return t.summary[0].unknown_ 2748 2749} 2750 2751// SetUnknownSummary sets the unknown value of summary 2752func (t *Image) SetUnknownSummary(i interface{}) { 2753 if t.unknown_ == nil { 2754 t.unknown_ = make(map[string]interface{}) 2755 } 2756 tmp := &summaryIntermediateType{} 2757 tmp.unknown_ = i 2758 t.summary = append(t.summary, tmp) 2759 2760} 2761 2762// SummaryMapLanguages returns all languages for this property's language mapping, or nil if there are none. 2763func (t *Image) SummaryMapLanguages() (l []string) { 2764 if t.summaryMap == nil || len(t.summaryMap) == 0 { 2765 return nil 2766 } 2767 for k := range t.summaryMap { 2768 l = append(l, k) 2769 } 2770 return 2771 2772} 2773 2774// GetSummaryMap retrieves the value of the property for the specified language, or an empty string if it does not exist 2775func (t *Image) GetSummaryMap(l string) (v string) { 2776 if t.summaryMap == nil { 2777 return "" 2778 } 2779 ok := false 2780 v, ok = t.summaryMap[l] 2781 if !ok { 2782 return "" 2783 } 2784 return v 2785 2786} 2787 2788// SetSummaryMap sets the value of the property for the specified language 2789func (t *Image) SetSummaryMap(l string, v string) { 2790 if t.summaryMap == nil { 2791 t.summaryMap = make(map[string]string) 2792 } 2793 t.summaryMap[l] = v 2794 2795} 2796 2797// TagLen determines the number of elements able to be used for the IsTagObject, GetTagObject, and RemoveTagObject functions 2798func (t *Image) TagLen() (l int) { 2799 return len(t.tag) 2800 2801} 2802 2803// IsTagObject determines whether the call to GetTagObject is safe for the specified index 2804func (t *Image) IsTagObject(index int) (ok bool) { 2805 return t.tag[index].Object != nil 2806 2807} 2808 2809// GetTagObject returns the value safely if IsTagObject returned true for the specified index 2810func (t *Image) GetTagObject(index int) (v ObjectType) { 2811 return t.tag[index].Object 2812 2813} 2814 2815// AppendTagObject adds to the back of tag a ObjectType type 2816func (t *Image) AppendTagObject(v ObjectType) { 2817 t.tag = append(t.tag, &tagIntermediateType{Object: v}) 2818 2819} 2820 2821// PrependTagObject adds to the front of tag a ObjectType type 2822func (t *Image) PrependTagObject(v ObjectType) { 2823 t.tag = append([]*tagIntermediateType{&tagIntermediateType{Object: v}}, t.tag...) 2824 2825} 2826 2827// RemoveTagObject deletes the value from the specified index 2828func (t *Image) RemoveTagObject(index int) { 2829 copy(t.tag[index:], t.tag[index+1:]) 2830 t.tag[len(t.tag)-1] = nil 2831 t.tag = t.tag[:len(t.tag)-1] 2832 2833} 2834 2835// IsTagLink determines whether the call to GetTagLink is safe for the specified index 2836func (t *Image) IsTagLink(index int) (ok bool) { 2837 return t.tag[index].Link != nil 2838 2839} 2840 2841// GetTagLink returns the value safely if IsTagLink returned true for the specified index 2842func (t *Image) GetTagLink(index int) (v LinkType) { 2843 return t.tag[index].Link 2844 2845} 2846 2847// AppendTagLink adds to the back of tag a LinkType type 2848func (t *Image) AppendTagLink(v LinkType) { 2849 t.tag = append(t.tag, &tagIntermediateType{Link: v}) 2850 2851} 2852 2853// PrependTagLink adds to the front of tag a LinkType type 2854func (t *Image) PrependTagLink(v LinkType) { 2855 t.tag = append([]*tagIntermediateType{&tagIntermediateType{Link: v}}, t.tag...) 2856 2857} 2858 2859// RemoveTagLink deletes the value from the specified index 2860func (t *Image) RemoveTagLink(index int) { 2861 copy(t.tag[index:], t.tag[index+1:]) 2862 t.tag[len(t.tag)-1] = nil 2863 t.tag = t.tag[:len(t.tag)-1] 2864 2865} 2866 2867// IsTagIRI determines whether the call to GetTagIRI is safe for the specified index 2868func (t *Image) IsTagIRI(index int) (ok bool) { 2869 return t.tag[index].IRI != nil 2870 2871} 2872 2873// GetTagIRI returns the value safely if IsTagIRI returned true for the specified index 2874func (t *Image) GetTagIRI(index int) (v *url.URL) { 2875 return t.tag[index].IRI 2876 2877} 2878 2879// AppendTagIRI adds to the back of tag a *url.URL type 2880func (t *Image) AppendTagIRI(v *url.URL) { 2881 t.tag = append(t.tag, &tagIntermediateType{IRI: v}) 2882 2883} 2884 2885// PrependTagIRI adds to the front of tag a *url.URL type 2886func (t *Image) PrependTagIRI(v *url.URL) { 2887 t.tag = append([]*tagIntermediateType{&tagIntermediateType{IRI: v}}, t.tag...) 2888 2889} 2890 2891// RemoveTagIRI deletes the value from the specified index 2892func (t *Image) RemoveTagIRI(index int) { 2893 copy(t.tag[index:], t.tag[index+1:]) 2894 t.tag[len(t.tag)-1] = nil 2895 t.tag = t.tag[:len(t.tag)-1] 2896 2897} 2898 2899// HasUnknownTag determines whether the call to GetUnknownTag is safe 2900func (t *Image) HasUnknownTag() (ok bool) { 2901 return t.tag != nil && t.tag[0].unknown_ != nil 2902 2903} 2904 2905// GetUnknownTag returns the unknown value for tag 2906func (t *Image) GetUnknownTag() (v interface{}) { 2907 return t.tag[0].unknown_ 2908 2909} 2910 2911// SetUnknownTag sets the unknown value of tag 2912func (t *Image) SetUnknownTag(i interface{}) { 2913 if t.unknown_ == nil { 2914 t.unknown_ = make(map[string]interface{}) 2915 } 2916 tmp := &tagIntermediateType{} 2917 tmp.unknown_ = i 2918 t.tag = append(t.tag, tmp) 2919 2920} 2921 2922// TypeLen determines the number of elements able to be used for the GetType and RemoveType functions 2923func (t *Image) TypeLen() (l int) { 2924 return len(t.typeName) 2925 2926} 2927 2928// GetType returns the value for the specified index 2929func (t *Image) GetType(index int) (v interface{}) { 2930 return t.typeName[index] 2931 2932} 2933 2934// AppendType adds a value to the back of type 2935func (t *Image) AppendType(v interface{}) { 2936 t.typeName = append(t.typeName, v) 2937 2938} 2939 2940// PrependType adds a value to the front of type 2941func (t *Image) PrependType(v interface{}) { 2942 t.typeName = append([]interface{}{v}, t.typeName...) 2943 2944} 2945 2946// RemoveType deletes the value from the specified index 2947func (t *Image) RemoveType(index int) { 2948 copy(t.typeName[index:], t.typeName[index+1:]) 2949 t.typeName[len(t.typeName)-1] = nil 2950 t.typeName = t.typeName[:len(t.typeName)-1] 2951 2952} 2953 2954// IsUpdated determines whether the call to GetUpdated is safe 2955func (t *Image) IsUpdated() (ok bool) { 2956 return t.updated != nil && t.updated.dateTime != nil 2957 2958} 2959 2960// GetUpdated returns the value safely if IsUpdated returned true 2961func (t *Image) GetUpdated() (v time.Time) { 2962 return *t.updated.dateTime 2963 2964} 2965 2966// SetUpdated sets the value of updated to be of time.Time type 2967func (t *Image) SetUpdated(v time.Time) { 2968 t.updated = &updatedIntermediateType{dateTime: &v} 2969 2970} 2971 2972// IsUpdatedIRI determines whether the call to GetUpdatedIRI is safe 2973func (t *Image) IsUpdatedIRI() (ok bool) { 2974 return t.updated != nil && t.updated.IRI != nil 2975 2976} 2977 2978// GetUpdatedIRI returns the value safely if IsUpdatedIRI returned true 2979func (t *Image) GetUpdatedIRI() (v *url.URL) { 2980 return t.updated.IRI 2981 2982} 2983 2984// SetUpdatedIRI sets the value of updated to be of *url.URL type 2985func (t *Image) SetUpdatedIRI(v *url.URL) { 2986 t.updated = &updatedIntermediateType{IRI: v} 2987 2988} 2989 2990// HasUnknownUpdated determines whether the call to GetUnknownUpdated is safe 2991func (t *Image) HasUnknownUpdated() (ok bool) { 2992 return t.updated != nil && t.updated.unknown_ != nil 2993 2994} 2995 2996// GetUnknownUpdated returns the unknown value for updated 2997func (t *Image) GetUnknownUpdated() (v interface{}) { 2998 return t.updated.unknown_ 2999 3000} 3001 3002// SetUnknownUpdated sets the unknown value of updated 3003func (t *Image) SetUnknownUpdated(i interface{}) { 3004 if t.unknown_ == nil { 3005 t.unknown_ = make(map[string]interface{}) 3006 } 3007 tmp := &updatedIntermediateType{} 3008 tmp.unknown_ = i 3009 t.updated = tmp 3010 3011} 3012 3013// UrlLen determines the number of elements able to be used for the IsUrlAnyURI, GetUrlAnyURI, and RemoveUrlAnyURI functions 3014func (t *Image) UrlLen() (l int) { 3015 return len(t.url) 3016 3017} 3018 3019// IsUrlAnyURI determines whether the call to GetUrlAnyURI is safe for the specified index 3020func (t *Image) IsUrlAnyURI(index int) (ok bool) { 3021 return t.url[index].anyURI != nil 3022 3023} 3024 3025// GetUrlAnyURI returns the value safely if IsUrlAnyURI returned true for the specified index 3026func (t *Image) GetUrlAnyURI(index int) (v *url.URL) { 3027 return t.url[index].anyURI 3028 3029} 3030 3031// AppendUrlAnyURI adds to the back of url a *url.URL type 3032func (t *Image) AppendUrlAnyURI(v *url.URL) { 3033 t.url = append(t.url, &urlIntermediateType{anyURI: v}) 3034 3035} 3036 3037// PrependUrlAnyURI adds to the front of url a *url.URL type 3038func (t *Image) PrependUrlAnyURI(v *url.URL) { 3039 t.url = append([]*urlIntermediateType{&urlIntermediateType{anyURI: v}}, t.url...) 3040 3041} 3042 3043// RemoveUrlAnyURI deletes the value from the specified index 3044func (t *Image) RemoveUrlAnyURI(index int) { 3045 copy(t.url[index:], t.url[index+1:]) 3046 t.url[len(t.url)-1] = nil 3047 t.url = t.url[:len(t.url)-1] 3048 3049} 3050 3051// IsUrlLink determines whether the call to GetUrlLink is safe for the specified index 3052func (t *Image) IsUrlLink(index int) (ok bool) { 3053 return t.url[index].Link != nil 3054 3055} 3056 3057// GetUrlLink returns the value safely if IsUrlLink returned true for the specified index 3058func (t *Image) GetUrlLink(index int) (v LinkType) { 3059 return t.url[index].Link 3060 3061} 3062 3063// AppendUrlLink adds to the back of url a LinkType type 3064func (t *Image) AppendUrlLink(v LinkType) { 3065 t.url = append(t.url, &urlIntermediateType{Link: v}) 3066 3067} 3068 3069// PrependUrlLink adds to the front of url a LinkType type 3070func (t *Image) PrependUrlLink(v LinkType) { 3071 t.url = append([]*urlIntermediateType{&urlIntermediateType{Link: v}}, t.url...) 3072 3073} 3074 3075// RemoveUrlLink deletes the value from the specified index 3076func (t *Image) RemoveUrlLink(index int) { 3077 copy(t.url[index:], t.url[index+1:]) 3078 t.url[len(t.url)-1] = nil 3079 t.url = t.url[:len(t.url)-1] 3080 3081} 3082 3083// HasUnknownUrl determines whether the call to GetUnknownUrl is safe 3084func (t *Image) HasUnknownUrl() (ok bool) { 3085 return t.url != nil && t.url[0].unknown_ != nil 3086 3087} 3088 3089// GetUnknownUrl returns the unknown value for url 3090func (t *Image) GetUnknownUrl() (v interface{}) { 3091 return t.url[0].unknown_ 3092 3093} 3094 3095// SetUnknownUrl sets the unknown value of url 3096func (t *Image) SetUnknownUrl(i interface{}) { 3097 if t.unknown_ == nil { 3098 t.unknown_ = make(map[string]interface{}) 3099 } 3100 tmp := &urlIntermediateType{} 3101 tmp.unknown_ = i 3102 t.url = append(t.url, tmp) 3103 3104} 3105 3106// ToLen determines the number of elements able to be used for the IsToObject, GetToObject, and RemoveToObject functions 3107func (t *Image) ToLen() (l int) { 3108 return len(t.to) 3109 3110} 3111 3112// IsToObject determines whether the call to GetToObject is safe for the specified index 3113func (t *Image) IsToObject(index int) (ok bool) { 3114 return t.to[index].Object != nil 3115 3116} 3117 3118// GetToObject returns the value safely if IsToObject returned true for the specified index 3119func (t *Image) GetToObject(index int) (v ObjectType) { 3120 return t.to[index].Object 3121 3122} 3123 3124// AppendToObject adds to the back of to a ObjectType type 3125func (t *Image) AppendToObject(v ObjectType) { 3126 t.to = append(t.to, &toIntermediateType{Object: v}) 3127 3128} 3129 3130// PrependToObject adds to the front of to a ObjectType type 3131func (t *Image) PrependToObject(v ObjectType) { 3132 t.to = append([]*toIntermediateType{&toIntermediateType{Object: v}}, t.to...) 3133 3134} 3135 3136// RemoveToObject deletes the value from the specified index 3137func (t *Image) RemoveToObject(index int) { 3138 copy(t.to[index:], t.to[index+1:]) 3139 t.to[len(t.to)-1] = nil 3140 t.to = t.to[:len(t.to)-1] 3141 3142} 3143 3144// IsToLink determines whether the call to GetToLink is safe for the specified index 3145func (t *Image) IsToLink(index int) (ok bool) { 3146 return t.to[index].Link != nil 3147 3148} 3149 3150// GetToLink returns the value safely if IsToLink returned true for the specified index 3151func (t *Image) GetToLink(index int) (v LinkType) { 3152 return t.to[index].Link 3153 3154} 3155 3156// AppendToLink adds to the back of to a LinkType type 3157func (t *Image) AppendToLink(v LinkType) { 3158 t.to = append(t.to, &toIntermediateType{Link: v}) 3159 3160} 3161 3162// PrependToLink adds to the front of to a LinkType type 3163func (t *Image) PrependToLink(v LinkType) { 3164 t.to = append([]*toIntermediateType{&toIntermediateType{Link: v}}, t.to...) 3165 3166} 3167 3168// RemoveToLink deletes the value from the specified index 3169func (t *Image) RemoveToLink(index int) { 3170 copy(t.to[index:], t.to[index+1:]) 3171 t.to[len(t.to)-1] = nil 3172 t.to = t.to[:len(t.to)-1] 3173 3174} 3175 3176// IsToIRI determines whether the call to GetToIRI is safe for the specified index 3177func (t *Image) IsToIRI(index int) (ok bool) { 3178 return t.to[index].IRI != nil 3179 3180} 3181 3182// GetToIRI returns the value safely if IsToIRI returned true for the specified index 3183func (t *Image) GetToIRI(index int) (v *url.URL) { 3184 return t.to[index].IRI 3185 3186} 3187 3188// AppendToIRI adds to the back of to a *url.URL type 3189func (t *Image) AppendToIRI(v *url.URL) { 3190 t.to = append(t.to, &toIntermediateType{IRI: v}) 3191 3192} 3193 3194// PrependToIRI adds to the front of to a *url.URL type 3195func (t *Image) PrependToIRI(v *url.URL) { 3196 t.to = append([]*toIntermediateType{&toIntermediateType{IRI: v}}, t.to...) 3197 3198} 3199 3200// RemoveToIRI deletes the value from the specified index 3201func (t *Image) RemoveToIRI(index int) { 3202 copy(t.to[index:], t.to[index+1:]) 3203 t.to[len(t.to)-1] = nil 3204 t.to = t.to[:len(t.to)-1] 3205 3206} 3207 3208// HasUnknownTo determines whether the call to GetUnknownTo is safe 3209func (t *Image) HasUnknownTo() (ok bool) { 3210 return t.to != nil && t.to[0].unknown_ != nil 3211 3212} 3213 3214// GetUnknownTo returns the unknown value for to 3215func (t *Image) GetUnknownTo() (v interface{}) { 3216 return t.to[0].unknown_ 3217 3218} 3219 3220// SetUnknownTo sets the unknown value of to 3221func (t *Image) SetUnknownTo(i interface{}) { 3222 if t.unknown_ == nil { 3223 t.unknown_ = make(map[string]interface{}) 3224 } 3225 tmp := &toIntermediateType{} 3226 tmp.unknown_ = i 3227 t.to = append(t.to, tmp) 3228 3229} 3230 3231// BtoLen determines the number of elements able to be used for the IsBtoObject, GetBtoObject, and RemoveBtoObject functions 3232func (t *Image) BtoLen() (l int) { 3233 return len(t.bto) 3234 3235} 3236 3237// IsBtoObject determines whether the call to GetBtoObject is safe for the specified index 3238func (t *Image) IsBtoObject(index int) (ok bool) { 3239 return t.bto[index].Object != nil 3240 3241} 3242 3243// GetBtoObject returns the value safely if IsBtoObject returned true for the specified index 3244func (t *Image) GetBtoObject(index int) (v ObjectType) { 3245 return t.bto[index].Object 3246 3247} 3248 3249// AppendBtoObject adds to the back of bto a ObjectType type 3250func (t *Image) AppendBtoObject(v ObjectType) { 3251 t.bto = append(t.bto, &btoIntermediateType{Object: v}) 3252 3253} 3254 3255// PrependBtoObject adds to the front of bto a ObjectType type 3256func (t *Image) PrependBtoObject(v ObjectType) { 3257 t.bto = append([]*btoIntermediateType{&btoIntermediateType{Object: v}}, t.bto...) 3258 3259} 3260 3261// RemoveBtoObject deletes the value from the specified index 3262func (t *Image) RemoveBtoObject(index int) { 3263 copy(t.bto[index:], t.bto[index+1:]) 3264 t.bto[len(t.bto)-1] = nil 3265 t.bto = t.bto[:len(t.bto)-1] 3266 3267} 3268 3269// IsBtoLink determines whether the call to GetBtoLink is safe for the specified index 3270func (t *Image) IsBtoLink(index int) (ok bool) { 3271 return t.bto[index].Link != nil 3272 3273} 3274 3275// GetBtoLink returns the value safely if IsBtoLink returned true for the specified index 3276func (t *Image) GetBtoLink(index int) (v LinkType) { 3277 return t.bto[index].Link 3278 3279} 3280 3281// AppendBtoLink adds to the back of bto a LinkType type 3282func (t *Image) AppendBtoLink(v LinkType) { 3283 t.bto = append(t.bto, &btoIntermediateType{Link: v}) 3284 3285} 3286 3287// PrependBtoLink adds to the front of bto a LinkType type 3288func (t *Image) PrependBtoLink(v LinkType) { 3289 t.bto = append([]*btoIntermediateType{&btoIntermediateType{Link: v}}, t.bto...) 3290 3291} 3292 3293// RemoveBtoLink deletes the value from the specified index 3294func (t *Image) RemoveBtoLink(index int) { 3295 copy(t.bto[index:], t.bto[index+1:]) 3296 t.bto[len(t.bto)-1] = nil 3297 t.bto = t.bto[:len(t.bto)-1] 3298 3299} 3300 3301// IsBtoIRI determines whether the call to GetBtoIRI is safe for the specified index 3302func (t *Image) IsBtoIRI(index int) (ok bool) { 3303 return t.bto[index].IRI != nil 3304 3305} 3306 3307// GetBtoIRI returns the value safely if IsBtoIRI returned true for the specified index 3308func (t *Image) GetBtoIRI(index int) (v *url.URL) { 3309 return t.bto[index].IRI 3310 3311} 3312 3313// AppendBtoIRI adds to the back of bto a *url.URL type 3314func (t *Image) AppendBtoIRI(v *url.URL) { 3315 t.bto = append(t.bto, &btoIntermediateType{IRI: v}) 3316 3317} 3318 3319// PrependBtoIRI adds to the front of bto a *url.URL type 3320func (t *Image) PrependBtoIRI(v *url.URL) { 3321 t.bto = append([]*btoIntermediateType{&btoIntermediateType{IRI: v}}, t.bto...) 3322 3323} 3324 3325// RemoveBtoIRI deletes the value from the specified index 3326func (t *Image) RemoveBtoIRI(index int) { 3327 copy(t.bto[index:], t.bto[index+1:]) 3328 t.bto[len(t.bto)-1] = nil 3329 t.bto = t.bto[:len(t.bto)-1] 3330 3331} 3332 3333// HasUnknownBto determines whether the call to GetUnknownBto is safe 3334func (t *Image) HasUnknownBto() (ok bool) { 3335 return t.bto != nil && t.bto[0].unknown_ != nil 3336 3337} 3338 3339// GetUnknownBto returns the unknown value for bto 3340func (t *Image) GetUnknownBto() (v interface{}) { 3341 return t.bto[0].unknown_ 3342 3343} 3344 3345// SetUnknownBto sets the unknown value of bto 3346func (t *Image) SetUnknownBto(i interface{}) { 3347 if t.unknown_ == nil { 3348 t.unknown_ = make(map[string]interface{}) 3349 } 3350 tmp := &btoIntermediateType{} 3351 tmp.unknown_ = i 3352 t.bto = append(t.bto, tmp) 3353 3354} 3355 3356// CcLen determines the number of elements able to be used for the IsCcObject, GetCcObject, and RemoveCcObject functions 3357func (t *Image) CcLen() (l int) { 3358 return len(t.cc) 3359 3360} 3361 3362// IsCcObject determines whether the call to GetCcObject is safe for the specified index 3363func (t *Image) IsCcObject(index int) (ok bool) { 3364 return t.cc[index].Object != nil 3365 3366} 3367 3368// GetCcObject returns the value safely if IsCcObject returned true for the specified index 3369func (t *Image) GetCcObject(index int) (v ObjectType) { 3370 return t.cc[index].Object 3371 3372} 3373 3374// AppendCcObject adds to the back of cc a ObjectType type 3375func (t *Image) AppendCcObject(v ObjectType) { 3376 t.cc = append(t.cc, &ccIntermediateType{Object: v}) 3377 3378} 3379 3380// PrependCcObject adds to the front of cc a ObjectType type 3381func (t *Image) PrependCcObject(v ObjectType) { 3382 t.cc = append([]*ccIntermediateType{&ccIntermediateType{Object: v}}, t.cc...) 3383 3384} 3385 3386// RemoveCcObject deletes the value from the specified index 3387func (t *Image) RemoveCcObject(index int) { 3388 copy(t.cc[index:], t.cc[index+1:]) 3389 t.cc[len(t.cc)-1] = nil 3390 t.cc = t.cc[:len(t.cc)-1] 3391 3392} 3393 3394// IsCcLink determines whether the call to GetCcLink is safe for the specified index 3395func (t *Image) IsCcLink(index int) (ok bool) { 3396 return t.cc[index].Link != nil 3397 3398} 3399 3400// GetCcLink returns the value safely if IsCcLink returned true for the specified index 3401func (t *Image) GetCcLink(index int) (v LinkType) { 3402 return t.cc[index].Link 3403 3404} 3405 3406// AppendCcLink adds to the back of cc a LinkType type 3407func (t *Image) AppendCcLink(v LinkType) { 3408 t.cc = append(t.cc, &ccIntermediateType{Link: v}) 3409 3410} 3411 3412// PrependCcLink adds to the front of cc a LinkType type 3413func (t *Image) PrependCcLink(v LinkType) { 3414 t.cc = append([]*ccIntermediateType{&ccIntermediateType{Link: v}}, t.cc...) 3415 3416} 3417 3418// RemoveCcLink deletes the value from the specified index 3419func (t *Image) RemoveCcLink(index int) { 3420 copy(t.cc[index:], t.cc[index+1:]) 3421 t.cc[len(t.cc)-1] = nil 3422 t.cc = t.cc[:len(t.cc)-1] 3423 3424} 3425 3426// IsCcIRI determines whether the call to GetCcIRI is safe for the specified index 3427func (t *Image) IsCcIRI(index int) (ok bool) { 3428 return t.cc[index].IRI != nil 3429 3430} 3431 3432// GetCcIRI returns the value safely if IsCcIRI returned true for the specified index 3433func (t *Image) GetCcIRI(index int) (v *url.URL) { 3434 return t.cc[index].IRI 3435 3436} 3437 3438// AppendCcIRI adds to the back of cc a *url.URL type 3439func (t *Image) AppendCcIRI(v *url.URL) { 3440 t.cc = append(t.cc, &ccIntermediateType{IRI: v}) 3441 3442} 3443 3444// PrependCcIRI adds to the front of cc a *url.URL type 3445func (t *Image) PrependCcIRI(v *url.URL) { 3446 t.cc = append([]*ccIntermediateType{&ccIntermediateType{IRI: v}}, t.cc...) 3447 3448} 3449 3450// RemoveCcIRI deletes the value from the specified index 3451func (t *Image) RemoveCcIRI(index int) { 3452 copy(t.cc[index:], t.cc[index+1:]) 3453 t.cc[len(t.cc)-1] = nil 3454 t.cc = t.cc[:len(t.cc)-1] 3455 3456} 3457 3458// HasUnknownCc determines whether the call to GetUnknownCc is safe 3459func (t *Image) HasUnknownCc() (ok bool) { 3460 return t.cc != nil && t.cc[0].unknown_ != nil 3461 3462} 3463 3464// GetUnknownCc returns the unknown value for cc 3465func (t *Image) GetUnknownCc() (v interface{}) { 3466 return t.cc[0].unknown_ 3467 3468} 3469 3470// SetUnknownCc sets the unknown value of cc 3471func (t *Image) SetUnknownCc(i interface{}) { 3472 if t.unknown_ == nil { 3473 t.unknown_ = make(map[string]interface{}) 3474 } 3475 tmp := &ccIntermediateType{} 3476 tmp.unknown_ = i 3477 t.cc = append(t.cc, tmp) 3478 3479} 3480 3481// BccLen determines the number of elements able to be used for the IsBccObject, GetBccObject, and RemoveBccObject functions 3482func (t *Image) BccLen() (l int) { 3483 return len(t.bcc) 3484 3485} 3486 3487// IsBccObject determines whether the call to GetBccObject is safe for the specified index 3488func (t *Image) IsBccObject(index int) (ok bool) { 3489 return t.bcc[index].Object != nil 3490 3491} 3492 3493// GetBccObject returns the value safely if IsBccObject returned true for the specified index 3494func (t *Image) GetBccObject(index int) (v ObjectType) { 3495 return t.bcc[index].Object 3496 3497} 3498 3499// AppendBccObject adds to the back of bcc a ObjectType type 3500func (t *Image) AppendBccObject(v ObjectType) { 3501 t.bcc = append(t.bcc, &bccIntermediateType{Object: v}) 3502 3503} 3504 3505// PrependBccObject adds to the front of bcc a ObjectType type 3506func (t *Image) PrependBccObject(v ObjectType) { 3507 t.bcc = append([]*bccIntermediateType{&bccIntermediateType{Object: v}}, t.bcc...) 3508 3509} 3510 3511// RemoveBccObject deletes the value from the specified index 3512func (t *Image) RemoveBccObject(index int) { 3513 copy(t.bcc[index:], t.bcc[index+1:]) 3514 t.bcc[len(t.bcc)-1] = nil 3515 t.bcc = t.bcc[:len(t.bcc)-1] 3516 3517} 3518 3519// IsBccLink determines whether the call to GetBccLink is safe for the specified index 3520func (t *Image) IsBccLink(index int) (ok bool) { 3521 return t.bcc[index].Link != nil 3522 3523} 3524 3525// GetBccLink returns the value safely if IsBccLink returned true for the specified index 3526func (t *Image) GetBccLink(index int) (v LinkType) { 3527 return t.bcc[index].Link 3528 3529} 3530 3531// AppendBccLink adds to the back of bcc a LinkType type 3532func (t *Image) AppendBccLink(v LinkType) { 3533 t.bcc = append(t.bcc, &bccIntermediateType{Link: v}) 3534 3535} 3536 3537// PrependBccLink adds to the front of bcc a LinkType type 3538func (t *Image) PrependBccLink(v LinkType) { 3539 t.bcc = append([]*bccIntermediateType{&bccIntermediateType{Link: v}}, t.bcc...) 3540 3541} 3542 3543// RemoveBccLink deletes the value from the specified index 3544func (t *Image) RemoveBccLink(index int) { 3545 copy(t.bcc[index:], t.bcc[index+1:]) 3546 t.bcc[len(t.bcc)-1] = nil 3547 t.bcc = t.bcc[:len(t.bcc)-1] 3548 3549} 3550 3551// IsBccIRI determines whether the call to GetBccIRI is safe for the specified index 3552func (t *Image) IsBccIRI(index int) (ok bool) { 3553 return t.bcc[index].IRI != nil 3554 3555} 3556 3557// GetBccIRI returns the value safely if IsBccIRI returned true for the specified index 3558func (t *Image) GetBccIRI(index int) (v *url.URL) { 3559 return t.bcc[index].IRI 3560 3561} 3562 3563// AppendBccIRI adds to the back of bcc a *url.URL type 3564func (t *Image) AppendBccIRI(v *url.URL) { 3565 t.bcc = append(t.bcc, &bccIntermediateType{IRI: v}) 3566 3567} 3568 3569// PrependBccIRI adds to the front of bcc a *url.URL type 3570func (t *Image) PrependBccIRI(v *url.URL) { 3571 t.bcc = append([]*bccIntermediateType{&bccIntermediateType{IRI: v}}, t.bcc...) 3572 3573} 3574 3575// RemoveBccIRI deletes the value from the specified index 3576func (t *Image) RemoveBccIRI(index int) { 3577 copy(t.bcc[index:], t.bcc[index+1:]) 3578 t.bcc[len(t.bcc)-1] = nil 3579 t.bcc = t.bcc[:len(t.bcc)-1] 3580 3581} 3582 3583// HasUnknownBcc determines whether the call to GetUnknownBcc is safe 3584func (t *Image) HasUnknownBcc() (ok bool) { 3585 return t.bcc != nil && t.bcc[0].unknown_ != nil 3586 3587} 3588 3589// GetUnknownBcc returns the unknown value for bcc 3590func (t *Image) GetUnknownBcc() (v interface{}) { 3591 return t.bcc[0].unknown_ 3592 3593} 3594 3595// SetUnknownBcc sets the unknown value of bcc 3596func (t *Image) SetUnknownBcc(i interface{}) { 3597 if t.unknown_ == nil { 3598 t.unknown_ = make(map[string]interface{}) 3599 } 3600 tmp := &bccIntermediateType{} 3601 tmp.unknown_ = i 3602 t.bcc = append(t.bcc, tmp) 3603 3604} 3605 3606// IsMediaType determines whether the call to GetMediaType is safe 3607func (t *Image) IsMediaType() (ok bool) { 3608 return t.mediaType != nil && t.mediaType.mimeMediaTypeValue != nil 3609 3610} 3611 3612// GetMediaType returns the value safely if IsMediaType returned true 3613func (t *Image) GetMediaType() (v string) { 3614 return *t.mediaType.mimeMediaTypeValue 3615 3616} 3617 3618// SetMediaType sets the value of mediaType to be of string type 3619func (t *Image) SetMediaType(v string) { 3620 t.mediaType = &mediaTypeIntermediateType{mimeMediaTypeValue: &v} 3621 3622} 3623 3624// IsMediaTypeIRI determines whether the call to GetMediaTypeIRI is safe 3625func (t *Image) IsMediaTypeIRI() (ok bool) { 3626 return t.mediaType != nil && t.mediaType.IRI != nil 3627 3628} 3629 3630// GetMediaTypeIRI returns the value safely if IsMediaTypeIRI returned true 3631func (t *Image) GetMediaTypeIRI() (v *url.URL) { 3632 return t.mediaType.IRI 3633 3634} 3635 3636// SetMediaTypeIRI sets the value of mediaType to be of *url.URL type 3637func (t *Image) SetMediaTypeIRI(v *url.URL) { 3638 t.mediaType = &mediaTypeIntermediateType{IRI: v} 3639 3640} 3641 3642// HasUnknownMediaType determines whether the call to GetUnknownMediaType is safe 3643func (t *Image) HasUnknownMediaType() (ok bool) { 3644 return t.mediaType != nil && t.mediaType.unknown_ != nil 3645 3646} 3647 3648// GetUnknownMediaType returns the unknown value for mediaType 3649func (t *Image) GetUnknownMediaType() (v interface{}) { 3650 return t.mediaType.unknown_ 3651 3652} 3653 3654// SetUnknownMediaType sets the unknown value of mediaType 3655func (t *Image) SetUnknownMediaType(i interface{}) { 3656 if t.unknown_ == nil { 3657 t.unknown_ = make(map[string]interface{}) 3658 } 3659 tmp := &mediaTypeIntermediateType{} 3660 tmp.unknown_ = i 3661 t.mediaType = tmp 3662 3663} 3664 3665// IsDuration determines whether the call to GetDuration is safe 3666func (t *Image) IsDuration() (ok bool) { 3667 return t.duration != nil && t.duration.duration != nil 3668 3669} 3670 3671// GetDuration returns the value safely if IsDuration returned true 3672func (t *Image) GetDuration() (v time.Duration) { 3673 return *t.duration.duration 3674 3675} 3676 3677// SetDuration sets the value of duration to be of time.Duration type 3678func (t *Image) SetDuration(v time.Duration) { 3679 t.duration = &durationIntermediateType{duration: &v} 3680 3681} 3682 3683// IsDurationIRI determines whether the call to GetDurationIRI is safe 3684func (t *Image) IsDurationIRI() (ok bool) { 3685 return t.duration != nil && t.duration.IRI != nil 3686 3687} 3688 3689// GetDurationIRI returns the value safely if IsDurationIRI returned true 3690func (t *Image) GetDurationIRI() (v *url.URL) { 3691 return t.duration.IRI 3692 3693} 3694 3695// SetDurationIRI sets the value of duration to be of *url.URL type 3696func (t *Image) SetDurationIRI(v *url.URL) { 3697 t.duration = &durationIntermediateType{IRI: v} 3698 3699} 3700 3701// HasUnknownDuration determines whether the call to GetUnknownDuration is safe 3702func (t *Image) HasUnknownDuration() (ok bool) { 3703 return t.duration != nil && t.duration.unknown_ != nil 3704 3705} 3706 3707// GetUnknownDuration returns the unknown value for duration 3708func (t *Image) GetUnknownDuration() (v interface{}) { 3709 return t.duration.unknown_ 3710 3711} 3712 3713// SetUnknownDuration sets the unknown value of duration 3714func (t *Image) SetUnknownDuration(i interface{}) { 3715 if t.unknown_ == nil { 3716 t.unknown_ = make(map[string]interface{}) 3717 } 3718 tmp := &durationIntermediateType{} 3719 tmp.unknown_ = i 3720 t.duration = tmp 3721 3722} 3723 3724// IsSource determines whether the call to GetSource is safe 3725func (t *Image) IsSource() (ok bool) { 3726 return t.source != nil && t.source.Object != nil 3727 3728} 3729 3730// GetSource returns the value safely if IsSource returned true 3731func (t *Image) GetSource() (v ObjectType) { 3732 return t.source.Object 3733 3734} 3735 3736// SetSource sets the value of source to be of ObjectType type 3737func (t *Image) SetSource(v ObjectType) { 3738 t.source = &sourceIntermediateType{Object: v} 3739 3740} 3741 3742// IsSourceIRI determines whether the call to GetSourceIRI is safe 3743func (t *Image) IsSourceIRI() (ok bool) { 3744 return t.source != nil && t.source.IRI != nil 3745 3746} 3747 3748// GetSourceIRI returns the value safely if IsSourceIRI returned true 3749func (t *Image) GetSourceIRI() (v *url.URL) { 3750 return t.source.IRI 3751 3752} 3753 3754// SetSourceIRI sets the value of source to be of *url.URL type 3755func (t *Image) SetSourceIRI(v *url.URL) { 3756 t.source = &sourceIntermediateType{IRI: v} 3757 3758} 3759 3760// HasUnknownSource determines whether the call to GetUnknownSource is safe 3761func (t *Image) HasUnknownSource() (ok bool) { 3762 return t.source != nil && t.source.unknown_ != nil 3763 3764} 3765 3766// GetUnknownSource returns the unknown value for source 3767func (t *Image) GetUnknownSource() (v interface{}) { 3768 return t.source.unknown_ 3769 3770} 3771 3772// SetUnknownSource sets the unknown value of source 3773func (t *Image) SetUnknownSource(i interface{}) { 3774 if t.unknown_ == nil { 3775 t.unknown_ = make(map[string]interface{}) 3776 } 3777 tmp := &sourceIntermediateType{} 3778 tmp.unknown_ = i 3779 t.source = tmp 3780 3781} 3782 3783// IsInboxOrderedCollection determines whether the call to GetInboxOrderedCollection is safe 3784func (t *Image) IsInboxOrderedCollection() (ok bool) { 3785 return t.inbox != nil && t.inbox.OrderedCollection != nil 3786 3787} 3788 3789// GetInboxOrderedCollection returns the value safely if IsInboxOrderedCollection returned true 3790func (t *Image) GetInboxOrderedCollection() (v OrderedCollectionType) { 3791 return t.inbox.OrderedCollection 3792 3793} 3794 3795// SetInboxOrderedCollection sets the value of inbox to be of OrderedCollectionType type 3796func (t *Image) SetInboxOrderedCollection(v OrderedCollectionType) { 3797 t.inbox = &inboxIntermediateType{OrderedCollection: v} 3798 3799} 3800 3801// IsInboxAnyURI determines whether the call to GetInboxAnyURI is safe 3802func (t *Image) IsInboxAnyURI() (ok bool) { 3803 return t.inbox != nil && t.inbox.anyURI != nil 3804 3805} 3806 3807// GetInboxAnyURI returns the value safely if IsInboxAnyURI returned true 3808func (t *Image) GetInboxAnyURI() (v *url.URL) { 3809 return t.inbox.anyURI 3810 3811} 3812 3813// SetInboxAnyURI sets the value of inbox to be of *url.URL type 3814func (t *Image) SetInboxAnyURI(v *url.URL) { 3815 t.inbox = &inboxIntermediateType{anyURI: v} 3816 3817} 3818 3819// HasUnknownInbox determines whether the call to GetUnknownInbox is safe 3820func (t *Image) HasUnknownInbox() (ok bool) { 3821 return t.inbox != nil && t.inbox.unknown_ != nil 3822 3823} 3824 3825// GetUnknownInbox returns the unknown value for inbox 3826func (t *Image) GetUnknownInbox() (v interface{}) { 3827 return t.inbox.unknown_ 3828 3829} 3830 3831// SetUnknownInbox sets the unknown value of inbox 3832func (t *Image) SetUnknownInbox(i interface{}) { 3833 if t.unknown_ == nil { 3834 t.unknown_ = make(map[string]interface{}) 3835 } 3836 tmp := &inboxIntermediateType{} 3837 tmp.unknown_ = i 3838 t.inbox = tmp 3839 3840} 3841 3842// IsOutboxOrderedCollection determines whether the call to GetOutboxOrderedCollection is safe 3843func (t *Image) IsOutboxOrderedCollection() (ok bool) { 3844 return t.outbox != nil && t.outbox.OrderedCollection != nil 3845 3846} 3847 3848// GetOutboxOrderedCollection returns the value safely if IsOutboxOrderedCollection returned true 3849func (t *Image) GetOutboxOrderedCollection() (v OrderedCollectionType) { 3850 return t.outbox.OrderedCollection 3851 3852} 3853 3854// SetOutboxOrderedCollection sets the value of outbox to be of OrderedCollectionType type 3855func (t *Image) SetOutboxOrderedCollection(v OrderedCollectionType) { 3856 t.outbox = &outboxIntermediateType{OrderedCollection: v} 3857 3858} 3859 3860// IsOutboxAnyURI determines whether the call to GetOutboxAnyURI is safe 3861func (t *Image) IsOutboxAnyURI() (ok bool) { 3862 return t.outbox != nil && t.outbox.anyURI != nil 3863 3864} 3865 3866// GetOutboxAnyURI returns the value safely if IsOutboxAnyURI returned true 3867func (t *Image) GetOutboxAnyURI() (v *url.URL) { 3868 return t.outbox.anyURI 3869 3870} 3871 3872// SetOutboxAnyURI sets the value of outbox to be of *url.URL type 3873func (t *Image) SetOutboxAnyURI(v *url.URL) { 3874 t.outbox = &outboxIntermediateType{anyURI: v} 3875 3876} 3877 3878// HasUnknownOutbox determines whether the call to GetUnknownOutbox is safe 3879func (t *Image) HasUnknownOutbox() (ok bool) { 3880 return t.outbox != nil && t.outbox.unknown_ != nil 3881 3882} 3883 3884// GetUnknownOutbox returns the unknown value for outbox 3885func (t *Image) GetUnknownOutbox() (v interface{}) { 3886 return t.outbox.unknown_ 3887 3888} 3889 3890// SetUnknownOutbox sets the unknown value of outbox 3891func (t *Image) SetUnknownOutbox(i interface{}) { 3892 if t.unknown_ == nil { 3893 t.unknown_ = make(map[string]interface{}) 3894 } 3895 tmp := &outboxIntermediateType{} 3896 tmp.unknown_ = i 3897 t.outbox = tmp 3898 3899} 3900 3901// IsFollowingCollection determines whether the call to GetFollowingCollection is safe 3902func (t *Image) IsFollowingCollection() (ok bool) { 3903 return t.following != nil && t.following.Collection != nil 3904 3905} 3906 3907// GetFollowingCollection returns the value safely if IsFollowingCollection returned true 3908func (t *Image) GetFollowingCollection() (v CollectionType) { 3909 return t.following.Collection 3910 3911} 3912 3913// SetFollowingCollection sets the value of following to be of CollectionType type 3914func (t *Image) SetFollowingCollection(v CollectionType) { 3915 t.following = &followingIntermediateType{Collection: v} 3916 3917} 3918 3919// IsFollowingOrderedCollection determines whether the call to GetFollowingOrderedCollection is safe 3920func (t *Image) IsFollowingOrderedCollection() (ok bool) { 3921 return t.following != nil && t.following.OrderedCollection != nil 3922 3923} 3924 3925// GetFollowingOrderedCollection returns the value safely if IsFollowingOrderedCollection returned true 3926func (t *Image) GetFollowingOrderedCollection() (v OrderedCollectionType) { 3927 return t.following.OrderedCollection 3928 3929} 3930 3931// SetFollowingOrderedCollection sets the value of following to be of OrderedCollectionType type 3932func (t *Image) SetFollowingOrderedCollection(v OrderedCollectionType) { 3933 t.following = &followingIntermediateType{OrderedCollection: v} 3934 3935} 3936 3937// IsFollowingAnyURI determines whether the call to GetFollowingAnyURI is safe 3938func (t *Image) IsFollowingAnyURI() (ok bool) { 3939 return t.following != nil && t.following.anyURI != nil 3940 3941} 3942 3943// GetFollowingAnyURI returns the value safely if IsFollowingAnyURI returned true 3944func (t *Image) GetFollowingAnyURI() (v *url.URL) { 3945 return t.following.anyURI 3946 3947} 3948 3949// SetFollowingAnyURI sets the value of following to be of *url.URL type 3950func (t *Image) SetFollowingAnyURI(v *url.URL) { 3951 t.following = &followingIntermediateType{anyURI: v} 3952 3953} 3954 3955// HasUnknownFollowing determines whether the call to GetUnknownFollowing is safe 3956func (t *Image) HasUnknownFollowing() (ok bool) { 3957 return t.following != nil && t.following.unknown_ != nil 3958 3959} 3960 3961// GetUnknownFollowing returns the unknown value for following 3962func (t *Image) GetUnknownFollowing() (v interface{}) { 3963 return t.following.unknown_ 3964 3965} 3966 3967// SetUnknownFollowing sets the unknown value of following 3968func (t *Image) SetUnknownFollowing(i interface{}) { 3969 if t.unknown_ == nil { 3970 t.unknown_ = make(map[string]interface{}) 3971 } 3972 tmp := &followingIntermediateType{} 3973 tmp.unknown_ = i 3974 t.following = tmp 3975 3976} 3977 3978// IsFollowersCollection determines whether the call to GetFollowersCollection is safe 3979func (t *Image) IsFollowersCollection() (ok bool) { 3980 return t.followers != nil && t.followers.Collection != nil 3981 3982} 3983 3984// GetFollowersCollection returns the value safely if IsFollowersCollection returned true 3985func (t *Image) GetFollowersCollection() (v CollectionType) { 3986 return t.followers.Collection 3987 3988} 3989 3990// SetFollowersCollection sets the value of followers to be of CollectionType type 3991func (t *Image) SetFollowersCollection(v CollectionType) { 3992 t.followers = &followersIntermediateType{Collection: v} 3993 3994} 3995 3996// IsFollowersOrderedCollection determines whether the call to GetFollowersOrderedCollection is safe 3997func (t *Image) IsFollowersOrderedCollection() (ok bool) { 3998 return t.followers != nil && t.followers.OrderedCollection != nil 3999 4000} 4001 4002// GetFollowersOrderedCollection returns the value safely if IsFollowersOrderedCollection returned true 4003func (t *Image) GetFollowersOrderedCollection() (v OrderedCollectionType) { 4004 return t.followers.OrderedCollection 4005 4006} 4007 4008// SetFollowersOrderedCollection sets the value of followers to be of OrderedCollectionType type 4009func (t *Image) SetFollowersOrderedCollection(v OrderedCollectionType) { 4010 t.followers = &followersIntermediateType{OrderedCollection: v} 4011 4012} 4013 4014// IsFollowersAnyURI determines whether the call to GetFollowersAnyURI is safe 4015func (t *Image) IsFollowersAnyURI() (ok bool) { 4016 return t.followers != nil && t.followers.anyURI != nil 4017 4018} 4019 4020// GetFollowersAnyURI returns the value safely if IsFollowersAnyURI returned true 4021func (t *Image) GetFollowersAnyURI() (v *url.URL) { 4022 return t.followers.anyURI 4023 4024} 4025 4026// SetFollowersAnyURI sets the value of followers to be of *url.URL type 4027func (t *Image) SetFollowersAnyURI(v *url.URL) { 4028 t.followers = &followersIntermediateType{anyURI: v} 4029 4030} 4031 4032// HasUnknownFollowers determines whether the call to GetUnknownFollowers is safe 4033func (t *Image) HasUnknownFollowers() (ok bool) { 4034 return t.followers != nil && t.followers.unknown_ != nil 4035 4036} 4037 4038// GetUnknownFollowers returns the unknown value for followers 4039func (t *Image) GetUnknownFollowers() (v interface{}) { 4040 return t.followers.unknown_ 4041 4042} 4043 4044// SetUnknownFollowers sets the unknown value of followers 4045func (t *Image) SetUnknownFollowers(i interface{}) { 4046 if t.unknown_ == nil { 4047 t.unknown_ = make(map[string]interface{}) 4048 } 4049 tmp := &followersIntermediateType{} 4050 tmp.unknown_ = i 4051 t.followers = tmp 4052 4053} 4054 4055// IsLikedCollection determines whether the call to GetLikedCollection is safe 4056func (t *Image) IsLikedCollection() (ok bool) { 4057 return t.liked != nil && t.liked.Collection != nil 4058 4059} 4060 4061// GetLikedCollection returns the value safely if IsLikedCollection returned true 4062func (t *Image) GetLikedCollection() (v CollectionType) { 4063 return t.liked.Collection 4064 4065} 4066 4067// SetLikedCollection sets the value of liked to be of CollectionType type 4068func (t *Image) SetLikedCollection(v CollectionType) { 4069 t.liked = &likedIntermediateType{Collection: v} 4070 4071} 4072 4073// IsLikedOrderedCollection determines whether the call to GetLikedOrderedCollection is safe 4074func (t *Image) IsLikedOrderedCollection() (ok bool) { 4075 return t.liked != nil && t.liked.OrderedCollection != nil 4076 4077} 4078 4079// GetLikedOrderedCollection returns the value safely if IsLikedOrderedCollection returned true 4080func (t *Image) GetLikedOrderedCollection() (v OrderedCollectionType) { 4081 return t.liked.OrderedCollection 4082 4083} 4084 4085// SetLikedOrderedCollection sets the value of liked to be of OrderedCollectionType type 4086func (t *Image) SetLikedOrderedCollection(v OrderedCollectionType) { 4087 t.liked = &likedIntermediateType{OrderedCollection: v} 4088 4089} 4090 4091// IsLikedAnyURI determines whether the call to GetLikedAnyURI is safe 4092func (t *Image) IsLikedAnyURI() (ok bool) { 4093 return t.liked != nil && t.liked.anyURI != nil 4094 4095} 4096 4097// GetLikedAnyURI returns the value safely if IsLikedAnyURI returned true 4098func (t *Image) GetLikedAnyURI() (v *url.URL) { 4099 return t.liked.anyURI 4100 4101} 4102 4103// SetLikedAnyURI sets the value of liked to be of *url.URL type 4104func (t *Image) SetLikedAnyURI(v *url.URL) { 4105 t.liked = &likedIntermediateType{anyURI: v} 4106 4107} 4108 4109// HasUnknownLiked determines whether the call to GetUnknownLiked is safe 4110func (t *Image) HasUnknownLiked() (ok bool) { 4111 return t.liked != nil && t.liked.unknown_ != nil 4112 4113} 4114 4115// GetUnknownLiked returns the unknown value for liked 4116func (t *Image) GetUnknownLiked() (v interface{}) { 4117 return t.liked.unknown_ 4118 4119} 4120 4121// SetUnknownLiked sets the unknown value of liked 4122func (t *Image) SetUnknownLiked(i interface{}) { 4123 if t.unknown_ == nil { 4124 t.unknown_ = make(map[string]interface{}) 4125 } 4126 tmp := &likedIntermediateType{} 4127 tmp.unknown_ = i 4128 t.liked = tmp 4129 4130} 4131 4132// IsLikesCollection determines whether the call to GetLikesCollection is safe 4133func (t *Image) IsLikesCollection() (ok bool) { 4134 return t.likes != nil && t.likes.Collection != nil 4135 4136} 4137 4138// GetLikesCollection returns the value safely if IsLikesCollection returned true 4139func (t *Image) GetLikesCollection() (v CollectionType) { 4140 return t.likes.Collection 4141 4142} 4143 4144// SetLikesCollection sets the value of likes to be of CollectionType type 4145func (t *Image) SetLikesCollection(v CollectionType) { 4146 t.likes = &likesIntermediateType{Collection: v} 4147 4148} 4149 4150// IsLikesOrderedCollection determines whether the call to GetLikesOrderedCollection is safe 4151func (t *Image) IsLikesOrderedCollection() (ok bool) { 4152 return t.likes != nil && t.likes.OrderedCollection != nil 4153 4154} 4155 4156// GetLikesOrderedCollection returns the value safely if IsLikesOrderedCollection returned true 4157func (t *Image) GetLikesOrderedCollection() (v OrderedCollectionType) { 4158 return t.likes.OrderedCollection 4159 4160} 4161 4162// SetLikesOrderedCollection sets the value of likes to be of OrderedCollectionType type 4163func (t *Image) SetLikesOrderedCollection(v OrderedCollectionType) { 4164 t.likes = &likesIntermediateType{OrderedCollection: v} 4165 4166} 4167 4168// IsLikesAnyURI determines whether the call to GetLikesAnyURI is safe 4169func (t *Image) IsLikesAnyURI() (ok bool) { 4170 return t.likes != nil && t.likes.anyURI != nil 4171 4172} 4173 4174// GetLikesAnyURI returns the value safely if IsLikesAnyURI returned true 4175func (t *Image) GetLikesAnyURI() (v *url.URL) { 4176 return t.likes.anyURI 4177 4178} 4179 4180// SetLikesAnyURI sets the value of likes to be of *url.URL type 4181func (t *Image) SetLikesAnyURI(v *url.URL) { 4182 t.likes = &likesIntermediateType{anyURI: v} 4183 4184} 4185 4186// HasUnknownLikes determines whether the call to GetUnknownLikes is safe 4187func (t *Image) HasUnknownLikes() (ok bool) { 4188 return t.likes != nil && t.likes.unknown_ != nil 4189 4190} 4191 4192// GetUnknownLikes returns the unknown value for likes 4193func (t *Image) GetUnknownLikes() (v interface{}) { 4194 return t.likes.unknown_ 4195 4196} 4197 4198// SetUnknownLikes sets the unknown value of likes 4199func (t *Image) SetUnknownLikes(i interface{}) { 4200 if t.unknown_ == nil { 4201 t.unknown_ = make(map[string]interface{}) 4202 } 4203 tmp := &likesIntermediateType{} 4204 tmp.unknown_ = i 4205 t.likes = tmp 4206 4207} 4208 4209// StreamsLen determines the number of elements able to be used for the GetStreams and RemoveStreams functions 4210func (t *Image) StreamsLen() (l int) { 4211 return len(t.streams) 4212 4213} 4214 4215// GetStreams returns the value for the specified index 4216func (t *Image) GetStreams(index int) (v *url.URL) { 4217 return t.streams[index] 4218 4219} 4220 4221// AppendStreams adds a value to the back of streams 4222func (t *Image) AppendStreams(v *url.URL) { 4223 t.streams = append(t.streams, v) 4224 4225} 4226 4227// PrependStreams adds a value to the front of streams 4228func (t *Image) PrependStreams(v *url.URL) { 4229 t.streams = append([]*url.URL{v}, t.streams...) 4230 4231} 4232 4233// RemoveStreams deletes the value from the specified index 4234func (t *Image) RemoveStreams(index int) { 4235 copy(t.streams[index:], t.streams[index+1:]) 4236 t.streams[len(t.streams)-1] = nil 4237 t.streams = t.streams[:len(t.streams)-1] 4238 4239} 4240 4241// HasUnknownStreams determines whether the call to GetUnknownStreams is safe 4242func (t *Image) HasUnknownStreams() (ok bool) { 4243 return t.unknown_ != nil && t.unknown_["streams"] != nil 4244 4245} 4246 4247// GetUnknownStreams returns the unknown value for streams 4248func (t *Image) GetUnknownStreams() (v interface{}) { 4249 return t.unknown_["streams"] 4250 4251} 4252 4253// SetUnknownStreams sets the unknown value of streams 4254func (t *Image) SetUnknownStreams(i interface{}) { 4255 if t.unknown_ == nil { 4256 t.unknown_ = make(map[string]interface{}) 4257 } 4258 t.unknown_["streams"] = i 4259 4260} 4261 4262// IsPreferredUsername determines whether the call to GetPreferredUsername is safe 4263func (t *Image) IsPreferredUsername() (ok bool) { 4264 return t.preferredUsername != nil && t.preferredUsername.stringName != nil 4265 4266} 4267 4268// GetPreferredUsername returns the value safely if IsPreferredUsername returned true 4269func (t *Image) GetPreferredUsername() (v string) { 4270 return *t.preferredUsername.stringName 4271 4272} 4273 4274// SetPreferredUsername sets the value of preferredUsername to be of string type 4275func (t *Image) SetPreferredUsername(v string) { 4276 t.preferredUsername = &preferredUsernameIntermediateType{stringName: &v} 4277 4278} 4279 4280// IsPreferredUsernameIRI determines whether the call to GetPreferredUsernameIRI is safe 4281func (t *Image) IsPreferredUsernameIRI() (ok bool) { 4282 return t.preferredUsername != nil && t.preferredUsername.IRI != nil 4283 4284} 4285 4286// GetPreferredUsernameIRI returns the value safely if IsPreferredUsernameIRI returned true 4287func (t *Image) GetPreferredUsernameIRI() (v *url.URL) { 4288 return t.preferredUsername.IRI 4289 4290} 4291 4292// SetPreferredUsernameIRI sets the value of preferredUsername to be of *url.URL type 4293func (t *Image) SetPreferredUsernameIRI(v *url.URL) { 4294 t.preferredUsername = &preferredUsernameIntermediateType{IRI: v} 4295 4296} 4297 4298// HasUnknownPreferredUsername determines whether the call to GetUnknownPreferredUsername is safe 4299func (t *Image) HasUnknownPreferredUsername() (ok bool) { 4300 return t.preferredUsername != nil && t.preferredUsername.unknown_ != nil 4301 4302} 4303 4304// GetUnknownPreferredUsername returns the unknown value for preferredUsername 4305func (t *Image) GetUnknownPreferredUsername() (v interface{}) { 4306 return t.preferredUsername.unknown_ 4307 4308} 4309 4310// SetUnknownPreferredUsername sets the unknown value of preferredUsername 4311func (t *Image) SetUnknownPreferredUsername(i interface{}) { 4312 if t.unknown_ == nil { 4313 t.unknown_ = make(map[string]interface{}) 4314 } 4315 tmp := &preferredUsernameIntermediateType{} 4316 tmp.unknown_ = i 4317 t.preferredUsername = tmp 4318 4319} 4320 4321// PreferredUsernameMapLanguages returns all languages for this property's language mapping, or nil if there are none. 4322func (t *Image) PreferredUsernameMapLanguages() (l []string) { 4323 if t.preferredUsernameMap == nil || len(t.preferredUsernameMap) == 0 { 4324 return nil 4325 } 4326 for k := range t.preferredUsernameMap { 4327 l = append(l, k) 4328 } 4329 return 4330 4331} 4332 4333// GetPreferredUsernameMap retrieves the value of the property for the specified language, or an empty string if it does not exist 4334func (t *Image) GetPreferredUsernameMap(l string) (v string) { 4335 if t.preferredUsernameMap == nil { 4336 return "" 4337 } 4338 ok := false 4339 v, ok = t.preferredUsernameMap[l] 4340 if !ok { 4341 return "" 4342 } 4343 return v 4344 4345} 4346 4347// SetPreferredUsernameMap sets the value of the property for the specified language 4348func (t *Image) SetPreferredUsernameMap(l string, v string) { 4349 if t.preferredUsernameMap == nil { 4350 t.preferredUsernameMap = make(map[string]string) 4351 } 4352 t.preferredUsernameMap[l] = v 4353 4354} 4355 4356// IsEndpoints determines whether the call to GetEndpoints is safe 4357func (t *Image) IsEndpoints() (ok bool) { 4358 return t.endpoints != nil && t.endpoints.Object != nil 4359 4360} 4361 4362// GetEndpoints returns the value safely if IsEndpoints returned true 4363func (t *Image) GetEndpoints() (v ObjectType) { 4364 return t.endpoints.Object 4365 4366} 4367 4368// SetEndpoints sets the value of endpoints to be of ObjectType type 4369func (t *Image) SetEndpoints(v ObjectType) { 4370 t.endpoints = &endpointsIntermediateType{Object: v} 4371 4372} 4373 4374// IsEndpointsIRI determines whether the call to GetEndpointsIRI is safe 4375func (t *Image) IsEndpointsIRI() (ok bool) { 4376 return t.endpoints != nil && t.endpoints.IRI != nil 4377 4378} 4379 4380// GetEndpointsIRI returns the value safely if IsEndpointsIRI returned true 4381func (t *Image) GetEndpointsIRI() (v *url.URL) { 4382 return t.endpoints.IRI 4383 4384} 4385 4386// SetEndpointsIRI sets the value of endpoints to be of *url.URL type 4387func (t *Image) SetEndpointsIRI(v *url.URL) { 4388 t.endpoints = &endpointsIntermediateType{IRI: v} 4389 4390} 4391 4392// HasUnknownEndpoints determines whether the call to GetUnknownEndpoints is safe 4393func (t *Image) HasUnknownEndpoints() (ok bool) { 4394 return t.endpoints != nil && t.endpoints.unknown_ != nil 4395 4396} 4397 4398// GetUnknownEndpoints returns the unknown value for endpoints 4399func (t *Image) GetUnknownEndpoints() (v interface{}) { 4400 return t.endpoints.unknown_ 4401 4402} 4403 4404// SetUnknownEndpoints sets the unknown value of endpoints 4405func (t *Image) SetUnknownEndpoints(i interface{}) { 4406 if t.unknown_ == nil { 4407 t.unknown_ = make(map[string]interface{}) 4408 } 4409 tmp := &endpointsIntermediateType{} 4410 tmp.unknown_ = i 4411 t.endpoints = tmp 4412 4413} 4414 4415// HasProxyUrl determines whether the call to GetProxyUrl is safe 4416func (t *Image) HasProxyUrl() (ok bool) { 4417 return t.proxyUrl != nil 4418 4419} 4420 4421// GetProxyUrl returns the value for proxyUrl 4422func (t *Image) GetProxyUrl() (v *url.URL) { 4423 return t.proxyUrl 4424 4425} 4426 4427// SetProxyUrl sets the value of proxyUrl 4428func (t *Image) SetProxyUrl(v *url.URL) { 4429 t.proxyUrl = v 4430 4431} 4432 4433// HasUnknownProxyUrl determines whether the call to GetUnknownProxyUrl is safe 4434func (t *Image) HasUnknownProxyUrl() (ok bool) { 4435 return t.unknown_ != nil && t.unknown_["proxyUrl"] != nil 4436 4437} 4438 4439// GetUnknownProxyUrl returns the unknown value for proxyUrl 4440func (t *Image) GetUnknownProxyUrl() (v interface{}) { 4441 return t.unknown_["proxyUrl"] 4442 4443} 4444 4445// SetUnknownProxyUrl sets the unknown value of proxyUrl 4446func (t *Image) SetUnknownProxyUrl(i interface{}) { 4447 if t.unknown_ == nil { 4448 t.unknown_ = make(map[string]interface{}) 4449 } 4450 t.unknown_["proxyUrl"] = i 4451 4452} 4453 4454// HasOauthAuthorizationEndpoint determines whether the call to GetOauthAuthorizationEndpoint is safe 4455func (t *Image) HasOauthAuthorizationEndpoint() (ok bool) { 4456 return t.oauthAuthorizationEndpoint != nil 4457 4458} 4459 4460// GetOauthAuthorizationEndpoint returns the value for oauthAuthorizationEndpoint 4461func (t *Image) GetOauthAuthorizationEndpoint() (v *url.URL) { 4462 return t.oauthAuthorizationEndpoint 4463 4464} 4465 4466// SetOauthAuthorizationEndpoint sets the value of oauthAuthorizationEndpoint 4467func (t *Image) SetOauthAuthorizationEndpoint(v *url.URL) { 4468 t.oauthAuthorizationEndpoint = v 4469 4470} 4471 4472// HasUnknownOauthAuthorizationEndpoint determines whether the call to GetUnknownOauthAuthorizationEndpoint is safe 4473func (t *Image) HasUnknownOauthAuthorizationEndpoint() (ok bool) { 4474 return t.unknown_ != nil && t.unknown_["oauthAuthorizationEndpoint"] != nil 4475 4476} 4477 4478// GetUnknownOauthAuthorizationEndpoint returns the unknown value for oauthAuthorizationEndpoint 4479func (t *Image) GetUnknownOauthAuthorizationEndpoint() (v interface{}) { 4480 return t.unknown_["oauthAuthorizationEndpoint"] 4481 4482} 4483 4484// SetUnknownOauthAuthorizationEndpoint sets the unknown value of oauthAuthorizationEndpoint 4485func (t *Image) SetUnknownOauthAuthorizationEndpoint(i interface{}) { 4486 if t.unknown_ == nil { 4487 t.unknown_ = make(map[string]interface{}) 4488 } 4489 t.unknown_["oauthAuthorizationEndpoint"] = i 4490 4491} 4492 4493// HasOauthTokenEndpoint determines whether the call to GetOauthTokenEndpoint is safe 4494func (t *Image) HasOauthTokenEndpoint() (ok bool) { 4495 return t.oauthTokenEndpoint != nil 4496 4497} 4498 4499// GetOauthTokenEndpoint returns the value for oauthTokenEndpoint 4500func (t *Image) GetOauthTokenEndpoint() (v *url.URL) { 4501 return t.oauthTokenEndpoint 4502 4503} 4504 4505// SetOauthTokenEndpoint sets the value of oauthTokenEndpoint 4506func (t *Image) SetOauthTokenEndpoint(v *url.URL) { 4507 t.oauthTokenEndpoint = v 4508 4509} 4510 4511// HasUnknownOauthTokenEndpoint determines whether the call to GetUnknownOauthTokenEndpoint is safe 4512func (t *Image) HasUnknownOauthTokenEndpoint() (ok bool) { 4513 return t.unknown_ != nil && t.unknown_["oauthTokenEndpoint"] != nil 4514 4515} 4516 4517// GetUnknownOauthTokenEndpoint returns the unknown value for oauthTokenEndpoint 4518func (t *Image) GetUnknownOauthTokenEndpoint() (v interface{}) { 4519 return t.unknown_["oauthTokenEndpoint"] 4520 4521} 4522 4523// SetUnknownOauthTokenEndpoint sets the unknown value of oauthTokenEndpoint 4524func (t *Image) SetUnknownOauthTokenEndpoint(i interface{}) { 4525 if t.unknown_ == nil { 4526 t.unknown_ = make(map[string]interface{}) 4527 } 4528 t.unknown_["oauthTokenEndpoint"] = i 4529 4530} 4531 4532// HasProvideClientKey determines whether the call to GetProvideClientKey is safe 4533func (t *Image) HasProvideClientKey() (ok bool) { 4534 return t.provideClientKey != nil 4535 4536} 4537 4538// GetProvideClientKey returns the value for provideClientKey 4539func (t *Image) GetProvideClientKey() (v *url.URL) { 4540 return t.provideClientKey 4541 4542} 4543 4544// SetProvideClientKey sets the value of provideClientKey 4545func (t *Image) SetProvideClientKey(v *url.URL) { 4546 t.provideClientKey = v 4547 4548} 4549 4550// HasUnknownProvideClientKey determines whether the call to GetUnknownProvideClientKey is safe 4551func (t *Image) HasUnknownProvideClientKey() (ok bool) { 4552 return t.unknown_ != nil && t.unknown_["provideClientKey"] != nil 4553 4554} 4555 4556// GetUnknownProvideClientKey returns the unknown value for provideClientKey 4557func (t *Image) GetUnknownProvideClientKey() (v interface{}) { 4558 return t.unknown_["provideClientKey"] 4559 4560} 4561 4562// SetUnknownProvideClientKey sets the unknown value of provideClientKey 4563func (t *Image) SetUnknownProvideClientKey(i interface{}) { 4564 if t.unknown_ == nil { 4565 t.unknown_ = make(map[string]interface{}) 4566 } 4567 t.unknown_["provideClientKey"] = i 4568 4569} 4570 4571// HasSignClientKey determines whether the call to GetSignClientKey is safe 4572func (t *Image) HasSignClientKey() (ok bool) { 4573 return t.signClientKey != nil 4574 4575} 4576 4577// GetSignClientKey returns the value for signClientKey 4578func (t *Image) GetSignClientKey() (v *url.URL) { 4579 return t.signClientKey 4580 4581} 4582 4583// SetSignClientKey sets the value of signClientKey 4584func (t *Image) SetSignClientKey(v *url.URL) { 4585 t.signClientKey = v 4586 4587} 4588 4589// HasUnknownSignClientKey determines whether the call to GetUnknownSignClientKey is safe 4590func (t *Image) HasUnknownSignClientKey() (ok bool) { 4591 return t.unknown_ != nil && t.unknown_["signClientKey"] != nil 4592 4593} 4594 4595// GetUnknownSignClientKey returns the unknown value for signClientKey 4596func (t *Image) GetUnknownSignClientKey() (v interface{}) { 4597 return t.unknown_["signClientKey"] 4598 4599} 4600 4601// SetUnknownSignClientKey sets the unknown value of signClientKey 4602func (t *Image) SetUnknownSignClientKey(i interface{}) { 4603 if t.unknown_ == nil { 4604 t.unknown_ = make(map[string]interface{}) 4605 } 4606 t.unknown_["signClientKey"] = i 4607 4608} 4609 4610// HasSharedInbox determines whether the call to GetSharedInbox is safe 4611func (t *Image) HasSharedInbox() (ok bool) { 4612 return t.sharedInbox != nil 4613 4614} 4615 4616// GetSharedInbox returns the value for sharedInbox 4617func (t *Image) GetSharedInbox() (v *url.URL) { 4618 return t.sharedInbox 4619 4620} 4621 4622// SetSharedInbox sets the value of sharedInbox 4623func (t *Image) SetSharedInbox(v *url.URL) { 4624 t.sharedInbox = v 4625 4626} 4627 4628// HasUnknownSharedInbox determines whether the call to GetUnknownSharedInbox is safe 4629func (t *Image) HasUnknownSharedInbox() (ok bool) { 4630 return t.unknown_ != nil && t.unknown_["sharedInbox"] != nil 4631 4632} 4633 4634// GetUnknownSharedInbox returns the unknown value for sharedInbox 4635func (t *Image) GetUnknownSharedInbox() (v interface{}) { 4636 return t.unknown_["sharedInbox"] 4637 4638} 4639 4640// SetUnknownSharedInbox sets the unknown value of sharedInbox 4641func (t *Image) SetUnknownSharedInbox(i interface{}) { 4642 if t.unknown_ == nil { 4643 t.unknown_ = make(map[string]interface{}) 4644 } 4645 t.unknown_["sharedInbox"] = i 4646 4647} 4648 4649// AddUnknown adds a raw extension to this object with the specified key 4650func (t *Image) AddUnknown(k string, i interface{}) (this *Image) { 4651 if t.unknown_ == nil { 4652 t.unknown_ = make(map[string]interface{}) 4653 } 4654 t.unknown_[k] = i 4655 return t 4656 4657} 4658 4659// HasUnknown returns true if there is an unknown object with the specified key 4660func (t *Image) HasUnknown(k string) (b bool) { 4661 if t.unknown_ == nil { 4662 return false 4663 } 4664 _, ok := t.unknown_[k] 4665 return ok 4666 4667} 4668 4669// RemoveUnknown removes a raw extension from this object with the specified key 4670func (t *Image) RemoveUnknown(k string) (this *Image) { 4671 delete(t.unknown_, k) 4672 return t 4673 4674} 4675 4676// Serialize turns this object into a map[string]interface{}. Note that the "type" property will automatically be populated with "Image" if not manually set by the caller 4677func (t *Image) Serialize() (m map[string]interface{}, err error) { 4678 m = make(map[string]interface{}) 4679 for k, v := range t.unknown_ { 4680 m[k] = unknownValueSerialize(v) 4681 } 4682 var typeAlreadySet bool 4683 for _, k := range t.typeName { 4684 if ks, ok := k.(string); ok { 4685 if ks == "Image" { 4686 typeAlreadySet = true 4687 break 4688 } 4689 } 4690 } 4691 if !typeAlreadySet { 4692 t.typeName = append(t.typeName, "Image") 4693 } 4694 // Begin generation by generateFunctionalMultiTypeDefinition 4695 if t.height != nil { 4696 if v, err := serializeHeightIntermediateType(t.height); err == nil { 4697 m["height"] = v 4698 } else { 4699 return m, err 4700 } 4701 } 4702 // End generation by generateFunctionalMultiTypeDefinition 4703 // Begin generation by generateFunctionalMultiTypeDefinition 4704 if t.width != nil { 4705 if v, err := serializeWidthIntermediateType(t.width); err == nil { 4706 m["width"] = v 4707 } else { 4708 return m, err 4709 } 4710 } 4711 // End generation by generateFunctionalMultiTypeDefinition 4712 // Begin generation by generateFunctionalMultiTypeDefinition 4713 if t.altitude != nil { 4714 if v, err := serializeAltitudeIntermediateType(t.altitude); err == nil { 4715 m["altitude"] = v 4716 } else { 4717 return m, err 4718 } 4719 } 4720 // End generation by generateFunctionalMultiTypeDefinition 4721 // Begin generation by generateNonFunctionalMultiTypeDefinition 4722 if v, err := serializeSliceAttachmentIntermediateType(t.attachment); err == nil && v != nil { 4723 if len(v) == 1 { 4724 m["attachment"] = v[0] 4725 } else { 4726 m["attachment"] = v 4727 } 4728 } else if err != nil { 4729 return m, err 4730 } 4731 // End generation by generateNonFunctionalMultiTypeDefinition 4732 // Begin generation by generateNonFunctionalMultiTypeDefinition 4733 if v, err := serializeSliceAttributedToIntermediateType(t.attributedTo); err == nil && v != nil { 4734 if len(v) == 1 { 4735 m["attributedTo"] = v[0] 4736 } else { 4737 m["attributedTo"] = v 4738 } 4739 } else if err != nil { 4740 return m, err 4741 } 4742 // End generation by generateNonFunctionalMultiTypeDefinition 4743 // Begin generation by generateNonFunctionalMultiTypeDefinition 4744 if v, err := serializeSliceAudienceIntermediateType(t.audience); err == nil && v != nil { 4745 if len(v) == 1 { 4746 m["audience"] = v[0] 4747 } else { 4748 m["audience"] = v 4749 } 4750 } else if err != nil { 4751 return m, err 4752 } 4753 // End generation by generateNonFunctionalMultiTypeDefinition 4754 // Begin generation by generateNonFunctionalMultiTypeDefinition 4755 if v, err := serializeSliceContentIntermediateType(t.content); err == nil && v != nil { 4756 if len(v) == 1 { 4757 m["content"] = v[0] 4758 } else { 4759 m["content"] = v 4760 } 4761 } else if err != nil { 4762 return m, err 4763 } 4764 // End generation by generateNonFunctionalMultiTypeDefinition 4765 4766 // Begin generation by generateNaturalLanguageMap 4767 if t.contentMap != nil && len(t.contentMap) >= 0 { 4768 m["contentMap"] = t.contentMap 4769 } 4770 // End generation by generateNaturalLanguageMap 4771 // Begin generation by generateNonFunctionalMultiTypeDefinition 4772 if v, err := serializeSliceContextIntermediateType(t.context); err == nil && v != nil { 4773 if len(v) == 1 { 4774 m["context"] = v[0] 4775 } else { 4776 m["context"] = v 4777 } 4778 } else if err != nil { 4779 return m, err 4780 } 4781 // End generation by generateNonFunctionalMultiTypeDefinition 4782 // Begin generation by generateNonFunctionalMultiTypeDefinition 4783 if v, err := serializeSliceNameIntermediateType(t.name); err == nil && v != nil { 4784 if len(v) == 1 { 4785 m["name"] = v[0] 4786 } else { 4787 m["name"] = v 4788 } 4789 } else if err != nil { 4790 return m, err 4791 } 4792 // End generation by generateNonFunctionalMultiTypeDefinition 4793 4794 // Begin generation by generateNaturalLanguageMap 4795 if t.nameMap != nil && len(t.nameMap) >= 0 { 4796 m["nameMap"] = t.nameMap 4797 } 4798 // End generation by generateNaturalLanguageMap 4799 // Begin generation by generateFunctionalMultiTypeDefinition 4800 if t.endTime != nil { 4801 if v, err := serializeEndTimeIntermediateType(t.endTime); err == nil { 4802 m["endTime"] = v 4803 } else { 4804 return m, err 4805 } 4806 } 4807 // End generation by generateFunctionalMultiTypeDefinition 4808 // Begin generation by generateNonFunctionalMultiTypeDefinition 4809 if v, err := serializeSliceGeneratorIntermediateType(t.generator); err == nil && v != nil { 4810 if len(v) == 1 { 4811 m["generator"] = v[0] 4812 } else { 4813 m["generator"] = v 4814 } 4815 } else if err != nil { 4816 return m, err 4817 } 4818 // End generation by generateNonFunctionalMultiTypeDefinition 4819 // Begin generation by generateNonFunctionalMultiTypeDefinition 4820 if v, err := serializeSliceIconIntermediateType(t.icon); err == nil && v != nil { 4821 if len(v) == 1 { 4822 m["icon"] = v[0] 4823 } else { 4824 m["icon"] = v 4825 } 4826 } else if err != nil { 4827 return m, err 4828 } 4829 // End generation by generateNonFunctionalMultiTypeDefinition 4830 // Begin generation by RangeReference.Serialize for Value 4831 if t.id != nil { 4832 idSerializeFunc := func() (interface{}, error) { 4833 v := t.id 4834 tmp := anyURISerialize(v) 4835 return tmp, nil 4836 } 4837 idResult, err := idSerializeFunc() 4838 if err == nil { 4839 m["id"] = idResult 4840 } else { 4841 return m, err 4842 } 4843 } 4844 // End generation by RangeReference.Serialize for Value 4845 // Begin generation by generateNonFunctionalMultiTypeDefinition 4846 if v, err := serializeSliceImageIntermediateType(t.image); err == nil && v != nil { 4847 if len(v) == 1 { 4848 m["image"] = v[0] 4849 } else { 4850 m["image"] = v 4851 } 4852 } else if err != nil { 4853 return m, err 4854 } 4855 // End generation by generateNonFunctionalMultiTypeDefinition 4856 // Begin generation by generateNonFunctionalMultiTypeDefinition 4857 if v, err := serializeSliceInReplyToIntermediateType(t.inReplyTo); err == nil && v != nil { 4858 if len(v) == 1 { 4859 m["inReplyTo"] = v[0] 4860 } else { 4861 m["inReplyTo"] = v 4862 } 4863 } else if err != nil { 4864 return m, err 4865 } 4866 // End generation by generateNonFunctionalMultiTypeDefinition 4867 // Begin generation by generateNonFunctionalMultiTypeDefinition 4868 if v, err := serializeSliceLocationIntermediateType(t.location); err == nil && v != nil { 4869 if len(v) == 1 { 4870 m["location"] = v[0] 4871 } else { 4872 m["location"] = v 4873 } 4874 } else if err != nil { 4875 return m, err 4876 } 4877 // End generation by generateNonFunctionalMultiTypeDefinition 4878 // Begin generation by generateNonFunctionalMultiTypeDefinition 4879 if v, err := serializeSlicePreviewIntermediateType(t.preview); err == nil && v != nil { 4880 if len(v) == 1 { 4881 m["preview"] = v[0] 4882 } else { 4883 m["preview"] = v 4884 } 4885 } else if err != nil { 4886 return m, err 4887 } 4888 // End generation by generateNonFunctionalMultiTypeDefinition 4889 // Begin generation by generateFunctionalMultiTypeDefinition 4890 if t.published != nil { 4891 if v, err := serializePublishedIntermediateType(t.published); err == nil { 4892 m["published"] = v 4893 } else { 4894 return m, err 4895 } 4896 } 4897 // End generation by generateFunctionalMultiTypeDefinition 4898 // Begin generation by generateFunctionalMultiTypeDefinition 4899 if t.replies != nil { 4900 if v, err := serializeRepliesIntermediateType(t.replies); err == nil { 4901 m["replies"] = v 4902 } else { 4903 return m, err 4904 } 4905 } 4906 // End generation by generateFunctionalMultiTypeDefinition 4907 // Begin generation by generateFunctionalMultiTypeDefinition 4908 if t.startTime != nil { 4909 if v, err := serializeStartTimeIntermediateType(t.startTime); err == nil { 4910 m["startTime"] = v 4911 } else { 4912 return m, err 4913 } 4914 } 4915 // End generation by generateFunctionalMultiTypeDefinition 4916 // Begin generation by generateNonFunctionalMultiTypeDefinition 4917 if v, err := serializeSliceSummaryIntermediateType(t.summary); err == nil && v != nil { 4918 if len(v) == 1 { 4919 m["summary"] = v[0] 4920 } else { 4921 m["summary"] = v 4922 } 4923 } else if err != nil { 4924 return m, err 4925 } 4926 // End generation by generateNonFunctionalMultiTypeDefinition 4927 4928 // Begin generation by generateNaturalLanguageMap 4929 if t.summaryMap != nil && len(t.summaryMap) >= 0 { 4930 m["summaryMap"] = t.summaryMap 4931 } 4932 // End generation by generateNaturalLanguageMap 4933 // Begin generation by generateNonFunctionalMultiTypeDefinition 4934 if v, err := serializeSliceTagIntermediateType(t.tag); err == nil && v != nil { 4935 if len(v) == 1 { 4936 m["tag"] = v[0] 4937 } else { 4938 m["tag"] = v 4939 } 4940 } else if err != nil { 4941 return m, err 4942 } 4943 // End generation by generateNonFunctionalMultiTypeDefinition 4944 // Begin generation by generateNonFunctionalAnyDefinition 4945 if t.typeName != nil { 4946 if len(t.typeName) == 1 { 4947 m["type"] = t.typeName[0] 4948 } else { 4949 m["type"] = t.typeName 4950 } 4951 } 4952 // End generation by generateNonFunctionalAnyDefinition 4953 // Begin generation by generateFunctionalMultiTypeDefinition 4954 if t.updated != nil { 4955 if v, err := serializeUpdatedIntermediateType(t.updated); err == nil { 4956 m["updated"] = v 4957 } else { 4958 return m, err 4959 } 4960 } 4961 // End generation by generateFunctionalMultiTypeDefinition 4962 // Begin generation by generateNonFunctionalMultiTypeDefinition 4963 if v, err := serializeSliceUrlIntermediateType(t.url); err == nil && v != nil { 4964 if len(v) == 1 { 4965 m["url"] = v[0] 4966 } else { 4967 m["url"] = v 4968 } 4969 } else if err != nil { 4970 return m, err 4971 } 4972 // End generation by generateNonFunctionalMultiTypeDefinition 4973 // Begin generation by generateNonFunctionalMultiTypeDefinition 4974 if v, err := serializeSliceToIntermediateType(t.to); err == nil && v != nil { 4975 if len(v) == 1 { 4976 m["to"] = v[0] 4977 } else { 4978 m["to"] = v 4979 } 4980 } else if err != nil { 4981 return m, err 4982 } 4983 // End generation by generateNonFunctionalMultiTypeDefinition 4984 // Begin generation by generateNonFunctionalMultiTypeDefinition 4985 if v, err := serializeSliceBtoIntermediateType(t.bto); err == nil && v != nil { 4986 if len(v) == 1 { 4987 m["bto"] = v[0] 4988 } else { 4989 m["bto"] = v 4990 } 4991 } else if err != nil { 4992 return m, err 4993 } 4994 // End generation by generateNonFunctionalMultiTypeDefinition 4995 // Begin generation by generateNonFunctionalMultiTypeDefinition 4996 if v, err := serializeSliceCcIntermediateType(t.cc); err == nil && v != nil { 4997 if len(v) == 1 { 4998 m["cc"] = v[0] 4999 } else { 5000 m["cc"] = v 5001 } 5002 } else if err != nil { 5003 return m, err 5004 } 5005 // End generation by generateNonFunctionalMultiTypeDefinition 5006 // Begin generation by generateNonFunctionalMultiTypeDefinition 5007 if v, err := serializeSliceBccIntermediateType(t.bcc); err == nil && v != nil { 5008 if len(v) == 1 { 5009 m["bcc"] = v[0] 5010 } else { 5011 m["bcc"] = v 5012 } 5013 } else if err != nil { 5014 return m, err 5015 } 5016 // End generation by generateNonFunctionalMultiTypeDefinition 5017 // Begin generation by generateFunctionalMultiTypeDefinition 5018 if t.mediaType != nil { 5019 if v, err := serializeMediaTypeIntermediateType(t.mediaType); err == nil { 5020 m["mediaType"] = v 5021 } else { 5022 return m, err 5023 } 5024 } 5025 // End generation by generateFunctionalMultiTypeDefinition 5026 // Begin generation by generateFunctionalMultiTypeDefinition 5027 if t.duration != nil { 5028 if v, err := serializeDurationIntermediateType(t.duration); err == nil { 5029 m["duration"] = v 5030 } else { 5031 return m, err 5032 } 5033 } 5034 // End generation by generateFunctionalMultiTypeDefinition 5035 // Begin generation by generateFunctionalMultiTypeDefinition 5036 if t.source != nil { 5037 if v, err := serializeSourceIntermediateType(t.source); err == nil { 5038 m["source"] = v 5039 } else { 5040 return m, err 5041 } 5042 } 5043 // End generation by generateFunctionalMultiTypeDefinition 5044 // Begin generation by generateFunctionalMultiTypeDefinition 5045 if t.inbox != nil { 5046 if v, err := serializeInboxIntermediateType(t.inbox); err == nil { 5047 m["inbox"] = v 5048 } else { 5049 return m, err 5050 } 5051 } 5052 // End generation by generateFunctionalMultiTypeDefinition 5053 // Begin generation by generateFunctionalMultiTypeDefinition 5054 if t.outbox != nil { 5055 if v, err := serializeOutboxIntermediateType(t.outbox); err == nil { 5056 m["outbox"] = v 5057 } else { 5058 return m, err 5059 } 5060 } 5061 // End generation by generateFunctionalMultiTypeDefinition 5062 // Begin generation by generateFunctionalMultiTypeDefinition 5063 if t.following != nil { 5064 if v, err := serializeFollowingIntermediateType(t.following); err == nil { 5065 m["following"] = v 5066 } else { 5067 return m, err 5068 } 5069 } 5070 // End generation by generateFunctionalMultiTypeDefinition 5071 // Begin generation by generateFunctionalMultiTypeDefinition 5072 if t.followers != nil { 5073 if v, err := serializeFollowersIntermediateType(t.followers); err == nil { 5074 m["followers"] = v 5075 } else { 5076 return m, err 5077 } 5078 } 5079 // End generation by generateFunctionalMultiTypeDefinition 5080 // Begin generation by generateFunctionalMultiTypeDefinition 5081 if t.liked != nil { 5082 if v, err := serializeLikedIntermediateType(t.liked); err == nil { 5083 m["liked"] = v 5084 } else { 5085 return m, err 5086 } 5087 } 5088 // End generation by generateFunctionalMultiTypeDefinition 5089 // Begin generation by generateFunctionalMultiTypeDefinition 5090 if t.likes != nil { 5091 if v, err := serializeLikesIntermediateType(t.likes); err == nil { 5092 m["likes"] = v 5093 } else { 5094 return m, err 5095 } 5096 } 5097 // End generation by generateFunctionalMultiTypeDefinition 5098 // Begin generation by RangeReference.Serialize for Value 5099 var streamsTemp []interface{} 5100 for _, v := range t.streams { 5101 tmp := anyURISerialize(v) 5102 streamsTemp = append(streamsTemp, tmp) 5103 } 5104 if streamsTemp != nil { 5105 if len(streamsTemp) == 1 { 5106 m["streams"] = streamsTemp[0] 5107 } else { 5108 m["streams"] = streamsTemp 5109 } 5110 } 5111 // End generation by RangeReference.Serialize for Value 5112 // Begin generation by generateFunctionalMultiTypeDefinition 5113 if t.preferredUsername != nil { 5114 if v, err := serializePreferredUsernameIntermediateType(t.preferredUsername); err == nil { 5115 m["preferredUsername"] = v 5116 } else { 5117 return m, err 5118 } 5119 } 5120 // End generation by generateFunctionalMultiTypeDefinition 5121 5122 // Begin generation by generateNaturalLanguageMap 5123 if t.preferredUsernameMap != nil && len(t.preferredUsernameMap) >= 0 { 5124 m["preferredUsernameMap"] = t.preferredUsernameMap 5125 } 5126 // End generation by generateNaturalLanguageMap 5127 // Begin generation by generateFunctionalMultiTypeDefinition 5128 if t.endpoints != nil { 5129 if v, err := serializeEndpointsIntermediateType(t.endpoints); err == nil { 5130 m["endpoints"] = v 5131 } else { 5132 return m, err 5133 } 5134 } 5135 // End generation by generateFunctionalMultiTypeDefinition 5136 // Begin generation by RangeReference.Serialize for Value 5137 if t.proxyUrl != nil { 5138 proxyUrlSerializeFunc := func() (interface{}, error) { 5139 v := t.proxyUrl 5140 tmp := anyURISerialize(v) 5141 return tmp, nil 5142 } 5143 proxyUrlResult, err := proxyUrlSerializeFunc() 5144 if err == nil { 5145 m["proxyUrl"] = proxyUrlResult 5146 } else { 5147 return m, err 5148 } 5149 } 5150 // End generation by RangeReference.Serialize for Value 5151 // Begin generation by RangeReference.Serialize for Value 5152 if t.oauthAuthorizationEndpoint != nil { 5153 oauthAuthorizationEndpointSerializeFunc := func() (interface{}, error) { 5154 v := t.oauthAuthorizationEndpoint 5155 tmp := anyURISerialize(v) 5156 return tmp, nil 5157 } 5158 oauthAuthorizationEndpointResult, err := oauthAuthorizationEndpointSerializeFunc() 5159 if err == nil { 5160 m["oauthAuthorizationEndpoint"] = oauthAuthorizationEndpointResult 5161 } else { 5162 return m, err 5163 } 5164 } 5165 // End generation by RangeReference.Serialize for Value 5166 // Begin generation by RangeReference.Serialize for Value 5167 if t.oauthTokenEndpoint != nil { 5168 oauthTokenEndpointSerializeFunc := func() (interface{}, error) { 5169 v := t.oauthTokenEndpoint 5170 tmp := anyURISerialize(v) 5171 return tmp, nil 5172 } 5173 oauthTokenEndpointResult, err := oauthTokenEndpointSerializeFunc() 5174 if err == nil { 5175 m["oauthTokenEndpoint"] = oauthTokenEndpointResult 5176 } else { 5177 return m, err 5178 } 5179 } 5180 // End generation by RangeReference.Serialize for Value 5181 // Begin generation by RangeReference.Serialize for Value 5182 if t.provideClientKey != nil { 5183 provideClientKeySerializeFunc := func() (interface{}, error) { 5184 v := t.provideClientKey 5185 tmp := anyURISerialize(v) 5186 return tmp, nil 5187 } 5188 provideClientKeyResult, err := provideClientKeySerializeFunc() 5189 if err == nil { 5190 m["provideClientKey"] = provideClientKeyResult 5191 } else { 5192 return m, err 5193 } 5194 } 5195 // End generation by RangeReference.Serialize for Value 5196 // Begin generation by RangeReference.Serialize for Value 5197 if t.signClientKey != nil { 5198 signClientKeySerializeFunc := func() (interface{}, error) { 5199 v := t.signClientKey 5200 tmp := anyURISerialize(v) 5201 return tmp, nil 5202 } 5203 signClientKeyResult, err := signClientKeySerializeFunc() 5204 if err == nil { 5205 m["signClientKey"] = signClientKeyResult 5206 } else { 5207 return m, err 5208 } 5209 } 5210 // End generation by RangeReference.Serialize for Value 5211 // Begin generation by RangeReference.Serialize for Value 5212 if t.sharedInbox != nil { 5213 sharedInboxSerializeFunc := func() (interface{}, error) { 5214 v := t.sharedInbox 5215 tmp := anyURISerialize(v) 5216 return tmp, nil 5217 } 5218 sharedInboxResult, err := sharedInboxSerializeFunc() 5219 if err == nil { 5220 m["sharedInbox"] = sharedInboxResult 5221 } else { 5222 return m, err 5223 } 5224 } 5225 // End generation by RangeReference.Serialize for Value 5226 return 5227 5228} 5229 5230// Deserialize populates this object from a map[string]interface{} 5231func (t *Image) Deserialize(m map[string]interface{}) (err error) { 5232 for k, v := range m { 5233 handled := false 5234 if !handled { 5235 // Begin generation by generateFunctionalMultiTypeDefinition 5236 if k == "height" { 5237 t.height, err = deserializeHeightIntermediateType(v) 5238 if err != nil { 5239 return err 5240 } 5241 handled = true 5242 } 5243 // End generation by generateFunctionalMultiTypeDefinition 5244 } 5245 if !handled { 5246 // Begin generation by generateFunctionalMultiTypeDefinition 5247 if k == "width" { 5248 t.width, err = deserializeWidthIntermediateType(v) 5249 if err != nil { 5250 return err 5251 } 5252 handled = true 5253 } 5254 // End generation by generateFunctionalMultiTypeDefinition 5255 } 5256 if !handled { 5257 // Begin generation by generateFunctionalMultiTypeDefinition 5258 if k == "altitude" { 5259 t.altitude, err = deserializeAltitudeIntermediateType(v) 5260 if err != nil { 5261 return err 5262 } 5263 handled = true 5264 } 5265 // End generation by generateFunctionalMultiTypeDefinition 5266 } 5267 if !handled { 5268 // Begin generation by generateNonFunctionalMultiTypeDefinition 5269 if k == "attachment" { 5270 if tmpMap, ok := v.(map[string]interface{}); ok { 5271 tmp, err := deserializeAttachmentIntermediateType(tmpMap) 5272 if err != nil { 5273 return err 5274 } 5275 t.attachment = []*attachmentIntermediateType{tmp} 5276 handled = true 5277 } else if tmpSlice, ok := v.([]interface{}); ok { 5278 t.attachment, err = deserializeSliceAttachmentIntermediateType(tmpSlice) 5279 if err != nil { 5280 return err 5281 } 5282 handled = true 5283 } else { 5284 tmp := &attachmentIntermediateType{} 5285 err = tmp.Deserialize(v) 5286 if err != nil { 5287 return err 5288 } 5289 t.attachment = []*attachmentIntermediateType{tmp} 5290 handled = true 5291 } 5292 } 5293 // End generation by generateNonFunctionalMultiTypeDefinition 5294 } 5295 if !handled { 5296 // Begin generation by generateNonFunctionalMultiTypeDefinition 5297 if k == "attributedTo" { 5298 if tmpMap, ok := v.(map[string]interface{}); ok { 5299 tmp, err := deserializeAttributedToIntermediateType(tmpMap) 5300 if err != nil { 5301 return err 5302 } 5303 t.attributedTo = []*attributedToIntermediateType{tmp} 5304 handled = true 5305 } else if tmpSlice, ok := v.([]interface{}); ok { 5306 t.attributedTo, err = deserializeSliceAttributedToIntermediateType(tmpSlice) 5307 if err != nil { 5308 return err 5309 } 5310 handled = true 5311 } else { 5312 tmp := &attributedToIntermediateType{} 5313 err = tmp.Deserialize(v) 5314 if err != nil { 5315 return err 5316 } 5317 t.attributedTo = []*attributedToIntermediateType{tmp} 5318 handled = true 5319 } 5320 } 5321 // End generation by generateNonFunctionalMultiTypeDefinition 5322 } 5323 if !handled { 5324 // Begin generation by generateNonFunctionalMultiTypeDefinition 5325 if k == "audience" { 5326 if tmpMap, ok := v.(map[string]interface{}); ok { 5327 tmp, err := deserializeAudienceIntermediateType(tmpMap) 5328 if err != nil { 5329 return err 5330 } 5331 t.audience = []*audienceIntermediateType{tmp} 5332 handled = true 5333 } else if tmpSlice, ok := v.([]interface{}); ok { 5334 t.audience, err = deserializeSliceAudienceIntermediateType(tmpSlice) 5335 if err != nil { 5336 return err 5337 } 5338 handled = true 5339 } else { 5340 tmp := &audienceIntermediateType{} 5341 err = tmp.Deserialize(v) 5342 if err != nil { 5343 return err 5344 } 5345 t.audience = []*audienceIntermediateType{tmp} 5346 handled = true 5347 } 5348 } 5349 // End generation by generateNonFunctionalMultiTypeDefinition 5350 } 5351 if !handled { 5352 // Begin generation by generateNonFunctionalMultiTypeDefinition 5353 if k == "content" { 5354 if tmpMap, ok := v.(map[string]interface{}); ok { 5355 tmp, err := deserializeContentIntermediateType(tmpMap) 5356 if err != nil { 5357 return err 5358 } 5359 t.content = []*contentIntermediateType{tmp} 5360 handled = true 5361 } else if tmpSlice, ok := v.([]interface{}); ok { 5362 t.content, err = deserializeSliceContentIntermediateType(tmpSlice) 5363 if err != nil { 5364 return err 5365 } 5366 handled = true 5367 } else { 5368 tmp := &contentIntermediateType{} 5369 err = tmp.Deserialize(v) 5370 if err != nil { 5371 return err 5372 } 5373 t.content = []*contentIntermediateType{tmp} 5374 handled = true 5375 } 5376 } 5377 // End generation by generateNonFunctionalMultiTypeDefinition 5378 5379 // Begin generation by generateNaturalLanguageMap 5380 if k == "contentMap" { 5381 if vMap, ok := v.(map[string]interface{}); ok { 5382 val := make(map[string]string) 5383 for k, iVal := range vMap { 5384 if sVal, ok := iVal.(string); ok { 5385 val[k] = sVal 5386 } 5387 } 5388 t.contentMap = val 5389 handled = true 5390 } 5391 } 5392 // End generation by generateNaturalLanguageMap 5393 } 5394 if !handled { 5395 // Begin generation by generateNonFunctionalMultiTypeDefinition 5396 if k == "context" { 5397 if tmpMap, ok := v.(map[string]interface{}); ok { 5398 tmp, err := deserializeContextIntermediateType(tmpMap) 5399 if err != nil { 5400 return err 5401 } 5402 t.context = []*contextIntermediateType{tmp} 5403 handled = true 5404 } else if tmpSlice, ok := v.([]interface{}); ok { 5405 t.context, err = deserializeSliceContextIntermediateType(tmpSlice) 5406 if err != nil { 5407 return err 5408 } 5409 handled = true 5410 } else { 5411 tmp := &contextIntermediateType{} 5412 err = tmp.Deserialize(v) 5413 if err != nil { 5414 return err 5415 } 5416 t.context = []*contextIntermediateType{tmp} 5417 handled = true 5418 } 5419 } 5420 // End generation by generateNonFunctionalMultiTypeDefinition 5421 } 5422 if !handled { 5423 // Begin generation by generateNonFunctionalMultiTypeDefinition 5424 if k == "name" { 5425 if tmpMap, ok := v.(map[string]interface{}); ok { 5426 tmp, err := deserializeNameIntermediateType(tmpMap) 5427 if err != nil { 5428 return err 5429 } 5430 t.name = []*nameIntermediateType{tmp} 5431 handled = true 5432 } else if tmpSlice, ok := v.([]interface{}); ok { 5433 t.name, err = deserializeSliceNameIntermediateType(tmpSlice) 5434 if err != nil { 5435 return err 5436 } 5437 handled = true 5438 } else { 5439 tmp := &nameIntermediateType{} 5440 err = tmp.Deserialize(v) 5441 if err != nil { 5442 return err 5443 } 5444 t.name = []*nameIntermediateType{tmp} 5445 handled = true 5446 } 5447 } 5448 // End generation by generateNonFunctionalMultiTypeDefinition 5449 5450 // Begin generation by generateNaturalLanguageMap 5451 if k == "nameMap" { 5452 if vMap, ok := v.(map[string]interface{}); ok { 5453 val := make(map[string]string) 5454 for k, iVal := range vMap { 5455 if sVal, ok := iVal.(string); ok { 5456 val[k] = sVal 5457 } 5458 } 5459 t.nameMap = val 5460 handled = true 5461 } 5462 } 5463 // End generation by generateNaturalLanguageMap 5464 } 5465 if !handled { 5466 // Begin generation by generateFunctionalMultiTypeDefinition 5467 if k == "endTime" { 5468 t.endTime, err = deserializeEndTimeIntermediateType(v) 5469 if err != nil { 5470 return err 5471 } 5472 handled = true 5473 } 5474 // End generation by generateFunctionalMultiTypeDefinition 5475 } 5476 if !handled { 5477 // Begin generation by generateNonFunctionalMultiTypeDefinition 5478 if k == "generator" { 5479 if tmpMap, ok := v.(map[string]interface{}); ok { 5480 tmp, err := deserializeGeneratorIntermediateType(tmpMap) 5481 if err != nil { 5482 return err 5483 } 5484 t.generator = []*generatorIntermediateType{tmp} 5485 handled = true 5486 } else if tmpSlice, ok := v.([]interface{}); ok { 5487 t.generator, err = deserializeSliceGeneratorIntermediateType(tmpSlice) 5488 if err != nil { 5489 return err 5490 } 5491 handled = true 5492 } else { 5493 tmp := &generatorIntermediateType{} 5494 err = tmp.Deserialize(v) 5495 if err != nil { 5496 return err 5497 } 5498 t.generator = []*generatorIntermediateType{tmp} 5499 handled = true 5500 } 5501 } 5502 // End generation by generateNonFunctionalMultiTypeDefinition 5503 } 5504 if !handled { 5505 // Begin generation by generateNonFunctionalMultiTypeDefinition 5506 if k == "icon" { 5507 if tmpMap, ok := v.(map[string]interface{}); ok { 5508 tmp, err := deserializeIconIntermediateType(tmpMap) 5509 if err != nil { 5510 return err 5511 } 5512 t.icon = []*iconIntermediateType{tmp} 5513 handled = true 5514 } else if tmpSlice, ok := v.([]interface{}); ok { 5515 t.icon, err = deserializeSliceIconIntermediateType(tmpSlice) 5516 if err != nil { 5517 return err 5518 } 5519 handled = true 5520 } else { 5521 tmp := &iconIntermediateType{} 5522 err = tmp.Deserialize(v) 5523 if err != nil { 5524 return err 5525 } 5526 t.icon = []*iconIntermediateType{tmp} 5527 handled = true 5528 } 5529 } 5530 // End generation by generateNonFunctionalMultiTypeDefinition 5531 } 5532 if !handled { 5533 // Begin generation by RangeReference.Deserialize for Value 5534 if k == "id" { 5535 if v, ok := v.(interface{}); ok { 5536 tmp, err := anyURIDeserialize(v) 5537 if err != nil { 5538 return err 5539 } 5540 t.id = tmp 5541 handled = true 5542 } 5543 } 5544 // End generation by RangeReference.Deserialize for Value 5545 } 5546 if !handled { 5547 // Begin generation by generateNonFunctionalMultiTypeDefinition 5548 if k == "image" { 5549 if tmpMap, ok := v.(map[string]interface{}); ok { 5550 tmp, err := deserializeImageIntermediateType(tmpMap) 5551 if err != nil { 5552 return err 5553 } 5554 t.image = []*imageIntermediateType{tmp} 5555 handled = true 5556 } else if tmpSlice, ok := v.([]interface{}); ok { 5557 t.image, err = deserializeSliceImageIntermediateType(tmpSlice) 5558 if err != nil { 5559 return err 5560 } 5561 handled = true 5562 } else { 5563 tmp := &imageIntermediateType{} 5564 err = tmp.Deserialize(v) 5565 if err != nil { 5566 return err 5567 } 5568 t.image = []*imageIntermediateType{tmp} 5569 handled = true 5570 } 5571 } 5572 // End generation by generateNonFunctionalMultiTypeDefinition 5573 } 5574 if !handled { 5575 // Begin generation by generateNonFunctionalMultiTypeDefinition 5576 if k == "inReplyTo" { 5577 if tmpMap, ok := v.(map[string]interface{}); ok { 5578 tmp, err := deserializeInReplyToIntermediateType(tmpMap) 5579 if err != nil { 5580 return err 5581 } 5582 t.inReplyTo = []*inReplyToIntermediateType{tmp} 5583 handled = true 5584 } else if tmpSlice, ok := v.([]interface{}); ok { 5585 t.inReplyTo, err = deserializeSliceInReplyToIntermediateType(tmpSlice) 5586 if err != nil { 5587 return err 5588 } 5589 handled = true 5590 } else { 5591 tmp := &inReplyToIntermediateType{} 5592 err = tmp.Deserialize(v) 5593 if err != nil { 5594 return err 5595 } 5596 t.inReplyTo = []*inReplyToIntermediateType{tmp} 5597 handled = true 5598 } 5599 } 5600 // End generation by generateNonFunctionalMultiTypeDefinition 5601 } 5602 if !handled { 5603 // Begin generation by generateNonFunctionalMultiTypeDefinition 5604 if k == "location" { 5605 if tmpMap, ok := v.(map[string]interface{}); ok { 5606 tmp, err := deserializeLocationIntermediateType(tmpMap) 5607 if err != nil { 5608 return err 5609 } 5610 t.location = []*locationIntermediateType{tmp} 5611 handled = true 5612 } else if tmpSlice, ok := v.([]interface{}); ok { 5613 t.location, err = deserializeSliceLocationIntermediateType(tmpSlice) 5614 if err != nil { 5615 return err 5616 } 5617 handled = true 5618 } else { 5619 tmp := &locationIntermediateType{} 5620 err = tmp.Deserialize(v) 5621 if err != nil { 5622 return err 5623 } 5624 t.location = []*locationIntermediateType{tmp} 5625 handled = true 5626 } 5627 } 5628 // End generation by generateNonFunctionalMultiTypeDefinition 5629 } 5630 if !handled { 5631 // Begin generation by generateNonFunctionalMultiTypeDefinition 5632 if k == "preview" { 5633 if tmpMap, ok := v.(map[string]interface{}); ok { 5634 tmp, err := deserializePreviewIntermediateType(tmpMap) 5635 if err != nil { 5636 return err 5637 } 5638 t.preview = []*previewIntermediateType{tmp} 5639 handled = true 5640 } else if tmpSlice, ok := v.([]interface{}); ok { 5641 t.preview, err = deserializeSlicePreviewIntermediateType(tmpSlice) 5642 if err != nil { 5643 return err 5644 } 5645 handled = true 5646 } else { 5647 tmp := &previewIntermediateType{} 5648 err = tmp.Deserialize(v) 5649 if err != nil { 5650 return err 5651 } 5652 t.preview = []*previewIntermediateType{tmp} 5653 handled = true 5654 } 5655 } 5656 // End generation by generateNonFunctionalMultiTypeDefinition 5657 } 5658 if !handled { 5659 // Begin generation by generateFunctionalMultiTypeDefinition 5660 if k == "published" { 5661 t.published, err = deserializePublishedIntermediateType(v) 5662 if err != nil { 5663 return err 5664 } 5665 handled = true 5666 } 5667 // End generation by generateFunctionalMultiTypeDefinition 5668 } 5669 if !handled { 5670 // Begin generation by generateFunctionalMultiTypeDefinition 5671 if k == "replies" { 5672 t.replies, err = deserializeRepliesIntermediateType(v) 5673 if err != nil { 5674 return err 5675 } 5676 handled = true 5677 } 5678 // End generation by generateFunctionalMultiTypeDefinition 5679 } 5680 if !handled { 5681 // Begin generation by generateFunctionalMultiTypeDefinition 5682 if k == "startTime" { 5683 t.startTime, err = deserializeStartTimeIntermediateType(v) 5684 if err != nil { 5685 return err 5686 } 5687 handled = true 5688 } 5689 // End generation by generateFunctionalMultiTypeDefinition 5690 } 5691 if !handled { 5692 // Begin generation by generateNonFunctionalMultiTypeDefinition 5693 if k == "summary" { 5694 if tmpMap, ok := v.(map[string]interface{}); ok { 5695 tmp, err := deserializeSummaryIntermediateType(tmpMap) 5696 if err != nil { 5697 return err 5698 } 5699 t.summary = []*summaryIntermediateType{tmp} 5700 handled = true 5701 } else if tmpSlice, ok := v.([]interface{}); ok { 5702 t.summary, err = deserializeSliceSummaryIntermediateType(tmpSlice) 5703 if err != nil { 5704 return err 5705 } 5706 handled = true 5707 } else { 5708 tmp := &summaryIntermediateType{} 5709 err = tmp.Deserialize(v) 5710 if err != nil { 5711 return err 5712 } 5713 t.summary = []*summaryIntermediateType{tmp} 5714 handled = true 5715 } 5716 } 5717 // End generation by generateNonFunctionalMultiTypeDefinition 5718 5719 // Begin generation by generateNaturalLanguageMap 5720 if k == "summaryMap" { 5721 if vMap, ok := v.(map[string]interface{}); ok { 5722 val := make(map[string]string) 5723 for k, iVal := range vMap { 5724 if sVal, ok := iVal.(string); ok { 5725 val[k] = sVal 5726 } 5727 } 5728 t.summaryMap = val 5729 handled = true 5730 } 5731 } 5732 // End generation by generateNaturalLanguageMap 5733 } 5734 if !handled { 5735 // Begin generation by generateNonFunctionalMultiTypeDefinition 5736 if k == "tag" { 5737 if tmpMap, ok := v.(map[string]interface{}); ok { 5738 tmp, err := deserializeTagIntermediateType(tmpMap) 5739 if err != nil { 5740 return err 5741 } 5742 t.tag = []*tagIntermediateType{tmp} 5743 handled = true 5744 } else if tmpSlice, ok := v.([]interface{}); ok { 5745 t.tag, err = deserializeSliceTagIntermediateType(tmpSlice) 5746 if err != nil { 5747 return err 5748 } 5749 handled = true 5750 } else { 5751 tmp := &tagIntermediateType{} 5752 err = tmp.Deserialize(v) 5753 if err != nil { 5754 return err 5755 } 5756 t.tag = []*tagIntermediateType{tmp} 5757 handled = true 5758 } 5759 } 5760 // End generation by generateNonFunctionalMultiTypeDefinition 5761 } 5762 if !handled { 5763 // Begin generation by generateNonFunctionalAnyDefinition 5764 if k == "type" { 5765 if tmpTypeSlice, ok := v.([]interface{}); ok { 5766 t.typeName = tmpTypeSlice 5767 handled = true 5768 } else { 5769 t.typeName = []interface{}{v} 5770 handled = true 5771 } 5772 } 5773 // End generation by generateNonFunctionalAnyDefinition 5774 } 5775 if !handled { 5776 // Begin generation by generateFunctionalMultiTypeDefinition 5777 if k == "updated" { 5778 t.updated, err = deserializeUpdatedIntermediateType(v) 5779 if err != nil { 5780 return err 5781 } 5782 handled = true 5783 } 5784 // End generation by generateFunctionalMultiTypeDefinition 5785 } 5786 if !handled { 5787 // Begin generation by generateNonFunctionalMultiTypeDefinition 5788 if k == "url" { 5789 if tmpMap, ok := v.(map[string]interface{}); ok { 5790 tmp, err := deserializeUrlIntermediateType(tmpMap) 5791 if err != nil { 5792 return err 5793 } 5794 t.url = []*urlIntermediateType{tmp} 5795 handled = true 5796 } else if tmpSlice, ok := v.([]interface{}); ok { 5797 t.url, err = deserializeSliceUrlIntermediateType(tmpSlice) 5798 if err != nil { 5799 return err 5800 } 5801 handled = true 5802 } else { 5803 tmp := &urlIntermediateType{} 5804 err = tmp.Deserialize(v) 5805 if err != nil { 5806 return err 5807 } 5808 t.url = []*urlIntermediateType{tmp} 5809 handled = true 5810 } 5811 } 5812 // End generation by generateNonFunctionalMultiTypeDefinition 5813 } 5814 if !handled { 5815 // Begin generation by generateNonFunctionalMultiTypeDefinition 5816 if k == "to" { 5817 if tmpMap, ok := v.(map[string]interface{}); ok { 5818 tmp, err := deserializeToIntermediateType(tmpMap) 5819 if err != nil { 5820 return err 5821 } 5822 t.to = []*toIntermediateType{tmp} 5823 handled = true 5824 } else if tmpSlice, ok := v.([]interface{}); ok { 5825 t.to, err = deserializeSliceToIntermediateType(tmpSlice) 5826 if err != nil { 5827 return err 5828 } 5829 handled = true 5830 } else { 5831 tmp := &toIntermediateType{} 5832 err = tmp.Deserialize(v) 5833 if err != nil { 5834 return err 5835 } 5836 t.to = []*toIntermediateType{tmp} 5837 handled = true 5838 } 5839 } 5840 // End generation by generateNonFunctionalMultiTypeDefinition 5841 } 5842 if !handled { 5843 // Begin generation by generateNonFunctionalMultiTypeDefinition 5844 if k == "bto" { 5845 if tmpMap, ok := v.(map[string]interface{}); ok { 5846 tmp, err := deserializeBtoIntermediateType(tmpMap) 5847 if err != nil { 5848 return err 5849 } 5850 t.bto = []*btoIntermediateType{tmp} 5851 handled = true 5852 } else if tmpSlice, ok := v.([]interface{}); ok { 5853 t.bto, err = deserializeSliceBtoIntermediateType(tmpSlice) 5854 if err != nil { 5855 return err 5856 } 5857 handled = true 5858 } else { 5859 tmp := &btoIntermediateType{} 5860 err = tmp.Deserialize(v) 5861 if err != nil { 5862 return err 5863 } 5864 t.bto = []*btoIntermediateType{tmp} 5865 handled = true 5866 } 5867 } 5868 // End generation by generateNonFunctionalMultiTypeDefinition 5869 } 5870 if !handled { 5871 // Begin generation by generateNonFunctionalMultiTypeDefinition 5872 if k == "cc" { 5873 if tmpMap, ok := v.(map[string]interface{}); ok { 5874 tmp, err := deserializeCcIntermediateType(tmpMap) 5875 if err != nil { 5876 return err 5877 } 5878 t.cc = []*ccIntermediateType{tmp} 5879 handled = true 5880 } else if tmpSlice, ok := v.([]interface{}); ok { 5881 t.cc, err = deserializeSliceCcIntermediateType(tmpSlice) 5882 if err != nil { 5883 return err 5884 } 5885 handled = true 5886 } else { 5887 tmp := &ccIntermediateType{} 5888 err = tmp.Deserialize(v) 5889 if err != nil { 5890 return err 5891 } 5892 t.cc = []*ccIntermediateType{tmp} 5893 handled = true 5894 } 5895 } 5896 // End generation by generateNonFunctionalMultiTypeDefinition 5897 } 5898 if !handled { 5899 // Begin generation by generateNonFunctionalMultiTypeDefinition 5900 if k == "bcc" { 5901 if tmpMap, ok := v.(map[string]interface{}); ok { 5902 tmp, err := deserializeBccIntermediateType(tmpMap) 5903 if err != nil { 5904 return err 5905 } 5906 t.bcc = []*bccIntermediateType{tmp} 5907 handled = true 5908 } else if tmpSlice, ok := v.([]interface{}); ok { 5909 t.bcc, err = deserializeSliceBccIntermediateType(tmpSlice) 5910 if err != nil { 5911 return err 5912 } 5913 handled = true 5914 } else { 5915 tmp := &bccIntermediateType{} 5916 err = tmp.Deserialize(v) 5917 if err != nil { 5918 return err 5919 } 5920 t.bcc = []*bccIntermediateType{tmp} 5921 handled = true 5922 } 5923 } 5924 // End generation by generateNonFunctionalMultiTypeDefinition 5925 } 5926 if !handled { 5927 // Begin generation by generateFunctionalMultiTypeDefinition 5928 if k == "mediaType" { 5929 t.mediaType, err = deserializeMediaTypeIntermediateType(v) 5930 if err != nil { 5931 return err 5932 } 5933 handled = true 5934 } 5935 // End generation by generateFunctionalMultiTypeDefinition 5936 } 5937 if !handled { 5938 // Begin generation by generateFunctionalMultiTypeDefinition 5939 if k == "duration" { 5940 t.duration, err = deserializeDurationIntermediateType(v) 5941 if err != nil { 5942 return err 5943 } 5944 handled = true 5945 } 5946 // End generation by generateFunctionalMultiTypeDefinition 5947 } 5948 if !handled { 5949 // Begin generation by generateFunctionalMultiTypeDefinition 5950 if k == "source" { 5951 t.source, err = deserializeSourceIntermediateType(v) 5952 if err != nil { 5953 return err 5954 } 5955 handled = true 5956 } 5957 // End generation by generateFunctionalMultiTypeDefinition 5958 } 5959 if !handled { 5960 // Begin generation by generateFunctionalMultiTypeDefinition 5961 if k == "inbox" { 5962 t.inbox, err = deserializeInboxIntermediateType(v) 5963 if err != nil { 5964 return err 5965 } 5966 handled = true 5967 } 5968 // End generation by generateFunctionalMultiTypeDefinition 5969 } 5970 if !handled { 5971 // Begin generation by generateFunctionalMultiTypeDefinition 5972 if k == "outbox" { 5973 t.outbox, err = deserializeOutboxIntermediateType(v) 5974 if err != nil { 5975 return err 5976 } 5977 handled = true 5978 } 5979 // End generation by generateFunctionalMultiTypeDefinition 5980 } 5981 if !handled { 5982 // Begin generation by generateFunctionalMultiTypeDefinition 5983 if k == "following" { 5984 t.following, err = deserializeFollowingIntermediateType(v) 5985 if err != nil { 5986 return err 5987 } 5988 handled = true 5989 } 5990 // End generation by generateFunctionalMultiTypeDefinition 5991 } 5992 if !handled { 5993 // Begin generation by generateFunctionalMultiTypeDefinition 5994 if k == "followers" { 5995 t.followers, err = deserializeFollowersIntermediateType(v) 5996 if err != nil { 5997 return err 5998 } 5999 handled = true 6000 } 6001 // End generation by generateFunctionalMultiTypeDefinition 6002 } 6003 if !handled { 6004 // Begin generation by generateFunctionalMultiTypeDefinition 6005 if k == "liked" { 6006 t.liked, err = deserializeLikedIntermediateType(v) 6007 if err != nil { 6008 return err 6009 } 6010 handled = true 6011 } 6012 // End generation by generateFunctionalMultiTypeDefinition 6013 } 6014 if !handled { 6015 // Begin generation by generateFunctionalMultiTypeDefinition 6016 if k == "likes" { 6017 t.likes, err = deserializeLikesIntermediateType(v) 6018 if err != nil { 6019 return err 6020 } 6021 handled = true 6022 } 6023 // End generation by generateFunctionalMultiTypeDefinition 6024 } 6025 if !handled { 6026 // Begin generation by RangeReference.Deserialize for Value 6027 if k == "streams" { 6028 if tmpSlice, ok := v.([]interface{}); ok { 6029 for _, tmpElem := range tmpSlice { 6030 if v, ok := tmpElem.(interface{}); ok { 6031 tmp, err := anyURIDeserialize(v) 6032 if err != nil { 6033 return err 6034 } 6035 t.streams = append(t.streams, tmp) 6036 handled = true 6037 } 6038 } 6039 } else if v, ok := v.(interface{}); ok { 6040 tmp, err := anyURIDeserialize(v) 6041 if err != nil { 6042 return err 6043 } 6044 t.streams = append(t.streams, tmp) 6045 handled = true 6046 } 6047 } 6048 // End generation by RangeReference.Deserialize for Value 6049 } 6050 if !handled { 6051 // Begin generation by generateFunctionalMultiTypeDefinition 6052 if k == "preferredUsername" { 6053 t.preferredUsername, err = deserializePreferredUsernameIntermediateType(v) 6054 if err != nil { 6055 return err 6056 } 6057 handled = true 6058 } 6059 // End generation by generateFunctionalMultiTypeDefinition 6060 6061 // Begin generation by generateNaturalLanguageMap 6062 if k == "preferredUsernameMap" { 6063 if vMap, ok := v.(map[string]interface{}); ok { 6064 val := make(map[string]string) 6065 for k, iVal := range vMap { 6066 if sVal, ok := iVal.(string); ok { 6067 val[k] = sVal 6068 } 6069 } 6070 t.preferredUsernameMap = val 6071 handled = true 6072 } 6073 } 6074 // End generation by generateNaturalLanguageMap 6075 } 6076 if !handled { 6077 // Begin generation by generateFunctionalMultiTypeDefinition 6078 if k == "endpoints" { 6079 t.endpoints, err = deserializeEndpointsIntermediateType(v) 6080 if err != nil { 6081 return err 6082 } 6083 handled = true 6084 } 6085 // End generation by generateFunctionalMultiTypeDefinition 6086 } 6087 if !handled { 6088 // Begin generation by RangeReference.Deserialize for Value 6089 if k == "proxyUrl" { 6090 if v, ok := v.(interface{}); ok { 6091 tmp, err := anyURIDeserialize(v) 6092 if err != nil { 6093 return err 6094 } 6095 t.proxyUrl = tmp 6096 handled = true 6097 } 6098 } 6099 // End generation by RangeReference.Deserialize for Value 6100 } 6101 if !handled { 6102 // Begin generation by RangeReference.Deserialize for Value 6103 if k == "oauthAuthorizationEndpoint" { 6104 if v, ok := v.(interface{}); ok { 6105 tmp, err := anyURIDeserialize(v) 6106 if err != nil { 6107 return err 6108 } 6109 t.oauthAuthorizationEndpoint = tmp 6110 handled = true 6111 } 6112 } 6113 // End generation by RangeReference.Deserialize for Value 6114 } 6115 if !handled { 6116 // Begin generation by RangeReference.Deserialize for Value 6117 if k == "oauthTokenEndpoint" { 6118 if v, ok := v.(interface{}); ok { 6119 tmp, err := anyURIDeserialize(v) 6120 if err != nil { 6121 return err 6122 } 6123 t.oauthTokenEndpoint = tmp 6124 handled = true 6125 } 6126 } 6127 // End generation by RangeReference.Deserialize for Value 6128 } 6129 if !handled { 6130 // Begin generation by RangeReference.Deserialize for Value 6131 if k == "provideClientKey" { 6132 if v, ok := v.(interface{}); ok { 6133 tmp, err := anyURIDeserialize(v) 6134 if err != nil { 6135 return err 6136 } 6137 t.provideClientKey = tmp 6138 handled = true 6139 } 6140 } 6141 // End generation by RangeReference.Deserialize for Value 6142 } 6143 if !handled { 6144 // Begin generation by RangeReference.Deserialize for Value 6145 if k == "signClientKey" { 6146 if v, ok := v.(interface{}); ok { 6147 tmp, err := anyURIDeserialize(v) 6148 if err != nil { 6149 return err 6150 } 6151 t.signClientKey = tmp 6152 handled = true 6153 } 6154 } 6155 // End generation by RangeReference.Deserialize for Value 6156 } 6157 if !handled { 6158 // Begin generation by RangeReference.Deserialize for Value 6159 if k == "sharedInbox" { 6160 if v, ok := v.(interface{}); ok { 6161 tmp, err := anyURIDeserialize(v) 6162 if err != nil { 6163 return err 6164 } 6165 t.sharedInbox = tmp 6166 handled = true 6167 } 6168 } 6169 // End generation by RangeReference.Deserialize for Value 6170 } 6171 if !handled && k != "@context" { 6172 if t.unknown_ == nil { 6173 t.unknown_ = make(map[string]interface{}) 6174 } 6175 t.unknown_[k] = unknownValueDeserialize(v) 6176 } 6177 } 6178 return 6179 6180} 6181