Documentation ¶
Overview ¶
Package imagesearch implements the Azure ARM Imagesearch service API version 1.0.
The Image Search API lets you send a search query to Bing and get back a list of relevant images. This section provides technical details about the query parameters and headers that you use to request images and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Images](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/search-the-web).
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AggregateOffer
- func (ao AggregateOffer) AsAggregateOffer() (*AggregateOffer, bool)
- func (ao AggregateOffer) AsAnswer() (*Answer, bool)
- func (ao AggregateOffer) AsBasicAnswer() (BasicAnswer, bool)
- func (ao AggregateOffer) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (ao AggregateOffer) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (ao AggregateOffer) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (ao AggregateOffer) AsBasicIntangible() (BasicIntangible, bool)
- func (ao AggregateOffer) AsBasicMediaObject() (BasicMediaObject, bool)
- func (ao AggregateOffer) AsBasicOffer() (BasicOffer, bool)
- func (ao AggregateOffer) AsBasicResponse() (BasicResponse, bool)
- func (ao AggregateOffer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (ao AggregateOffer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (ao AggregateOffer) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (ao AggregateOffer) AsBasicThing() (BasicThing, bool)
- func (ao AggregateOffer) AsBasicWebPage() (BasicWebPage, bool)
- func (ao AggregateOffer) AsCollectionPage() (*CollectionPage, bool)
- func (ao AggregateOffer) AsCreativeWork() (*CreativeWork, bool)
- func (ao AggregateOffer) AsErrorResponse() (*ErrorResponse, bool)
- func (ao AggregateOffer) AsIdentifiable() (*Identifiable, bool)
- func (ao AggregateOffer) AsImageGallery() (*ImageGallery, bool)
- func (ao AggregateOffer) AsImageInsights() (*ImageInsights, bool)
- func (ao AggregateOffer) AsImageObject() (*ImageObject, bool)
- func (ao AggregateOffer) AsImages() (*Images, bool)
- func (ao AggregateOffer) AsIntangible() (*Intangible, bool)
- func (ao AggregateOffer) AsMediaObject() (*MediaObject, bool)
- func (ao AggregateOffer) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (ao AggregateOffer) AsOffer() (*Offer, bool)
- func (ao AggregateOffer) AsOrganization() (*Organization, bool)
- func (ao AggregateOffer) AsPerson() (*Person, bool)
- func (ao AggregateOffer) AsRecipe() (*Recipe, bool)
- func (ao AggregateOffer) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (ao AggregateOffer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (ao AggregateOffer) AsResponse() (*Response, bool)
- func (ao AggregateOffer) AsResponseBase() (*ResponseBase, bool)
- func (ao AggregateOffer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (ao AggregateOffer) AsStructuredValue() (*StructuredValue, bool)
- func (ao AggregateOffer) AsThing() (*Thing, bool)
- func (ao AggregateOffer) AsTrendingImages() (*TrendingImages, bool)
- func (ao AggregateOffer) AsWebPage() (*WebPage, bool)
- func (ao AggregateOffer) MarshalJSON() ([]byte, error)
- func (ao *AggregateOffer) UnmarshalJSON(body []byte) error
- type AggregateRating
- func (ar AggregateRating) AsAggregateRating() (*AggregateRating, bool)
- func (ar AggregateRating) AsBasicPropertiesItem() (BasicPropertiesItem, bool)
- func (ar AggregateRating) AsBasicRating() (BasicRating, bool)
- func (ar AggregateRating) AsPropertiesItem() (*PropertiesItem, bool)
- func (ar AggregateRating) AsRating() (*Rating, bool)
- func (ar AggregateRating) MarshalJSON() ([]byte, error)
- type Answer
- func (a Answer) AsAggregateOffer() (*AggregateOffer, bool)
- func (a Answer) AsAnswer() (*Answer, bool)
- func (a Answer) AsBasicAnswer() (BasicAnswer, bool)
- func (a Answer) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (a Answer) AsBasicIntangible() (BasicIntangible, bool)
- func (a Answer) AsBasicMediaObject() (BasicMediaObject, bool)
- func (a Answer) AsBasicOffer() (BasicOffer, bool)
- func (a Answer) AsBasicResponse() (BasicResponse, bool)
- func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (a Answer) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (a Answer) AsBasicThing() (BasicThing, bool)
- func (a Answer) AsBasicWebPage() (BasicWebPage, bool)
- func (a Answer) AsCollectionPage() (*CollectionPage, bool)
- func (a Answer) AsCreativeWork() (*CreativeWork, bool)
- func (a Answer) AsErrorResponse() (*ErrorResponse, bool)
- func (a Answer) AsIdentifiable() (*Identifiable, bool)
- func (a Answer) AsImageGallery() (*ImageGallery, bool)
- func (a Answer) AsImageInsights() (*ImageInsights, bool)
- func (a Answer) AsImageObject() (*ImageObject, bool)
- func (a Answer) AsImages() (*Images, bool)
- func (a Answer) AsIntangible() (*Intangible, bool)
- func (a Answer) AsMediaObject() (*MediaObject, bool)
- func (a Answer) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (a Answer) AsOffer() (*Offer, bool)
- func (a Answer) AsOrganization() (*Organization, bool)
- func (a Answer) AsPerson() (*Person, bool)
- func (a Answer) AsRecipe() (*Recipe, bool)
- func (a Answer) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (a Answer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (a Answer) AsResponse() (*Response, bool)
- func (a Answer) AsResponseBase() (*ResponseBase, bool)
- func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (a Answer) AsStructuredValue() (*StructuredValue, bool)
- func (a Answer) AsThing() (*Thing, bool)
- func (a Answer) AsTrendingImages() (*TrendingImages, bool)
- func (a Answer) AsWebPage() (*WebPage, bool)
- func (a Answer) MarshalJSON() ([]byte, error)
- type BaseClient
- type BasicAnswer
- type BasicCollectionPage
- type BasicCreativeWork
- type BasicIdentifiable
- type BasicIntangible
- type BasicMediaObject
- type BasicOffer
- type BasicPropertiesItem
- type BasicRating
- type BasicResponse
- type BasicResponseBase
- type BasicSearchResultsAnswer
- type BasicStructuredValue
- type BasicThing
- type BasicWebPage
- type CollectionPage
- func (cp CollectionPage) AsAggregateOffer() (*AggregateOffer, bool)
- func (cp CollectionPage) AsAnswer() (*Answer, bool)
- func (cp CollectionPage) AsBasicAnswer() (BasicAnswer, bool)
- func (cp CollectionPage) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (cp CollectionPage) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (cp CollectionPage) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (cp CollectionPage) AsBasicIntangible() (BasicIntangible, bool)
- func (cp CollectionPage) AsBasicMediaObject() (BasicMediaObject, bool)
- func (cp CollectionPage) AsBasicOffer() (BasicOffer, bool)
- func (cp CollectionPage) AsBasicResponse() (BasicResponse, bool)
- func (cp CollectionPage) AsBasicResponseBase() (BasicResponseBase, bool)
- func (cp CollectionPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (cp CollectionPage) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (cp CollectionPage) AsBasicThing() (BasicThing, bool)
- func (cp CollectionPage) AsBasicWebPage() (BasicWebPage, bool)
- func (cp CollectionPage) AsCollectionPage() (*CollectionPage, bool)
- func (cp CollectionPage) AsCreativeWork() (*CreativeWork, bool)
- func (cp CollectionPage) AsErrorResponse() (*ErrorResponse, bool)
- func (cp CollectionPage) AsIdentifiable() (*Identifiable, bool)
- func (cp CollectionPage) AsImageGallery() (*ImageGallery, bool)
- func (cp CollectionPage) AsImageInsights() (*ImageInsights, bool)
- func (cp CollectionPage) AsImageObject() (*ImageObject, bool)
- func (cp CollectionPage) AsImages() (*Images, bool)
- func (cp CollectionPage) AsIntangible() (*Intangible, bool)
- func (cp CollectionPage) AsMediaObject() (*MediaObject, bool)
- func (cp CollectionPage) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (cp CollectionPage) AsOffer() (*Offer, bool)
- func (cp CollectionPage) AsOrganization() (*Organization, bool)
- func (cp CollectionPage) AsPerson() (*Person, bool)
- func (cp CollectionPage) AsRecipe() (*Recipe, bool)
- func (cp CollectionPage) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (cp CollectionPage) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (cp CollectionPage) AsResponse() (*Response, bool)
- func (cp CollectionPage) AsResponseBase() (*ResponseBase, bool)
- func (cp CollectionPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (cp CollectionPage) AsStructuredValue() (*StructuredValue, bool)
- func (cp CollectionPage) AsThing() (*Thing, bool)
- func (cp CollectionPage) AsTrendingImages() (*TrendingImages, bool)
- func (cp CollectionPage) AsWebPage() (*WebPage, bool)
- func (cp CollectionPage) MarshalJSON() ([]byte, error)
- func (cp *CollectionPage) UnmarshalJSON(body []byte) error
- type CreativeWork
- func (cw CreativeWork) AsAggregateOffer() (*AggregateOffer, bool)
- func (cw CreativeWork) AsAnswer() (*Answer, bool)
- func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool)
- func (cw CreativeWork) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (cw CreativeWork) AsBasicIntangible() (BasicIntangible, bool)
- func (cw CreativeWork) AsBasicMediaObject() (BasicMediaObject, bool)
- func (cw CreativeWork) AsBasicOffer() (BasicOffer, bool)
- func (cw CreativeWork) AsBasicResponse() (BasicResponse, bool)
- func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool)
- func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (cw CreativeWork) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (cw CreativeWork) AsBasicThing() (BasicThing, bool)
- func (cw CreativeWork) AsBasicWebPage() (BasicWebPage, bool)
- func (cw CreativeWork) AsCollectionPage() (*CollectionPage, bool)
- func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool)
- func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool)
- func (cw CreativeWork) AsIdentifiable() (*Identifiable, bool)
- func (cw CreativeWork) AsImageGallery() (*ImageGallery, bool)
- func (cw CreativeWork) AsImageInsights() (*ImageInsights, bool)
- func (cw CreativeWork) AsImageObject() (*ImageObject, bool)
- func (cw CreativeWork) AsImages() (*Images, bool)
- func (cw CreativeWork) AsIntangible() (*Intangible, bool)
- func (cw CreativeWork) AsMediaObject() (*MediaObject, bool)
- func (cw CreativeWork) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (cw CreativeWork) AsOffer() (*Offer, bool)
- func (cw CreativeWork) AsOrganization() (*Organization, bool)
- func (cw CreativeWork) AsPerson() (*Person, bool)
- func (cw CreativeWork) AsRecipe() (*Recipe, bool)
- func (cw CreativeWork) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (cw CreativeWork) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (cw CreativeWork) AsResponse() (*Response, bool)
- func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool)
- func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (cw CreativeWork) AsStructuredValue() (*StructuredValue, bool)
- func (cw CreativeWork) AsThing() (*Thing, bool)
- func (cw CreativeWork) AsTrendingImages() (*TrendingImages, bool)
- func (cw CreativeWork) AsWebPage() (*WebPage, bool)
- func (cw CreativeWork) MarshalJSON() ([]byte, error)
- func (cw *CreativeWork) UnmarshalJSON(body []byte) error
- type Currency
- type Error
- type ErrorCode
- type ErrorResponse
- func (er ErrorResponse) AsAggregateOffer() (*AggregateOffer, bool)
- func (er ErrorResponse) AsAnswer() (*Answer, bool)
- func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool)
- func (er ErrorResponse) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (er ErrorResponse) AsBasicIntangible() (BasicIntangible, bool)
- func (er ErrorResponse) AsBasicMediaObject() (BasicMediaObject, bool)
- func (er ErrorResponse) AsBasicOffer() (BasicOffer, bool)
- func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool)
- func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool)
- func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (er ErrorResponse) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (er ErrorResponse) AsBasicThing() (BasicThing, bool)
- func (er ErrorResponse) AsBasicWebPage() (BasicWebPage, bool)
- func (er ErrorResponse) AsCollectionPage() (*CollectionPage, bool)
- func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool)
- func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool)
- func (er ErrorResponse) AsIdentifiable() (*Identifiable, bool)
- func (er ErrorResponse) AsImageGallery() (*ImageGallery, bool)
- func (er ErrorResponse) AsImageInsights() (*ImageInsights, bool)
- func (er ErrorResponse) AsImageObject() (*ImageObject, bool)
- func (er ErrorResponse) AsImages() (*Images, bool)
- func (er ErrorResponse) AsIntangible() (*Intangible, bool)
- func (er ErrorResponse) AsMediaObject() (*MediaObject, bool)
- func (er ErrorResponse) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (er ErrorResponse) AsOffer() (*Offer, bool)
- func (er ErrorResponse) AsOrganization() (*Organization, bool)
- func (er ErrorResponse) AsPerson() (*Person, bool)
- func (er ErrorResponse) AsRecipe() (*Recipe, bool)
- func (er ErrorResponse) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (er ErrorResponse) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (er ErrorResponse) AsResponse() (*Response, bool)
- func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool)
- func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (er ErrorResponse) AsStructuredValue() (*StructuredValue, bool)
- func (er ErrorResponse) AsThing() (*Thing, bool)
- func (er ErrorResponse) AsTrendingImages() (*TrendingImages, bool)
- func (er ErrorResponse) AsWebPage() (*WebPage, bool)
- func (er ErrorResponse) MarshalJSON() ([]byte, error)
- type ErrorSubCode
- type Freshness
- type Identifiable
- func (i Identifiable) AsAggregateOffer() (*AggregateOffer, bool)
- func (i Identifiable) AsAnswer() (*Answer, bool)
- func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool)
- func (i Identifiable) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (i Identifiable) AsBasicIntangible() (BasicIntangible, bool)
- func (i Identifiable) AsBasicMediaObject() (BasicMediaObject, bool)
- func (i Identifiable) AsBasicOffer() (BasicOffer, bool)
- func (i Identifiable) AsBasicResponse() (BasicResponse, bool)
- func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool)
- func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (i Identifiable) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (i Identifiable) AsBasicThing() (BasicThing, bool)
- func (i Identifiable) AsBasicWebPage() (BasicWebPage, bool)
- func (i Identifiable) AsCollectionPage() (*CollectionPage, bool)
- func (i Identifiable) AsCreativeWork() (*CreativeWork, bool)
- func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool)
- func (i Identifiable) AsIdentifiable() (*Identifiable, bool)
- func (i Identifiable) AsImageGallery() (*ImageGallery, bool)
- func (i Identifiable) AsImageInsights() (*ImageInsights, bool)
- func (i Identifiable) AsImageObject() (*ImageObject, bool)
- func (i Identifiable) AsImages() (*Images, bool)
- func (i Identifiable) AsIntangible() (*Intangible, bool)
- func (i Identifiable) AsMediaObject() (*MediaObject, bool)
- func (i Identifiable) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (i Identifiable) AsOffer() (*Offer, bool)
- func (i Identifiable) AsOrganization() (*Organization, bool)
- func (i Identifiable) AsPerson() (*Person, bool)
- func (i Identifiable) AsRecipe() (*Recipe, bool)
- func (i Identifiable) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (i Identifiable) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (i Identifiable) AsResponse() (*Response, bool)
- func (i Identifiable) AsResponseBase() (*ResponseBase, bool)
- func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (i Identifiable) AsStructuredValue() (*StructuredValue, bool)
- func (i Identifiable) AsThing() (*Thing, bool)
- func (i Identifiable) AsTrendingImages() (*TrendingImages, bool)
- func (i Identifiable) AsWebPage() (*WebPage, bool)
- func (i Identifiable) MarshalJSON() ([]byte, error)
- type ImageAspect
- type ImageColor
- type ImageContent
- type ImageCropType
- type ImageGallery
- func (ig ImageGallery) AsAggregateOffer() (*AggregateOffer, bool)
- func (ig ImageGallery) AsAnswer() (*Answer, bool)
- func (ig ImageGallery) AsBasicAnswer() (BasicAnswer, bool)
- func (ig ImageGallery) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (ig ImageGallery) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (ig ImageGallery) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (ig ImageGallery) AsBasicIntangible() (BasicIntangible, bool)
- func (ig ImageGallery) AsBasicMediaObject() (BasicMediaObject, bool)
- func (ig ImageGallery) AsBasicOffer() (BasicOffer, bool)
- func (ig ImageGallery) AsBasicResponse() (BasicResponse, bool)
- func (ig ImageGallery) AsBasicResponseBase() (BasicResponseBase, bool)
- func (ig ImageGallery) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (ig ImageGallery) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (ig ImageGallery) AsBasicThing() (BasicThing, bool)
- func (ig ImageGallery) AsBasicWebPage() (BasicWebPage, bool)
- func (ig ImageGallery) AsCollectionPage() (*CollectionPage, bool)
- func (ig ImageGallery) AsCreativeWork() (*CreativeWork, bool)
- func (ig ImageGallery) AsErrorResponse() (*ErrorResponse, bool)
- func (ig ImageGallery) AsIdentifiable() (*Identifiable, bool)
- func (ig ImageGallery) AsImageGallery() (*ImageGallery, bool)
- func (ig ImageGallery) AsImageInsights() (*ImageInsights, bool)
- func (ig ImageGallery) AsImageObject() (*ImageObject, bool)
- func (ig ImageGallery) AsImages() (*Images, bool)
- func (ig ImageGallery) AsIntangible() (*Intangible, bool)
- func (ig ImageGallery) AsMediaObject() (*MediaObject, bool)
- func (ig ImageGallery) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (ig ImageGallery) AsOffer() (*Offer, bool)
- func (ig ImageGallery) AsOrganization() (*Organization, bool)
- func (ig ImageGallery) AsPerson() (*Person, bool)
- func (ig ImageGallery) AsRecipe() (*Recipe, bool)
- func (ig ImageGallery) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (ig ImageGallery) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (ig ImageGallery) AsResponse() (*Response, bool)
- func (ig ImageGallery) AsResponseBase() (*ResponseBase, bool)
- func (ig ImageGallery) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (ig ImageGallery) AsStructuredValue() (*StructuredValue, bool)
- func (ig ImageGallery) AsThing() (*Thing, bool)
- func (ig ImageGallery) AsTrendingImages() (*TrendingImages, bool)
- func (ig ImageGallery) AsWebPage() (*WebPage, bool)
- func (ig ImageGallery) MarshalJSON() ([]byte, error)
- func (ig *ImageGallery) UnmarshalJSON(body []byte) error
- type ImageInsightModule
- type ImageInsights
- func (ii ImageInsights) AsAggregateOffer() (*AggregateOffer, bool)
- func (ii ImageInsights) AsAnswer() (*Answer, bool)
- func (ii ImageInsights) AsBasicAnswer() (BasicAnswer, bool)
- func (ii ImageInsights) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (ii ImageInsights) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (ii ImageInsights) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (ii ImageInsights) AsBasicIntangible() (BasicIntangible, bool)
- func (ii ImageInsights) AsBasicMediaObject() (BasicMediaObject, bool)
- func (ii ImageInsights) AsBasicOffer() (BasicOffer, bool)
- func (ii ImageInsights) AsBasicResponse() (BasicResponse, bool)
- func (ii ImageInsights) AsBasicResponseBase() (BasicResponseBase, bool)
- func (ii ImageInsights) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (ii ImageInsights) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (ii ImageInsights) AsBasicThing() (BasicThing, bool)
- func (ii ImageInsights) AsBasicWebPage() (BasicWebPage, bool)
- func (ii ImageInsights) AsCollectionPage() (*CollectionPage, bool)
- func (ii ImageInsights) AsCreativeWork() (*CreativeWork, bool)
- func (ii ImageInsights) AsErrorResponse() (*ErrorResponse, bool)
- func (ii ImageInsights) AsIdentifiable() (*Identifiable, bool)
- func (ii ImageInsights) AsImageGallery() (*ImageGallery, bool)
- func (ii ImageInsights) AsImageInsights() (*ImageInsights, bool)
- func (ii ImageInsights) AsImageObject() (*ImageObject, bool)
- func (ii ImageInsights) AsImages() (*Images, bool)
- func (ii ImageInsights) AsIntangible() (*Intangible, bool)
- func (ii ImageInsights) AsMediaObject() (*MediaObject, bool)
- func (ii ImageInsights) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (ii ImageInsights) AsOffer() (*Offer, bool)
- func (ii ImageInsights) AsOrganization() (*Organization, bool)
- func (ii ImageInsights) AsPerson() (*Person, bool)
- func (ii ImageInsights) AsRecipe() (*Recipe, bool)
- func (ii ImageInsights) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (ii ImageInsights) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (ii ImageInsights) AsResponse() (*Response, bool)
- func (ii ImageInsights) AsResponseBase() (*ResponseBase, bool)
- func (ii ImageInsights) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (ii ImageInsights) AsStructuredValue() (*StructuredValue, bool)
- func (ii ImageInsights) AsThing() (*Thing, bool)
- func (ii ImageInsights) AsTrendingImages() (*TrendingImages, bool)
- func (ii ImageInsights) AsWebPage() (*WebPage, bool)
- func (ii ImageInsights) MarshalJSON() ([]byte, error)
- type ImageInsightsImageCaption
- type ImageLicense
- type ImageObject
- func (ioVar ImageObject) AsAggregateOffer() (*AggregateOffer, bool)
- func (ioVar ImageObject) AsAnswer() (*Answer, bool)
- func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool)
- func (ioVar ImageObject) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (ioVar ImageObject) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (ioVar ImageObject) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (ioVar ImageObject) AsBasicIntangible() (BasicIntangible, bool)
- func (ioVar ImageObject) AsBasicMediaObject() (BasicMediaObject, bool)
- func (ioVar ImageObject) AsBasicOffer() (BasicOffer, bool)
- func (ioVar ImageObject) AsBasicResponse() (BasicResponse, bool)
- func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool)
- func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (ioVar ImageObject) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (ioVar ImageObject) AsBasicThing() (BasicThing, bool)
- func (ioVar ImageObject) AsBasicWebPage() (BasicWebPage, bool)
- func (ioVar ImageObject) AsCollectionPage() (*CollectionPage, bool)
- func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool)
- func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool)
- func (ioVar ImageObject) AsIdentifiable() (*Identifiable, bool)
- func (ioVar ImageObject) AsImageGallery() (*ImageGallery, bool)
- func (ioVar ImageObject) AsImageInsights() (*ImageInsights, bool)
- func (ioVar ImageObject) AsImageObject() (*ImageObject, bool)
- func (ioVar ImageObject) AsImages() (*Images, bool)
- func (ioVar ImageObject) AsIntangible() (*Intangible, bool)
- func (ioVar ImageObject) AsMediaObject() (*MediaObject, bool)
- func (ioVar ImageObject) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (ioVar ImageObject) AsOffer() (*Offer, bool)
- func (ioVar ImageObject) AsOrganization() (*Organization, bool)
- func (ioVar ImageObject) AsPerson() (*Person, bool)
- func (ioVar ImageObject) AsRecipe() (*Recipe, bool)
- func (ioVar ImageObject) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (ioVar ImageObject) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (ioVar ImageObject) AsResponse() (*Response, bool)
- func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool)
- func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (ioVar ImageObject) AsStructuredValue() (*StructuredValue, bool)
- func (ioVar ImageObject) AsThing() (*Thing, bool)
- func (ioVar ImageObject) AsTrendingImages() (*TrendingImages, bool)
- func (ioVar ImageObject) AsWebPage() (*WebPage, bool)
- func (ioVar ImageObject) MarshalJSON() ([]byte, error)
- func (ioVar *ImageObject) UnmarshalJSON(body []byte) error
- type ImageSize
- type ImageTagsModule
- type ImageType
- type Images
- func (i Images) AsAggregateOffer() (*AggregateOffer, bool)
- func (i Images) AsAnswer() (*Answer, bool)
- func (i Images) AsBasicAnswer() (BasicAnswer, bool)
- func (i Images) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (i Images) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (i Images) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (i Images) AsBasicIntangible() (BasicIntangible, bool)
- func (i Images) AsBasicMediaObject() (BasicMediaObject, bool)
- func (i Images) AsBasicOffer() (BasicOffer, bool)
- func (i Images) AsBasicResponse() (BasicResponse, bool)
- func (i Images) AsBasicResponseBase() (BasicResponseBase, bool)
- func (i Images) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (i Images) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (i Images) AsBasicThing() (BasicThing, bool)
- func (i Images) AsBasicWebPage() (BasicWebPage, bool)
- func (i Images) AsCollectionPage() (*CollectionPage, bool)
- func (i Images) AsCreativeWork() (*CreativeWork, bool)
- func (i Images) AsErrorResponse() (*ErrorResponse, bool)
- func (i Images) AsIdentifiable() (*Identifiable, bool)
- func (i Images) AsImageGallery() (*ImageGallery, bool)
- func (i Images) AsImageInsights() (*ImageInsights, bool)
- func (i Images) AsImageObject() (*ImageObject, bool)
- func (i Images) AsImages() (*Images, bool)
- func (i Images) AsIntangible() (*Intangible, bool)
- func (i Images) AsMediaObject() (*MediaObject, bool)
- func (i Images) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (i Images) AsOffer() (*Offer, bool)
- func (i Images) AsOrganization() (*Organization, bool)
- func (i Images) AsPerson() (*Person, bool)
- func (i Images) AsRecipe() (*Recipe, bool)
- func (i Images) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (i Images) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (i Images) AsResponse() (*Response, bool)
- func (i Images) AsResponseBase() (*ResponseBase, bool)
- func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (i Images) AsStructuredValue() (*StructuredValue, bool)
- func (i Images) AsThing() (*Thing, bool)
- func (i Images) AsTrendingImages() (*TrendingImages, bool)
- func (i Images) AsWebPage() (*WebPage, bool)
- func (i Images) MarshalJSON() ([]byte, error)
- type ImagesClient
- func (client ImagesClient) Details(ctx context.Context, query string, acceptLanguage string, contentType string, ...) (result ImageInsights, err error)
- func (client ImagesClient) DetailsPreparer(ctx context.Context, query string, acceptLanguage string, contentType string, ...) (*http.Request, error)
- func (client ImagesClient) DetailsResponder(resp *http.Response) (result ImageInsights, err error)
- func (client ImagesClient) DetailsSender(req *http.Request) (*http.Response, error)
- func (client ImagesClient) Search(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (result Images, err error)
- func (client ImagesClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (*http.Request, error)
- func (client ImagesClient) SearchResponder(resp *http.Response) (result Images, err error)
- func (client ImagesClient) SearchSender(req *http.Request) (*http.Response, error)
- func (client ImagesClient) Trending(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (result TrendingImages, err error)
- func (client ImagesClient) TrendingPreparer(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (*http.Request, error)
- func (client ImagesClient) TrendingResponder(resp *http.Response) (result TrendingImages, err error)
- func (client ImagesClient) TrendingSender(req *http.Request) (*http.Response, error)
- type ImagesImageMetadata
- type ImagesModule
- type InsightsTag
- type Intangible
- func (i Intangible) AsAggregateOffer() (*AggregateOffer, bool)
- func (i Intangible) AsAnswer() (*Answer, bool)
- func (i Intangible) AsBasicAnswer() (BasicAnswer, bool)
- func (i Intangible) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (i Intangible) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (i Intangible) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (i Intangible) AsBasicIntangible() (BasicIntangible, bool)
- func (i Intangible) AsBasicMediaObject() (BasicMediaObject, bool)
- func (i Intangible) AsBasicOffer() (BasicOffer, bool)
- func (i Intangible) AsBasicResponse() (BasicResponse, bool)
- func (i Intangible) AsBasicResponseBase() (BasicResponseBase, bool)
- func (i Intangible) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (i Intangible) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (i Intangible) AsBasicThing() (BasicThing, bool)
- func (i Intangible) AsBasicWebPage() (BasicWebPage, bool)
- func (i Intangible) AsCollectionPage() (*CollectionPage, bool)
- func (i Intangible) AsCreativeWork() (*CreativeWork, bool)
- func (i Intangible) AsErrorResponse() (*ErrorResponse, bool)
- func (i Intangible) AsIdentifiable() (*Identifiable, bool)
- func (i Intangible) AsImageGallery() (*ImageGallery, bool)
- func (i Intangible) AsImageInsights() (*ImageInsights, bool)
- func (i Intangible) AsImageObject() (*ImageObject, bool)
- func (i Intangible) AsImages() (*Images, bool)
- func (i Intangible) AsIntangible() (*Intangible, bool)
- func (i Intangible) AsMediaObject() (*MediaObject, bool)
- func (i Intangible) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (i Intangible) AsOffer() (*Offer, bool)
- func (i Intangible) AsOrganization() (*Organization, bool)
- func (i Intangible) AsPerson() (*Person, bool)
- func (i Intangible) AsRecipe() (*Recipe, bool)
- func (i Intangible) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (i Intangible) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (i Intangible) AsResponse() (*Response, bool)
- func (i Intangible) AsResponseBase() (*ResponseBase, bool)
- func (i Intangible) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (i Intangible) AsStructuredValue() (*StructuredValue, bool)
- func (i Intangible) AsThing() (*Thing, bool)
- func (i Intangible) AsTrendingImages() (*TrendingImages, bool)
- func (i Intangible) AsWebPage() (*WebPage, bool)
- func (i Intangible) MarshalJSON() ([]byte, error)
- type ItemAvailability
- type MediaObject
- func (mo MediaObject) AsAggregateOffer() (*AggregateOffer, bool)
- func (mo MediaObject) AsAnswer() (*Answer, bool)
- func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool)
- func (mo MediaObject) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (mo MediaObject) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (mo MediaObject) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (mo MediaObject) AsBasicIntangible() (BasicIntangible, bool)
- func (mo MediaObject) AsBasicMediaObject() (BasicMediaObject, bool)
- func (mo MediaObject) AsBasicOffer() (BasicOffer, bool)
- func (mo MediaObject) AsBasicResponse() (BasicResponse, bool)
- func (mo MediaObject) AsBasicResponseBase() (BasicResponseBase, bool)
- func (mo MediaObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (mo MediaObject) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (mo MediaObject) AsBasicThing() (BasicThing, bool)
- func (mo MediaObject) AsBasicWebPage() (BasicWebPage, bool)
- func (mo MediaObject) AsCollectionPage() (*CollectionPage, bool)
- func (mo MediaObject) AsCreativeWork() (*CreativeWork, bool)
- func (mo MediaObject) AsErrorResponse() (*ErrorResponse, bool)
- func (mo MediaObject) AsIdentifiable() (*Identifiable, bool)
- func (mo MediaObject) AsImageGallery() (*ImageGallery, bool)
- func (mo MediaObject) AsImageInsights() (*ImageInsights, bool)
- func (mo MediaObject) AsImageObject() (*ImageObject, bool)
- func (mo MediaObject) AsImages() (*Images, bool)
- func (mo MediaObject) AsIntangible() (*Intangible, bool)
- func (mo MediaObject) AsMediaObject() (*MediaObject, bool)
- func (mo MediaObject) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (mo MediaObject) AsOffer() (*Offer, bool)
- func (mo MediaObject) AsOrganization() (*Organization, bool)
- func (mo MediaObject) AsPerson() (*Person, bool)
- func (mo MediaObject) AsRecipe() (*Recipe, bool)
- func (mo MediaObject) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (mo MediaObject) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (mo MediaObject) AsResponse() (*Response, bool)
- func (mo MediaObject) AsResponseBase() (*ResponseBase, bool)
- func (mo MediaObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (mo MediaObject) AsStructuredValue() (*StructuredValue, bool)
- func (mo MediaObject) AsThing() (*Thing, bool)
- func (mo MediaObject) AsTrendingImages() (*TrendingImages, bool)
- func (mo MediaObject) AsWebPage() (*WebPage, bool)
- func (mo MediaObject) MarshalJSON() ([]byte, error)
- func (mo *MediaObject) UnmarshalJSON(body []byte) error
- type NormalizedRectangle
- func (nr NormalizedRectangle) AsAggregateOffer() (*AggregateOffer, bool)
- func (nr NormalizedRectangle) AsAnswer() (*Answer, bool)
- func (nr NormalizedRectangle) AsBasicAnswer() (BasicAnswer, bool)
- func (nr NormalizedRectangle) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (nr NormalizedRectangle) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (nr NormalizedRectangle) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (nr NormalizedRectangle) AsBasicIntangible() (BasicIntangible, bool)
- func (nr NormalizedRectangle) AsBasicMediaObject() (BasicMediaObject, bool)
- func (nr NormalizedRectangle) AsBasicOffer() (BasicOffer, bool)
- func (nr NormalizedRectangle) AsBasicResponse() (BasicResponse, bool)
- func (nr NormalizedRectangle) AsBasicResponseBase() (BasicResponseBase, bool)
- func (nr NormalizedRectangle) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (nr NormalizedRectangle) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (nr NormalizedRectangle) AsBasicThing() (BasicThing, bool)
- func (nr NormalizedRectangle) AsBasicWebPage() (BasicWebPage, bool)
- func (nr NormalizedRectangle) AsCollectionPage() (*CollectionPage, bool)
- func (nr NormalizedRectangle) AsCreativeWork() (*CreativeWork, bool)
- func (nr NormalizedRectangle) AsErrorResponse() (*ErrorResponse, bool)
- func (nr NormalizedRectangle) AsIdentifiable() (*Identifiable, bool)
- func (nr NormalizedRectangle) AsImageGallery() (*ImageGallery, bool)
- func (nr NormalizedRectangle) AsImageInsights() (*ImageInsights, bool)
- func (nr NormalizedRectangle) AsImageObject() (*ImageObject, bool)
- func (nr NormalizedRectangle) AsImages() (*Images, bool)
- func (nr NormalizedRectangle) AsIntangible() (*Intangible, bool)
- func (nr NormalizedRectangle) AsMediaObject() (*MediaObject, bool)
- func (nr NormalizedRectangle) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (nr NormalizedRectangle) AsOffer() (*Offer, bool)
- func (nr NormalizedRectangle) AsOrganization() (*Organization, bool)
- func (nr NormalizedRectangle) AsPerson() (*Person, bool)
- func (nr NormalizedRectangle) AsRecipe() (*Recipe, bool)
- func (nr NormalizedRectangle) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (nr NormalizedRectangle) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (nr NormalizedRectangle) AsResponse() (*Response, bool)
- func (nr NormalizedRectangle) AsResponseBase() (*ResponseBase, bool)
- func (nr NormalizedRectangle) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (nr NormalizedRectangle) AsStructuredValue() (*StructuredValue, bool)
- func (nr NormalizedRectangle) AsThing() (*Thing, bool)
- func (nr NormalizedRectangle) AsTrendingImages() (*TrendingImages, bool)
- func (nr NormalizedRectangle) AsWebPage() (*WebPage, bool)
- func (nr NormalizedRectangle) MarshalJSON() ([]byte, error)
- type Offer
- func (o Offer) AsAggregateOffer() (*AggregateOffer, bool)
- func (o Offer) AsAnswer() (*Answer, bool)
- func (o Offer) AsBasicAnswer() (BasicAnswer, bool)
- func (o Offer) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (o Offer) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (o Offer) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (o Offer) AsBasicIntangible() (BasicIntangible, bool)
- func (o Offer) AsBasicMediaObject() (BasicMediaObject, bool)
- func (o Offer) AsBasicOffer() (BasicOffer, bool)
- func (o Offer) AsBasicResponse() (BasicResponse, bool)
- func (o Offer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (o Offer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (o Offer) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (o Offer) AsBasicThing() (BasicThing, bool)
- func (o Offer) AsBasicWebPage() (BasicWebPage, bool)
- func (o Offer) AsCollectionPage() (*CollectionPage, bool)
- func (o Offer) AsCreativeWork() (*CreativeWork, bool)
- func (o Offer) AsErrorResponse() (*ErrorResponse, bool)
- func (o Offer) AsIdentifiable() (*Identifiable, bool)
- func (o Offer) AsImageGallery() (*ImageGallery, bool)
- func (o Offer) AsImageInsights() (*ImageInsights, bool)
- func (o Offer) AsImageObject() (*ImageObject, bool)
- func (o Offer) AsImages() (*Images, bool)
- func (o Offer) AsIntangible() (*Intangible, bool)
- func (o Offer) AsMediaObject() (*MediaObject, bool)
- func (o Offer) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (o Offer) AsOffer() (*Offer, bool)
- func (o Offer) AsOrganization() (*Organization, bool)
- func (o Offer) AsPerson() (*Person, bool)
- func (o Offer) AsRecipe() (*Recipe, bool)
- func (o Offer) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (o Offer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (o Offer) AsResponse() (*Response, bool)
- func (o Offer) AsResponseBase() (*ResponseBase, bool)
- func (o Offer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (o Offer) AsStructuredValue() (*StructuredValue, bool)
- func (o Offer) AsThing() (*Thing, bool)
- func (o Offer) AsTrendingImages() (*TrendingImages, bool)
- func (o Offer) AsWebPage() (*WebPage, bool)
- func (o Offer) MarshalJSON() ([]byte, error)
- type Organization
- func (o Organization) AsAggregateOffer() (*AggregateOffer, bool)
- func (o Organization) AsAnswer() (*Answer, bool)
- func (o Organization) AsBasicAnswer() (BasicAnswer, bool)
- func (o Organization) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (o Organization) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (o Organization) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (o Organization) AsBasicIntangible() (BasicIntangible, bool)
- func (o Organization) AsBasicMediaObject() (BasicMediaObject, bool)
- func (o Organization) AsBasicOffer() (BasicOffer, bool)
- func (o Organization) AsBasicResponse() (BasicResponse, bool)
- func (o Organization) AsBasicResponseBase() (BasicResponseBase, bool)
- func (o Organization) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (o Organization) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (o Organization) AsBasicThing() (BasicThing, bool)
- func (o Organization) AsBasicWebPage() (BasicWebPage, bool)
- func (o Organization) AsCollectionPage() (*CollectionPage, bool)
- func (o Organization) AsCreativeWork() (*CreativeWork, bool)
- func (o Organization) AsErrorResponse() (*ErrorResponse, bool)
- func (o Organization) AsIdentifiable() (*Identifiable, bool)
- func (o Organization) AsImageGallery() (*ImageGallery, bool)
- func (o Organization) AsImageInsights() (*ImageInsights, bool)
- func (o Organization) AsImageObject() (*ImageObject, bool)
- func (o Organization) AsImages() (*Images, bool)
- func (o Organization) AsIntangible() (*Intangible, bool)
- func (o Organization) AsMediaObject() (*MediaObject, bool)
- func (o Organization) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (o Organization) AsOffer() (*Offer, bool)
- func (o Organization) AsOrganization() (*Organization, bool)
- func (o Organization) AsPerson() (*Person, bool)
- func (o Organization) AsRecipe() (*Recipe, bool)
- func (o Organization) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (o Organization) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (o Organization) AsResponse() (*Response, bool)
- func (o Organization) AsResponseBase() (*ResponseBase, bool)
- func (o Organization) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (o Organization) AsStructuredValue() (*StructuredValue, bool)
- func (o Organization) AsThing() (*Thing, bool)
- func (o Organization) AsTrendingImages() (*TrendingImages, bool)
- func (o Organization) AsWebPage() (*WebPage, bool)
- func (o Organization) MarshalJSON() ([]byte, error)
- type Person
- func (p Person) AsAggregateOffer() (*AggregateOffer, bool)
- func (p Person) AsAnswer() (*Answer, bool)
- func (p Person) AsBasicAnswer() (BasicAnswer, bool)
- func (p Person) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (p Person) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (p Person) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (p Person) AsBasicIntangible() (BasicIntangible, bool)
- func (p Person) AsBasicMediaObject() (BasicMediaObject, bool)
- func (p Person) AsBasicOffer() (BasicOffer, bool)
- func (p Person) AsBasicResponse() (BasicResponse, bool)
- func (p Person) AsBasicResponseBase() (BasicResponseBase, bool)
- func (p Person) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (p Person) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (p Person) AsBasicThing() (BasicThing, bool)
- func (p Person) AsBasicWebPage() (BasicWebPage, bool)
- func (p Person) AsCollectionPage() (*CollectionPage, bool)
- func (p Person) AsCreativeWork() (*CreativeWork, bool)
- func (p Person) AsErrorResponse() (*ErrorResponse, bool)
- func (p Person) AsIdentifiable() (*Identifiable, bool)
- func (p Person) AsImageGallery() (*ImageGallery, bool)
- func (p Person) AsImageInsights() (*ImageInsights, bool)
- func (p Person) AsImageObject() (*ImageObject, bool)
- func (p Person) AsImages() (*Images, bool)
- func (p Person) AsIntangible() (*Intangible, bool)
- func (p Person) AsMediaObject() (*MediaObject, bool)
- func (p Person) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (p Person) AsOffer() (*Offer, bool)
- func (p Person) AsOrganization() (*Organization, bool)
- func (p Person) AsPerson() (*Person, bool)
- func (p Person) AsRecipe() (*Recipe, bool)
- func (p Person) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (p Person) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (p Person) AsResponse() (*Response, bool)
- func (p Person) AsResponseBase() (*ResponseBase, bool)
- func (p Person) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (p Person) AsStructuredValue() (*StructuredValue, bool)
- func (p Person) AsThing() (*Thing, bool)
- func (p Person) AsTrendingImages() (*TrendingImages, bool)
- func (p Person) AsWebPage() (*WebPage, bool)
- func (p Person) MarshalJSON() ([]byte, error)
- type PivotSuggestions
- type PropertiesItem
- func (pi PropertiesItem) AsAggregateRating() (*AggregateRating, bool)
- func (pi PropertiesItem) AsBasicPropertiesItem() (BasicPropertiesItem, bool)
- func (pi PropertiesItem) AsBasicRating() (BasicRating, bool)
- func (pi PropertiesItem) AsPropertiesItem() (*PropertiesItem, bool)
- func (pi PropertiesItem) AsRating() (*Rating, bool)
- func (pi PropertiesItem) MarshalJSON() ([]byte, error)
- type Query
- type Rating
- func (r Rating) AsAggregateRating() (*AggregateRating, bool)
- func (r Rating) AsBasicPropertiesItem() (BasicPropertiesItem, bool)
- func (r Rating) AsBasicRating() (BasicRating, bool)
- func (r Rating) AsPropertiesItem() (*PropertiesItem, bool)
- func (r Rating) AsRating() (*Rating, bool)
- func (r Rating) MarshalJSON() ([]byte, error)
- type Recipe
- func (r Recipe) AsAggregateOffer() (*AggregateOffer, bool)
- func (r Recipe) AsAnswer() (*Answer, bool)
- func (r Recipe) AsBasicAnswer() (BasicAnswer, bool)
- func (r Recipe) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (r Recipe) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (r Recipe) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (r Recipe) AsBasicIntangible() (BasicIntangible, bool)
- func (r Recipe) AsBasicMediaObject() (BasicMediaObject, bool)
- func (r Recipe) AsBasicOffer() (BasicOffer, bool)
- func (r Recipe) AsBasicResponse() (BasicResponse, bool)
- func (r Recipe) AsBasicResponseBase() (BasicResponseBase, bool)
- func (r Recipe) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (r Recipe) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (r Recipe) AsBasicThing() (BasicThing, bool)
- func (r Recipe) AsBasicWebPage() (BasicWebPage, bool)
- func (r Recipe) AsCollectionPage() (*CollectionPage, bool)
- func (r Recipe) AsCreativeWork() (*CreativeWork, bool)
- func (r Recipe) AsErrorResponse() (*ErrorResponse, bool)
- func (r Recipe) AsIdentifiable() (*Identifiable, bool)
- func (r Recipe) AsImageGallery() (*ImageGallery, bool)
- func (r Recipe) AsImageInsights() (*ImageInsights, bool)
- func (r Recipe) AsImageObject() (*ImageObject, bool)
- func (r Recipe) AsImages() (*Images, bool)
- func (r Recipe) AsIntangible() (*Intangible, bool)
- func (r Recipe) AsMediaObject() (*MediaObject, bool)
- func (r Recipe) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (r Recipe) AsOffer() (*Offer, bool)
- func (r Recipe) AsOrganization() (*Organization, bool)
- func (r Recipe) AsPerson() (*Person, bool)
- func (r Recipe) AsRecipe() (*Recipe, bool)
- func (r Recipe) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (r Recipe) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (r Recipe) AsResponse() (*Response, bool)
- func (r Recipe) AsResponseBase() (*ResponseBase, bool)
- func (r Recipe) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (r Recipe) AsStructuredValue() (*StructuredValue, bool)
- func (r Recipe) AsThing() (*Thing, bool)
- func (r Recipe) AsTrendingImages() (*TrendingImages, bool)
- func (r Recipe) AsWebPage() (*WebPage, bool)
- func (r Recipe) MarshalJSON() ([]byte, error)
- func (r *Recipe) UnmarshalJSON(body []byte) error
- type RecipesModule
- type RecognizedEntitiesModule
- type RecognizedEntity
- func (re RecognizedEntity) AsAggregateOffer() (*AggregateOffer, bool)
- func (re RecognizedEntity) AsAnswer() (*Answer, bool)
- func (re RecognizedEntity) AsBasicAnswer() (BasicAnswer, bool)
- func (re RecognizedEntity) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (re RecognizedEntity) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (re RecognizedEntity) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (re RecognizedEntity) AsBasicIntangible() (BasicIntangible, bool)
- func (re RecognizedEntity) AsBasicMediaObject() (BasicMediaObject, bool)
- func (re RecognizedEntity) AsBasicOffer() (BasicOffer, bool)
- func (re RecognizedEntity) AsBasicResponse() (BasicResponse, bool)
- func (re RecognizedEntity) AsBasicResponseBase() (BasicResponseBase, bool)
- func (re RecognizedEntity) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (re RecognizedEntity) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (re RecognizedEntity) AsBasicThing() (BasicThing, bool)
- func (re RecognizedEntity) AsBasicWebPage() (BasicWebPage, bool)
- func (re RecognizedEntity) AsCollectionPage() (*CollectionPage, bool)
- func (re RecognizedEntity) AsCreativeWork() (*CreativeWork, bool)
- func (re RecognizedEntity) AsErrorResponse() (*ErrorResponse, bool)
- func (re RecognizedEntity) AsIdentifiable() (*Identifiable, bool)
- func (re RecognizedEntity) AsImageGallery() (*ImageGallery, bool)
- func (re RecognizedEntity) AsImageInsights() (*ImageInsights, bool)
- func (re RecognizedEntity) AsImageObject() (*ImageObject, bool)
- func (re RecognizedEntity) AsImages() (*Images, bool)
- func (re RecognizedEntity) AsIntangible() (*Intangible, bool)
- func (re RecognizedEntity) AsMediaObject() (*MediaObject, bool)
- func (re RecognizedEntity) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (re RecognizedEntity) AsOffer() (*Offer, bool)
- func (re RecognizedEntity) AsOrganization() (*Organization, bool)
- func (re RecognizedEntity) AsPerson() (*Person, bool)
- func (re RecognizedEntity) AsRecipe() (*Recipe, bool)
- func (re RecognizedEntity) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (re RecognizedEntity) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (re RecognizedEntity) AsResponse() (*Response, bool)
- func (re RecognizedEntity) AsResponseBase() (*ResponseBase, bool)
- func (re RecognizedEntity) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (re RecognizedEntity) AsStructuredValue() (*StructuredValue, bool)
- func (re RecognizedEntity) AsThing() (*Thing, bool)
- func (re RecognizedEntity) AsTrendingImages() (*TrendingImages, bool)
- func (re RecognizedEntity) AsWebPage() (*WebPage, bool)
- func (re RecognizedEntity) MarshalJSON() ([]byte, error)
- func (re *RecognizedEntity) UnmarshalJSON(body []byte) error
- type RecognizedEntityGroup
- type RecognizedEntityRegion
- func (rer RecognizedEntityRegion) AsAggregateOffer() (*AggregateOffer, bool)
- func (rer RecognizedEntityRegion) AsAnswer() (*Answer, bool)
- func (rer RecognizedEntityRegion) AsBasicAnswer() (BasicAnswer, bool)
- func (rer RecognizedEntityRegion) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (rer RecognizedEntityRegion) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (rer RecognizedEntityRegion) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (rer RecognizedEntityRegion) AsBasicIntangible() (BasicIntangible, bool)
- func (rer RecognizedEntityRegion) AsBasicMediaObject() (BasicMediaObject, bool)
- func (rer RecognizedEntityRegion) AsBasicOffer() (BasicOffer, bool)
- func (rer RecognizedEntityRegion) AsBasicResponse() (BasicResponse, bool)
- func (rer RecognizedEntityRegion) AsBasicResponseBase() (BasicResponseBase, bool)
- func (rer RecognizedEntityRegion) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (rer RecognizedEntityRegion) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (rer RecognizedEntityRegion) AsBasicThing() (BasicThing, bool)
- func (rer RecognizedEntityRegion) AsBasicWebPage() (BasicWebPage, bool)
- func (rer RecognizedEntityRegion) AsCollectionPage() (*CollectionPage, bool)
- func (rer RecognizedEntityRegion) AsCreativeWork() (*CreativeWork, bool)
- func (rer RecognizedEntityRegion) AsErrorResponse() (*ErrorResponse, bool)
- func (rer RecognizedEntityRegion) AsIdentifiable() (*Identifiable, bool)
- func (rer RecognizedEntityRegion) AsImageGallery() (*ImageGallery, bool)
- func (rer RecognizedEntityRegion) AsImageInsights() (*ImageInsights, bool)
- func (rer RecognizedEntityRegion) AsImageObject() (*ImageObject, bool)
- func (rer RecognizedEntityRegion) AsImages() (*Images, bool)
- func (rer RecognizedEntityRegion) AsIntangible() (*Intangible, bool)
- func (rer RecognizedEntityRegion) AsMediaObject() (*MediaObject, bool)
- func (rer RecognizedEntityRegion) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (rer RecognizedEntityRegion) AsOffer() (*Offer, bool)
- func (rer RecognizedEntityRegion) AsOrganization() (*Organization, bool)
- func (rer RecognizedEntityRegion) AsPerson() (*Person, bool)
- func (rer RecognizedEntityRegion) AsRecipe() (*Recipe, bool)
- func (rer RecognizedEntityRegion) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (rer RecognizedEntityRegion) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (rer RecognizedEntityRegion) AsResponse() (*Response, bool)
- func (rer RecognizedEntityRegion) AsResponseBase() (*ResponseBase, bool)
- func (rer RecognizedEntityRegion) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (rer RecognizedEntityRegion) AsStructuredValue() (*StructuredValue, bool)
- func (rer RecognizedEntityRegion) AsThing() (*Thing, bool)
- func (rer RecognizedEntityRegion) AsTrendingImages() (*TrendingImages, bool)
- func (rer RecognizedEntityRegion) AsWebPage() (*WebPage, bool)
- func (rer RecognizedEntityRegion) MarshalJSON() ([]byte, error)
- type RelatedCollectionsModule
- type RelatedSearchesModule
- type Response
- func (r Response) AsAggregateOffer() (*AggregateOffer, bool)
- func (r Response) AsAnswer() (*Answer, bool)
- func (r Response) AsBasicAnswer() (BasicAnswer, bool)
- func (r Response) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (r Response) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (r Response) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (r Response) AsBasicIntangible() (BasicIntangible, bool)
- func (r Response) AsBasicMediaObject() (BasicMediaObject, bool)
- func (r Response) AsBasicOffer() (BasicOffer, bool)
- func (r Response) AsBasicResponse() (BasicResponse, bool)
- func (r Response) AsBasicResponseBase() (BasicResponseBase, bool)
- func (r Response) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (r Response) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (r Response) AsBasicThing() (BasicThing, bool)
- func (r Response) AsBasicWebPage() (BasicWebPage, bool)
- func (r Response) AsCollectionPage() (*CollectionPage, bool)
- func (r Response) AsCreativeWork() (*CreativeWork, bool)
- func (r Response) AsErrorResponse() (*ErrorResponse, bool)
- func (r Response) AsIdentifiable() (*Identifiable, bool)
- func (r Response) AsImageGallery() (*ImageGallery, bool)
- func (r Response) AsImageInsights() (*ImageInsights, bool)
- func (r Response) AsImageObject() (*ImageObject, bool)
- func (r Response) AsImages() (*Images, bool)
- func (r Response) AsIntangible() (*Intangible, bool)
- func (r Response) AsMediaObject() (*MediaObject, bool)
- func (r Response) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (r Response) AsOffer() (*Offer, bool)
- func (r Response) AsOrganization() (*Organization, bool)
- func (r Response) AsPerson() (*Person, bool)
- func (r Response) AsRecipe() (*Recipe, bool)
- func (r Response) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (r Response) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (r Response) AsResponse() (*Response, bool)
- func (r Response) AsResponseBase() (*ResponseBase, bool)
- func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (r Response) AsStructuredValue() (*StructuredValue, bool)
- func (r Response) AsThing() (*Thing, bool)
- func (r Response) AsTrendingImages() (*TrendingImages, bool)
- func (r Response) AsWebPage() (*WebPage, bool)
- func (r Response) MarshalJSON() ([]byte, error)
- type ResponseBase
- func (rb ResponseBase) AsAggregateOffer() (*AggregateOffer, bool)
- func (rb ResponseBase) AsAnswer() (*Answer, bool)
- func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool)
- func (rb ResponseBase) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (rb ResponseBase) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (rb ResponseBase) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (rb ResponseBase) AsBasicIntangible() (BasicIntangible, bool)
- func (rb ResponseBase) AsBasicMediaObject() (BasicMediaObject, bool)
- func (rb ResponseBase) AsBasicOffer() (BasicOffer, bool)
- func (rb ResponseBase) AsBasicResponse() (BasicResponse, bool)
- func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, bool)
- func (rb ResponseBase) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (rb ResponseBase) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (rb ResponseBase) AsBasicThing() (BasicThing, bool)
- func (rb ResponseBase) AsBasicWebPage() (BasicWebPage, bool)
- func (rb ResponseBase) AsCollectionPage() (*CollectionPage, bool)
- func (rb ResponseBase) AsCreativeWork() (*CreativeWork, bool)
- func (rb ResponseBase) AsErrorResponse() (*ErrorResponse, bool)
- func (rb ResponseBase) AsIdentifiable() (*Identifiable, bool)
- func (rb ResponseBase) AsImageGallery() (*ImageGallery, bool)
- func (rb ResponseBase) AsImageInsights() (*ImageInsights, bool)
- func (rb ResponseBase) AsImageObject() (*ImageObject, bool)
- func (rb ResponseBase) AsImages() (*Images, bool)
- func (rb ResponseBase) AsIntangible() (*Intangible, bool)
- func (rb ResponseBase) AsMediaObject() (*MediaObject, bool)
- func (rb ResponseBase) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (rb ResponseBase) AsOffer() (*Offer, bool)
- func (rb ResponseBase) AsOrganization() (*Organization, bool)
- func (rb ResponseBase) AsPerson() (*Person, bool)
- func (rb ResponseBase) AsRecipe() (*Recipe, bool)
- func (rb ResponseBase) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (rb ResponseBase) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (rb ResponseBase) AsResponse() (*Response, bool)
- func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool)
- func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (rb ResponseBase) AsStructuredValue() (*StructuredValue, bool)
- func (rb ResponseBase) AsThing() (*Thing, bool)
- func (rb ResponseBase) AsTrendingImages() (*TrendingImages, bool)
- func (rb ResponseBase) AsWebPage() (*WebPage, bool)
- func (rb ResponseBase) MarshalJSON() ([]byte, error)
- type SafeSearch
- type SearchResultsAnswer
- func (sra SearchResultsAnswer) AsAggregateOffer() (*AggregateOffer, bool)
- func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool)
- func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool)
- func (sra SearchResultsAnswer) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (sra SearchResultsAnswer) AsBasicIntangible() (BasicIntangible, bool)
- func (sra SearchResultsAnswer) AsBasicMediaObject() (BasicMediaObject, bool)
- func (sra SearchResultsAnswer) AsBasicOffer() (BasicOffer, bool)
- func (sra SearchResultsAnswer) AsBasicResponse() (BasicResponse, bool)
- func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (sra SearchResultsAnswer) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool)
- func (sra SearchResultsAnswer) AsBasicWebPage() (BasicWebPage, bool)
- func (sra SearchResultsAnswer) AsCollectionPage() (*CollectionPage, bool)
- func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool)
- func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool)
- func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, bool)
- func (sra SearchResultsAnswer) AsImageGallery() (*ImageGallery, bool)
- func (sra SearchResultsAnswer) AsImageInsights() (*ImageInsights, bool)
- func (sra SearchResultsAnswer) AsImageObject() (*ImageObject, bool)
- func (sra SearchResultsAnswer) AsImages() (*Images, bool)
- func (sra SearchResultsAnswer) AsIntangible() (*Intangible, bool)
- func (sra SearchResultsAnswer) AsMediaObject() (*MediaObject, bool)
- func (sra SearchResultsAnswer) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (sra SearchResultsAnswer) AsOffer() (*Offer, bool)
- func (sra SearchResultsAnswer) AsOrganization() (*Organization, bool)
- func (sra SearchResultsAnswer) AsPerson() (*Person, bool)
- func (sra SearchResultsAnswer) AsRecipe() (*Recipe, bool)
- func (sra SearchResultsAnswer) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (sra SearchResultsAnswer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (sra SearchResultsAnswer) AsResponse() (*Response, bool)
- func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool)
- func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (sra SearchResultsAnswer) AsStructuredValue() (*StructuredValue, bool)
- func (sra SearchResultsAnswer) AsThing() (*Thing, bool)
- func (sra SearchResultsAnswer) AsTrendingImages() (*TrendingImages, bool)
- func (sra SearchResultsAnswer) AsWebPage() (*WebPage, bool)
- func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error)
- type StructuredValue
- func (sv StructuredValue) AsAggregateOffer() (*AggregateOffer, bool)
- func (sv StructuredValue) AsAnswer() (*Answer, bool)
- func (sv StructuredValue) AsBasicAnswer() (BasicAnswer, bool)
- func (sv StructuredValue) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (sv StructuredValue) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (sv StructuredValue) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (sv StructuredValue) AsBasicIntangible() (BasicIntangible, bool)
- func (sv StructuredValue) AsBasicMediaObject() (BasicMediaObject, bool)
- func (sv StructuredValue) AsBasicOffer() (BasicOffer, bool)
- func (sv StructuredValue) AsBasicResponse() (BasicResponse, bool)
- func (sv StructuredValue) AsBasicResponseBase() (BasicResponseBase, bool)
- func (sv StructuredValue) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (sv StructuredValue) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (sv StructuredValue) AsBasicThing() (BasicThing, bool)
- func (sv StructuredValue) AsBasicWebPage() (BasicWebPage, bool)
- func (sv StructuredValue) AsCollectionPage() (*CollectionPage, bool)
- func (sv StructuredValue) AsCreativeWork() (*CreativeWork, bool)
- func (sv StructuredValue) AsErrorResponse() (*ErrorResponse, bool)
- func (sv StructuredValue) AsIdentifiable() (*Identifiable, bool)
- func (sv StructuredValue) AsImageGallery() (*ImageGallery, bool)
- func (sv StructuredValue) AsImageInsights() (*ImageInsights, bool)
- func (sv StructuredValue) AsImageObject() (*ImageObject, bool)
- func (sv StructuredValue) AsImages() (*Images, bool)
- func (sv StructuredValue) AsIntangible() (*Intangible, bool)
- func (sv StructuredValue) AsMediaObject() (*MediaObject, bool)
- func (sv StructuredValue) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (sv StructuredValue) AsOffer() (*Offer, bool)
- func (sv StructuredValue) AsOrganization() (*Organization, bool)
- func (sv StructuredValue) AsPerson() (*Person, bool)
- func (sv StructuredValue) AsRecipe() (*Recipe, bool)
- func (sv StructuredValue) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (sv StructuredValue) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (sv StructuredValue) AsResponse() (*Response, bool)
- func (sv StructuredValue) AsResponseBase() (*ResponseBase, bool)
- func (sv StructuredValue) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (sv StructuredValue) AsStructuredValue() (*StructuredValue, bool)
- func (sv StructuredValue) AsThing() (*Thing, bool)
- func (sv StructuredValue) AsTrendingImages() (*TrendingImages, bool)
- func (sv StructuredValue) AsWebPage() (*WebPage, bool)
- func (sv StructuredValue) MarshalJSON() ([]byte, error)
- type Thing
- func (t Thing) AsAggregateOffer() (*AggregateOffer, bool)
- func (t Thing) AsAnswer() (*Answer, bool)
- func (t Thing) AsBasicAnswer() (BasicAnswer, bool)
- func (t Thing) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (t Thing) AsBasicIntangible() (BasicIntangible, bool)
- func (t Thing) AsBasicMediaObject() (BasicMediaObject, bool)
- func (t Thing) AsBasicOffer() (BasicOffer, bool)
- func (t Thing) AsBasicResponse() (BasicResponse, bool)
- func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool)
- func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (t Thing) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (t Thing) AsBasicThing() (BasicThing, bool)
- func (t Thing) AsBasicWebPage() (BasicWebPage, bool)
- func (t Thing) AsCollectionPage() (*CollectionPage, bool)
- func (t Thing) AsCreativeWork() (*CreativeWork, bool)
- func (t Thing) AsErrorResponse() (*ErrorResponse, bool)
- func (t Thing) AsIdentifiable() (*Identifiable, bool)
- func (t Thing) AsImageGallery() (*ImageGallery, bool)
- func (t Thing) AsImageInsights() (*ImageInsights, bool)
- func (t Thing) AsImageObject() (*ImageObject, bool)
- func (t Thing) AsImages() (*Images, bool)
- func (t Thing) AsIntangible() (*Intangible, bool)
- func (t Thing) AsMediaObject() (*MediaObject, bool)
- func (t Thing) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (t Thing) AsOffer() (*Offer, bool)
- func (t Thing) AsOrganization() (*Organization, bool)
- func (t Thing) AsPerson() (*Person, bool)
- func (t Thing) AsRecipe() (*Recipe, bool)
- func (t Thing) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (t Thing) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (t Thing) AsResponse() (*Response, bool)
- func (t Thing) AsResponseBase() (*ResponseBase, bool)
- func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (t Thing) AsStructuredValue() (*StructuredValue, bool)
- func (t Thing) AsThing() (*Thing, bool)
- func (t Thing) AsTrendingImages() (*TrendingImages, bool)
- func (t Thing) AsWebPage() (*WebPage, bool)
- func (t Thing) MarshalJSON() ([]byte, error)
- type TrendingImages
- func (ti TrendingImages) AsAggregateOffer() (*AggregateOffer, bool)
- func (ti TrendingImages) AsAnswer() (*Answer, bool)
- func (ti TrendingImages) AsBasicAnswer() (BasicAnswer, bool)
- func (ti TrendingImages) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (ti TrendingImages) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (ti TrendingImages) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (ti TrendingImages) AsBasicIntangible() (BasicIntangible, bool)
- func (ti TrendingImages) AsBasicMediaObject() (BasicMediaObject, bool)
- func (ti TrendingImages) AsBasicOffer() (BasicOffer, bool)
- func (ti TrendingImages) AsBasicResponse() (BasicResponse, bool)
- func (ti TrendingImages) AsBasicResponseBase() (BasicResponseBase, bool)
- func (ti TrendingImages) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (ti TrendingImages) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (ti TrendingImages) AsBasicThing() (BasicThing, bool)
- func (ti TrendingImages) AsBasicWebPage() (BasicWebPage, bool)
- func (ti TrendingImages) AsCollectionPage() (*CollectionPage, bool)
- func (ti TrendingImages) AsCreativeWork() (*CreativeWork, bool)
- func (ti TrendingImages) AsErrorResponse() (*ErrorResponse, bool)
- func (ti TrendingImages) AsIdentifiable() (*Identifiable, bool)
- func (ti TrendingImages) AsImageGallery() (*ImageGallery, bool)
- func (ti TrendingImages) AsImageInsights() (*ImageInsights, bool)
- func (ti TrendingImages) AsImageObject() (*ImageObject, bool)
- func (ti TrendingImages) AsImages() (*Images, bool)
- func (ti TrendingImages) AsIntangible() (*Intangible, bool)
- func (ti TrendingImages) AsMediaObject() (*MediaObject, bool)
- func (ti TrendingImages) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (ti TrendingImages) AsOffer() (*Offer, bool)
- func (ti TrendingImages) AsOrganization() (*Organization, bool)
- func (ti TrendingImages) AsPerson() (*Person, bool)
- func (ti TrendingImages) AsRecipe() (*Recipe, bool)
- func (ti TrendingImages) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (ti TrendingImages) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (ti TrendingImages) AsResponse() (*Response, bool)
- func (ti TrendingImages) AsResponseBase() (*ResponseBase, bool)
- func (ti TrendingImages) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (ti TrendingImages) AsStructuredValue() (*StructuredValue, bool)
- func (ti TrendingImages) AsThing() (*Thing, bool)
- func (ti TrendingImages) AsTrendingImages() (*TrendingImages, bool)
- func (ti TrendingImages) AsWebPage() (*WebPage, bool)
- func (ti TrendingImages) MarshalJSON() ([]byte, error)
- type TrendingImagesCategory
- type TrendingImagesTile
- type Type
- type TypeBasicResponseBase
- type WebPage
- func (wp WebPage) AsAggregateOffer() (*AggregateOffer, bool)
- func (wp WebPage) AsAnswer() (*Answer, bool)
- func (wp WebPage) AsBasicAnswer() (BasicAnswer, bool)
- func (wp WebPage) AsBasicCollectionPage() (BasicCollectionPage, bool)
- func (wp WebPage) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (wp WebPage) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (wp WebPage) AsBasicIntangible() (BasicIntangible, bool)
- func (wp WebPage) AsBasicMediaObject() (BasicMediaObject, bool)
- func (wp WebPage) AsBasicOffer() (BasicOffer, bool)
- func (wp WebPage) AsBasicResponse() (BasicResponse, bool)
- func (wp WebPage) AsBasicResponseBase() (BasicResponseBase, bool)
- func (wp WebPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (wp WebPage) AsBasicStructuredValue() (BasicStructuredValue, bool)
- func (wp WebPage) AsBasicThing() (BasicThing, bool)
- func (wp WebPage) AsBasicWebPage() (BasicWebPage, bool)
- func (wp WebPage) AsCollectionPage() (*CollectionPage, bool)
- func (wp WebPage) AsCreativeWork() (*CreativeWork, bool)
- func (wp WebPage) AsErrorResponse() (*ErrorResponse, bool)
- func (wp WebPage) AsIdentifiable() (*Identifiable, bool)
- func (wp WebPage) AsImageGallery() (*ImageGallery, bool)
- func (wp WebPage) AsImageInsights() (*ImageInsights, bool)
- func (wp WebPage) AsImageObject() (*ImageObject, bool)
- func (wp WebPage) AsImages() (*Images, bool)
- func (wp WebPage) AsIntangible() (*Intangible, bool)
- func (wp WebPage) AsMediaObject() (*MediaObject, bool)
- func (wp WebPage) AsNormalizedRectangle() (*NormalizedRectangle, bool)
- func (wp WebPage) AsOffer() (*Offer, bool)
- func (wp WebPage) AsOrganization() (*Organization, bool)
- func (wp WebPage) AsPerson() (*Person, bool)
- func (wp WebPage) AsRecipe() (*Recipe, bool)
- func (wp WebPage) AsRecognizedEntity() (*RecognizedEntity, bool)
- func (wp WebPage) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
- func (wp WebPage) AsResponse() (*Response, bool)
- func (wp WebPage) AsResponseBase() (*ResponseBase, bool)
- func (wp WebPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (wp WebPage) AsStructuredValue() (*StructuredValue, bool)
- func (wp WebPage) AsThing() (*Thing, bool)
- func (wp WebPage) AsTrendingImages() (*TrendingImages, bool)
- func (wp WebPage) AsWebPage() (*WebPage, bool)
- func (wp WebPage) MarshalJSON() ([]byte, error)
- func (wp *WebPage) UnmarshalJSON(body []byte) error
Constants ¶
const (
// DefaultEndpoint is the default value for endpoint
DefaultEndpoint = "https://api.cognitive.microsoft.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AggregateOffer ¶
type AggregateOffer struct { // Offers - READ-ONLY; A list of offers from merchants that have offerings related to the image. Offers *[]BasicOffer `json:"offers,omitempty"` // Seller - READ-ONLY; Seller for this offer Seller *Organization `json:"seller,omitempty"` // Price - READ-ONLY; The item's price. Price *float64 `json:"price,omitempty"` // PriceCurrency - READ-ONLY; The monetary currency. For example, USD. Possible values include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', 'JPY', 'CNY', 'AUD', 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW' PriceCurrency Currency `json:"priceCurrency,omitempty"` // Availability - READ-ONLY; The item's availability. The following are the possible values: Discontinued, InStock, InStoreOnly, LimitedAvailability, OnlineOnly, OutOfStock, PreOrder, SoldOut. Possible values include: 'Discontinued', 'InStock', 'InStoreOnly', 'LimitedAvailability', 'OnlineOnly', 'OutOfStock', 'PreOrder', 'SoldOut' Availability ItemAvailability `json:"availability,omitempty"` // AggregateRating - READ-ONLY; An aggregated rating that indicates how well the product has been rated by others. AggregateRating *AggregateRating `json:"aggregateRating,omitempty"` // LastUpdated - READ-ONLY; The last date that the offer was updated. The date is in the form YYYY-MM-DD. LastUpdated *string `json:"lastUpdated,omitempty"` // Name - READ-ONLY; The name of the thing represented by this object. Name *string `json:"name,omitempty"` // URL - READ-ONLY; The URL to get more information about the thing represented by this object. URL *string `json:"url,omitempty"` // Image - READ-ONLY; An image of the item. Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // AlternateName - READ-ONLY; An alias for the item AlternateName *string `json:"alternateName,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
AggregateOffer defines a list of offers from merchants that are related to the image.
func (AggregateOffer) AsAggregateOffer ¶
func (ao AggregateOffer) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsAnswer ¶
func (ao AggregateOffer) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicAnswer ¶
func (ao AggregateOffer) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicCollectionPage ¶
func (ao AggregateOffer) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicCreativeWork ¶
func (ao AggregateOffer) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicIdentifiable ¶
func (ao AggregateOffer) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicIntangible ¶
func (ao AggregateOffer) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicMediaObject ¶
func (ao AggregateOffer) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicOffer ¶
func (ao AggregateOffer) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicResponse ¶
func (ao AggregateOffer) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicResponseBase ¶
func (ao AggregateOffer) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicSearchResultsAnswer ¶
func (ao AggregateOffer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicStructuredValue ¶
func (ao AggregateOffer) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicThing ¶
func (ao AggregateOffer) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsBasicWebPage ¶
func (ao AggregateOffer) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsCollectionPage ¶
func (ao AggregateOffer) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsCreativeWork ¶
func (ao AggregateOffer) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsErrorResponse ¶
func (ao AggregateOffer) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsIdentifiable ¶
func (ao AggregateOffer) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsImageGallery ¶
func (ao AggregateOffer) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsImageInsights ¶
func (ao AggregateOffer) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsImageObject ¶
func (ao AggregateOffer) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsImages ¶
func (ao AggregateOffer) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsIntangible ¶
func (ao AggregateOffer) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsMediaObject ¶
func (ao AggregateOffer) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsNormalizedRectangle ¶
func (ao AggregateOffer) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsOffer ¶
func (ao AggregateOffer) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsOrganization ¶
func (ao AggregateOffer) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsPerson ¶
func (ao AggregateOffer) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsRecipe ¶
func (ao AggregateOffer) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsRecognizedEntity ¶
func (ao AggregateOffer) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsRecognizedEntityRegion ¶
func (ao AggregateOffer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsResponse ¶
func (ao AggregateOffer) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsResponseBase ¶
func (ao AggregateOffer) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsSearchResultsAnswer ¶
func (ao AggregateOffer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsStructuredValue ¶
func (ao AggregateOffer) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsThing ¶
func (ao AggregateOffer) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsTrendingImages ¶
func (ao AggregateOffer) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) AsWebPage ¶
func (ao AggregateOffer) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for AggregateOffer.
func (AggregateOffer) MarshalJSON ¶
func (ao AggregateOffer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AggregateOffer.
func (*AggregateOffer) UnmarshalJSON ¶
func (ao *AggregateOffer) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AggregateOffer struct.
type AggregateRating ¶
type AggregateRating struct { // ReviewCount - READ-ONLY; The number of times the recipe has been rated or reviewed. ReviewCount *int32 `json:"reviewCount,omitempty"` // RatingValue - The mean (average) rating. The possible values are 1.0 through 5.0. RatingValue *float64 `json:"ratingValue,omitempty"` // BestRating - READ-ONLY; The highest rated review. The possible values are 1.0 through 5.0. BestRating *float64 `json:"bestRating,omitempty"` // Text - READ-ONLY; Text representation of an item. Text *string `json:"text,omitempty"` // Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating' Type Type `json:"_type,omitempty"` }
AggregateRating defines the metrics that indicate how well an item was rated by others.
func (AggregateRating) AsAggregateRating ¶
func (ar AggregateRating) AsAggregateRating() (*AggregateRating, bool)
AsAggregateRating is the BasicPropertiesItem implementation for AggregateRating.
func (AggregateRating) AsBasicPropertiesItem ¶
func (ar AggregateRating) AsBasicPropertiesItem() (BasicPropertiesItem, bool)
AsBasicPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.
func (AggregateRating) AsBasicRating ¶
func (ar AggregateRating) AsBasicRating() (BasicRating, bool)
AsBasicRating is the BasicPropertiesItem implementation for AggregateRating.
func (AggregateRating) AsPropertiesItem ¶
func (ar AggregateRating) AsPropertiesItem() (*PropertiesItem, bool)
AsPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.
func (AggregateRating) AsRating ¶
func (ar AggregateRating) AsRating() (*Rating, bool)
AsRating is the BasicPropertiesItem implementation for AggregateRating.
func (AggregateRating) MarshalJSON ¶
func (ar AggregateRating) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AggregateRating.
type Answer ¶
type Answer struct { // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Answer defines an answer.
func (Answer) AsAggregateOffer ¶
func (a Answer) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicAnswer ¶
func (a Answer) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicCollectionPage ¶
func (a Answer) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicCreativeWork ¶
func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicIdentifiable ¶
func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicIntangible ¶
func (a Answer) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicMediaObject ¶
func (a Answer) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicOffer ¶
func (a Answer) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicResponse ¶
func (a Answer) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicResponseBase ¶
func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicSearchResultsAnswer ¶
func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicStructuredValue ¶
func (a Answer) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicThing ¶
func (a Answer) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicWebPage ¶
func (a Answer) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for Answer.
func (Answer) AsCollectionPage ¶
func (a Answer) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for Answer.
func (Answer) AsCreativeWork ¶
func (a Answer) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Answer.
func (Answer) AsErrorResponse ¶
func (a Answer) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Answer.
func (Answer) AsIdentifiable ¶
func (a Answer) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Answer.
func (Answer) AsImageGallery ¶
func (a Answer) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for Answer.
func (Answer) AsImageInsights ¶
func (a Answer) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for Answer.
func (Answer) AsImageObject ¶
func (a Answer) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Answer.
func (Answer) AsIntangible ¶
func (a Answer) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Answer.
func (Answer) AsMediaObject ¶
func (a Answer) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Answer.
func (Answer) AsNormalizedRectangle ¶
func (a Answer) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for Answer.
func (Answer) AsOrganization ¶
func (a Answer) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for Answer.
func (Answer) AsRecognizedEntity ¶
func (a Answer) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for Answer.
func (Answer) AsRecognizedEntityRegion ¶
func (a Answer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for Answer.
func (Answer) AsResponse ¶
AsResponse is the BasicResponseBase implementation for Answer.
func (Answer) AsResponseBase ¶
func (a Answer) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Answer.
func (Answer) AsSearchResultsAnswer ¶
func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.
func (Answer) AsStructuredValue ¶
func (a Answer) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Answer.
func (Answer) AsTrendingImages ¶
func (a Answer) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for Answer.
func (Answer) MarshalJSON ¶
MarshalJSON is the custom marshaler for Answer.
type BaseClient ¶
BaseClient is the base client for Imagesearch.
func NewWithoutDefaults ¶
func NewWithoutDefaults(endpoint string) BaseClient
NewWithoutDefaults creates an instance of the BaseClient client.
type BasicAnswer ¶
type BasicAnswer interface { AsImages() (*Images, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) }
BasicAnswer defines an answer.
type BasicCollectionPage ¶
type BasicCollectionPage interface { AsImageGallery() (*ImageGallery, bool) AsCollectionPage() (*CollectionPage, bool) }
BasicCollectionPage defines a link to a webpage that contains a collection.
type BasicCreativeWork ¶
type BasicCreativeWork interface { AsImageObject() (*ImageObject, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsImageGallery() (*ImageGallery, bool) AsRecipe() (*Recipe, bool) AsWebPage() (*WebPage, bool) AsBasicWebPage() (BasicWebPage, bool) AsCollectionPage() (*CollectionPage, bool) AsBasicCollectionPage() (BasicCollectionPage, bool) AsCreativeWork() (*CreativeWork, bool) }
BasicCreativeWork the most generic kind of creative work, including books, movies, photographs, software programs, etc.
type BasicIdentifiable ¶
type BasicIdentifiable interface { AsOrganization() (*Organization, bool) AsOffer() (*Offer, bool) AsBasicOffer() (BasicOffer, bool) AsAggregateOffer() (*AggregateOffer, bool) AsImageObject() (*ImageObject, bool) AsImages() (*Images, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) AsBasicAnswer() (BasicAnswer, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsResponse() (*Response, bool) AsBasicResponse() (BasicResponse, bool) AsThing() (*Thing, bool) AsBasicThing() (BasicThing, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsErrorResponse() (*ErrorResponse, bool) AsImageGallery() (*ImageGallery, bool) AsRecipe() (*Recipe, bool) AsNormalizedRectangle() (*NormalizedRectangle, bool) AsRecognizedEntity() (*RecognizedEntity, bool) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool) AsImageInsights() (*ImageInsights, bool) AsTrendingImages() (*TrendingImages, bool) AsWebPage() (*WebPage, bool) AsBasicWebPage() (BasicWebPage, bool) AsPerson() (*Person, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsCollectionPage() (*CollectionPage, bool) AsBasicCollectionPage() (BasicCollectionPage, bool) AsStructuredValue() (*StructuredValue, bool) AsBasicStructuredValue() (BasicStructuredValue, bool) AsIdentifiable() (*Identifiable, bool) }
BasicIdentifiable defines the identity of a resource.
type BasicIntangible ¶
type BasicIntangible interface { AsNormalizedRectangle() (*NormalizedRectangle, bool) AsStructuredValue() (*StructuredValue, bool) AsBasicStructuredValue() (BasicStructuredValue, bool) AsIntangible() (*Intangible, bool) }
BasicIntangible a utility class that serves as the umbrella for a number of 'intangible' things such as quantities, structured values, etc.
type BasicMediaObject ¶
type BasicMediaObject interface { AsImageObject() (*ImageObject, bool) AsMediaObject() (*MediaObject, bool) }
BasicMediaObject defines a media object.
type BasicOffer ¶
type BasicOffer interface { AsAggregateOffer() (*AggregateOffer, bool) AsOffer() (*Offer, bool) }
BasicOffer defines a merchant's offer.
type BasicPropertiesItem ¶
type BasicPropertiesItem interface { AsAggregateRating() (*AggregateRating, bool) AsRating() (*Rating, bool) AsBasicRating() (BasicRating, bool) AsPropertiesItem() (*PropertiesItem, bool) }
BasicPropertiesItem defines an item.
type BasicRating ¶
type BasicRating interface { AsAggregateRating() (*AggregateRating, bool) AsRating() (*Rating, bool) }
BasicRating defines a rating.
type BasicResponse ¶
type BasicResponse interface { AsOrganization() (*Organization, bool) AsOffer() (*Offer, bool) AsBasicOffer() (BasicOffer, bool) AsAggregateOffer() (*AggregateOffer, bool) AsImageObject() (*ImageObject, bool) AsImages() (*Images, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) AsBasicAnswer() (BasicAnswer, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsThing() (*Thing, bool) AsBasicThing() (BasicThing, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsErrorResponse() (*ErrorResponse, bool) AsImageGallery() (*ImageGallery, bool) AsRecipe() (*Recipe, bool) AsNormalizedRectangle() (*NormalizedRectangle, bool) AsRecognizedEntity() (*RecognizedEntity, bool) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool) AsImageInsights() (*ImageInsights, bool) AsTrendingImages() (*TrendingImages, bool) AsWebPage() (*WebPage, bool) AsBasicWebPage() (BasicWebPage, bool) AsPerson() (*Person, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsCollectionPage() (*CollectionPage, bool) AsBasicCollectionPage() (BasicCollectionPage, bool) AsStructuredValue() (*StructuredValue, bool) AsBasicStructuredValue() (BasicStructuredValue, bool) AsResponse() (*Response, bool) }
BasicResponse defines a response. All schemas that could be returned at the root of a response should inherit from this
type BasicResponseBase ¶
type BasicResponseBase interface { AsOrganization() (*Organization, bool) AsOffer() (*Offer, bool) AsBasicOffer() (BasicOffer, bool) AsAggregateOffer() (*AggregateOffer, bool) AsImageObject() (*ImageObject, bool) AsImages() (*Images, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) AsBasicAnswer() (BasicAnswer, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsResponse() (*Response, bool) AsBasicResponse() (BasicResponse, bool) AsThing() (*Thing, bool) AsBasicThing() (BasicThing, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsIdentifiable() (*Identifiable, bool) AsBasicIdentifiable() (BasicIdentifiable, bool) AsErrorResponse() (*ErrorResponse, bool) AsImageGallery() (*ImageGallery, bool) AsRecipe() (*Recipe, bool) AsNormalizedRectangle() (*NormalizedRectangle, bool) AsRecognizedEntity() (*RecognizedEntity, bool) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool) AsImageInsights() (*ImageInsights, bool) AsTrendingImages() (*TrendingImages, bool) AsWebPage() (*WebPage, bool) AsBasicWebPage() (BasicWebPage, bool) AsPerson() (*Person, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsCollectionPage() (*CollectionPage, bool) AsBasicCollectionPage() (BasicCollectionPage, bool) AsStructuredValue() (*StructuredValue, bool) AsBasicStructuredValue() (BasicStructuredValue, bool) AsResponseBase() (*ResponseBase, bool) }
BasicResponseBase response base
type BasicSearchResultsAnswer ¶
type BasicSearchResultsAnswer interface { AsImages() (*Images, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) }
BasicSearchResultsAnswer defines a search result answer.
type BasicStructuredValue ¶
type BasicStructuredValue interface { AsNormalizedRectangle() (*NormalizedRectangle, bool) AsStructuredValue() (*StructuredValue, bool) }
BasicStructuredValue ...
type BasicThing ¶
type BasicThing interface { AsOrganization() (*Organization, bool) AsOffer() (*Offer, bool) AsBasicOffer() (BasicOffer, bool) AsAggregateOffer() (*AggregateOffer, bool) AsImageObject() (*ImageObject, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsImageGallery() (*ImageGallery, bool) AsRecipe() (*Recipe, bool) AsNormalizedRectangle() (*NormalizedRectangle, bool) AsWebPage() (*WebPage, bool) AsBasicWebPage() (BasicWebPage, bool) AsPerson() (*Person, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsCollectionPage() (*CollectionPage, bool) AsBasicCollectionPage() (BasicCollectionPage, bool) AsStructuredValue() (*StructuredValue, bool) AsBasicStructuredValue() (BasicStructuredValue, bool) AsThing() (*Thing, bool) }
BasicThing defines a thing.
type BasicWebPage ¶
type BasicWebPage interface { AsImageGallery() (*ImageGallery, bool) AsCollectionPage() (*CollectionPage, bool) AsBasicCollectionPage() (BasicCollectionPage, bool) AsWebPage() (*WebPage, bool) }
BasicWebPage defines a webpage that is relevant to the query.
type CollectionPage ¶
type CollectionPage struct { // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item. ThumbnailURL *string `json:"thumbnailUrl,omitempty"` // Provider - READ-ONLY; The source of the creative work. Provider *[]BasicThing `json:"provider,omitempty"` // DatePublished - READ-ONLY; The date on which the CreativeWork was published. DatePublished *string `json:"datePublished,omitempty"` // Text - READ-ONLY; Text content of this creative work Text *string `json:"text,omitempty"` // Name - READ-ONLY; The name of the thing represented by this object. Name *string `json:"name,omitempty"` // URL - READ-ONLY; The URL to get more information about the thing represented by this object. URL *string `json:"url,omitempty"` // Image - READ-ONLY; An image of the item. Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // AlternateName - READ-ONLY; An alias for the item AlternateName *string `json:"alternateName,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
CollectionPage defines a link to a webpage that contains a collection.
func (CollectionPage) AsAggregateOffer ¶
func (cp CollectionPage) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsAnswer ¶
func (cp CollectionPage) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicAnswer ¶
func (cp CollectionPage) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicCollectionPage ¶
func (cp CollectionPage) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicCreativeWork ¶
func (cp CollectionPage) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicIdentifiable ¶
func (cp CollectionPage) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicIntangible ¶
func (cp CollectionPage) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicMediaObject ¶
func (cp CollectionPage) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicOffer ¶
func (cp CollectionPage) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicResponse ¶
func (cp CollectionPage) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicResponseBase ¶
func (cp CollectionPage) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicSearchResultsAnswer ¶
func (cp CollectionPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicStructuredValue ¶
func (cp CollectionPage) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicThing ¶
func (cp CollectionPage) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsBasicWebPage ¶
func (cp CollectionPage) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsCollectionPage ¶
func (cp CollectionPage) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsCreativeWork ¶
func (cp CollectionPage) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsErrorResponse ¶
func (cp CollectionPage) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsIdentifiable ¶
func (cp CollectionPage) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsImageGallery ¶
func (cp CollectionPage) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsImageInsights ¶
func (cp CollectionPage) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsImageObject ¶
func (cp CollectionPage) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsImages ¶
func (cp CollectionPage) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsIntangible ¶
func (cp CollectionPage) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsMediaObject ¶
func (cp CollectionPage) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsNormalizedRectangle ¶
func (cp CollectionPage) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsOffer ¶
func (cp CollectionPage) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsOrganization ¶
func (cp CollectionPage) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsPerson ¶
func (cp CollectionPage) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsRecipe ¶
func (cp CollectionPage) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsRecognizedEntity ¶
func (cp CollectionPage) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsRecognizedEntityRegion ¶
func (cp CollectionPage) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsResponse ¶
func (cp CollectionPage) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsResponseBase ¶
func (cp CollectionPage) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsSearchResultsAnswer ¶
func (cp CollectionPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsStructuredValue ¶
func (cp CollectionPage) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsThing ¶
func (cp CollectionPage) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsTrendingImages ¶
func (cp CollectionPage) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) AsWebPage ¶
func (cp CollectionPage) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for CollectionPage.
func (CollectionPage) MarshalJSON ¶
func (cp CollectionPage) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CollectionPage.
func (*CollectionPage) UnmarshalJSON ¶
func (cp *CollectionPage) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CollectionPage struct.
type CreativeWork ¶
type CreativeWork struct { // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item. ThumbnailURL *string `json:"thumbnailUrl,omitempty"` // Provider - READ-ONLY; The source of the creative work. Provider *[]BasicThing `json:"provider,omitempty"` // DatePublished - READ-ONLY; The date on which the CreativeWork was published. DatePublished *string `json:"datePublished,omitempty"` // Text - READ-ONLY; Text content of this creative work Text *string `json:"text,omitempty"` // Name - READ-ONLY; The name of the thing represented by this object. Name *string `json:"name,omitempty"` // URL - READ-ONLY; The URL to get more information about the thing represented by this object. URL *string `json:"url,omitempty"` // Image - READ-ONLY; An image of the item. Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // AlternateName - READ-ONLY; An alias for the item AlternateName *string `json:"alternateName,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
CreativeWork the most generic kind of creative work, including books, movies, photographs, software programs, etc.
func (CreativeWork) AsAggregateOffer ¶
func (cw CreativeWork) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsAnswer ¶
func (cw CreativeWork) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicAnswer ¶
func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicCollectionPage ¶
func (cw CreativeWork) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicCreativeWork ¶
func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicIdentifiable ¶
func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicIntangible ¶
func (cw CreativeWork) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicMediaObject ¶
func (cw CreativeWork) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicOffer ¶
func (cw CreativeWork) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicResponse ¶
func (cw CreativeWork) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicResponseBase ¶
func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicSearchResultsAnswer ¶
func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicStructuredValue ¶
func (cw CreativeWork) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicThing ¶
func (cw CreativeWork) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicWebPage ¶
func (cw CreativeWork) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsCollectionPage ¶
func (cw CreativeWork) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsCreativeWork ¶
func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsErrorResponse ¶
func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsIdentifiable ¶
func (cw CreativeWork) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsImageGallery ¶
func (cw CreativeWork) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsImageInsights ¶
func (cw CreativeWork) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsImageObject ¶
func (cw CreativeWork) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsImages ¶
func (cw CreativeWork) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsIntangible ¶
func (cw CreativeWork) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsMediaObject ¶
func (cw CreativeWork) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsNormalizedRectangle ¶
func (cw CreativeWork) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsOffer ¶
func (cw CreativeWork) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsOrganization ¶
func (cw CreativeWork) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsPerson ¶
func (cw CreativeWork) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsRecipe ¶
func (cw CreativeWork) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsRecognizedEntity ¶
func (cw CreativeWork) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsRecognizedEntityRegion ¶
func (cw CreativeWork) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsResponse ¶
func (cw CreativeWork) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsResponseBase ¶
func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsSearchResultsAnswer ¶
func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsStructuredValue ¶
func (cw CreativeWork) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsThing ¶
func (cw CreativeWork) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsTrendingImages ¶
func (cw CreativeWork) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsWebPage ¶
func (cw CreativeWork) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) MarshalJSON ¶
func (cw CreativeWork) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for CreativeWork.
func (*CreativeWork) UnmarshalJSON ¶
func (cw *CreativeWork) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for CreativeWork struct.
type Currency ¶
type Currency string
Currency enumerates the values for currency.
const ( // AED ... AED Currency = "AED" // AFN ... AFN Currency = "AFN" // ALL ... ALL Currency = "ALL" // AMD ... AMD Currency = "AMD" // ANG ... ANG Currency = "ANG" // AOA ... AOA Currency = "AOA" // ARS ... ARS Currency = "ARS" // AUD ... AUD Currency = "AUD" // AWG ... AWG Currency = "AWG" // AZN ... AZN Currency = "AZN" // BAM ... BAM Currency = "BAM" // BBD ... BBD Currency = "BBD" // BDT ... BDT Currency = "BDT" // BGN ... BGN Currency = "BGN" // BHD ... BHD Currency = "BHD" // BIF ... BIF Currency = "BIF" // BMD ... BMD Currency = "BMD" // BND ... BND Currency = "BND" // BOB ... BOB Currency = "BOB" // BOV ... BOV Currency = "BOV" // BRL ... BRL Currency = "BRL" // BSD ... BSD Currency = "BSD" // BTN ... BTN Currency = "BTN" // BWP ... BWP Currency = "BWP" // BYR ... BYR Currency = "BYR" // BZD ... BZD Currency = "BZD" // CAD ... CAD Currency = "CAD" // CDF ... CDF Currency = "CDF" // CHE ... CHE Currency = "CHE" // CHF ... CHF Currency = "CHF" // CHW ... CHW Currency = "CHW" // CLF ... CLF Currency = "CLF" // CLP ... CLP Currency = "CLP" // CNY ... CNY Currency = "CNY" // COP ... COP Currency = "COP" // COU ... COU Currency = "COU" // CRC ... CRC Currency = "CRC" // CUC ... CUC Currency = "CUC" // CUP ... CUP Currency = "CUP" // CVE ... CVE Currency = "CVE" // CZK ... CZK Currency = "CZK" // DJF ... DJF Currency = "DJF" // DKK ... DKK Currency = "DKK" // DOP ... DOP Currency = "DOP" // DZD ... DZD Currency = "DZD" // EGP ... EGP Currency = "EGP" // ERN ... ERN Currency = "ERN" // ETB ... ETB Currency = "ETB" // EUR ... EUR Currency = "EUR" // FJD ... FJD Currency = "FJD" // FKP ... FKP Currency = "FKP" // GBP ... GBP Currency = "GBP" // GEL ... GEL Currency = "GEL" // GHS ... GHS Currency = "GHS" // GIP ... GIP Currency = "GIP" // GMD ... GMD Currency = "GMD" // GNF ... GNF Currency = "GNF" // GTQ ... GTQ Currency = "GTQ" // GYD ... GYD Currency = "GYD" // HKD ... HKD Currency = "HKD" // HNL ... HNL Currency = "HNL" // HRK ... HRK Currency = "HRK" // HTG ... HTG Currency = "HTG" // HUF ... HUF Currency = "HUF" // IDR ... IDR Currency = "IDR" // ILS ... ILS Currency = "ILS" // INR ... INR Currency = "INR" // IQD ... IQD Currency = "IQD" // IRR ... IRR Currency = "IRR" // ISK ... ISK Currency = "ISK" // JMD ... JMD Currency = "JMD" // JOD ... JOD Currency = "JOD" // JPY ... JPY Currency = "JPY" // KES ... KES Currency = "KES" // KGS ... KGS Currency = "KGS" // KHR ... KHR Currency = "KHR" // KMF ... KMF Currency = "KMF" // KPW ... KPW Currency = "KPW" // KRW ... KRW Currency = "KRW" // KWD ... KWD Currency = "KWD" // KYD ... KYD Currency = "KYD" // KZT ... KZT Currency = "KZT" // LAK ... LAK Currency = "LAK" // LBP ... LBP Currency = "LBP" // LKR ... LKR Currency = "LKR" // LRD ... LRD Currency = "LRD" // LSL ... LSL Currency = "LSL" // LYD ... LYD Currency = "LYD" // MAD ... MAD Currency = "MAD" // MDL ... MDL Currency = "MDL" // MGA ... MGA Currency = "MGA" // MKD ... MKD Currency = "MKD" // MMK ... MMK Currency = "MMK" // MNT ... MNT Currency = "MNT" // MOP ... MOP Currency = "MOP" // MRO ... MRO Currency = "MRO" // MUR ... MUR Currency = "MUR" // MVR ... MVR Currency = "MVR" // MWK ... MWK Currency = "MWK" // MXN ... MXN Currency = "MXN" // MXV ... MXV Currency = "MXV" // MYR ... MYR Currency = "MYR" // MZN ... MZN Currency = "MZN" // NAD ... NAD Currency = "NAD" // NGN ... NGN Currency = "NGN" // NIO ... NIO Currency = "NIO" // NOK ... NOK Currency = "NOK" // NPR ... NPR Currency = "NPR" // NZD ... NZD Currency = "NZD" // OMR ... OMR Currency = "OMR" // PAB ... PAB Currency = "PAB" // PEN ... PEN Currency = "PEN" // PGK ... PGK Currency = "PGK" // PHP ... PHP Currency = "PHP" // PKR ... PKR Currency = "PKR" // PLN ... PLN Currency = "PLN" // PYG ... PYG Currency = "PYG" // QAR ... QAR Currency = "QAR" // RON ... RON Currency = "RON" // RSD ... RSD Currency = "RSD" // RUB ... RUB Currency = "RUB" // RWF ... RWF Currency = "RWF" // SAR ... SAR Currency = "SAR" // SBD ... SBD Currency = "SBD" // SCR ... SCR Currency = "SCR" // SDG ... SDG Currency = "SDG" // SEK ... SEK Currency = "SEK" // SGD ... SGD Currency = "SGD" // SHP ... SHP Currency = "SHP" // SLL ... SLL Currency = "SLL" // SOS ... SOS Currency = "SOS" // SRD ... SRD Currency = "SRD" // SSP ... SSP Currency = "SSP" // STD ... STD Currency = "STD" // SYP ... SYP Currency = "SYP" // SZL ... SZL Currency = "SZL" // THB ... THB Currency = "THB" // TJS ... TJS Currency = "TJS" // TMT ... TMT Currency = "TMT" // TND ... TND Currency = "TND" // TOP ... TOP Currency = "TOP" // TRY ... TRY Currency = "TRY" // TTD ... TTD Currency = "TTD" // TWD ... TWD Currency = "TWD" // TZS ... TZS Currency = "TZS" // UAH ... UAH Currency = "UAH" // UGX ... UGX Currency = "UGX" // USD ... USD Currency = "USD" // UYU ... UYU Currency = "UYU" // UZS ... UZS Currency = "UZS" // VEF ... VEF Currency = "VEF" // VND ... VND Currency = "VND" // VUV ... VUV Currency = "VUV" // WST ... WST Currency = "WST" // XAF ... XAF Currency = "XAF" // XCD ... XCD Currency = "XCD" // XOF ... XOF Currency = "XOF" // XPF ... XPF Currency = "XPF" // YER ... YER Currency = "YER" // ZAR ... ZAR Currency = "ZAR" // ZMW ... ZMW Currency = "ZMW" )
func PossibleCurrencyValues ¶
func PossibleCurrencyValues() []Currency
PossibleCurrencyValues returns an array of possible values for the Currency const type.
type Error ¶
type Error struct { // Code - The error code that identifies the category of error. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization' Code ErrorCode `json:"code,omitempty"` // SubCode - READ-ONLY; The error code that further helps to identify the error. Possible values include: 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', 'HTTPNotAllowed', 'Blocked', 'AuthorizationMissing', 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' SubCode ErrorSubCode `json:"subCode,omitempty"` // Message - A description of the error. Message *string `json:"message,omitempty"` // MoreDetails - READ-ONLY; A description that provides additional information about the error. MoreDetails *string `json:"moreDetails,omitempty"` // Parameter - READ-ONLY; The parameter in the request that caused the error. Parameter *string `json:"parameter,omitempty"` // Value - READ-ONLY; The parameter's value in the request that was not valid. Value *string `json:"value,omitempty"` }
Error defines the error that occurred.
func (Error) MarshalJSON ¶
MarshalJSON is the custom marshaler for Error.
type ErrorCode ¶
type ErrorCode string
ErrorCode enumerates the values for error code.
const ( // InsufficientAuthorization ... InsufficientAuthorization ErrorCode = "InsufficientAuthorization" // InvalidAuthorization ... InvalidAuthorization ErrorCode = "InvalidAuthorization" // InvalidRequest ... InvalidRequest ErrorCode = "InvalidRequest" // None ... None ErrorCode = "None" // RateLimitExceeded ... RateLimitExceeded ErrorCode = "RateLimitExceeded" // ServerError ... ServerError ErrorCode = "ServerError" )
func PossibleErrorCodeValues ¶
func PossibleErrorCodeValues() []ErrorCode
PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.
type ErrorResponse ¶
type ErrorResponse struct { // Errors - A list of errors that describe the reasons why the request failed. Errors *[]Error `json:"errors,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
ErrorResponse the top-level response that represents a failed request.
func (ErrorResponse) AsAggregateOffer ¶
func (er ErrorResponse) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsAnswer ¶
func (er ErrorResponse) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicAnswer ¶
func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicCollectionPage ¶
func (er ErrorResponse) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicCreativeWork ¶
func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicIdentifiable ¶
func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicIntangible ¶
func (er ErrorResponse) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicMediaObject ¶
func (er ErrorResponse) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicOffer ¶
func (er ErrorResponse) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicResponse ¶
func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicResponseBase ¶
func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicSearchResultsAnswer ¶
func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicStructuredValue ¶
func (er ErrorResponse) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicThing ¶
func (er ErrorResponse) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicWebPage ¶
func (er ErrorResponse) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsCollectionPage ¶
func (er ErrorResponse) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsCreativeWork ¶
func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsErrorResponse ¶
func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsIdentifiable ¶
func (er ErrorResponse) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsImageGallery ¶
func (er ErrorResponse) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsImageInsights ¶
func (er ErrorResponse) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsImageObject ¶
func (er ErrorResponse) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsImages ¶
func (er ErrorResponse) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsIntangible ¶
func (er ErrorResponse) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsMediaObject ¶
func (er ErrorResponse) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsNormalizedRectangle ¶
func (er ErrorResponse) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsOffer ¶
func (er ErrorResponse) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsOrganization ¶
func (er ErrorResponse) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsPerson ¶
func (er ErrorResponse) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsRecipe ¶
func (er ErrorResponse) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsRecognizedEntity ¶
func (er ErrorResponse) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsRecognizedEntityRegion ¶
func (er ErrorResponse) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsResponse ¶
func (er ErrorResponse) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsResponseBase ¶
func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsSearchResultsAnswer ¶
func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsStructuredValue ¶
func (er ErrorResponse) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsThing ¶
func (er ErrorResponse) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsTrendingImages ¶
func (er ErrorResponse) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsWebPage ¶
func (er ErrorResponse) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) MarshalJSON ¶
func (er ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorResponse.
type ErrorSubCode ¶
type ErrorSubCode string
ErrorSubCode enumerates the values for error sub code.
const ( // AuthorizationDisabled ... AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled" // AuthorizationExpired ... AuthorizationExpired ErrorSubCode = "AuthorizationExpired" // AuthorizationMissing ... AuthorizationMissing ErrorSubCode = "AuthorizationMissing" // AuthorizationRedundancy ... AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy" // Blocked ... Blocked ErrorSubCode = "Blocked" // HTTPNotAllowed ... HTTPNotAllowed ErrorSubCode = "HttpNotAllowed" // NotImplemented ... NotImplemented ErrorSubCode = "NotImplemented" // ParameterInvalidValue ... ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue" // ParameterMissing ... ParameterMissing ErrorSubCode = "ParameterMissing" // ResourceError ... ResourceError ErrorSubCode = "ResourceError" // UnexpectedError ... UnexpectedError ErrorSubCode = "UnexpectedError" )
func PossibleErrorSubCodeValues ¶
func PossibleErrorSubCodeValues() []ErrorSubCode
PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.
type Freshness ¶
type Freshness string
Freshness enumerates the values for freshness.
func PossibleFreshnessValues ¶
func PossibleFreshnessValues() []Freshness
PossibleFreshnessValues returns an array of possible values for the Freshness const type.
type Identifiable ¶
type Identifiable struct { // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Identifiable defines the identity of a resource.
func (Identifiable) AsAggregateOffer ¶
func (i Identifiable) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsAnswer ¶
func (i Identifiable) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicAnswer ¶
func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicCollectionPage ¶
func (i Identifiable) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicCreativeWork ¶
func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicIdentifiable ¶
func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicIntangible ¶
func (i Identifiable) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicMediaObject ¶
func (i Identifiable) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicOffer ¶
func (i Identifiable) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicResponse ¶
func (i Identifiable) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicResponseBase ¶
func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicSearchResultsAnswer ¶
func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicStructuredValue ¶
func (i Identifiable) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicThing ¶
func (i Identifiable) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicWebPage ¶
func (i Identifiable) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsCollectionPage ¶
func (i Identifiable) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsCreativeWork ¶
func (i Identifiable) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsErrorResponse ¶
func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsIdentifiable ¶
func (i Identifiable) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsImageGallery ¶
func (i Identifiable) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsImageInsights ¶
func (i Identifiable) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsImageObject ¶
func (i Identifiable) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsImages ¶
func (i Identifiable) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsIntangible ¶
func (i Identifiable) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsMediaObject ¶
func (i Identifiable) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsNormalizedRectangle ¶
func (i Identifiable) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsOffer ¶
func (i Identifiable) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsOrganization ¶
func (i Identifiable) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsPerson ¶
func (i Identifiable) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsRecipe ¶
func (i Identifiable) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsRecognizedEntity ¶
func (i Identifiable) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsRecognizedEntityRegion ¶
func (i Identifiable) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsResponse ¶
func (i Identifiable) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsResponseBase ¶
func (i Identifiable) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsSearchResultsAnswer ¶
func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsStructuredValue ¶
func (i Identifiable) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsThing ¶
func (i Identifiable) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsTrendingImages ¶
func (i Identifiable) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsWebPage ¶
func (i Identifiable) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for Identifiable.
func (Identifiable) MarshalJSON ¶
func (i Identifiable) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Identifiable.
type ImageAspect ¶
type ImageAspect string
ImageAspect enumerates the values for image aspect.
const ( // All ... All ImageAspect = "All" // Square ... Square ImageAspect = "Square" // Tall ... Tall ImageAspect = "Tall" // Wide ... Wide ImageAspect = "Wide" )
func PossibleImageAspectValues ¶
func PossibleImageAspectValues() []ImageAspect
PossibleImageAspectValues returns an array of possible values for the ImageAspect const type.
type ImageColor ¶
type ImageColor string
ImageColor enumerates the values for image color.
const ( // Black ... Black ImageColor = "Black" // Blue ... Blue ImageColor = "Blue" // Brown ... Brown ImageColor = "Brown" // ColorOnly ... ColorOnly ImageColor = "ColorOnly" // Gray ... Gray ImageColor = "Gray" // Green ... Green ImageColor = "Green" // Monochrome ... Monochrome ImageColor = "Monochrome" // Orange ... Orange ImageColor = "Orange" // Pink ... Pink ImageColor = "Pink" // Purple ... Purple ImageColor = "Purple" // Red ... Red ImageColor = "Red" // Teal ... Teal ImageColor = "Teal" // White ... White ImageColor = "White" // Yellow ... Yellow ImageColor = "Yellow" )
func PossibleImageColorValues ¶
func PossibleImageColorValues() []ImageColor
PossibleImageColorValues returns an array of possible values for the ImageColor const type.
type ImageContent ¶
type ImageContent string
ImageContent enumerates the values for image content.
const ( // Face ... Face ImageContent = "Face" // Portrait ... Portrait ImageContent = "Portrait" )
func PossibleImageContentValues ¶
func PossibleImageContentValues() []ImageContent
PossibleImageContentValues returns an array of possible values for the ImageContent const type.
type ImageCropType ¶
type ImageCropType string
ImageCropType enumerates the values for image crop type.
const ( // Rectangular ... Rectangular ImageCropType = "Rectangular" )
func PossibleImageCropTypeValues ¶
func PossibleImageCropTypeValues() []ImageCropType
PossibleImageCropTypeValues returns an array of possible values for the ImageCropType const type.
type ImageGallery ¶
type ImageGallery struct { // Source - READ-ONLY; The publisher or social network where the images were found. You must attribute the publisher as the source where the collection was found. Source *string `json:"source,omitempty"` // ImagesCount - READ-ONLY; The number of related images found in the collection. ImagesCount *int64 `json:"imagesCount,omitempty"` // FollowersCount - READ-ONLY; The number of users on the social network that follow the creator. FollowersCount *int64 `json:"followersCount,omitempty"` // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item. ThumbnailURL *string `json:"thumbnailUrl,omitempty"` // Provider - READ-ONLY; The source of the creative work. Provider *[]BasicThing `json:"provider,omitempty"` // DatePublished - READ-ONLY; The date on which the CreativeWork was published. DatePublished *string `json:"datePublished,omitempty"` // Text - READ-ONLY; Text content of this creative work Text *string `json:"text,omitempty"` // Name - READ-ONLY; The name of the thing represented by this object. Name *string `json:"name,omitempty"` // URL - READ-ONLY; The URL to get more information about the thing represented by this object. URL *string `json:"url,omitempty"` // Image - READ-ONLY; An image of the item. Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // AlternateName - READ-ONLY; An alias for the item AlternateName *string `json:"alternateName,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
ImageGallery defines a link to a webpage that contains a collection of related images.
func (ImageGallery) AsAggregateOffer ¶
func (ig ImageGallery) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsAnswer ¶
func (ig ImageGallery) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicAnswer ¶
func (ig ImageGallery) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicCollectionPage ¶
func (ig ImageGallery) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicCreativeWork ¶
func (ig ImageGallery) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicIdentifiable ¶
func (ig ImageGallery) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicIntangible ¶
func (ig ImageGallery) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicMediaObject ¶
func (ig ImageGallery) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicOffer ¶
func (ig ImageGallery) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicResponse ¶
func (ig ImageGallery) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicResponseBase ¶
func (ig ImageGallery) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicSearchResultsAnswer ¶
func (ig ImageGallery) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicStructuredValue ¶
func (ig ImageGallery) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicThing ¶
func (ig ImageGallery) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsBasicWebPage ¶
func (ig ImageGallery) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsCollectionPage ¶
func (ig ImageGallery) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsCreativeWork ¶
func (ig ImageGallery) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsErrorResponse ¶
func (ig ImageGallery) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsIdentifiable ¶
func (ig ImageGallery) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsImageGallery ¶
func (ig ImageGallery) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsImageInsights ¶
func (ig ImageGallery) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsImageObject ¶
func (ig ImageGallery) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsImages ¶
func (ig ImageGallery) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsIntangible ¶
func (ig ImageGallery) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsMediaObject ¶
func (ig ImageGallery) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsNormalizedRectangle ¶
func (ig ImageGallery) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsOffer ¶
func (ig ImageGallery) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsOrganization ¶
func (ig ImageGallery) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsPerson ¶
func (ig ImageGallery) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsRecipe ¶
func (ig ImageGallery) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsRecognizedEntity ¶
func (ig ImageGallery) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsRecognizedEntityRegion ¶
func (ig ImageGallery) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsResponse ¶
func (ig ImageGallery) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsResponseBase ¶
func (ig ImageGallery) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsSearchResultsAnswer ¶
func (ig ImageGallery) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsStructuredValue ¶
func (ig ImageGallery) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsThing ¶
func (ig ImageGallery) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsTrendingImages ¶
func (ig ImageGallery) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) AsWebPage ¶
func (ig ImageGallery) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for ImageGallery.
func (ImageGallery) MarshalJSON ¶
func (ig ImageGallery) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageGallery.
func (*ImageGallery) UnmarshalJSON ¶
func (ig *ImageGallery) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ImageGallery struct.
type ImageInsightModule ¶
type ImageInsightModule string
ImageInsightModule enumerates the values for image insight module.
const ( // ImageInsightModuleAll ... ImageInsightModuleAll ImageInsightModule = "All" // ImageInsightModuleBRQ ... ImageInsightModuleBRQ ImageInsightModule = "BRQ" // ImageInsightModuleCaption ... ImageInsightModuleCaption ImageInsightModule = "Caption" // ImageInsightModuleCollections ... ImageInsightModuleCollections ImageInsightModule = "Collections" // ImageInsightModulePagesIncluding ... ImageInsightModulePagesIncluding ImageInsightModule = "PagesIncluding" // ImageInsightModuleRecipes ... ImageInsightModuleRecipes ImageInsightModule = "Recipes" // ImageInsightModuleRecognizedEntities ... ImageInsightModuleRecognizedEntities ImageInsightModule = "RecognizedEntities" // ImageInsightModuleRelatedSearches ... ImageInsightModuleRelatedSearches ImageInsightModule = "RelatedSearches" // ImageInsightModuleShoppingSources ... ImageInsightModuleShoppingSources ImageInsightModule = "ShoppingSources" // ImageInsightModuleSimilarImages ... ImageInsightModuleSimilarImages ImageInsightModule = "SimilarImages" // ImageInsightModuleSimilarProducts ... ImageInsightModuleSimilarProducts ImageInsightModule = "SimilarProducts" // ImageInsightModuleTags ... ImageInsightModuleTags ImageInsightModule = "Tags" )
func PossibleImageInsightModuleValues ¶
func PossibleImageInsightModuleValues() []ImageInsightModule
PossibleImageInsightModuleValues returns an array of possible values for the ImageInsightModule const type.
type ImageInsights ¶
type ImageInsights struct { autorest.Response `json:"-"` // ImageInsightsToken - READ-ONLY; A token that you use in a subsequent call to the Image Search API to get more information about the image. For information about using this token, see the insightsToken query parameter. This token has the same usage as the token in the Image object. ImageInsightsToken *string `json:"imageInsightsToken,omitempty"` // BestRepresentativeQuery - READ-ONLY; The query term that best represents the image. Clicking the link in the Query object, takes the user to a webpage with more pictures of the image. BestRepresentativeQuery *Query `json:"bestRepresentativeQuery,omitempty"` // ImageCaption - READ-ONLY; The caption to use for the image. ImageCaption *ImageInsightsImageCaption `json:"imageCaption,omitempty"` // RelatedCollections - READ-ONLY; A list of links to webpages that contain related images. RelatedCollections *RelatedCollectionsModule `json:"relatedCollections,omitempty"` // PagesIncluding - READ-ONLY; A list of webpages that contain the image. To access the webpage, use the URL in the image's hostPageUrl field. PagesIncluding *ImagesModule `json:"pagesIncluding,omitempty"` // ShoppingSources - READ-ONLY; A list of merchants that offer items related to the image. For example, if the image is of an apple pie, the list contains merchants that are selling apple pies. ShoppingSources *AggregateOffer `json:"shoppingSources,omitempty"` // RelatedSearches - READ-ONLY; A list of related queries made by others. RelatedSearches *RelatedSearchesModule `json:"relatedSearches,omitempty"` // Recipes - READ-ONLY; A list of recipes related to the image. For example, if the image is of an apple pie, the list contains recipes for making an apple pie. Recipes *RecipesModule `json:"recipes,omitempty"` // VisuallySimilarImages - READ-ONLY; A list of images that are visually similar to the original image. For example, if the specified image is of a sunset over a body of water, the list of similar images are of a sunset over a body of water. If the specified image is of a person, similar images might be of the same person or they might be of persons dressed similarly or in a similar setting. The criteria for similarity continues to evolve. VisuallySimilarImages *ImagesModule `json:"visuallySimilarImages,omitempty"` // VisuallySimilarProducts - READ-ONLY; A list of images that contain products that are visually similar to products found in the original image. For example, if the specified image contains a dress, the list of similar images contain a dress. The image provides summary information about offers that Bing found online for the product. VisuallySimilarProducts *ImagesModule `json:"visuallySimilarProducts,omitempty"` // RecognizedEntityGroups - READ-ONLY; A list of groups that contain images of entities that match the entity found in the specified image. For example, the response might include images from the general celebrity group if the entity was recognized in that group. RecognizedEntityGroups *RecognizedEntitiesModule `json:"recognizedEntityGroups,omitempty"` // ImageTags - READ-ONLY; A list of characteristics of the content found in the image. For example, if the image is of a person, the tags might indicate the person's gender and the type of clothes they're wearing. ImageTags *ImageTagsModule `json:"imageTags,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
ImageInsights the top-level object that the response includes when an image insights request succeeds. For information about requesting image insights, see the [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken) query parameter. The modules query parameter affects the fields that Bing includes in the response. If you set [modules](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#modulesrequested) to only Caption, then this object includes only the imageCaption field.
func (ImageInsights) AsAggregateOffer ¶
func (ii ImageInsights) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsAnswer ¶
func (ii ImageInsights) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicAnswer ¶
func (ii ImageInsights) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicCollectionPage ¶
func (ii ImageInsights) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicCreativeWork ¶
func (ii ImageInsights) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicIdentifiable ¶
func (ii ImageInsights) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicIntangible ¶
func (ii ImageInsights) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicMediaObject ¶
func (ii ImageInsights) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicOffer ¶
func (ii ImageInsights) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicResponse ¶
func (ii ImageInsights) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicResponseBase ¶
func (ii ImageInsights) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicSearchResultsAnswer ¶
func (ii ImageInsights) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicStructuredValue ¶
func (ii ImageInsights) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicThing ¶
func (ii ImageInsights) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsBasicWebPage ¶
func (ii ImageInsights) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsCollectionPage ¶
func (ii ImageInsights) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsCreativeWork ¶
func (ii ImageInsights) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsErrorResponse ¶
func (ii ImageInsights) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsIdentifiable ¶
func (ii ImageInsights) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsImageGallery ¶
func (ii ImageInsights) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsImageInsights ¶
func (ii ImageInsights) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsImageObject ¶
func (ii ImageInsights) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsImages ¶
func (ii ImageInsights) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsIntangible ¶
func (ii ImageInsights) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsMediaObject ¶
func (ii ImageInsights) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsNormalizedRectangle ¶
func (ii ImageInsights) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsOffer ¶
func (ii ImageInsights) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsOrganization ¶
func (ii ImageInsights) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsPerson ¶
func (ii ImageInsights) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsRecipe ¶
func (ii ImageInsights) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsRecognizedEntity ¶
func (ii ImageInsights) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsRecognizedEntityRegion ¶
func (ii ImageInsights) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsResponse ¶
func (ii ImageInsights) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsResponseBase ¶
func (ii ImageInsights) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsSearchResultsAnswer ¶
func (ii ImageInsights) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsStructuredValue ¶
func (ii ImageInsights) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsThing ¶
func (ii ImageInsights) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsTrendingImages ¶
func (ii ImageInsights) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) AsWebPage ¶
func (ii ImageInsights) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for ImageInsights.
func (ImageInsights) MarshalJSON ¶
func (ii ImageInsights) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageInsights.
type ImageInsightsImageCaption ¶
type ImageInsightsImageCaption struct { // Caption - A caption about the image. Caption *string `json:"caption,omitempty"` // DataSourceURL - The URL to the website where the caption was found. You must attribute the caption to the source. For example, by displaying the domain name from the URL next to the caption and using the URL to link to the source website. DataSourceURL *string `json:"dataSourceUrl,omitempty"` // RelatedSearches - A list of entities found in the caption. Use the contents of the Query object to find the entity in the caption and create a link. The link takes the user to images of the entity. RelatedSearches *[]Query `json:"relatedSearches,omitempty"` }
ImageInsightsImageCaption defines an image's caption.
type ImageLicense ¶
type ImageLicense string
ImageLicense enumerates the values for image license.
const ( // ImageLicenseAll ... ImageLicenseAll ImageLicense = "All" // ImageLicenseAny ... ImageLicenseAny ImageLicense = "Any" // ImageLicenseModify ... ImageLicenseModify ImageLicense = "Modify" // ImageLicenseModifyCommercially ... ImageLicenseModifyCommercially ImageLicense = "ModifyCommercially" // ImageLicensePublic ... ImageLicensePublic ImageLicense = "Public" ImageLicenseShare ImageLicense = "Share" ImageLicenseShareCommercially ImageLicense = "ShareCommercially" )
func PossibleImageLicenseValues ¶
func PossibleImageLicenseValues() []ImageLicense
PossibleImageLicenseValues returns an array of possible values for the ImageLicense const type.
type ImageObject ¶
type ImageObject struct { // Thumbnail - READ-ONLY; The URL to a thumbnail of the image Thumbnail *ImageObject `json:"thumbnail,omitempty"` // ImageInsightsToken - READ-ONLY; The token that you use in a subsequent call to the Image Search API to get additional information about the image. For information about using this token, see the insightsToken query parameter. ImageInsightsToken *string `json:"imageInsightsToken,omitempty"` // InsightsMetadata - READ-ONLY; A count of the number of websites where you can shop or perform other actions related to the image. For example, if the image is of an apple pie, this object includes a count of the number of websites where you can buy an apple pie. To indicate the number of offers in your UX, include badging such as a shopping cart icon that contains the count. When the user clicks on the icon, use imageInsightsToken to get the list of websites. InsightsMetadata *ImagesImageMetadata `json:"insightsMetadata,omitempty"` // ImageID - READ-ONLY; Unique Id for the image ImageID *string `json:"imageId,omitempty"` // AccentColor - READ-ONLY; A three-byte hexadecimal number that represents the color that dominates the image. Use the color as the temporary background in your client until the image is loaded. AccentColor *string `json:"accentColor,omitempty"` // VisualWords - READ-ONLY; Visual representation of the image. Used for getting more sizes VisualWords *string `json:"visualWords,omitempty"` // ContentURL - READ-ONLY; Original URL to retrieve the source (file) for the media object (e.g the source URL for the image). ContentURL *string `json:"contentUrl,omitempty"` // HostPageURL - READ-ONLY; URL of the page that hosts the media object. HostPageURL *string `json:"hostPageUrl,omitempty"` // ContentSize - READ-ONLY; Size of the media object content (use format "value unit" e.g "1024 B"). ContentSize *string `json:"contentSize,omitempty"` // EncodingFormat - READ-ONLY; Encoding format (e.g mp3, mp4, jpeg, etc). EncodingFormat *string `json:"encodingFormat,omitempty"` // HostPageDisplayURL - READ-ONLY; Display URL of the page that hosts the media object. HostPageDisplayURL *string `json:"hostPageDisplayUrl,omitempty"` // Width - READ-ONLY; The width of the source media object, in pixels. Width *int32 `json:"width,omitempty"` // Height - READ-ONLY; The height of the source media object, in pixels. Height *int32 `json:"height,omitempty"` // ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item. ThumbnailURL *string `json:"thumbnailUrl,omitempty"` // Provider - READ-ONLY; The source of the creative work. Provider *[]BasicThing `json:"provider,omitempty"` // DatePublished - READ-ONLY; The date on which the CreativeWork was published. DatePublished *string `json:"datePublished,omitempty"` // Text - READ-ONLY; Text content of this creative work Text *string `json:"text,omitempty"` // Name - READ-ONLY; The name of the thing represented by this object. Name *string `json:"name,omitempty"` // URL - READ-ONLY; The URL to get more information about the thing represented by this object. URL *string `json:"url,omitempty"` // Image - READ-ONLY; An image of the item. Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // AlternateName - READ-ONLY; An alias for the item AlternateName *string `json:"alternateName,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
ImageObject defines an image
func (ImageObject) AsAggregateOffer ¶
func (ioVar ImageObject) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsAnswer ¶
func (ioVar ImageObject) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicAnswer ¶
func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicCollectionPage ¶
func (ioVar ImageObject) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicCreativeWork ¶
func (ioVar ImageObject) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicIdentifiable ¶
func (ioVar ImageObject) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicIntangible ¶
func (ioVar ImageObject) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicMediaObject ¶
func (ioVar ImageObject) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicOffer ¶
func (ioVar ImageObject) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicResponse ¶
func (ioVar ImageObject) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicResponseBase ¶
func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicSearchResultsAnswer ¶
func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicStructuredValue ¶
func (ioVar ImageObject) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicThing ¶
func (ioVar ImageObject) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicWebPage ¶
func (ioVar ImageObject) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsCollectionPage ¶
func (ioVar ImageObject) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsCreativeWork ¶
func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsErrorResponse ¶
func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsIdentifiable ¶
func (ioVar ImageObject) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsImageGallery ¶
func (ioVar ImageObject) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsImageInsights ¶
func (ioVar ImageObject) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsImageObject ¶
func (ioVar ImageObject) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsImages ¶
func (ioVar ImageObject) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsIntangible ¶
func (ioVar ImageObject) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsMediaObject ¶
func (ioVar ImageObject) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsNormalizedRectangle ¶
func (ioVar ImageObject) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsOffer ¶
func (ioVar ImageObject) AsOffer() (*Offer, bool)
AsOffer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsOrganization ¶
func (ioVar ImageObject) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsPerson ¶
func (ioVar ImageObject) AsPerson() (*Person, bool)
AsPerson is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsRecipe ¶
func (ioVar ImageObject) AsRecipe() (*Recipe, bool)
AsRecipe is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsRecognizedEntity ¶
func (ioVar ImageObject) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsRecognizedEntityRegion ¶
func (ioVar ImageObject) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsResponse ¶
func (ioVar ImageObject) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsResponseBase ¶
func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsSearchResultsAnswer ¶
func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsStructuredValue ¶
func (ioVar ImageObject) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsThing ¶
func (ioVar ImageObject) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsTrendingImages ¶
func (ioVar ImageObject) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsWebPage ¶
func (ioVar ImageObject) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for ImageObject.
func (ImageObject) MarshalJSON ¶
func (ioVar ImageObject) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageObject.
func (*ImageObject) UnmarshalJSON ¶
func (ioVar *ImageObject) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ImageObject struct.
type ImageSize ¶
type ImageSize string
ImageSize enumerates the values for image size.
const ( // ImageSizeAll ... ImageSizeAll ImageSize = "All" // ImageSizeLarge ... ImageSizeLarge ImageSize = "Large" // ImageSizeMedium ... ImageSizeMedium ImageSize = "Medium" // ImageSizeSmall ... ImageSizeSmall ImageSize = "Small" // ImageSizeWallpaper ... ImageSizeWallpaper ImageSize = "Wallpaper" )
func PossibleImageSizeValues ¶
func PossibleImageSizeValues() []ImageSize
PossibleImageSizeValues returns an array of possible values for the ImageSize const type.
type ImageTagsModule ¶
type ImageTagsModule struct { // Value - A list of tags that describe the characteristics of the content found in the image. For example, if the image is of a musical artist, the list might include Female, Dress, and Music to indicate the person is female music artist that's wearing a dress. Value *[]InsightsTag `json:"value,omitempty"` }
ImageTagsModule defines the characteristics of content found in an image.
type ImageType ¶
type ImageType string
ImageType enumerates the values for image type.
func PossibleImageTypeValues ¶
func PossibleImageTypeValues() []ImageType
PossibleImageTypeValues returns an array of possible values for the ImageType const type.
type Images ¶
type Images struct { autorest.Response `json:"-"` // NextOffset - READ-ONLY; Used as part of deduping. Tells client the next offset that client should use in the next pagination request NextOffset *int32 `json:"nextOffset,omitempty"` // Value - A list of image objects that are relevant to the query. If there are no results, the List is empty. Value *[]ImageObject `json:"value,omitempty"` // QueryExpansions - READ-ONLY; A list of expanded queries that narrows the original query. For example, if the query was Microsoft Surface, the expanded queries might be: Microsoft Surface Pro 3, Microsoft Surface RT, Microsoft Surface Phone, and Microsoft Surface Hub. QueryExpansions *[]Query `json:"queryExpansions,omitempty"` // PivotSuggestions - READ-ONLY; A list of segments in the original query. For example, if the query was Red Flowers, Bing might segment the query into Red and Flowers. The Flowers pivot may contain query suggestions such as Red Peonies and Red Daisies, and the Red pivot may contain query suggestions such as Green Flowers and Yellow Flowers. PivotSuggestions *[]PivotSuggestions `json:"pivotSuggestions,omitempty"` // SimilarTerms - READ-ONLY; A list of terms that are similar in meaning to the user's query term. SimilarTerms *[]Query `json:"similarTerms,omitempty"` // TotalEstimatedMatches - READ-ONLY; The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results. TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"` // ReadLink - READ-ONLY; The URL that returns this resource. ReadLink *string `json:"readLink,omitempty"` // WebSearchURL - READ-ONLY; The URL To Bing's search result for this item. WebSearchURL *string `json:"webSearchUrl,omitempty"` // ID - READ-ONLY; A String identifier. ID *string `json:"id,omitempty"` // Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Images defines an image answer
func (Images) AsAggregateOffer ¶
func (i Images) AsAggregateOffer() (*AggregateOffer, bool)
AsAggregateOffer is the BasicResponseBase implementation for Images.
func (Images) AsBasicAnswer ¶
func (i Images) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Images.
func (Images) AsBasicCollectionPage ¶
func (i Images) AsBasicCollectionPage() (BasicCollectionPage, bool)
AsBasicCollectionPage is the BasicResponseBase implementation for Images.
func (Images) AsBasicCreativeWork ¶
func (i Images) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Images.
func (Images) AsBasicIdentifiable ¶
func (i Images) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Images.
func (Images) AsBasicIntangible ¶
func (i Images) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Images.
func (Images) AsBasicMediaObject ¶
func (i Images) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Images.
func (Images) AsBasicOffer ¶
func (i Images) AsBasicOffer() (BasicOffer, bool)
AsBasicOffer is the BasicResponseBase implementation for Images.
func (Images) AsBasicResponse ¶
func (i Images) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Images.
func (Images) AsBasicResponseBase ¶
func (i Images) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Images.
func (Images) AsBasicSearchResultsAnswer ¶
func (i Images) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Images.
func (Images) AsBasicStructuredValue ¶
func (i Images) AsBasicStructuredValue() (BasicStructuredValue, bool)
AsBasicStructuredValue is the BasicResponseBase implementation for Images.
func (Images) AsBasicThing ¶
func (i Images) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Images.
func (Images) AsBasicWebPage ¶
func (i Images) AsBasicWebPage() (BasicWebPage, bool)
AsBasicWebPage is the BasicResponseBase implementation for Images.
func (Images) AsCollectionPage ¶
func (i Images) AsCollectionPage() (*CollectionPage, bool)
AsCollectionPage is the BasicResponseBase implementation for Images.
func (Images) AsCreativeWork ¶
func (i Images) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Images.
func (Images) AsErrorResponse ¶
func (i Images) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Images.
func (Images) AsIdentifiable ¶
func (i Images) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Images.
func (Images) AsImageGallery ¶
func (i Images) AsImageGallery() (*ImageGallery, bool)
AsImageGallery is the BasicResponseBase implementation for Images.
func (Images) AsImageInsights ¶
func (i Images) AsImageInsights() (*ImageInsights, bool)
AsImageInsights is the BasicResponseBase implementation for Images.
func (Images) AsImageObject ¶
func (i Images) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Images.
func (Images) AsIntangible ¶
func (i Images) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Images.
func (Images) AsMediaObject ¶
func (i Images) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Images.
func (Images) AsNormalizedRectangle ¶
func (i Images) AsNormalizedRectangle() (*NormalizedRectangle, bool)
AsNormalizedRectangle is the BasicResponseBase implementation for Images.
func (Images) AsOrganization ¶
func (i Images) AsOrganization() (*Organization, bool)
AsOrganization is the BasicResponseBase implementation for Images.
func (Images) AsRecognizedEntity ¶
func (i Images) AsRecognizedEntity() (*RecognizedEntity, bool)
AsRecognizedEntity is the BasicResponseBase implementation for Images.
func (Images) AsRecognizedEntityRegion ¶
func (i Images) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
AsRecognizedEntityRegion is the BasicResponseBase implementation for Images.
func (Images) AsResponse ¶
AsResponse is the BasicResponseBase implementation for Images.
func (Images) AsResponseBase ¶
func (i Images) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Images.
func (Images) AsSearchResultsAnswer ¶
func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Images.
func (Images) AsStructuredValue ¶
func (i Images) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Images.
func (Images) AsTrendingImages ¶
func (i Images) AsTrendingImages() (*TrendingImages, bool)
AsTrendingImages is the BasicResponseBase implementation for Images.
func (Images) MarshalJSON ¶
MarshalJSON is the custom marshaler for Images.
type ImagesClient ¶
type ImagesClient struct {
BaseClient
}
ImagesClient is the the Image Search API lets you send a search query to Bing and get back a list of relevant images. This section provides technical details about the query parameters and headers that you use to request images and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Images](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/search-the-web).
func NewImagesClient ¶
func NewImagesClient() ImagesClient
NewImagesClient creates an instance of the ImagesClient client.
func (ImagesClient) Details ¶
func (client ImagesClient) Details(ctx context.Context, query string, acceptLanguage string, contentType string, userAgent string, clientID string, clientIP string, location string, cropBottom *float64, cropLeft *float64, cropRight *float64, cropTop *float64, cropType ImageCropType, countryCode string, ID string, imageURL string, insightsToken string, modules []ImageInsightModule, market string, safeSearch SafeSearch, setLang string) (result ImageInsights, err error)
Details sends the details request. Parameters: query - the user's search query term. The term cannot be empty. The term may contain [Bing Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit images to a specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. To help improve relevance of an insights query (see [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken)), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API. acceptLanguage - a comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language. contentType - optional request header. If you set the [modules](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#modulesrequested) query parameter to RecognizedEntities, you may specify the binary of an image in the body of a POST request. If you specify the image in the body of a POST request, you must specify this header and set its value to multipart/form-data. The maximum image size is 1 MB. userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are encouraged to always specify this header. The user-agent should be the same string that any commonly used browser sends. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The following are examples of user-agent strings. Windows Phone: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53 clientID - bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights new features and improvements, and it uses the client ID as a key for assigning traffic on different flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an inconsistent user experience. For example, if the second request has a different flight assignment than the first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that client ID’s search history, providing a richer experience for the user. Bing also uses this header to help improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client ID across multiple requests for the same end user and device combination enables 1) the API consumer to receive a consistent user experience, and 2) higher click-through rates via better quality of results from the Bing APIs. Each user that uses your application on the devi