Documentation ¶
Overview ¶
Package websearch implements the Azure ARM Websearch service API version 1.0.
The Web Search API lets you send a search query to Bing and get back search results that include links to webpages, images, and more.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type Answer
- func (a Answer) AsAnswer() (*Answer, bool)
- func (a Answer) AsArticle() (*Article, bool)
- func (a Answer) AsBasicAnswer() (BasicAnswer, bool)
- func (a Answer) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (a Answer) AsBasicThing() (BasicThing, bool)
- func (a Answer) AsComputation() (*Computation, bool)
- func (a Answer) AsCreativeWork() (*CreativeWork, bool)
- func (a Answer) AsErrorResponse() (*ErrorResponse, bool)
- func (a Answer) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (a Answer) AsNewsArticle() (*NewsArticle, bool)
- func (a Answer) AsPlaces() (*Places, bool)
- func (a Answer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (a Answer) AsResponse() (*Response, bool)
- func (a Answer) AsResponseBase() (*ResponseBase, bool)
- func (a Answer) AsSearchResponse() (*SearchResponse, bool)
- func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (a Answer) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (a Answer) AsStructuredValue() (*StructuredValue, bool)
- func (a Answer) AsThing() (*Thing, bool)
- func (a Answer) AsTimeZone() (*TimeZone, bool)
- func (a Answer) AsVideoObject() (*VideoObject, bool)
- func (a Answer) AsVideos() (*Videos, bool)
- func (a Answer) AsWebPage() (*WebPage, bool)
- func (a Answer) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (a Answer) MarshalJSON() ([]byte, error)
- type AnswerType
- type Article
- func (a Article) AsAnswer() (*Answer, bool)
- func (a Article) AsArticle() (*Article, bool)
- func (a Article) AsBasicAnswer() (BasicAnswer, bool)
- func (a Article) AsBasicArticle() (BasicArticle, bool)
- func (a Article) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (a Article) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (a Article) AsBasicIntangible() (BasicIntangible, bool)
- func (a Article) AsBasicMediaObject() (BasicMediaObject, bool)
- func (a Article) AsBasicResponse() (BasicResponse, bool)
- func (a Article) AsBasicResponseBase() (BasicResponseBase, bool)
- func (a Article) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (a Article) AsBasicThing() (BasicThing, bool)
- func (a Article) AsComputation() (*Computation, bool)
- func (a Article) AsCreativeWork() (*CreativeWork, bool)
- func (a Article) AsErrorResponse() (*ErrorResponse, bool)
- func (a Article) AsIdentifiable() (*Identifiable, bool)
- func (a Article) AsImageObject() (*ImageObject, bool)
- func (a Article) AsImages() (*Images, bool)
- func (a Article) AsIntangible() (*Intangible, bool)
- func (a Article) AsMediaObject() (*MediaObject, bool)
- func (a Article) AsNews() (*News, bool)
- func (a Article) AsNewsArticle() (*NewsArticle, bool)
- func (a Article) AsPlaces() (*Places, bool)
- func (a Article) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (a Article) AsResponse() (*Response, bool)
- func (a Article) AsResponseBase() (*ResponseBase, bool)
- func (a Article) AsSearchResponse() (*SearchResponse, bool)
- func (a Article) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (a Article) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (a Article) AsStructuredValue() (*StructuredValue, bool)
- func (a Article) AsThing() (*Thing, bool)
- func (a Article) AsTimeZone() (*TimeZone, bool)
- func (a Article) AsVideoObject() (*VideoObject, bool)
- func (a Article) AsVideos() (*Videos, bool)
- func (a Article) AsWebPage() (*WebPage, bool)
- func (a Article) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (a Article) MarshalJSON() ([]byte, error)
- func (a *Article) UnmarshalJSON(body []byte) error
- type BaseClient
- type BasicAnswer
- type BasicArticle
- type BasicCreativeWork
- type BasicIdentifiable
- type BasicIntangible
- type BasicMediaObject
- type BasicResponse
- type BasicResponseBase
- type BasicSearchResultsAnswer
- type BasicThing
- type BasicWebWebGrouping
- type Computation
- func (c Computation) AsAnswer() (*Answer, bool)
- func (c Computation) AsArticle() (*Article, bool)
- func (c Computation) AsBasicAnswer() (BasicAnswer, bool)
- func (c Computation) AsBasicArticle() (BasicArticle, bool)
- func (c Computation) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (c Computation) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (c Computation) AsBasicIntangible() (BasicIntangible, bool)
- func (c Computation) AsBasicMediaObject() (BasicMediaObject, bool)
- func (c Computation) AsBasicResponse() (BasicResponse, bool)
- func (c Computation) AsBasicResponseBase() (BasicResponseBase, bool)
- func (c Computation) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (c Computation) AsBasicThing() (BasicThing, bool)
- func (c Computation) AsComputation() (*Computation, bool)
- func (c Computation) AsCreativeWork() (*CreativeWork, bool)
- func (c Computation) AsErrorResponse() (*ErrorResponse, bool)
- func (c Computation) AsIdentifiable() (*Identifiable, bool)
- func (c Computation) AsImageObject() (*ImageObject, bool)
- func (c Computation) AsImages() (*Images, bool)
- func (c Computation) AsIntangible() (*Intangible, bool)
- func (c Computation) AsMediaObject() (*MediaObject, bool)
- func (c Computation) AsNews() (*News, bool)
- func (c Computation) AsNewsArticle() (*NewsArticle, bool)
- func (c Computation) AsPlaces() (*Places, bool)
- func (c Computation) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (c Computation) AsResponse() (*Response, bool)
- func (c Computation) AsResponseBase() (*ResponseBase, bool)
- func (c Computation) AsSearchResponse() (*SearchResponse, bool)
- func (c Computation) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (c Computation) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (c Computation) AsStructuredValue() (*StructuredValue, bool)
- func (c Computation) AsThing() (*Thing, bool)
- func (c Computation) AsTimeZone() (*TimeZone, bool)
- func (c Computation) AsVideoObject() (*VideoObject, bool)
- func (c Computation) AsVideos() (*Videos, bool)
- func (c Computation) AsWebPage() (*WebPage, bool)
- func (c Computation) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (c Computation) MarshalJSON() ([]byte, error)
- type CreativeWork
- func (cw CreativeWork) AsAnswer() (*Answer, bool)
- func (cw CreativeWork) AsArticle() (*Article, bool)
- func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool)
- func (cw CreativeWork) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool)
- func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (cw CreativeWork) AsBasicThing() (BasicThing, bool)
- func (cw CreativeWork) AsComputation() (*Computation, bool)
- func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool)
- func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool)
- func (cw CreativeWork) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (cw CreativeWork) AsNewsArticle() (*NewsArticle, bool)
- func (cw CreativeWork) AsPlaces() (*Places, bool)
- func (cw CreativeWork) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (cw CreativeWork) AsResponse() (*Response, bool)
- func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool)
- func (cw CreativeWork) AsSearchResponse() (*SearchResponse, bool)
- func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (cw CreativeWork) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (cw CreativeWork) AsStructuredValue() (*StructuredValue, bool)
- func (cw CreativeWork) AsThing() (*Thing, bool)
- func (cw CreativeWork) AsTimeZone() (*TimeZone, bool)
- func (cw CreativeWork) AsVideoObject() (*VideoObject, bool)
- func (cw CreativeWork) AsVideos() (*Videos, bool)
- func (cw CreativeWork) AsWebPage() (*WebPage, bool)
- func (cw CreativeWork) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (cw CreativeWork) MarshalJSON() ([]byte, error)
- func (cw *CreativeWork) UnmarshalJSON(body []byte) error
- type Error
- type ErrorCode
- type ErrorResponse
- func (er ErrorResponse) AsAnswer() (*Answer, bool)
- func (er ErrorResponse) AsArticle() (*Article, bool)
- func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool)
- func (er ErrorResponse) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool)
- func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (er ErrorResponse) AsBasicThing() (BasicThing, bool)
- func (er ErrorResponse) AsComputation() (*Computation, bool)
- func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool)
- func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool)
- func (er ErrorResponse) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (er ErrorResponse) AsNewsArticle() (*NewsArticle, bool)
- func (er ErrorResponse) AsPlaces() (*Places, bool)
- func (er ErrorResponse) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (er ErrorResponse) AsResponse() (*Response, bool)
- func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool)
- func (er ErrorResponse) AsSearchResponse() (*SearchResponse, bool)
- func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (er ErrorResponse) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (er ErrorResponse) AsStructuredValue() (*StructuredValue, bool)
- func (er ErrorResponse) AsThing() (*Thing, bool)
- func (er ErrorResponse) AsTimeZone() (*TimeZone, bool)
- func (er ErrorResponse) AsVideoObject() (*VideoObject, bool)
- func (er ErrorResponse) AsVideos() (*Videos, bool)
- func (er ErrorResponse) AsWebPage() (*WebPage, bool)
- func (er ErrorResponse) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (er ErrorResponse) MarshalJSON() ([]byte, error)
- type ErrorSubCode
- type Freshness
- type Identifiable
- func (i Identifiable) AsAnswer() (*Answer, bool)
- func (i Identifiable) AsArticle() (*Article, bool)
- func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool)
- func (i Identifiable) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool)
- func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (i Identifiable) AsBasicThing() (BasicThing, bool)
- func (i Identifiable) AsComputation() (*Computation, bool)
- func (i Identifiable) AsCreativeWork() (*CreativeWork, bool)
- func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool)
- func (i Identifiable) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (i Identifiable) AsNewsArticle() (*NewsArticle, bool)
- func (i Identifiable) AsPlaces() (*Places, bool)
- func (i Identifiable) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (i Identifiable) AsResponse() (*Response, bool)
- func (i Identifiable) AsResponseBase() (*ResponseBase, bool)
- func (i Identifiable) AsSearchResponse() (*SearchResponse, bool)
- func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (i Identifiable) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (i Identifiable) AsStructuredValue() (*StructuredValue, bool)
- func (i Identifiable) AsThing() (*Thing, bool)
- func (i Identifiable) AsTimeZone() (*TimeZone, bool)
- func (i Identifiable) AsVideoObject() (*VideoObject, bool)
- func (i Identifiable) AsVideos() (*Videos, bool)
- func (i Identifiable) AsWebPage() (*WebPage, bool)
- func (i Identifiable) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (i Identifiable) MarshalJSON() ([]byte, error)
- type ImageObject
- func (ioVar ImageObject) AsAnswer() (*Answer, bool)
- func (ioVar ImageObject) AsArticle() (*Article, bool)
- func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool)
- func (ioVar ImageObject) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool)
- func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (ioVar ImageObject) AsBasicThing() (BasicThing, bool)
- func (ioVar ImageObject) AsComputation() (*Computation, bool)
- func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool)
- func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool)
- func (ioVar ImageObject) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (ioVar ImageObject) AsNewsArticle() (*NewsArticle, bool)
- func (ioVar ImageObject) AsPlaces() (*Places, bool)
- func (ioVar ImageObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (ioVar ImageObject) AsResponse() (*Response, bool)
- func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool)
- func (ioVar ImageObject) AsSearchResponse() (*SearchResponse, bool)
- func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (ioVar ImageObject) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (ioVar ImageObject) AsStructuredValue() (*StructuredValue, bool)
- func (ioVar ImageObject) AsThing() (*Thing, bool)
- func (ioVar ImageObject) AsTimeZone() (*TimeZone, bool)
- func (ioVar ImageObject) AsVideoObject() (*VideoObject, bool)
- func (ioVar ImageObject) AsVideos() (*Videos, bool)
- func (ioVar ImageObject) AsWebPage() (*WebPage, bool)
- func (ioVar ImageObject) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (ioVar ImageObject) MarshalJSON() ([]byte, error)
- func (ioVar *ImageObject) UnmarshalJSON(body []byte) error
- type Images
- func (i Images) AsAnswer() (*Answer, bool)
- func (i Images) AsArticle() (*Article, bool)
- func (i Images) AsBasicAnswer() (BasicAnswer, bool)
- func (i Images) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (i Images) AsBasicResponseBase() (BasicResponseBase, bool)
- func (i Images) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (i Images) AsBasicThing() (BasicThing, bool)
- func (i Images) AsComputation() (*Computation, bool)
- func (i Images) AsCreativeWork() (*CreativeWork, bool)
- func (i Images) AsErrorResponse() (*ErrorResponse, bool)
- func (i Images) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (i Images) AsNewsArticle() (*NewsArticle, bool)
- func (i Images) AsPlaces() (*Places, bool)
- func (i Images) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (i Images) AsResponse() (*Response, bool)
- func (i Images) AsResponseBase() (*ResponseBase, bool)
- func (i Images) AsSearchResponse() (*SearchResponse, bool)
- func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (i Images) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (i Images) AsStructuredValue() (*StructuredValue, bool)
- func (i Images) AsThing() (*Thing, bool)
- func (i Images) AsTimeZone() (*TimeZone, bool)
- func (i Images) AsVideoObject() (*VideoObject, bool)
- func (i Images) AsVideos() (*Videos, bool)
- func (i Images) AsWebPage() (*WebPage, bool)
- func (i Images) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (i Images) MarshalJSON() ([]byte, error)
- type Intangible
- func (i Intangible) AsAnswer() (*Answer, bool)
- func (i Intangible) AsArticle() (*Article, bool)
- func (i Intangible) AsBasicAnswer() (BasicAnswer, bool)
- func (i Intangible) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (i Intangible) AsBasicResponseBase() (BasicResponseBase, bool)
- func (i Intangible) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (i Intangible) AsBasicThing() (BasicThing, bool)
- func (i Intangible) AsComputation() (*Computation, bool)
- func (i Intangible) AsCreativeWork() (*CreativeWork, bool)
- func (i Intangible) AsErrorResponse() (*ErrorResponse, bool)
- func (i Intangible) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (i Intangible) AsNewsArticle() (*NewsArticle, bool)
- func (i Intangible) AsPlaces() (*Places, bool)
- func (i Intangible) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (i Intangible) AsResponse() (*Response, bool)
- func (i Intangible) AsResponseBase() (*ResponseBase, bool)
- func (i Intangible) AsSearchResponse() (*SearchResponse, bool)
- func (i Intangible) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (i Intangible) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (i Intangible) AsStructuredValue() (*StructuredValue, bool)
- func (i Intangible) AsThing() (*Thing, bool)
- func (i Intangible) AsTimeZone() (*TimeZone, bool)
- func (i Intangible) AsVideoObject() (*VideoObject, bool)
- func (i Intangible) AsVideos() (*Videos, bool)
- func (i Intangible) AsWebPage() (*WebPage, bool)
- func (i Intangible) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (i Intangible) MarshalJSON() ([]byte, error)
- type MediaObject
- func (mo MediaObject) AsAnswer() (*Answer, bool)
- func (mo MediaObject) AsArticle() (*Article, bool)
- func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool)
- func (mo MediaObject) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (mo MediaObject) AsBasicResponseBase() (BasicResponseBase, bool)
- func (mo MediaObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (mo MediaObject) AsBasicThing() (BasicThing, bool)
- func (mo MediaObject) AsComputation() (*Computation, bool)
- func (mo MediaObject) AsCreativeWork() (*CreativeWork, bool)
- func (mo MediaObject) AsErrorResponse() (*ErrorResponse, bool)
- func (mo MediaObject) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (mo MediaObject) AsNewsArticle() (*NewsArticle, bool)
- func (mo MediaObject) AsPlaces() (*Places, bool)
- func (mo MediaObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (mo MediaObject) AsResponse() (*Response, bool)
- func (mo MediaObject) AsResponseBase() (*ResponseBase, bool)
- func (mo MediaObject) AsSearchResponse() (*SearchResponse, bool)
- func (mo MediaObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (mo MediaObject) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (mo MediaObject) AsStructuredValue() (*StructuredValue, bool)
- func (mo MediaObject) AsThing() (*Thing, bool)
- func (mo MediaObject) AsTimeZone() (*TimeZone, bool)
- func (mo MediaObject) AsVideoObject() (*VideoObject, bool)
- func (mo MediaObject) AsVideos() (*Videos, bool)
- func (mo MediaObject) AsWebPage() (*WebPage, bool)
- func (mo MediaObject) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (mo MediaObject) MarshalJSON() ([]byte, error)
- func (mo *MediaObject) UnmarshalJSON(body []byte) error
- type News
- func (n News) AsAnswer() (*Answer, bool)
- func (n News) AsArticle() (*Article, bool)
- func (n News) AsBasicAnswer() (BasicAnswer, bool)
- func (n News) AsBasicArticle() (BasicArticle, bool)
- func (n News) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (n News) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (n News) AsBasicIntangible() (BasicIntangible, bool)
- func (n News) AsBasicMediaObject() (BasicMediaObject, bool)
- func (n News) AsBasicResponse() (BasicResponse, bool)
- func (n News) AsBasicResponseBase() (BasicResponseBase, bool)
- func (n News) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (n News) AsBasicThing() (BasicThing, bool)
- func (n News) AsComputation() (*Computation, bool)
- func (n News) AsCreativeWork() (*CreativeWork, bool)
- func (n News) AsErrorResponse() (*ErrorResponse, bool)
- func (n News) AsIdentifiable() (*Identifiable, bool)
- func (n News) AsImageObject() (*ImageObject, bool)
- func (n News) AsImages() (*Images, bool)
- func (n News) AsIntangible() (*Intangible, bool)
- func (n News) AsMediaObject() (*MediaObject, bool)
- func (n News) AsNews() (*News, bool)
- func (n News) AsNewsArticle() (*NewsArticle, bool)
- func (n News) AsPlaces() (*Places, bool)
- func (n News) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (n News) AsResponse() (*Response, bool)
- func (n News) AsResponseBase() (*ResponseBase, bool)
- func (n News) AsSearchResponse() (*SearchResponse, bool)
- func (n News) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (n News) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (n News) AsStructuredValue() (*StructuredValue, bool)
- func (n News) AsThing() (*Thing, bool)
- func (n News) AsTimeZone() (*TimeZone, bool)
- func (n News) AsVideoObject() (*VideoObject, bool)
- func (n News) AsVideos() (*Videos, bool)
- func (n News) AsWebPage() (*WebPage, bool)
- func (n News) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (n News) MarshalJSON() ([]byte, error)
- type NewsArticle
- func (na NewsArticle) AsAnswer() (*Answer, bool)
- func (na NewsArticle) AsArticle() (*Article, bool)
- func (na NewsArticle) AsBasicAnswer() (BasicAnswer, bool)
- func (na NewsArticle) AsBasicArticle() (BasicArticle, bool)
- func (na NewsArticle) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (na NewsArticle) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (na NewsArticle) AsBasicIntangible() (BasicIntangible, bool)
- func (na NewsArticle) AsBasicMediaObject() (BasicMediaObject, bool)
- func (na NewsArticle) AsBasicResponse() (BasicResponse, bool)
- func (na NewsArticle) AsBasicResponseBase() (BasicResponseBase, bool)
- func (na NewsArticle) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (na NewsArticle) AsBasicThing() (BasicThing, bool)
- func (na NewsArticle) AsComputation() (*Computation, bool)
- func (na NewsArticle) AsCreativeWork() (*CreativeWork, bool)
- func (na NewsArticle) AsErrorResponse() (*ErrorResponse, bool)
- func (na NewsArticle) AsIdentifiable() (*Identifiable, bool)
- func (na NewsArticle) AsImageObject() (*ImageObject, bool)
- func (na NewsArticle) AsImages() (*Images, bool)
- func (na NewsArticle) AsIntangible() (*Intangible, bool)
- func (na NewsArticle) AsMediaObject() (*MediaObject, bool)
- func (na NewsArticle) AsNews() (*News, bool)
- func (na NewsArticle) AsNewsArticle() (*NewsArticle, bool)
- func (na NewsArticle) AsPlaces() (*Places, bool)
- func (na NewsArticle) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (na NewsArticle) AsResponse() (*Response, bool)
- func (na NewsArticle) AsResponseBase() (*ResponseBase, bool)
- func (na NewsArticle) AsSearchResponse() (*SearchResponse, bool)
- func (na NewsArticle) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (na NewsArticle) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (na NewsArticle) AsStructuredValue() (*StructuredValue, bool)
- func (na NewsArticle) AsThing() (*Thing, bool)
- func (na NewsArticle) AsTimeZone() (*TimeZone, bool)
- func (na NewsArticle) AsVideoObject() (*VideoObject, bool)
- func (na NewsArticle) AsVideos() (*Videos, bool)
- func (na NewsArticle) AsWebPage() (*WebPage, bool)
- func (na NewsArticle) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (na NewsArticle) MarshalJSON() ([]byte, error)
- func (na *NewsArticle) UnmarshalJSON(body []byte) error
- type Places
- func (p Places) AsAnswer() (*Answer, bool)
- func (p Places) AsArticle() (*Article, bool)
- func (p Places) AsBasicAnswer() (BasicAnswer, bool)
- func (p Places) AsBasicArticle() (BasicArticle, bool)
- func (p Places) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (p Places) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (p Places) AsBasicIntangible() (BasicIntangible, bool)
- func (p Places) AsBasicMediaObject() (BasicMediaObject, bool)
- func (p Places) AsBasicResponse() (BasicResponse, bool)
- func (p Places) AsBasicResponseBase() (BasicResponseBase, bool)
- func (p Places) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (p Places) AsBasicThing() (BasicThing, bool)
- func (p Places) AsComputation() (*Computation, bool)
- func (p Places) AsCreativeWork() (*CreativeWork, bool)
- func (p Places) AsErrorResponse() (*ErrorResponse, bool)
- func (p Places) AsIdentifiable() (*Identifiable, bool)
- func (p Places) AsImageObject() (*ImageObject, bool)
- func (p Places) AsImages() (*Images, bool)
- func (p Places) AsIntangible() (*Intangible, bool)
- func (p Places) AsMediaObject() (*MediaObject, bool)
- func (p Places) AsNews() (*News, bool)
- func (p Places) AsNewsArticle() (*NewsArticle, bool)
- func (p Places) AsPlaces() (*Places, bool)
- func (p Places) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (p Places) AsResponse() (*Response, bool)
- func (p Places) AsResponseBase() (*ResponseBase, bool)
- func (p Places) AsSearchResponse() (*SearchResponse, bool)
- func (p Places) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (p Places) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (p Places) AsStructuredValue() (*StructuredValue, bool)
- func (p Places) AsThing() (*Thing, bool)
- func (p Places) AsTimeZone() (*TimeZone, bool)
- func (p Places) AsVideoObject() (*VideoObject, bool)
- func (p Places) AsVideos() (*Videos, bool)
- func (p Places) AsWebPage() (*WebPage, bool)
- func (p Places) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (p Places) MarshalJSON() ([]byte, error)
- func (p *Places) UnmarshalJSON(body []byte) error
- type Query
- type QueryContext
- type RankingRankingGroup
- type RankingRankingItem
- type RankingRankingResponse
- type RelatedSearchesRelatedSearchAnswer
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsAnswer() (*Answer, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsArticle() (*Article, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicAnswer() (BasicAnswer, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicArticle() (BasicArticle, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicIntangible() (BasicIntangible, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicMediaObject() (BasicMediaObject, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicResponse() (BasicResponse, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicThing() (BasicThing, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsComputation() (*Computation, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsCreativeWork() (*CreativeWork, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsErrorResponse() (*ErrorResponse, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsIdentifiable() (*Identifiable, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsImageObject() (*ImageObject, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsImages() (*Images, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsIntangible() (*Intangible, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsMediaObject() (*MediaObject, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsNews() (*News, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsNewsArticle() (*NewsArticle, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsPlaces() (*Places, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsResponse() (*Response, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsResponseBase() (*ResponseBase, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSearchResponse() (*SearchResponse, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsStructuredValue() (*StructuredValue, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsThing() (*Thing, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsTimeZone() (*TimeZone, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsVideoObject() (*VideoObject, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsVideos() (*Videos, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsWebPage() (*WebPage, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (rsrsa RelatedSearchesRelatedSearchAnswer) MarshalJSON() ([]byte, error)
- type Response
- func (r Response) AsAnswer() (*Answer, bool)
- func (r Response) AsArticle() (*Article, bool)
- func (r Response) AsBasicAnswer() (BasicAnswer, bool)
- func (r Response) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (r Response) AsBasicResponseBase() (BasicResponseBase, bool)
- func (r Response) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (r Response) AsBasicThing() (BasicThing, bool)
- func (r Response) AsComputation() (*Computation, bool)
- func (r Response) AsCreativeWork() (*CreativeWork, bool)
- func (r Response) AsErrorResponse() (*ErrorResponse, bool)
- func (r Response) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (r Response) AsNewsArticle() (*NewsArticle, bool)
- func (r Response) AsPlaces() (*Places, bool)
- func (r Response) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (r Response) AsResponse() (*Response, bool)
- func (r Response) AsResponseBase() (*ResponseBase, bool)
- func (r Response) AsSearchResponse() (*SearchResponse, bool)
- func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (r Response) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (r Response) AsStructuredValue() (*StructuredValue, bool)
- func (r Response) AsThing() (*Thing, bool)
- func (r Response) AsTimeZone() (*TimeZone, bool)
- func (r Response) AsVideoObject() (*VideoObject, bool)
- func (r Response) AsVideos() (*Videos, bool)
- func (r Response) AsWebPage() (*WebPage, bool)
- func (r Response) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (r Response) MarshalJSON() ([]byte, error)
- type ResponseBase
- func (rb ResponseBase) AsAnswer() (*Answer, bool)
- func (rb ResponseBase) AsArticle() (*Article, bool)
- func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool)
- func (rb ResponseBase) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, bool)
- func (rb ResponseBase) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (rb ResponseBase) AsBasicThing() (BasicThing, bool)
- func (rb ResponseBase) AsComputation() (*Computation, bool)
- func (rb ResponseBase) AsCreativeWork() (*CreativeWork, bool)
- func (rb ResponseBase) AsErrorResponse() (*ErrorResponse, bool)
- func (rb ResponseBase) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (rb ResponseBase) AsNewsArticle() (*NewsArticle, bool)
- func (rb ResponseBase) AsPlaces() (*Places, bool)
- func (rb ResponseBase) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (rb ResponseBase) AsResponse() (*Response, bool)
- func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool)
- func (rb ResponseBase) AsSearchResponse() (*SearchResponse, bool)
- func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (rb ResponseBase) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (rb ResponseBase) AsStructuredValue() (*StructuredValue, bool)
- func (rb ResponseBase) AsThing() (*Thing, bool)
- func (rb ResponseBase) AsTimeZone() (*TimeZone, bool)
- func (rb ResponseBase) AsVideoObject() (*VideoObject, bool)
- func (rb ResponseBase) AsVideos() (*Videos, bool)
- func (rb ResponseBase) AsWebPage() (*WebPage, bool)
- func (rb ResponseBase) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (rb ResponseBase) MarshalJSON() ([]byte, error)
- type SafeSearch
- type SearchResponse
- func (sr SearchResponse) AsAnswer() (*Answer, bool)
- func (sr SearchResponse) AsArticle() (*Article, bool)
- func (sr SearchResponse) AsBasicAnswer() (BasicAnswer, bool)
- func (sr SearchResponse) AsBasicArticle() (BasicArticle, bool)
- func (sr SearchResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (sr SearchResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (sr SearchResponse) AsBasicIntangible() (BasicIntangible, bool)
- func (sr SearchResponse) AsBasicMediaObject() (BasicMediaObject, bool)
- func (sr SearchResponse) AsBasicResponse() (BasicResponse, bool)
- func (sr SearchResponse) AsBasicResponseBase() (BasicResponseBase, bool)
- func (sr SearchResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (sr SearchResponse) AsBasicThing() (BasicThing, bool)
- func (sr SearchResponse) AsComputation() (*Computation, bool)
- func (sr SearchResponse) AsCreativeWork() (*CreativeWork, bool)
- func (sr SearchResponse) AsErrorResponse() (*ErrorResponse, bool)
- func (sr SearchResponse) AsIdentifiable() (*Identifiable, bool)
- func (sr SearchResponse) AsImageObject() (*ImageObject, bool)
- func (sr SearchResponse) AsImages() (*Images, bool)
- func (sr SearchResponse) AsIntangible() (*Intangible, bool)
- func (sr SearchResponse) AsMediaObject() (*MediaObject, bool)
- func (sr SearchResponse) AsNews() (*News, bool)
- func (sr SearchResponse) AsNewsArticle() (*NewsArticle, bool)
- func (sr SearchResponse) AsPlaces() (*Places, bool)
- func (sr SearchResponse) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (sr SearchResponse) AsResponse() (*Response, bool)
- func (sr SearchResponse) AsResponseBase() (*ResponseBase, bool)
- func (sr SearchResponse) AsSearchResponse() (*SearchResponse, bool)
- func (sr SearchResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (sr SearchResponse) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (sr SearchResponse) AsStructuredValue() (*StructuredValue, bool)
- func (sr SearchResponse) AsThing() (*Thing, bool)
- func (sr SearchResponse) AsTimeZone() (*TimeZone, bool)
- func (sr SearchResponse) AsVideoObject() (*VideoObject, bool)
- func (sr SearchResponse) AsVideos() (*Videos, bool)
- func (sr SearchResponse) AsWebPage() (*WebPage, bool)
- func (sr SearchResponse) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (sr SearchResponse) MarshalJSON() ([]byte, error)
- type SearchResultsAnswer
- func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool)
- func (sra SearchResultsAnswer) AsArticle() (*Article, bool)
- func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool)
- func (sra SearchResultsAnswer) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool)
- func (sra SearchResultsAnswer) AsComputation() (*Computation, bool)
- func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool)
- func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool)
- func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (sra SearchResultsAnswer) AsNewsArticle() (*NewsArticle, bool)
- func (sra SearchResultsAnswer) AsPlaces() (*Places, bool)
- func (sra SearchResultsAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (sra SearchResultsAnswer) AsResponse() (*Response, bool)
- func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool)
- func (sra SearchResultsAnswer) AsSearchResponse() (*SearchResponse, bool)
- func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (sra SearchResultsAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (sra SearchResultsAnswer) AsStructuredValue() (*StructuredValue, bool)
- func (sra SearchResultsAnswer) AsThing() (*Thing, bool)
- func (sra SearchResultsAnswer) AsTimeZone() (*TimeZone, bool)
- func (sra SearchResultsAnswer) AsVideoObject() (*VideoObject, bool)
- func (sra SearchResultsAnswer) AsVideos() (*Videos, bool)
- func (sra SearchResultsAnswer) AsWebPage() (*WebPage, bool)
- func (sra SearchResultsAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error)
- type SpellSuggestions
- func (ss SpellSuggestions) AsAnswer() (*Answer, bool)
- func (ss SpellSuggestions) AsArticle() (*Article, bool)
- func (ss SpellSuggestions) AsBasicAnswer() (BasicAnswer, bool)
- func (ss SpellSuggestions) AsBasicArticle() (BasicArticle, bool)
- func (ss SpellSuggestions) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (ss SpellSuggestions) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (ss SpellSuggestions) AsBasicIntangible() (BasicIntangible, bool)
- func (ss SpellSuggestions) AsBasicMediaObject() (BasicMediaObject, bool)
- func (ss SpellSuggestions) AsBasicResponse() (BasicResponse, bool)
- func (ss SpellSuggestions) AsBasicResponseBase() (BasicResponseBase, bool)
- func (ss SpellSuggestions) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (ss SpellSuggestions) AsBasicThing() (BasicThing, bool)
- func (ss SpellSuggestions) AsComputation() (*Computation, bool)
- func (ss SpellSuggestions) AsCreativeWork() (*CreativeWork, bool)
- func (ss SpellSuggestions) AsErrorResponse() (*ErrorResponse, bool)
- func (ss SpellSuggestions) AsIdentifiable() (*Identifiable, bool)
- func (ss SpellSuggestions) AsImageObject() (*ImageObject, bool)
- func (ss SpellSuggestions) AsImages() (*Images, bool)
- func (ss SpellSuggestions) AsIntangible() (*Intangible, bool)
- func (ss SpellSuggestions) AsMediaObject() (*MediaObject, bool)
- func (ss SpellSuggestions) AsNews() (*News, bool)
- func (ss SpellSuggestions) AsNewsArticle() (*NewsArticle, bool)
- func (ss SpellSuggestions) AsPlaces() (*Places, bool)
- func (ss SpellSuggestions) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (ss SpellSuggestions) AsResponse() (*Response, bool)
- func (ss SpellSuggestions) AsResponseBase() (*ResponseBase, bool)
- func (ss SpellSuggestions) AsSearchResponse() (*SearchResponse, bool)
- func (ss SpellSuggestions) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (ss SpellSuggestions) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (ss SpellSuggestions) AsStructuredValue() (*StructuredValue, bool)
- func (ss SpellSuggestions) AsThing() (*Thing, bool)
- func (ss SpellSuggestions) AsTimeZone() (*TimeZone, bool)
- func (ss SpellSuggestions) AsVideoObject() (*VideoObject, bool)
- func (ss SpellSuggestions) AsVideos() (*Videos, bool)
- func (ss SpellSuggestions) AsWebPage() (*WebPage, bool)
- func (ss SpellSuggestions) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (ss SpellSuggestions) MarshalJSON() ([]byte, error)
- type StructuredValue
- func (sv StructuredValue) AsAnswer() (*Answer, bool)
- func (sv StructuredValue) AsArticle() (*Article, bool)
- func (sv StructuredValue) AsBasicAnswer() (BasicAnswer, bool)
- func (sv StructuredValue) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (sv StructuredValue) AsBasicResponseBase() (BasicResponseBase, bool)
- func (sv StructuredValue) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (sv StructuredValue) AsBasicThing() (BasicThing, bool)
- func (sv StructuredValue) AsComputation() (*Computation, bool)
- func (sv StructuredValue) AsCreativeWork() (*CreativeWork, bool)
- func (sv StructuredValue) AsErrorResponse() (*ErrorResponse, bool)
- func (sv StructuredValue) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (sv StructuredValue) AsNewsArticle() (*NewsArticle, bool)
- func (sv StructuredValue) AsPlaces() (*Places, bool)
- func (sv StructuredValue) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (sv StructuredValue) AsResponse() (*Response, bool)
- func (sv StructuredValue) AsResponseBase() (*ResponseBase, bool)
- func (sv StructuredValue) AsSearchResponse() (*SearchResponse, bool)
- func (sv StructuredValue) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (sv StructuredValue) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (sv StructuredValue) AsStructuredValue() (*StructuredValue, bool)
- func (sv StructuredValue) AsThing() (*Thing, bool)
- func (sv StructuredValue) AsTimeZone() (*TimeZone, bool)
- func (sv StructuredValue) AsVideoObject() (*VideoObject, bool)
- func (sv StructuredValue) AsVideos() (*Videos, bool)
- func (sv StructuredValue) AsWebPage() (*WebPage, bool)
- func (sv StructuredValue) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (sv StructuredValue) MarshalJSON() ([]byte, error)
- type TextFormat
- type Thing
- func (t Thing) AsAnswer() (*Answer, bool)
- func (t Thing) AsArticle() (*Article, bool)
- func (t Thing) AsBasicAnswer() (BasicAnswer, bool)
- func (t Thing) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool)
- func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (t Thing) AsBasicThing() (BasicThing, bool)
- func (t Thing) AsComputation() (*Computation, bool)
- func (t Thing) AsCreativeWork() (*CreativeWork, bool)
- func (t Thing) AsErrorResponse() (*ErrorResponse, bool)
- func (t Thing) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (t Thing) AsNewsArticle() (*NewsArticle, bool)
- func (t Thing) AsPlaces() (*Places, bool)
- func (t Thing) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (t Thing) AsResponse() (*Response, bool)
- func (t Thing) AsResponseBase() (*ResponseBase, bool)
- func (t Thing) AsSearchResponse() (*SearchResponse, bool)
- func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (t Thing) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (t Thing) AsStructuredValue() (*StructuredValue, bool)
- func (t Thing) AsThing() (*Thing, bool)
- func (t Thing) AsTimeZone() (*TimeZone, bool)
- func (t Thing) AsVideoObject() (*VideoObject, bool)
- func (t Thing) AsVideos() (*Videos, bool)
- func (t Thing) AsWebPage() (*WebPage, bool)
- func (t Thing) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (t Thing) MarshalJSON() ([]byte, error)
- type TimeZone
- func (tz TimeZone) AsAnswer() (*Answer, bool)
- func (tz TimeZone) AsArticle() (*Article, bool)
- func (tz TimeZone) AsBasicAnswer() (BasicAnswer, bool)
- func (tz TimeZone) AsBasicArticle() (BasicArticle, bool)
- func (tz TimeZone) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (tz TimeZone) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (tz TimeZone) AsBasicIntangible() (BasicIntangible, bool)
- func (tz TimeZone) AsBasicMediaObject() (BasicMediaObject, bool)
- func (tz TimeZone) AsBasicResponse() (BasicResponse, bool)
- func (tz TimeZone) AsBasicResponseBase() (BasicResponseBase, bool)
- func (tz TimeZone) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (tz TimeZone) AsBasicThing() (BasicThing, bool)
- func (tz TimeZone) AsComputation() (*Computation, bool)
- func (tz TimeZone) AsCreativeWork() (*CreativeWork, bool)
- func (tz TimeZone) AsErrorResponse() (*ErrorResponse, bool)
- func (tz TimeZone) AsIdentifiable() (*Identifiable, bool)
- func (tz TimeZone) AsImageObject() (*ImageObject, bool)
- func (tz TimeZone) AsImages() (*Images, bool)
- func (tz TimeZone) AsIntangible() (*Intangible, bool)
- func (tz TimeZone) AsMediaObject() (*MediaObject, bool)
- func (tz TimeZone) AsNews() (*News, bool)
- func (tz TimeZone) AsNewsArticle() (*NewsArticle, bool)
- func (tz TimeZone) AsPlaces() (*Places, bool)
- func (tz TimeZone) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (tz TimeZone) AsResponse() (*Response, bool)
- func (tz TimeZone) AsResponseBase() (*ResponseBase, bool)
- func (tz TimeZone) AsSearchResponse() (*SearchResponse, bool)
- func (tz TimeZone) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (tz TimeZone) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (tz TimeZone) AsStructuredValue() (*StructuredValue, bool)
- func (tz TimeZone) AsThing() (*Thing, bool)
- func (tz TimeZone) AsTimeZone() (*TimeZone, bool)
- func (tz TimeZone) AsVideoObject() (*VideoObject, bool)
- func (tz TimeZone) AsVideos() (*Videos, bool)
- func (tz TimeZone) AsWebPage() (*WebPage, bool)
- func (tz TimeZone) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (tz TimeZone) MarshalJSON() ([]byte, error)
- type TimeZoneTimeZoneInformation
- type Type
- type TypeBasicResponseBase
- type VideoObject
- func (vo VideoObject) AsAnswer() (*Answer, bool)
- func (vo VideoObject) AsArticle() (*Article, bool)
- func (vo VideoObject) AsBasicAnswer() (BasicAnswer, bool)
- func (vo VideoObject) AsBasicArticle() (BasicArticle, bool)
- func (vo VideoObject) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (vo VideoObject) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (vo VideoObject) AsBasicIntangible() (BasicIntangible, bool)
- func (vo VideoObject) AsBasicMediaObject() (BasicMediaObject, bool)
- func (vo VideoObject) AsBasicResponse() (BasicResponse, bool)
- func (vo VideoObject) AsBasicResponseBase() (BasicResponseBase, bool)
- func (vo VideoObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (vo VideoObject) AsBasicThing() (BasicThing, bool)
- func (vo VideoObject) AsComputation() (*Computation, bool)
- func (vo VideoObject) AsCreativeWork() (*CreativeWork, bool)
- func (vo VideoObject) AsErrorResponse() (*ErrorResponse, bool)
- func (vo VideoObject) AsIdentifiable() (*Identifiable, bool)
- func (vo VideoObject) AsImageObject() (*ImageObject, bool)
- func (vo VideoObject) AsImages() (*Images, bool)
- func (vo VideoObject) AsIntangible() (*Intangible, bool)
- func (vo VideoObject) AsMediaObject() (*MediaObject, bool)
- func (vo VideoObject) AsNews() (*News, bool)
- func (vo VideoObject) AsNewsArticle() (*NewsArticle, bool)
- func (vo VideoObject) AsPlaces() (*Places, bool)
- func (vo VideoObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (vo VideoObject) AsResponse() (*Response, bool)
- func (vo VideoObject) AsResponseBase() (*ResponseBase, bool)
- func (vo VideoObject) AsSearchResponse() (*SearchResponse, bool)
- func (vo VideoObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (vo VideoObject) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (vo VideoObject) AsStructuredValue() (*StructuredValue, bool)
- func (vo VideoObject) AsThing() (*Thing, bool)
- func (vo VideoObject) AsTimeZone() (*TimeZone, bool)
- func (vo VideoObject) AsVideoObject() (*VideoObject, bool)
- func (vo VideoObject) AsVideos() (*Videos, bool)
- func (vo VideoObject) AsWebPage() (*WebPage, bool)
- func (vo VideoObject) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (vo VideoObject) MarshalJSON() ([]byte, error)
- func (vo *VideoObject) UnmarshalJSON(body []byte) error
- type Videos
- func (vVar Videos) AsAnswer() (*Answer, bool)
- func (vVar Videos) AsArticle() (*Article, bool)
- func (vVar Videos) AsBasicAnswer() (BasicAnswer, bool)
- func (vVar Videos) AsBasicArticle() (BasicArticle, bool)
- func (vVar Videos) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (vVar Videos) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (vVar Videos) AsBasicIntangible() (BasicIntangible, bool)
- func (vVar Videos) AsBasicMediaObject() (BasicMediaObject, bool)
- func (vVar Videos) AsBasicResponse() (BasicResponse, bool)
- func (vVar Videos) AsBasicResponseBase() (BasicResponseBase, bool)
- func (vVar Videos) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (vVar Videos) AsBasicThing() (BasicThing, bool)
- func (vVar Videos) AsComputation() (*Computation, bool)
- func (vVar Videos) AsCreativeWork() (*CreativeWork, bool)
- func (vVar Videos) AsErrorResponse() (*ErrorResponse, bool)
- func (vVar Videos) AsIdentifiable() (*Identifiable, bool)
- func (vVar Videos) AsImageObject() (*ImageObject, bool)
- func (vVar Videos) AsImages() (*Images, bool)
- func (vVar Videos) AsIntangible() (*Intangible, bool)
- func (vVar Videos) AsMediaObject() (*MediaObject, bool)
- func (vVar Videos) AsNews() (*News, bool)
- func (vVar Videos) AsNewsArticle() (*NewsArticle, bool)
- func (vVar Videos) AsPlaces() (*Places, bool)
- func (vVar Videos) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (vVar Videos) AsResponse() (*Response, bool)
- func (vVar Videos) AsResponseBase() (*ResponseBase, bool)
- func (vVar Videos) AsSearchResponse() (*SearchResponse, bool)
- func (vVar Videos) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (vVar Videos) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (vVar Videos) AsStructuredValue() (*StructuredValue, bool)
- func (vVar Videos) AsThing() (*Thing, bool)
- func (vVar Videos) AsTimeZone() (*TimeZone, bool)
- func (vVar Videos) AsVideoObject() (*VideoObject, bool)
- func (vVar Videos) AsVideos() (*Videos, bool)
- func (vVar Videos) AsWebPage() (*WebPage, bool)
- func (vVar Videos) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (vVar Videos) MarshalJSON() ([]byte, error)
- type WebClient
- func (client WebClient) Search(ctx context.Context, query string, acceptLanguage string, pragma string, ...) (result SearchResponse, err error)
- func (client WebClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, pragma string, ...) (*http.Request, error)
- func (client WebClient) SearchResponder(resp *http.Response) (result SearchResponse, err error)
- func (client WebClient) SearchSender(req *http.Request) (*http.Response, error)
- type WebMetaTag
- type WebPage
- func (wp WebPage) AsAnswer() (*Answer, bool)
- func (wp WebPage) AsArticle() (*Article, bool)
- func (wp WebPage) AsBasicAnswer() (BasicAnswer, bool)
- func (wp WebPage) AsBasicArticle() (BasicArticle, 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) AsBasicResponse() (BasicResponse, bool)
- func (wp WebPage) AsBasicResponseBase() (BasicResponseBase, bool)
- func (wp WebPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (wp WebPage) AsBasicThing() (BasicThing, bool)
- func (wp WebPage) AsComputation() (*Computation, bool)
- func (wp WebPage) AsCreativeWork() (*CreativeWork, bool)
- func (wp WebPage) AsErrorResponse() (*ErrorResponse, bool)
- func (wp WebPage) AsIdentifiable() (*Identifiable, 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) AsNews() (*News, bool)
- func (wp WebPage) AsNewsArticle() (*NewsArticle, bool)
- func (wp WebPage) AsPlaces() (*Places, bool)
- func (wp WebPage) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (wp WebPage) AsResponse() (*Response, bool)
- func (wp WebPage) AsResponseBase() (*ResponseBase, bool)
- func (wp WebPage) AsSearchResponse() (*SearchResponse, bool)
- func (wp WebPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (wp WebPage) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (wp WebPage) AsStructuredValue() (*StructuredValue, bool)
- func (wp WebPage) AsThing() (*Thing, bool)
- func (wp WebPage) AsTimeZone() (*TimeZone, bool)
- func (wp WebPage) AsVideoObject() (*VideoObject, bool)
- func (wp WebPage) AsVideos() (*Videos, bool)
- func (wp WebPage) AsWebPage() (*WebPage, bool)
- func (wp WebPage) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (wp WebPage) MarshalJSON() ([]byte, error)
- func (wp *WebPage) UnmarshalJSON(body []byte) error
- type WebWebAnswer
- func (wwa WebWebAnswer) AsAnswer() (*Answer, bool)
- func (wwa WebWebAnswer) AsArticle() (*Article, bool)
- func (wwa WebWebAnswer) AsBasicAnswer() (BasicAnswer, bool)
- func (wwa WebWebAnswer) AsBasicArticle() (BasicArticle, bool)
- func (wwa WebWebAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)
- func (wwa WebWebAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)
- func (wwa WebWebAnswer) AsBasicIntangible() (BasicIntangible, bool)
- func (wwa WebWebAnswer) AsBasicMediaObject() (BasicMediaObject, bool)
- func (wwa WebWebAnswer) AsBasicResponse() (BasicResponse, bool)
- func (wwa WebWebAnswer) AsBasicResponseBase() (BasicResponseBase, bool)
- func (wwa WebWebAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
- func (wwa WebWebAnswer) AsBasicThing() (BasicThing, bool)
- func (wwa WebWebAnswer) AsComputation() (*Computation, bool)
- func (wwa WebWebAnswer) AsCreativeWork() (*CreativeWork, bool)
- func (wwa WebWebAnswer) AsErrorResponse() (*ErrorResponse, bool)
- func (wwa WebWebAnswer) AsIdentifiable() (*Identifiable, bool)
- func (wwa WebWebAnswer) AsImageObject() (*ImageObject, bool)
- func (wwa WebWebAnswer) AsImages() (*Images, bool)
- func (wwa WebWebAnswer) AsIntangible() (*Intangible, bool)
- func (wwa WebWebAnswer) AsMediaObject() (*MediaObject, bool)
- func (wwa WebWebAnswer) AsNews() (*News, bool)
- func (wwa WebWebAnswer) AsNewsArticle() (*NewsArticle, bool)
- func (wwa WebWebAnswer) AsPlaces() (*Places, bool)
- func (wwa WebWebAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
- func (wwa WebWebAnswer) AsResponse() (*Response, bool)
- func (wwa WebWebAnswer) AsResponseBase() (*ResponseBase, bool)
- func (wwa WebWebAnswer) AsSearchResponse() (*SearchResponse, bool)
- func (wwa WebWebAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
- func (wwa WebWebAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)
- func (wwa WebWebAnswer) AsStructuredValue() (*StructuredValue, bool)
- func (wwa WebWebAnswer) AsThing() (*Thing, bool)
- func (wwa WebWebAnswer) AsTimeZone() (*TimeZone, bool)
- func (wwa WebWebAnswer) AsVideoObject() (*VideoObject, bool)
- func (wwa WebWebAnswer) AsVideos() (*Videos, bool)
- func (wwa WebWebAnswer) AsWebPage() (*WebPage, bool)
- func (wwa WebWebAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)
- func (wwa WebWebAnswer) MarshalJSON() ([]byte, error)
- type WebWebGrouping
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 Answer ¶
type Answer struct { // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Answer ...
func (Answer) AsBasicAnswer ¶
func (a Answer) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Answer.
func (Answer) AsBasicArticle ¶
func (a Answer) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle 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) 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) AsBasicThing ¶
func (a Answer) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Answer.
func (Answer) AsComputation ¶
func (a Answer) AsComputation() (*Computation, bool)
AsComputation 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) 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) AsNewsArticle ¶
func (a Answer) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Answer.
func (Answer) AsRelatedSearchesRelatedSearchAnswer ¶
func (a Answer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer 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) AsSearchResponse ¶
func (a Answer) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Answer.
func (Answer) AsSearchResultsAnswer ¶
func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.
func (Answer) AsSpellSuggestions ¶
func (a Answer) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Answer.
func (Answer) AsStructuredValue ¶
func (a Answer) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Answer.
func (Answer) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for Answer.
func (Answer) AsVideoObject ¶
func (a Answer) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Answer.
func (Answer) AsWebWebAnswer ¶
func (a Answer) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Answer.
func (Answer) MarshalJSON ¶
MarshalJSON is the custom marshaler for Answer.
type AnswerType ¶
type AnswerType string
AnswerType enumerates the values for answer type.
const ( // AnswerTypeComputation ... AnswerTypeComputation AnswerType = "Computation" // AnswerTypeImages ... AnswerTypeImages AnswerType = "Images" // AnswerTypeNews ... AnswerTypeNews AnswerType = "News" // AnswerTypeRelatedSearches ... AnswerTypeRelatedSearches AnswerType = "RelatedSearches" // AnswerTypeSpellSuggestions ... AnswerTypeSpellSuggestions AnswerType = "SpellSuggestions" // AnswerTypeTimeZone ... AnswerTypeTimeZone AnswerType = "TimeZone" // AnswerTypeVideos ... AnswerTypeVideos AnswerType = "Videos" // AnswerTypeWebPages ... AnswerTypeWebPages AnswerType = "WebPages" )
func PossibleAnswerTypeValues ¶
func PossibleAnswerTypeValues() []AnswerType
PossibleAnswerTypeValues returns an array of possible values for the AnswerType const type.
type Article ¶
type Article struct { // WordCount - READ-ONLY; The number of words in the text of the Article. WordCount *int32 `json:"wordCount,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"` // Text - READ-ONLY 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Article ...
func (Article) AsBasicAnswer ¶
func (a Article) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Article.
func (Article) AsBasicArticle ¶
func (a Article) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for Article.
func (Article) AsBasicCreativeWork ¶
func (a Article) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Article.
func (Article) AsBasicIdentifiable ¶
func (a Article) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Article.
func (Article) AsBasicIntangible ¶
func (a Article) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Article.
func (Article) AsBasicMediaObject ¶
func (a Article) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Article.
func (Article) AsBasicResponse ¶
func (a Article) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Article.
func (Article) AsBasicResponseBase ¶
func (a Article) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Article.
func (Article) AsBasicSearchResultsAnswer ¶
func (a Article) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Article.
func (Article) AsBasicThing ¶
func (a Article) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Article.
func (Article) AsComputation ¶
func (a Article) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for Article.
func (Article) AsCreativeWork ¶
func (a Article) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Article.
func (Article) AsErrorResponse ¶
func (a Article) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Article.
func (Article) AsIdentifiable ¶
func (a Article) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Article.
func (Article) AsImageObject ¶
func (a Article) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Article.
func (Article) AsIntangible ¶
func (a Article) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Article.
func (Article) AsMediaObject ¶
func (a Article) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Article.
func (Article) AsNewsArticle ¶
func (a Article) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Article.
func (Article) AsRelatedSearchesRelatedSearchAnswer ¶
func (a Article) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Article.
func (Article) AsResponse ¶
AsResponse is the BasicResponseBase implementation for Article.
func (Article) AsResponseBase ¶
func (a Article) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Article.
func (Article) AsSearchResponse ¶
func (a Article) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Article.
func (Article) AsSearchResultsAnswer ¶
func (a Article) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Article.
func (Article) AsSpellSuggestions ¶
func (a Article) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Article.
func (Article) AsStructuredValue ¶
func (a Article) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Article.
func (Article) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for Article.
func (Article) AsVideoObject ¶
func (a Article) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Article.
func (Article) AsWebWebAnswer ¶
func (a Article) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Article.
func (Article) MarshalJSON ¶
MarshalJSON is the custom marshaler for Article.
func (*Article) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Article struct.
type BaseClient ¶
BaseClient is the base client for Websearch.
func NewWithoutDefaults ¶
func NewWithoutDefaults(endpoint string) BaseClient
NewWithoutDefaults creates an instance of the BaseClient client.
type BasicAnswer ¶
type BasicAnswer interface { AsWebWebAnswer() (*WebWebAnswer, bool) AsImages() (*Images, bool) AsNews() (*News, bool) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool) AsSpellSuggestions() (*SpellSuggestions, bool) AsTimeZone() (*TimeZone, bool) AsVideos() (*Videos, bool) AsComputation() (*Computation, bool) AsPlaces() (*Places, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) }
BasicAnswer ...
type BasicArticle ¶
type BasicArticle interface { AsNewsArticle() (*NewsArticle, bool) AsArticle() (*Article, bool) }
BasicArticle ...
type BasicCreativeWork ¶
type BasicCreativeWork interface { AsImageObject() (*ImageObject, bool) AsWebPage() (*WebPage, bool) AsNewsArticle() (*NewsArticle, bool) AsVideoObject() (*VideoObject, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsArticle() (*Article, bool) AsBasicArticle() (BasicArticle, bool) AsCreativeWork() (*CreativeWork, bool) }
BasicCreativeWork ...
type BasicIdentifiable ¶
type BasicIdentifiable interface { AsImageObject() (*ImageObject, bool) AsWebPage() (*WebPage, bool) AsWebWebAnswer() (*WebWebAnswer, bool) AsImages() (*Images, bool) AsNewsArticle() (*NewsArticle, bool) AsNews() (*News, bool) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool) AsSpellSuggestions() (*SpellSuggestions, bool) AsTimeZone() (*TimeZone, bool) AsVideoObject() (*VideoObject, bool) AsVideos() (*Videos, bool) AsComputation() (*Computation, bool) AsSearchResponse() (*SearchResponse, bool) AsResponse() (*Response, bool) AsBasicResponse() (BasicResponse, bool) AsThing() (*Thing, bool) AsBasicThing() (BasicThing, bool) AsPlaces() (*Places, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) AsBasicAnswer() (BasicAnswer, bool) AsErrorResponse() (*ErrorResponse, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsArticle() (*Article, bool) AsBasicArticle() (BasicArticle, bool) AsStructuredValue() (*StructuredValue, bool) AsIdentifiable() (*Identifiable, bool) }
BasicIdentifiable defines the identity of a resource.
type BasicIntangible ¶
type BasicIntangible interface { AsStructuredValue() (*StructuredValue, bool) AsIntangible() (*Intangible, bool) }
BasicIntangible ...
type BasicMediaObject ¶
type BasicMediaObject interface { AsImageObject() (*ImageObject, bool) AsVideoObject() (*VideoObject, bool) AsMediaObject() (*MediaObject, bool) }
BasicMediaObject ...
type BasicResponse ¶
type BasicResponse interface { AsImageObject() (*ImageObject, bool) AsWebPage() (*WebPage, bool) AsWebWebAnswer() (*WebWebAnswer, bool) AsImages() (*Images, bool) AsNewsArticle() (*NewsArticle, bool) AsNews() (*News, bool) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool) AsSpellSuggestions() (*SpellSuggestions, bool) AsTimeZone() (*TimeZone, bool) AsVideoObject() (*VideoObject, bool) AsVideos() (*Videos, bool) AsComputation() (*Computation, bool) AsSearchResponse() (*SearchResponse, bool) AsThing() (*Thing, bool) AsBasicThing() (BasicThing, bool) AsPlaces() (*Places, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) AsBasicAnswer() (BasicAnswer, bool) AsErrorResponse() (*ErrorResponse, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsArticle() (*Article, bool) AsBasicArticle() (BasicArticle, bool) AsStructuredValue() (*StructuredValue, 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 { AsImageObject() (*ImageObject, bool) AsWebPage() (*WebPage, bool) AsWebWebAnswer() (*WebWebAnswer, bool) AsImages() (*Images, bool) AsNewsArticle() (*NewsArticle, bool) AsNews() (*News, bool) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool) AsSpellSuggestions() (*SpellSuggestions, bool) AsTimeZone() (*TimeZone, bool) AsVideoObject() (*VideoObject, bool) AsVideos() (*Videos, bool) AsComputation() (*Computation, bool) AsIdentifiable() (*Identifiable, bool) AsBasicIdentifiable() (BasicIdentifiable, bool) AsSearchResponse() (*SearchResponse, bool) AsResponse() (*Response, bool) AsBasicResponse() (BasicResponse, bool) AsThing() (*Thing, bool) AsBasicThing() (BasicThing, bool) AsPlaces() (*Places, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) AsAnswer() (*Answer, bool) AsBasicAnswer() (BasicAnswer, bool) AsErrorResponse() (*ErrorResponse, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsArticle() (*Article, bool) AsBasicArticle() (BasicArticle, bool) AsStructuredValue() (*StructuredValue, bool) AsResponseBase() (*ResponseBase, bool) }
BasicResponseBase ...
type BasicSearchResultsAnswer ¶
type BasicSearchResultsAnswer interface { AsWebWebAnswer() (*WebWebAnswer, bool) AsImages() (*Images, bool) AsNews() (*News, bool) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool) AsSpellSuggestions() (*SpellSuggestions, bool) AsTimeZone() (*TimeZone, bool) AsVideos() (*Videos, bool) AsPlaces() (*Places, bool) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) }
BasicSearchResultsAnswer ...
type BasicThing ¶
type BasicThing interface { AsImageObject() (*ImageObject, bool) AsWebPage() (*WebPage, bool) AsNewsArticle() (*NewsArticle, bool) AsVideoObject() (*VideoObject, bool) AsCreativeWork() (*CreativeWork, bool) AsBasicCreativeWork() (BasicCreativeWork, bool) AsIntangible() (*Intangible, bool) AsBasicIntangible() (BasicIntangible, bool) AsMediaObject() (*MediaObject, bool) AsBasicMediaObject() (BasicMediaObject, bool) AsArticle() (*Article, bool) AsBasicArticle() (BasicArticle, bool) AsStructuredValue() (*StructuredValue, bool) AsThing() (*Thing, bool) }
BasicThing ...
type BasicWebWebGrouping ¶
type BasicWebWebGrouping interface {
AsWebWebGrouping() (*WebWebGrouping, bool)
}
BasicWebWebGrouping ...
type Computation ¶
type Computation struct { // Expression - The math or conversion expression. If the query contains a request to convert units of measure (for example, meters to feet), this field contains the from units and value contains the to units. If the query contains a mathematical expression such as 2+2, this field contains the expression and value contains the answer. Note that mathematical expressions may be normalized. For example, if the query was sqrt(4^2+8^2), the normalized expression may be sqrt((4^2)+(8^2)). If the user's query is a math question and the textDecorations query parameter is set to true, the expression string may include formatting markers. For example, if the user's query is log(2), the normalized expression includes the subscript markers. For more information, see Hit Highlighting. Expression *string `json:"expression,omitempty"` // Value - The expression's answer. Value *string `json:"value,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Computation defines an expression and its answer
func (Computation) AsAnswer ¶
func (c Computation) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for Computation.
func (Computation) AsArticle ¶
func (c Computation) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicAnswer ¶
func (c Computation) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicArticle ¶
func (c Computation) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicCreativeWork ¶
func (c Computation) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicIdentifiable ¶
func (c Computation) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicIntangible ¶
func (c Computation) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicMediaObject ¶
func (c Computation) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicResponse ¶
func (c Computation) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicResponseBase ¶
func (c Computation) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicSearchResultsAnswer ¶
func (c Computation) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Computation.
func (Computation) AsBasicThing ¶
func (c Computation) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Computation.
func (Computation) AsComputation ¶
func (c Computation) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for Computation.
func (Computation) AsCreativeWork ¶
func (c Computation) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Computation.
func (Computation) AsErrorResponse ¶
func (c Computation) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Computation.
func (Computation) AsIdentifiable ¶
func (c Computation) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Computation.
func (Computation) AsImageObject ¶
func (c Computation) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Computation.
func (Computation) AsImages ¶
func (c Computation) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for Computation.
func (Computation) AsIntangible ¶
func (c Computation) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Computation.
func (Computation) AsMediaObject ¶
func (c Computation) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Computation.
func (Computation) AsNews ¶
func (c Computation) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for Computation.
func (Computation) AsNewsArticle ¶
func (c Computation) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Computation.
func (Computation) AsPlaces ¶
func (c Computation) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for Computation.
func (Computation) AsRelatedSearchesRelatedSearchAnswer ¶
func (c Computation) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Computation.
func (Computation) AsResponse ¶
func (c Computation) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for Computation.
func (Computation) AsResponseBase ¶
func (c Computation) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Computation.
func (Computation) AsSearchResponse ¶
func (c Computation) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Computation.
func (Computation) AsSearchResultsAnswer ¶
func (c Computation) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Computation.
func (Computation) AsSpellSuggestions ¶
func (c Computation) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Computation.
func (Computation) AsStructuredValue ¶
func (c Computation) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Computation.
func (Computation) AsThing ¶
func (c Computation) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for Computation.
func (Computation) AsTimeZone ¶
func (c Computation) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for Computation.
func (Computation) AsVideoObject ¶
func (c Computation) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Computation.
func (Computation) AsVideos ¶
func (c Computation) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for Computation.
func (Computation) AsWebPage ¶
func (c Computation) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for Computation.
func (Computation) AsWebWebAnswer ¶
func (c Computation) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Computation.
func (Computation) MarshalJSON ¶
func (c Computation) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Computation.
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"` // Text - READ-ONLY 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
CreativeWork ...
func (CreativeWork) AsAnswer ¶
func (cw CreativeWork) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsArticle ¶
func (cw CreativeWork) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicAnswer ¶
func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsBasicArticle ¶
func (cw CreativeWork) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle 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) 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) AsBasicThing ¶
func (cw CreativeWork) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsComputation ¶
func (cw CreativeWork) AsComputation() (*Computation, bool)
AsComputation 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) 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) AsNews ¶
func (cw CreativeWork) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsNewsArticle ¶
func (cw CreativeWork) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsPlaces ¶
func (cw CreativeWork) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsRelatedSearchesRelatedSearchAnswer ¶
func (cw CreativeWork) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer 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) AsSearchResponse ¶
func (cw CreativeWork) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsSearchResultsAnswer ¶
func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsSpellSuggestions ¶
func (cw CreativeWork) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions 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) AsTimeZone ¶
func (cw CreativeWork) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsVideoObject ¶
func (cw CreativeWork) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsVideos ¶
func (cw CreativeWork) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsWebPage ¶
func (cw CreativeWork) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for CreativeWork.
func (CreativeWork) AsWebWebAnswer ¶
func (cw CreativeWork) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer 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 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"` // 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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
ErrorResponse the top-level response that represents a failed request.
func (ErrorResponse) AsAnswer ¶
func (er ErrorResponse) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsArticle ¶
func (er ErrorResponse) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicAnswer ¶
func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsBasicArticle ¶
func (er ErrorResponse) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle 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) 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) AsBasicThing ¶
func (er ErrorResponse) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsComputation ¶
func (er ErrorResponse) AsComputation() (*Computation, bool)
AsComputation 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) 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) AsNews ¶
func (er ErrorResponse) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsNewsArticle ¶
func (er ErrorResponse) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsPlaces ¶
func (er ErrorResponse) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsRelatedSearchesRelatedSearchAnswer ¶
func (er ErrorResponse) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer 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) AsSearchResponse ¶
func (er ErrorResponse) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsSearchResultsAnswer ¶
func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsSpellSuggestions ¶
func (er ErrorResponse) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions 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) AsTimeZone ¶
func (er ErrorResponse) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsVideoObject ¶
func (er ErrorResponse) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsVideos ¶
func (er ErrorResponse) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsWebPage ¶
func (er ErrorResponse) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for ErrorResponse.
func (ErrorResponse) AsWebWebAnswer ¶
func (er ErrorResponse) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer 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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Identifiable defines the identity of a resource.
func (Identifiable) AsAnswer ¶
func (i Identifiable) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsArticle ¶
func (i Identifiable) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicAnswer ¶
func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsBasicArticle ¶
func (i Identifiable) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle 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) 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) AsBasicThing ¶
func (i Identifiable) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsComputation ¶
func (i Identifiable) AsComputation() (*Computation, bool)
AsComputation 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) 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) AsNews ¶
func (i Identifiable) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsNewsArticle ¶
func (i Identifiable) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsPlaces ¶
func (i Identifiable) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsRelatedSearchesRelatedSearchAnswer ¶
func (i Identifiable) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer 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) AsSearchResponse ¶
func (i Identifiable) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsSearchResultsAnswer ¶
func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsSpellSuggestions ¶
func (i Identifiable) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions 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) AsTimeZone ¶
func (i Identifiable) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsVideoObject ¶
func (i Identifiable) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsVideos ¶
func (i Identifiable) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsWebPage ¶
func (i Identifiable) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for Identifiable.
func (Identifiable) AsWebWebAnswer ¶
func (i Identifiable) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Identifiable.
func (Identifiable) MarshalJSON ¶
func (i Identifiable) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Identifiable.
type ImageObject ¶
type ImageObject struct { // Thumbnail - READ-ONLY; The URL to a thumbnail of the image Thumbnail *ImageObject `json:"thumbnail,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"` // 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"` // Text - READ-ONLY 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
ImageObject defines an image
func (ImageObject) AsAnswer ¶
func (ioVar ImageObject) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsArticle ¶
func (ioVar ImageObject) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicAnswer ¶
func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsBasicArticle ¶
func (ioVar ImageObject) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle 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) 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) AsBasicThing ¶
func (ioVar ImageObject) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsComputation ¶
func (ioVar ImageObject) AsComputation() (*Computation, bool)
AsComputation 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) 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) AsNews ¶
func (ioVar ImageObject) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsNewsArticle ¶
func (ioVar ImageObject) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsPlaces ¶
func (ioVar ImageObject) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsRelatedSearchesRelatedSearchAnswer ¶
func (ioVar ImageObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer 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) AsSearchResponse ¶
func (ioVar ImageObject) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsSearchResultsAnswer ¶
func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsSpellSuggestions ¶
func (ioVar ImageObject) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions 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) AsTimeZone ¶
func (ioVar ImageObject) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsVideoObject ¶
func (ioVar ImageObject) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsVideos ¶
func (ioVar ImageObject) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsWebPage ¶
func (ioVar ImageObject) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for ImageObject.
func (ImageObject) AsWebWebAnswer ¶
func (ioVar ImageObject) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer 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 Images ¶
type Images struct { // NextOffset - READ-ONLY 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 QueryExpansions *[]Query `json:"queryExpansions,omitempty"` // SimilarTerms - READ-ONLY SimilarTerms *[]Query `json:"similarTerms,omitempty"` // RelatedSearches - READ-ONLY RelatedSearches *[]Query `json:"relatedSearches,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Images defines an image answer
func (Images) AsBasicAnswer ¶
func (i Images) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Images.
func (Images) AsBasicArticle ¶
func (i Images) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle 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) 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) AsBasicThing ¶
func (i Images) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Images.
func (Images) AsComputation ¶
func (i Images) AsComputation() (*Computation, bool)
AsComputation 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) 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) AsNewsArticle ¶
func (i Images) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Images.
func (Images) AsRelatedSearchesRelatedSearchAnswer ¶
func (i Images) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer 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) AsSearchResponse ¶
func (i Images) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Images.
func (Images) AsSearchResultsAnswer ¶
func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Images.
func (Images) AsSpellSuggestions ¶
func (i Images) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Images.
func (Images) AsStructuredValue ¶
func (i Images) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Images.
func (Images) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for Images.
func (Images) AsVideoObject ¶
func (i Images) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Images.
func (Images) AsWebWebAnswer ¶
func (i Images) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Images.
func (Images) MarshalJSON ¶
MarshalJSON is the custom marshaler for Images.
type Intangible ¶
type Intangible struct { // 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Intangible ...
func (Intangible) AsAnswer ¶
func (i Intangible) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for Intangible.
func (Intangible) AsArticle ¶
func (i Intangible) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicAnswer ¶
func (i Intangible) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicArticle ¶
func (i Intangible) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicCreativeWork ¶
func (i Intangible) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicIdentifiable ¶
func (i Intangible) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicIntangible ¶
func (i Intangible) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicMediaObject ¶
func (i Intangible) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicResponse ¶
func (i Intangible) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicResponseBase ¶
func (i Intangible) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicSearchResultsAnswer ¶
func (i Intangible) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Intangible.
func (Intangible) AsBasicThing ¶
func (i Intangible) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Intangible.
func (Intangible) AsComputation ¶
func (i Intangible) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for Intangible.
func (Intangible) AsCreativeWork ¶
func (i Intangible) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Intangible.
func (Intangible) AsErrorResponse ¶
func (i Intangible) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Intangible.
func (Intangible) AsIdentifiable ¶
func (i Intangible) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Intangible.
func (Intangible) AsImageObject ¶
func (i Intangible) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Intangible.
func (Intangible) AsImages ¶
func (i Intangible) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for Intangible.
func (Intangible) AsIntangible ¶
func (i Intangible) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Intangible.
func (Intangible) AsMediaObject ¶
func (i Intangible) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Intangible.
func (Intangible) AsNews ¶
func (i Intangible) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for Intangible.
func (Intangible) AsNewsArticle ¶
func (i Intangible) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Intangible.
func (Intangible) AsPlaces ¶
func (i Intangible) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for Intangible.
func (Intangible) AsRelatedSearchesRelatedSearchAnswer ¶
func (i Intangible) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Intangible.
func (Intangible) AsResponse ¶
func (i Intangible) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for Intangible.
func (Intangible) AsResponseBase ¶
func (i Intangible) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Intangible.
func (Intangible) AsSearchResponse ¶
func (i Intangible) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Intangible.
func (Intangible) AsSearchResultsAnswer ¶
func (i Intangible) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Intangible.
func (Intangible) AsSpellSuggestions ¶
func (i Intangible) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Intangible.
func (Intangible) AsStructuredValue ¶
func (i Intangible) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Intangible.
func (Intangible) AsThing ¶
func (i Intangible) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for Intangible.
func (Intangible) AsTimeZone ¶
func (i Intangible) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for Intangible.
func (Intangible) AsVideoObject ¶
func (i Intangible) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Intangible.
func (Intangible) AsVideos ¶
func (i Intangible) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for Intangible.
func (Intangible) AsWebPage ¶
func (i Intangible) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for Intangible.
func (Intangible) AsWebWebAnswer ¶
func (i Intangible) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Intangible.
func (Intangible) MarshalJSON ¶
func (i Intangible) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Intangible.
type MediaObject ¶
type MediaObject struct { // 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"` // 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"` // Text - READ-ONLY 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
MediaObject ...
func (MediaObject) AsAnswer ¶
func (mo MediaObject) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsArticle ¶
func (mo MediaObject) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicAnswer ¶
func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicArticle ¶
func (mo MediaObject) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicCreativeWork ¶
func (mo MediaObject) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicIdentifiable ¶
func (mo MediaObject) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicIntangible ¶
func (mo MediaObject) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicMediaObject ¶
func (mo MediaObject) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicResponse ¶
func (mo MediaObject) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicResponseBase ¶
func (mo MediaObject) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicSearchResultsAnswer ¶
func (mo MediaObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsBasicThing ¶
func (mo MediaObject) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsComputation ¶
func (mo MediaObject) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsCreativeWork ¶
func (mo MediaObject) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsErrorResponse ¶
func (mo MediaObject) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsIdentifiable ¶
func (mo MediaObject) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsImageObject ¶
func (mo MediaObject) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsImages ¶
func (mo MediaObject) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsIntangible ¶
func (mo MediaObject) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsMediaObject ¶
func (mo MediaObject) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsNews ¶
func (mo MediaObject) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsNewsArticle ¶
func (mo MediaObject) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsPlaces ¶
func (mo MediaObject) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsRelatedSearchesRelatedSearchAnswer ¶
func (mo MediaObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsResponse ¶
func (mo MediaObject) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsResponseBase ¶
func (mo MediaObject) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsSearchResponse ¶
func (mo MediaObject) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsSearchResultsAnswer ¶
func (mo MediaObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsSpellSuggestions ¶
func (mo MediaObject) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsStructuredValue ¶
func (mo MediaObject) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsThing ¶
func (mo MediaObject) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsTimeZone ¶
func (mo MediaObject) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsVideoObject ¶
func (mo MediaObject) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsVideos ¶
func (mo MediaObject) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsWebPage ¶
func (mo MediaObject) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for MediaObject.
func (MediaObject) AsWebWebAnswer ¶
func (mo MediaObject) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for MediaObject.
func (MediaObject) MarshalJSON ¶
func (mo MediaObject) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MediaObject.
func (*MediaObject) UnmarshalJSON ¶
func (mo *MediaObject) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MediaObject struct.
type News ¶
type News struct { // Value - An array of NewsArticle objects that contain information about news articles that are relevant to the query. If there are no results to return for the request, the array is empty. Value *[]NewsArticle `json:"value,omitempty"` // Location - READ-ONLY Location *string `json:"location,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
News defines a news answer.
func (News) AsBasicAnswer ¶
func (n News) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for News.
func (News) AsBasicArticle ¶
func (n News) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for News.
func (News) AsBasicCreativeWork ¶
func (n News) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for News.
func (News) AsBasicIdentifiable ¶
func (n News) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for News.
func (News) AsBasicIntangible ¶
func (n News) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for News.
func (News) AsBasicMediaObject ¶
func (n News) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for News.
func (News) AsBasicResponse ¶
func (n News) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for News.
func (News) AsBasicResponseBase ¶
func (n News) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for News.
func (News) AsBasicSearchResultsAnswer ¶
func (n News) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for News.
func (News) AsBasicThing ¶
func (n News) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for News.
func (News) AsComputation ¶
func (n News) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for News.
func (News) AsCreativeWork ¶
func (n News) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for News.
func (News) AsErrorResponse ¶
func (n News) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for News.
func (News) AsIdentifiable ¶
func (n News) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for News.
func (News) AsImageObject ¶
func (n News) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for News.
func (News) AsIntangible ¶
func (n News) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for News.
func (News) AsMediaObject ¶
func (n News) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for News.
func (News) AsNewsArticle ¶
func (n News) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for News.
func (News) AsRelatedSearchesRelatedSearchAnswer ¶
func (n News) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for News.
func (News) AsResponse ¶
AsResponse is the BasicResponseBase implementation for News.
func (News) AsResponseBase ¶
func (n News) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for News.
func (News) AsSearchResponse ¶
func (n News) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for News.
func (News) AsSearchResultsAnswer ¶
func (n News) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for News.
func (News) AsSpellSuggestions ¶
func (n News) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for News.
func (News) AsStructuredValue ¶
func (n News) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for News.
func (News) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for News.
func (News) AsVideoObject ¶
func (n News) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for News.
func (News) AsWebWebAnswer ¶
func (n News) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for News.
func (News) MarshalJSON ¶
MarshalJSON is the custom marshaler for News.
type NewsArticle ¶
type NewsArticle struct { // WordCount - READ-ONLY; The number of words in the text of the Article. WordCount *int32 `json:"wordCount,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"` // Text - READ-ONLY 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
NewsArticle defines a news article.
func (NewsArticle) AsAnswer ¶
func (na NewsArticle) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsArticle ¶
func (na NewsArticle) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicAnswer ¶
func (na NewsArticle) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicArticle ¶
func (na NewsArticle) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicCreativeWork ¶
func (na NewsArticle) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicIdentifiable ¶
func (na NewsArticle) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicIntangible ¶
func (na NewsArticle) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicMediaObject ¶
func (na NewsArticle) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicResponse ¶
func (na NewsArticle) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicResponseBase ¶
func (na NewsArticle) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicSearchResultsAnswer ¶
func (na NewsArticle) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsBasicThing ¶
func (na NewsArticle) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsComputation ¶
func (na NewsArticle) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsCreativeWork ¶
func (na NewsArticle) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsErrorResponse ¶
func (na NewsArticle) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsIdentifiable ¶
func (na NewsArticle) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsImageObject ¶
func (na NewsArticle) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsImages ¶
func (na NewsArticle) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsIntangible ¶
func (na NewsArticle) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsMediaObject ¶
func (na NewsArticle) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsNews ¶
func (na NewsArticle) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsNewsArticle ¶
func (na NewsArticle) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsPlaces ¶
func (na NewsArticle) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsRelatedSearchesRelatedSearchAnswer ¶
func (na NewsArticle) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsResponse ¶
func (na NewsArticle) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsResponseBase ¶
func (na NewsArticle) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsSearchResponse ¶
func (na NewsArticle) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsSearchResultsAnswer ¶
func (na NewsArticle) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsSpellSuggestions ¶
func (na NewsArticle) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsStructuredValue ¶
func (na NewsArticle) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsThing ¶
func (na NewsArticle) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsTimeZone ¶
func (na NewsArticle) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsVideoObject ¶
func (na NewsArticle) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsVideos ¶
func (na NewsArticle) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsWebPage ¶
func (na NewsArticle) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) AsWebWebAnswer ¶
func (na NewsArticle) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for NewsArticle.
func (NewsArticle) MarshalJSON ¶
func (na NewsArticle) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NewsArticle.
func (*NewsArticle) UnmarshalJSON ¶
func (na *NewsArticle) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for NewsArticle struct.
type Places ¶
type Places struct { // Value - A list of local entities, such as restaurants or hotels. Value *[]BasicThing `json:"value,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Places defines a local entity answer.
func (Places) AsBasicAnswer ¶
func (p Places) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Places.
func (Places) AsBasicArticle ¶
func (p Places) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for Places.
func (Places) AsBasicCreativeWork ¶
func (p Places) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Places.
func (Places) AsBasicIdentifiable ¶
func (p Places) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Places.
func (Places) AsBasicIntangible ¶
func (p Places) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Places.
func (Places) AsBasicMediaObject ¶
func (p Places) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Places.
func (Places) AsBasicResponse ¶
func (p Places) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Places.
func (Places) AsBasicResponseBase ¶
func (p Places) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Places.
func (Places) AsBasicSearchResultsAnswer ¶
func (p Places) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Places.
func (Places) AsBasicThing ¶
func (p Places) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Places.
func (Places) AsComputation ¶
func (p Places) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for Places.
func (Places) AsCreativeWork ¶
func (p Places) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Places.
func (Places) AsErrorResponse ¶
func (p Places) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Places.
func (Places) AsIdentifiable ¶
func (p Places) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Places.
func (Places) AsImageObject ¶
func (p Places) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Places.
func (Places) AsIntangible ¶
func (p Places) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Places.
func (Places) AsMediaObject ¶
func (p Places) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Places.
func (Places) AsNewsArticle ¶
func (p Places) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Places.
func (Places) AsRelatedSearchesRelatedSearchAnswer ¶
func (p Places) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Places.
func (Places) AsResponse ¶
AsResponse is the BasicResponseBase implementation for Places.
func (Places) AsResponseBase ¶
func (p Places) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Places.
func (Places) AsSearchResponse ¶
func (p Places) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Places.
func (Places) AsSearchResultsAnswer ¶
func (p Places) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Places.
func (Places) AsSpellSuggestions ¶
func (p Places) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Places.
func (Places) AsStructuredValue ¶
func (p Places) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Places.
func (Places) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for Places.
func (Places) AsVideoObject ¶
func (p Places) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Places.
func (Places) AsWebWebAnswer ¶
func (p Places) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Places.
func (Places) MarshalJSON ¶
MarshalJSON is the custom marshaler for Places.
func (*Places) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Places struct.
type Query ¶
type Query struct { // Text - The query string. Use this string as the query term in a new search request. Text *string `json:"text,omitempty"` // DisplayText - READ-ONLY; The display version of the query term. This version of the query term may contain special characters that highlight the search term found in the query string. The string contains the highlighting characters only if the query enabled hit highlighting DisplayText *string `json:"displayText,omitempty"` // WebSearchURL - READ-ONLY; The URL that takes the user to the Bing search results page for the query.Only related search results include this field. WebSearchURL *string `json:"webSearchUrl,omitempty"` // SearchLink - READ-ONLY SearchLink *string `json:"searchLink,omitempty"` // Thumbnail - READ-ONLY Thumbnail *ImageObject `json:"thumbnail,omitempty"` }
Query defines a search query.
func (Query) MarshalJSON ¶
MarshalJSON is the custom marshaler for Query.
type QueryContext ¶
type QueryContext struct { // OriginalQuery - The query string as specified in the request. OriginalQuery *string `json:"originalQuery,omitempty"` // AlteredQuery - READ-ONLY; The query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained spelling mistakes. For example, if the query string is "saling downwind", the altered query string will be "sailing downwind". This field is included only if the original query string contains a spelling mistake. AlteredQuery *string `json:"alteredQuery,omitempty"` // AlterationOverrideQuery - READ-ONLY; The query string to use to force Bing to use the original string. For example, if the query string is "saling downwind", the override query string will be "+saling downwind". Remember to encode the query string which results in "%2Bsaling+downwind". This field is included only if the original query string contains a spelling mistake. AlterationOverrideQuery *string `json:"alterationOverrideQuery,omitempty"` // AdultIntent - READ-ONLY; A Boolean value that indicates whether the specified query has adult intent. The value is true if the query has adult intent; otherwise, false. AdultIntent *bool `json:"adultIntent,omitempty"` // AskUserForLocation - READ-ONLY; A Boolean value that indicates whether Bing requires the user's location to provide accurate results. If you specified the user's location by using the X-MSEdge-ClientIP and X-Search-Location headers, you can ignore this field. For location aware queries, such as "today's weather" or "restaurants near me" that need the user's location to provide accurate results, this field is set to true. For location aware queries that include the location (for example, "Seattle weather"), this field is set to false. This field is also set to false for queries that are not location aware, such as "best sellers". AskUserForLocation *bool `json:"askUserForLocation,omitempty"` // IsTransactional - READ-ONLY IsTransactional *bool `json:"isTransactional,omitempty"` }
QueryContext defines the query context that Bing used for the request.
func (QueryContext) MarshalJSON ¶
func (qc QueryContext) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for QueryContext.
type RankingRankingGroup ¶
type RankingRankingGroup struct { // Items - A list of search result items to display in the group. Items *[]RankingRankingItem `json:"items,omitempty"` }
RankingRankingGroup defines a search results group, such as mainline.
type RankingRankingItem ¶
type RankingRankingItem struct { // AnswerType - The answer that contains the item to display. Use the type to find the answer in the SearchResponse object. The type is the name of a SearchResponse field. Possible values include: 'AnswerTypeWebPages', 'AnswerTypeImages', 'AnswerTypeSpellSuggestions', 'AnswerTypeNews', 'AnswerTypeRelatedSearches', 'AnswerTypeVideos', 'AnswerTypeComputation', 'AnswerTypeTimeZone' AnswerType AnswerType `json:"answerType,omitempty"` // ResultIndex - READ-ONLY; A zero-based index of the item in the answer.If the item does not include this field, display all items in the answer. For example, display all news articles in the News answer. ResultIndex *int32 `json:"resultIndex,omitempty"` // Value - READ-ONLY; The ID that identifies either an answer to display or an item of an answer to display. If the ID identifies an answer, display all items of the answer. Value BasicIdentifiable `json:"value,omitempty"` // HTMLIndex - READ-ONLY HTMLIndex *int32 `json:"htmlIndex,omitempty"` // TextualIndex - READ-ONLY TextualIndex *int32 `json:"textualIndex,omitempty"` // ScreenshotIndex - READ-ONLY ScreenshotIndex *int32 `json:"screenshotIndex,omitempty"` }
RankingRankingItem defines a search result item to display
func (RankingRankingItem) MarshalJSON ¶
func (rri RankingRankingItem) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RankingRankingItem.
func (*RankingRankingItem) UnmarshalJSON ¶
func (rri *RankingRankingItem) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RankingRankingItem struct.
type RankingRankingResponse ¶
type RankingRankingResponse struct { // Pole - READ-ONLY; The search results that should be afforded the most visible treatment (for example, displayed above the mainline and sidebar). Pole *RankingRankingGroup `json:"pole,omitempty"` // Mainline - READ-ONLY; The search results to display in the mainline. Mainline *RankingRankingGroup `json:"mainline,omitempty"` // Sidebar - READ-ONLY; The search results to display in the sidebar. Sidebar *RankingRankingGroup `json:"sidebar,omitempty"` }
RankingRankingResponse defines where on the search results page content should be placed and in what order.
func (RankingRankingResponse) MarshalJSON ¶
func (rrr RankingRankingResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RankingRankingResponse.
type RelatedSearchesRelatedSearchAnswer ¶
type RelatedSearchesRelatedSearchAnswer struct { // Value - A list of related queries that were made by others. Value *[]Query `json:"value,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
RelatedSearchesRelatedSearchAnswer defines a list of related queries made by others.
func (RelatedSearchesRelatedSearchAnswer) AsAnswer ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsArticle ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicAnswer ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicArticle ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicCreativeWork ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicIdentifiable ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicIntangible ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicMediaObject ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicResponse ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicResponseBase ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicSearchResultsAnswer ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsBasicThing ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsComputation ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsCreativeWork ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsErrorResponse ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsIdentifiable ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsImageObject ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsImages ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsIntangible ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsMediaObject ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsNews ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsNewsArticle ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsPlaces ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsRelatedSearchesRelatedSearchAnswer ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsResponse ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsResponseBase ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsSearchResponse ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsSearchResultsAnswer ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsSpellSuggestions ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsStructuredValue ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsThing ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsTimeZone ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsVideoObject ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsVideos ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsWebPage ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) AsWebWebAnswer ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for RelatedSearchesRelatedSearchAnswer.
func (RelatedSearchesRelatedSearchAnswer) MarshalJSON ¶
func (rsrsa RelatedSearchesRelatedSearchAnswer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RelatedSearchesRelatedSearchAnswer.
type Response ¶
type Response struct { // 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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Response defines a response. All schemas that could be returned at the root of a response should inherit from this
func (Response) AsBasicAnswer ¶
func (r Response) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Response.
func (Response) AsBasicArticle ¶
func (r Response) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for Response.
func (Response) AsBasicCreativeWork ¶
func (r Response) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Response.
func (Response) AsBasicIdentifiable ¶
func (r Response) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Response.
func (Response) AsBasicIntangible ¶
func (r Response) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Response.
func (Response) AsBasicMediaObject ¶
func (r Response) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Response.
func (Response) AsBasicResponse ¶
func (r Response) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Response.
func (Response) AsBasicResponseBase ¶
func (r Response) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Response.
func (Response) AsBasicSearchResultsAnswer ¶
func (r Response) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Response.
func (Response) AsBasicThing ¶
func (r Response) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Response.
func (Response) AsComputation ¶
func (r Response) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for Response.
func (Response) AsCreativeWork ¶
func (r Response) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Response.
func (Response) AsErrorResponse ¶
func (r Response) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Response.
func (Response) AsIdentifiable ¶
func (r Response) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Response.
func (Response) AsImageObject ¶
func (r Response) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Response.
func (Response) AsIntangible ¶
func (r Response) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Response.
func (Response) AsMediaObject ¶
func (r Response) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Response.
func (Response) AsNewsArticle ¶
func (r Response) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Response.
func (Response) AsRelatedSearchesRelatedSearchAnswer ¶
func (r Response) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Response.
func (Response) AsResponse ¶
AsResponse is the BasicResponseBase implementation for Response.
func (Response) AsResponseBase ¶
func (r Response) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Response.
func (Response) AsSearchResponse ¶
func (r Response) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Response.
func (Response) AsSearchResultsAnswer ¶
func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Response.
func (Response) AsSpellSuggestions ¶
func (r Response) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Response.
func (Response) AsStructuredValue ¶
func (r Response) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Response.
func (Response) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for Response.
func (Response) AsVideoObject ¶
func (r Response) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Response.
func (Response) AsWebWebAnswer ¶
func (r Response) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Response.
func (Response) MarshalJSON ¶
MarshalJSON is the custom marshaler for Response.
type ResponseBase ¶
type ResponseBase struct { // Type - Possible values include: 'TypeResponseBase', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
ResponseBase ...
func (ResponseBase) AsAnswer ¶
func (rb ResponseBase) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsArticle ¶
func (rb ResponseBase) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicAnswer ¶
func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicArticle ¶
func (rb ResponseBase) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicCreativeWork ¶
func (rb ResponseBase) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicIdentifiable ¶
func (rb ResponseBase) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicIntangible ¶
func (rb ResponseBase) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicMediaObject ¶
func (rb ResponseBase) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicResponse ¶
func (rb ResponseBase) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicResponseBase ¶
func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicSearchResultsAnswer ¶
func (rb ResponseBase) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsBasicThing ¶
func (rb ResponseBase) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsComputation ¶
func (rb ResponseBase) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsCreativeWork ¶
func (rb ResponseBase) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsErrorResponse ¶
func (rb ResponseBase) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsIdentifiable ¶
func (rb ResponseBase) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsImageObject ¶
func (rb ResponseBase) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsImages ¶
func (rb ResponseBase) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsIntangible ¶
func (rb ResponseBase) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsMediaObject ¶
func (rb ResponseBase) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsNews ¶
func (rb ResponseBase) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsNewsArticle ¶
func (rb ResponseBase) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsPlaces ¶
func (rb ResponseBase) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsRelatedSearchesRelatedSearchAnswer ¶
func (rb ResponseBase) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsResponse ¶
func (rb ResponseBase) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsResponseBase ¶
func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsSearchResponse ¶
func (rb ResponseBase) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsSearchResultsAnswer ¶
func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsSpellSuggestions ¶
func (rb ResponseBase) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsStructuredValue ¶
func (rb ResponseBase) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsThing ¶
func (rb ResponseBase) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsTimeZone ¶
func (rb ResponseBase) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsVideoObject ¶
func (rb ResponseBase) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsVideos ¶
func (rb ResponseBase) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsWebPage ¶
func (rb ResponseBase) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) AsWebWebAnswer ¶
func (rb ResponseBase) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for ResponseBase.
func (ResponseBase) MarshalJSON ¶
func (rb ResponseBase) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ResponseBase.
type SafeSearch ¶
type SafeSearch string
SafeSearch enumerates the values for safe search.
const ( // Moderate ... Moderate SafeSearch = "Moderate" // Off ... Off SafeSearch = "Off" // Strict ... Strict SafeSearch = "Strict" )
func PossibleSafeSearchValues ¶
func PossibleSafeSearchValues() []SafeSearch
PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.
type SearchResponse ¶
type SearchResponse struct { autorest.Response `json:"-"` // QueryContext - READ-ONLY; An object that contains the query string that Bing used for the request. This object contains the query string as entered by the user. It may also contain an altered query string that Bing used for the query if the query string contained a spelling mistake. QueryContext *QueryContext `json:"queryContext,omitempty"` // WebPages - READ-ONLY; A list of webpages that are relevant to the search query. WebPages *WebWebAnswer `json:"webPages,omitempty"` // Images - READ-ONLY; A list of images that are relevant to the search query. Images *Images `json:"images,omitempty"` // News - READ-ONLY; A list of news articles that are relevant to the search query. News *News `json:"news,omitempty"` // RelatedSearches - READ-ONLY; A list of related queries made by others. RelatedSearches *RelatedSearchesRelatedSearchAnswer `json:"relatedSearches,omitempty"` // SpellSuggestions - READ-ONLY; The query string that likely represents the user's intent. SpellSuggestions *SpellSuggestions `json:"spellSuggestions,omitempty"` // TimeZone - READ-ONLY; The date and time of one or more geographic locations. TimeZone *TimeZone `json:"timeZone,omitempty"` // Videos - READ-ONLY; A list of videos that are relevant to the search query. Videos *Videos `json:"videos,omitempty"` // Computation - READ-ONLY; The answer to a math expression or units conversion expression. Computation *Computation `json:"computation,omitempty"` // RankingResponse - READ-ONLY; The order that Bing suggests that you display the search results in. RankingResponse *RankingRankingResponse `json:"rankingResponse,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
SearchResponse defines the top-level object that the response includes when the request succeeds.
func (SearchResponse) AsAnswer ¶
func (sr SearchResponse) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsArticle ¶
func (sr SearchResponse) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicAnswer ¶
func (sr SearchResponse) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicArticle ¶
func (sr SearchResponse) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicCreativeWork ¶
func (sr SearchResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicIdentifiable ¶
func (sr SearchResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicIntangible ¶
func (sr SearchResponse) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicMediaObject ¶
func (sr SearchResponse) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicResponse ¶
func (sr SearchResponse) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicResponseBase ¶
func (sr SearchResponse) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicSearchResultsAnswer ¶
func (sr SearchResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsBasicThing ¶
func (sr SearchResponse) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsComputation ¶
func (sr SearchResponse) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsCreativeWork ¶
func (sr SearchResponse) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsErrorResponse ¶
func (sr SearchResponse) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsIdentifiable ¶
func (sr SearchResponse) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsImageObject ¶
func (sr SearchResponse) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsImages ¶
func (sr SearchResponse) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsIntangible ¶
func (sr SearchResponse) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsMediaObject ¶
func (sr SearchResponse) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsNews ¶
func (sr SearchResponse) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsNewsArticle ¶
func (sr SearchResponse) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsPlaces ¶
func (sr SearchResponse) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsRelatedSearchesRelatedSearchAnswer ¶
func (sr SearchResponse) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsResponse ¶
func (sr SearchResponse) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsResponseBase ¶
func (sr SearchResponse) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsSearchResponse ¶
func (sr SearchResponse) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsSearchResultsAnswer ¶
func (sr SearchResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsSpellSuggestions ¶
func (sr SearchResponse) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsStructuredValue ¶
func (sr SearchResponse) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsThing ¶
func (sr SearchResponse) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsTimeZone ¶
func (sr SearchResponse) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsVideoObject ¶
func (sr SearchResponse) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsVideos ¶
func (sr SearchResponse) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsWebPage ¶
func (sr SearchResponse) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) AsWebWebAnswer ¶
func (sr SearchResponse) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for SearchResponse.
func (SearchResponse) MarshalJSON ¶
func (sr SearchResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SearchResponse.
type SearchResultsAnswer ¶
type SearchResultsAnswer struct { // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
SearchResultsAnswer ...
func (SearchResultsAnswer) AsAnswer ¶
func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsArticle ¶
func (sra SearchResultsAnswer) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicAnswer ¶
func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicArticle ¶
func (sra SearchResultsAnswer) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicCreativeWork ¶
func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicIdentifiable ¶
func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicIntangible ¶
func (sra SearchResultsAnswer) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicMediaObject ¶
func (sra SearchResultsAnswer) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicResponse ¶
func (sra SearchResultsAnswer) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicResponseBase ¶
func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicSearchResultsAnswer ¶
func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsBasicThing ¶
func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsComputation ¶
func (sra SearchResultsAnswer) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsCreativeWork ¶
func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsErrorResponse ¶
func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsIdentifiable ¶
func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsImageObject ¶
func (sra SearchResultsAnswer) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsImages ¶
func (sra SearchResultsAnswer) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsIntangible ¶
func (sra SearchResultsAnswer) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsMediaObject ¶
func (sra SearchResultsAnswer) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsNews ¶
func (sra SearchResultsAnswer) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsNewsArticle ¶
func (sra SearchResultsAnswer) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsPlaces ¶
func (sra SearchResultsAnswer) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsRelatedSearchesRelatedSearchAnswer ¶
func (sra SearchResultsAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsResponse ¶
func (sra SearchResultsAnswer) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsResponseBase ¶
func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsSearchResponse ¶
func (sra SearchResultsAnswer) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsSearchResultsAnswer ¶
func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsSpellSuggestions ¶
func (sra SearchResultsAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsStructuredValue ¶
func (sra SearchResultsAnswer) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsThing ¶
func (sra SearchResultsAnswer) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsTimeZone ¶
func (sra SearchResultsAnswer) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsVideoObject ¶
func (sra SearchResultsAnswer) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsVideos ¶
func (sra SearchResultsAnswer) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsWebPage ¶
func (sra SearchResultsAnswer) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) AsWebWebAnswer ¶
func (sra SearchResultsAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for SearchResultsAnswer.
func (SearchResultsAnswer) MarshalJSON ¶
func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SearchResultsAnswer.
type SpellSuggestions ¶
type SpellSuggestions struct { // Value - A list of suggested query strings that may represent the user's intention. The list contains only one Query object. Value *[]Query `json:"value,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
SpellSuggestions defines a suggested query string that likely represents the user's intent. The search results include this response if Bing determines that the user may have intended to search for something different. For example, if the user searches for alon brown, Bing may determine that the user likely intended to search for Alton Brown instead (based on past searches by others of Alon Brown).
func (SpellSuggestions) AsAnswer ¶
func (ss SpellSuggestions) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsArticle ¶
func (ss SpellSuggestions) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicAnswer ¶
func (ss SpellSuggestions) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicArticle ¶
func (ss SpellSuggestions) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicCreativeWork ¶
func (ss SpellSuggestions) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicIdentifiable ¶
func (ss SpellSuggestions) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicIntangible ¶
func (ss SpellSuggestions) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicMediaObject ¶
func (ss SpellSuggestions) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicResponse ¶
func (ss SpellSuggestions) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicResponseBase ¶
func (ss SpellSuggestions) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicSearchResultsAnswer ¶
func (ss SpellSuggestions) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsBasicThing ¶
func (ss SpellSuggestions) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsComputation ¶
func (ss SpellSuggestions) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsCreativeWork ¶
func (ss SpellSuggestions) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsErrorResponse ¶
func (ss SpellSuggestions) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsIdentifiable ¶
func (ss SpellSuggestions) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsImageObject ¶
func (ss SpellSuggestions) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsImages ¶
func (ss SpellSuggestions) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsIntangible ¶
func (ss SpellSuggestions) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsMediaObject ¶
func (ss SpellSuggestions) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsNews ¶
func (ss SpellSuggestions) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsNewsArticle ¶
func (ss SpellSuggestions) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsPlaces ¶
func (ss SpellSuggestions) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsRelatedSearchesRelatedSearchAnswer ¶
func (ss SpellSuggestions) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsResponse ¶
func (ss SpellSuggestions) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsResponseBase ¶
func (ss SpellSuggestions) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsSearchResponse ¶
func (ss SpellSuggestions) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsSearchResultsAnswer ¶
func (ss SpellSuggestions) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsSpellSuggestions ¶
func (ss SpellSuggestions) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsStructuredValue ¶
func (ss SpellSuggestions) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsThing ¶
func (ss SpellSuggestions) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsTimeZone ¶
func (ss SpellSuggestions) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsVideoObject ¶
func (ss SpellSuggestions) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsVideos ¶
func (ss SpellSuggestions) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsWebPage ¶
func (ss SpellSuggestions) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) AsWebWebAnswer ¶
func (ss SpellSuggestions) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for SpellSuggestions.
func (SpellSuggestions) MarshalJSON ¶
func (ss SpellSuggestions) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SpellSuggestions.
type StructuredValue ¶
type StructuredValue struct { // 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
StructuredValue ...
func (StructuredValue) AsAnswer ¶
func (sv StructuredValue) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsArticle ¶
func (sv StructuredValue) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicAnswer ¶
func (sv StructuredValue) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicArticle ¶
func (sv StructuredValue) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicCreativeWork ¶
func (sv StructuredValue) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicIdentifiable ¶
func (sv StructuredValue) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicIntangible ¶
func (sv StructuredValue) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicMediaObject ¶
func (sv StructuredValue) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicResponse ¶
func (sv StructuredValue) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicResponseBase ¶
func (sv StructuredValue) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicSearchResultsAnswer ¶
func (sv StructuredValue) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsBasicThing ¶
func (sv StructuredValue) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsComputation ¶
func (sv StructuredValue) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsCreativeWork ¶
func (sv StructuredValue) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsErrorResponse ¶
func (sv StructuredValue) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsIdentifiable ¶
func (sv StructuredValue) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsImageObject ¶
func (sv StructuredValue) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsImages ¶
func (sv StructuredValue) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsIntangible ¶
func (sv StructuredValue) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsMediaObject ¶
func (sv StructuredValue) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsNews ¶
func (sv StructuredValue) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsNewsArticle ¶
func (sv StructuredValue) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsPlaces ¶
func (sv StructuredValue) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsRelatedSearchesRelatedSearchAnswer ¶
func (sv StructuredValue) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsResponse ¶
func (sv StructuredValue) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsResponseBase ¶
func (sv StructuredValue) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsSearchResponse ¶
func (sv StructuredValue) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsSearchResultsAnswer ¶
func (sv StructuredValue) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsSpellSuggestions ¶
func (sv StructuredValue) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsStructuredValue ¶
func (sv StructuredValue) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsThing ¶
func (sv StructuredValue) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsTimeZone ¶
func (sv StructuredValue) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsVideoObject ¶
func (sv StructuredValue) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsVideos ¶
func (sv StructuredValue) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsWebPage ¶
func (sv StructuredValue) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) AsWebWebAnswer ¶
func (sv StructuredValue) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for StructuredValue.
func (StructuredValue) MarshalJSON ¶
func (sv StructuredValue) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StructuredValue.
type TextFormat ¶
type TextFormat string
TextFormat enumerates the values for text format.
const ( // HTML ... HTML TextFormat = "Html" // Raw ... Raw TextFormat = "Raw" )
func PossibleTextFormatValues ¶
func PossibleTextFormatValues() []TextFormat
PossibleTextFormatValues returns an array of possible values for the TextFormat const type.
type Thing ¶
type Thing struct { // 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Thing ...
func (Thing) AsBasicAnswer ¶
func (t Thing) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicArticle ¶
func (t Thing) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicCreativeWork ¶
func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicIdentifiable ¶
func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicIntangible ¶
func (t Thing) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicMediaObject ¶
func (t Thing) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicResponse ¶
func (t Thing) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicResponseBase ¶
func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicSearchResultsAnswer ¶
func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Thing.
func (Thing) AsBasicThing ¶
func (t Thing) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Thing.
func (Thing) AsComputation ¶
func (t Thing) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for Thing.
func (Thing) AsCreativeWork ¶
func (t Thing) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Thing.
func (Thing) AsErrorResponse ¶
func (t Thing) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Thing.
func (Thing) AsIdentifiable ¶
func (t Thing) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Thing.
func (Thing) AsImageObject ¶
func (t Thing) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Thing.
func (Thing) AsIntangible ¶
func (t Thing) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Thing.
func (Thing) AsMediaObject ¶
func (t Thing) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Thing.
func (Thing) AsNewsArticle ¶
func (t Thing) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Thing.
func (Thing) AsRelatedSearchesRelatedSearchAnswer ¶
func (t Thing) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Thing.
func (Thing) AsResponse ¶
AsResponse is the BasicResponseBase implementation for Thing.
func (Thing) AsResponseBase ¶
func (t Thing) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Thing.
func (Thing) AsSearchResponse ¶
func (t Thing) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Thing.
func (Thing) AsSearchResultsAnswer ¶
func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Thing.
func (Thing) AsSpellSuggestions ¶
func (t Thing) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Thing.
func (Thing) AsStructuredValue ¶
func (t Thing) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Thing.
func (Thing) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for Thing.
func (Thing) AsVideoObject ¶
func (t Thing) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Thing.
func (Thing) AsWebWebAnswer ¶
func (t Thing) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Thing.
func (Thing) MarshalJSON ¶
MarshalJSON is the custom marshaler for Thing.
type TimeZone ¶
type TimeZone struct { // PrimaryCityTime - The data and time, in UTC, of the geographic location specified in the query. If the query specified a specific geographic location (for example, a city), this object contains the name of the geographic location and the current date and time of the location, in UTC. If the query specified a general geographic location, such as a state or country, this object contains the date and time of the primary city or state found in the specified state or country. If the location contains additional time zones, the otherCityTimes field contains the data and time of cities or states located in the other time zones. PrimaryCityTime *TimeZoneTimeZoneInformation `json:"primaryCityTime,omitempty"` // OtherCityTimes - READ-ONLY; A list of dates and times of nearby time zones. OtherCityTimes *[]TimeZoneTimeZoneInformation `json:"otherCityTimes,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
TimeZone defines the data and time of one or more geographic locations.
func (TimeZone) AsBasicAnswer ¶
func (tz TimeZone) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicArticle ¶
func (tz TimeZone) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicCreativeWork ¶
func (tz TimeZone) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicIdentifiable ¶
func (tz TimeZone) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicIntangible ¶
func (tz TimeZone) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicMediaObject ¶
func (tz TimeZone) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicResponse ¶
func (tz TimeZone) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicResponseBase ¶
func (tz TimeZone) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicSearchResultsAnswer ¶
func (tz TimeZone) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsBasicThing ¶
func (tz TimeZone) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsComputation ¶
func (tz TimeZone) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsCreativeWork ¶
func (tz TimeZone) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsErrorResponse ¶
func (tz TimeZone) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsIdentifiable ¶
func (tz TimeZone) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsImageObject ¶
func (tz TimeZone) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsIntangible ¶
func (tz TimeZone) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsMediaObject ¶
func (tz TimeZone) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsNewsArticle ¶
func (tz TimeZone) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsRelatedSearchesRelatedSearchAnswer ¶
func (tz TimeZone) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsResponse ¶
AsResponse is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsResponseBase ¶
func (tz TimeZone) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsSearchResponse ¶
func (tz TimeZone) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsSearchResultsAnswer ¶
func (tz TimeZone) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsSpellSuggestions ¶
func (tz TimeZone) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsStructuredValue ¶
func (tz TimeZone) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsVideoObject ¶
func (tz TimeZone) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for TimeZone.
func (TimeZone) AsWebWebAnswer ¶
func (tz TimeZone) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for TimeZone.
func (TimeZone) MarshalJSON ¶
MarshalJSON is the custom marshaler for TimeZone.
type TimeZoneTimeZoneInformation ¶
type TimeZoneTimeZoneInformation struct { // Location - The name of the geographical location.For example, County; City; City, State; City, State, Country; or Time Zone. Location *string `json:"location,omitempty"` // Time - The data and time specified in the form, YYYY-MM-DDThh;mm:ss.ssssssZ. Time *string `json:"time,omitempty"` // UtcOffset - The offset from UTC. For example, UTC-7. UtcOffset *string `json:"utcOffset,omitempty"` }
TimeZoneTimeZoneInformation defines a date and time for a geographical location.
type Type ¶
type Type string
Type enumerates the values for type.
const ( // TypeWebWebGrouping ... TypeWebWebGrouping Type = "Web/WebGrouping" )
func PossibleTypeValues ¶
func PossibleTypeValues() []Type
PossibleTypeValues returns an array of possible values for the Type const type.
type TypeBasicResponseBase ¶
type TypeBasicResponseBase string
TypeBasicResponseBase enumerates the values for type basic response base.
const ( // TypeAnswer ... TypeAnswer TypeBasicResponseBase = "Answer" // TypeArticle ... TypeArticle TypeBasicResponseBase = "Article" // TypeComputation ... TypeComputation TypeBasicResponseBase = "Computation" // TypeCreativeWork ... TypeCreativeWork TypeBasicResponseBase = "CreativeWork" // TypeErrorResponse ... TypeErrorResponse TypeBasicResponseBase = "ErrorResponse" // TypeIdentifiable ... TypeIdentifiable TypeBasicResponseBase = "Identifiable" // TypeImageObject ... TypeImageObject TypeBasicResponseBase = "ImageObject" // TypeImages ... TypeImages TypeBasicResponseBase = "Images" // TypeIntangible ... TypeIntangible TypeBasicResponseBase = "Intangible" // TypeMediaObject ... TypeMediaObject TypeBasicResponseBase = "MediaObject" // TypeNews ... TypeNews TypeBasicResponseBase = "News" // TypeNewsArticle ... TypeNewsArticle TypeBasicResponseBase = "NewsArticle" // TypePlaces ... TypePlaces TypeBasicResponseBase = "Places" // TypeRelatedSearchesRelatedSearchAnswer ... TypeRelatedSearchesRelatedSearchAnswer TypeBasicResponseBase = "RelatedSearches/RelatedSearchAnswer" // TypeResponse ... TypeResponse TypeBasicResponseBase = "Response" // TypeResponseBase ... TypeResponseBase TypeBasicResponseBase = "ResponseBase" // TypeSearchResponse ... TypeSearchResponse TypeBasicResponseBase = "SearchResponse" // TypeSearchResultsAnswer ... TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer" // TypeSpellSuggestions ... TypeSpellSuggestions TypeBasicResponseBase = "SpellSuggestions" // TypeStructuredValue ... TypeStructuredValue TypeBasicResponseBase = "StructuredValue" // TypeThing ... TypeThing TypeBasicResponseBase = "Thing" // TypeTimeZone ... TypeTimeZone TypeBasicResponseBase = "TimeZone" // TypeVideoObject ... TypeVideoObject TypeBasicResponseBase = "VideoObject" // TypeVideos ... TypeVideos TypeBasicResponseBase = "Videos" // TypeWebPage ... TypeWebPage TypeBasicResponseBase = "WebPage" // TypeWebWebAnswer ... TypeWebWebAnswer TypeBasicResponseBase = "Web/WebAnswer" )
func PossibleTypeBasicResponseBaseValues ¶
func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase
PossibleTypeBasicResponseBaseValues returns an array of possible values for the TypeBasicResponseBase const type.
type VideoObject ¶
type VideoObject struct { // MotionThumbnailURL - READ-ONLY MotionThumbnailURL *string `json:"motionThumbnailUrl,omitempty"` // MotionThumbnailID - READ-ONLY MotionThumbnailID *string `json:"motionThumbnailId,omitempty"` // EmbedHTML - READ-ONLY EmbedHTML *string `json:"embedHtml,omitempty"` // AllowHTTPSEmbed - READ-ONLY AllowHTTPSEmbed *bool `json:"allowHttpsEmbed,omitempty"` // ViewCount - READ-ONLY ViewCount *int32 `json:"viewCount,omitempty"` // Thumbnail - READ-ONLY Thumbnail *ImageObject `json:"thumbnail,omitempty"` // VideoID - READ-ONLY VideoID *string `json:"videoId,omitempty"` // AllowMobileEmbed - READ-ONLY AllowMobileEmbed *bool `json:"allowMobileEmbed,omitempty"` // IsSuperfresh - READ-ONLY IsSuperfresh *bool `json:"isSuperfresh,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"` // 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"` // Text - READ-ONLY 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
VideoObject defines a video object that is relevant to the query.
func (VideoObject) AsAnswer ¶
func (vo VideoObject) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsArticle ¶
func (vo VideoObject) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicAnswer ¶
func (vo VideoObject) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicArticle ¶
func (vo VideoObject) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicCreativeWork ¶
func (vo VideoObject) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicIdentifiable ¶
func (vo VideoObject) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicIntangible ¶
func (vo VideoObject) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicMediaObject ¶
func (vo VideoObject) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicResponse ¶
func (vo VideoObject) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicResponseBase ¶
func (vo VideoObject) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicSearchResultsAnswer ¶
func (vo VideoObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsBasicThing ¶
func (vo VideoObject) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsComputation ¶
func (vo VideoObject) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsCreativeWork ¶
func (vo VideoObject) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsErrorResponse ¶
func (vo VideoObject) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsIdentifiable ¶
func (vo VideoObject) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsImageObject ¶
func (vo VideoObject) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsImages ¶
func (vo VideoObject) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsIntangible ¶
func (vo VideoObject) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsMediaObject ¶
func (vo VideoObject) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsNews ¶
func (vo VideoObject) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsNewsArticle ¶
func (vo VideoObject) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsPlaces ¶
func (vo VideoObject) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsRelatedSearchesRelatedSearchAnswer ¶
func (vo VideoObject) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsResponse ¶
func (vo VideoObject) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsResponseBase ¶
func (vo VideoObject) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsSearchResponse ¶
func (vo VideoObject) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsSearchResultsAnswer ¶
func (vo VideoObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsSpellSuggestions ¶
func (vo VideoObject) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsStructuredValue ¶
func (vo VideoObject) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsThing ¶
func (vo VideoObject) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsTimeZone ¶
func (vo VideoObject) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsVideoObject ¶
func (vo VideoObject) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsVideos ¶
func (vo VideoObject) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsWebPage ¶
func (vo VideoObject) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for VideoObject.
func (VideoObject) AsWebWebAnswer ¶
func (vo VideoObject) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for VideoObject.
func (VideoObject) MarshalJSON ¶
func (vo VideoObject) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for VideoObject.
func (*VideoObject) UnmarshalJSON ¶
func (vo *VideoObject) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for VideoObject struct.
type Videos ¶
type Videos struct { // Value - A list of video objects that are relevant to the query. Value *[]VideoObject `json:"value,omitempty"` // NextOffset - READ-ONLY NextOffset *int32 `json:"nextOffset,omitempty"` // QueryExpansions - READ-ONLY QueryExpansions *[]Query `json:"queryExpansions,omitempty"` // RelatedSearches - READ-ONLY RelatedSearches *[]Query `json:"relatedSearches,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
Videos defines a video answer.
func (Videos) AsBasicAnswer ¶
func (vVar Videos) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicArticle ¶
func (vVar Videos) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicCreativeWork ¶
func (vVar Videos) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicIdentifiable ¶
func (vVar Videos) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicIntangible ¶
func (vVar Videos) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicMediaObject ¶
func (vVar Videos) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicResponse ¶
func (vVar Videos) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicResponseBase ¶
func (vVar Videos) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicSearchResultsAnswer ¶
func (vVar Videos) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Videos.
func (Videos) AsBasicThing ¶
func (vVar Videos) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for Videos.
func (Videos) AsComputation ¶
func (vVar Videos) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for Videos.
func (Videos) AsCreativeWork ¶
func (vVar Videos) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for Videos.
func (Videos) AsErrorResponse ¶
func (vVar Videos) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for Videos.
func (Videos) AsIdentifiable ¶
func (vVar Videos) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for Videos.
func (Videos) AsImageObject ¶
func (vVar Videos) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for Videos.
func (Videos) AsIntangible ¶
func (vVar Videos) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for Videos.
func (Videos) AsMediaObject ¶
func (vVar Videos) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for Videos.
func (Videos) AsNewsArticle ¶
func (vVar Videos) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for Videos.
func (Videos) AsRelatedSearchesRelatedSearchAnswer ¶
func (vVar Videos) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for Videos.
func (Videos) AsResponse ¶
AsResponse is the BasicResponseBase implementation for Videos.
func (Videos) AsResponseBase ¶
func (vVar Videos) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for Videos.
func (Videos) AsSearchResponse ¶
func (vVar Videos) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for Videos.
func (Videos) AsSearchResultsAnswer ¶
func (vVar Videos) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for Videos.
func (Videos) AsSpellSuggestions ¶
func (vVar Videos) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for Videos.
func (Videos) AsStructuredValue ¶
func (vVar Videos) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for Videos.
func (Videos) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for Videos.
func (Videos) AsVideoObject ¶
func (vVar Videos) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for Videos.
func (Videos) AsWebWebAnswer ¶
func (vVar Videos) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for Videos.
func (Videos) MarshalJSON ¶
MarshalJSON is the custom marshaler for Videos.
type WebClient ¶
type WebClient struct {
BaseClient
}
WebClient is the the Web Search API lets you send a search query to Bing and get back search results that include links to webpages, images, and more.
func NewWebClient ¶
func NewWebClient() WebClient
NewWebClient creates an instance of the WebClient client.
func (WebClient) Search ¶
func (client WebClient) Search(ctx context.Context, query string, acceptLanguage string, pragma string, userAgent string, clientID string, clientIP string, location string, answerCount *int32, countryCode string, count *int32, freshness Freshness, market string, offset *int32, promote []AnswerType, responseFilter []AnswerType, safeSearch SafeSearch, setLang string, textDecorations *bool, textFormat TextFormat) (result SearchResponse, err error)
Search sends the search request. Parameters: query - the user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator. 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 query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the cc query parameter. Bing will use the first supported language it finds from the list, and combine that language with the cc parameter value to determine the market to return results for. If the list does not include a supported language, Bing will find the closest language and market that supports the request, and may use an aggregated or default market for the results instead of a specified one. You should use this header and the cc query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. A user interface string is a string that's used as a label in a user interface. There are very few user interface strings in the JSON response objects. Any links in the response objects to Bing.com properties will apply the specified language. pragma - by default, Bing returns cached content, if available. To prevent Bing from returning cached content, set the Pragma header to no-cache (for example, Pragma: no-cache). userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are strongly encouraged to always specify this header. The user-agent should be the same string that any commonly used browser would send. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). 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 device must have a unique, Bing generated client ID. If you do not include this header in the request, Bing generates an ID and returns it in the X-MSEdge-ClientID response header. The only time that you should NOT include this header in a request is the first time the user uses your app on that device. Use the client ID for each Bing API request that your app makes for this user on the device. Persist the client ID. To persist the ID in a browser app, use a persistent HTTP cookie to ensure the ID is used across all sessions. Do not use a session cookie. For other apps such as mobile apps, use the device's persistent storage to persist the ID. The next time the user uses your app on that device, get the client ID that you persisted. Bing responses may or may not include this header. If the response includes this header, capture the client ID and use it for all subsequent Bing requests for the user on that device. If you include the X-MSEdge-ClientID, you must not include cookies in the request. clientIP - the IPv4 or IPv6 address of the client device. The IP address is used to discover the user's location. Bing uses the location information to determine safe search behavior. Although optional, you are encouraged to always specify this header and the X-Search-Location header. Do not obfuscate the address (for example, by changing the last octet to 0). Obfuscating the address results in the location not being anywhere near the device's actual location, which may result in Bing serving erroneous results. location - a semicolon-delimited list of key/value pairs that describe the client's geographical location. Bing uses the location information to determine safe search behavior and to return relevant local content. Specify the key/value pair as <key>:<value>. The following are the keys that you use to specify the user's location. lat (required): The latitude of the client's location, in degrees. The latitude must be greater than or equal to -90.0 and less than or equal to +90.0. Negative values indicate southern latitudes and positive values indicate northern latitudes. long (required): The longitude of the client's location, in degrees. The longitude must be greater than or equal to -180.0 and less than or equal to +180.0. Negative values indicate western longitudes and positive values indicate eastern longitudes. re (required): The radius, in meters, which specifies the horizontal accuracy of the coordinates. Pass the value returned by the device's location service. Typical values might be 22m for GPS/Wi-Fi, 380m for cell tower triangulation, and 18,000m for reverse IP lookup. ts (optional): The UTC UNIX timestamp of when the client was at the location. (The UNIX timestamp is the number of seconds since January 1, 1970.) head (optional): The client's relative heading or direction of travel. Specify the direction of travel as degrees from 0 through 360, counting clockwise relative to true north. Specify this key only if the sp key is nonzero. sp (optional): The horizontal velocity (speed), in meters per second, that the client device is traveling. alt (optional): The altitude of the client device, in meters. are (optional): The radius, in meters, that specifies the vertical accuracy of the coordinates. Specify this key only if you specify the alt key. Although many of the keys are optional, the more information that you provide, the more accurate the location results are. Although optional, you are encouraged to always specify the user's geographical location. Providing the location is especially important if the client's IP address does not accurately reflect the user's physical location (for example, if the client uses VPN). For optimal results, you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should include this header. answerCount - the number of answers that you want the response to include. The answers that Bing returns are based on ranking. For example, if Bing returns webpages, images, videos, and relatedSearches for a request and you set this parameter to two (2), the response includes webpages and images.If you included the responseFilter query parameter in the same request and set it to webpages and news, the response would include only webpages. countryCode - a 2-character country code of the country where the results come from. This API supports only the United States market. If you specify this query parameter, it must be set to us. If you set this parameter, you must also specify the Accept-Language header. Bing uses the first supported language it finds from the languages list, and combine that language with the country code that you specify to determine the market to return results for. If the languages list does not include a supported language, Bing finds the closest language and market that supports the request, or it may use an aggregated or default market for the results instead of a specified one. You should use this query parameter and the Accept-Language query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This parameter and the mkt query parameter are mutually exclusive—do not specify both. count - the number of search results to return in the response. The default is 10 and the maximum value is 50. The actual number delivered may be less than requested.Use this parameter along with the offset parameter to page results.For example, if your user interface displays 10 search results per page, set count to 10 and offset to 0 to get the first page of results. For each subsequent page, increment offset by 10 (for example, 0, 10, 20). It is possible for multiple pages to include some overlap in results. freshness - filter search results by the following age values: Day—Return webpages that Bing discovered within the last 24 hours. Week—Return webpages that Bing discovered within the last 7 days. Month—Return webpages that discovered within the last 30 days. This filter applies only to webpage results and not to the other results such as news and images. market - the market where the results come from. Typically, mkt is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing delivers results. The market must be in the form <language code>-<country code>. For example, en-US. The string is case insensitive. If known, you are encouraged to always specify the market. Specifying the market helps Bing route the request and return an appropriate and optimal response. If you specify a market that is not listed in Market Codes, Bing uses a best fit market code based on an internal mapping that is subject to change. This parameter and the cc query parameter are mutually exclusive—do not specify both. offset - the zero-based offset that indicates the number of search results to skip before returning results. The default is 0. The offset should be less than (totalEstimatedMatches - count). Use this parameter along with the count parameter to page results. For example, if your user interface displays 10 search results per page, set count to 10 and offset to 0 to get the first page of results. For each subsequent page, increment offset by 10 (for example, 0, 10, 20). it is possible for multiple pages to include some overlap in results. promote - a comma-delimited list of answers that you want the response to include regardless of their ranking. For example, if you set answerCount) to two (2) so Bing returns the top two ranked answers, but you also want the response to include news, you'd set promote to news. If the top ranked answers are webpages, images, videos, and relatedSearches, the response includes webpages and images because news is not a ranked answer. But if you set promote to video, Bing would promote the video answer into the response and return webpages, images, and videos. The answers that you want to promote do not count against the answerCount limit. For example, if the ranked answers are news, images, and videos, and you set answerCount to 1 and promote to news, the response contains news and images. Or, if the ranked answers are videos, images, and news, the response contains videos and news. Possible values are Computation, Images, News, RelatedSearches, SpellSuggestions, TimeZone, Videos, Webpages. Use only if you specify answerCount. responseFilter - a comma-delimited list of answers to include in the response. If you do not specify this parameter, the response includes all search answers for which there's relevant data. Possible filter values are Computation, Images, News, RelatedSearches, SpellSuggestions, TimeZone, Videos, Webpages. Although you may use this filter to get a single answer, you should instead use the answer-specific endpoint in order to get richer results. For example, to receive only images, send the request to one of the Image Search API endpoints. The RelatedSearches and SpellSuggestions answers do not support a separate endpoint like the Image Search API does (only the Web Search API returns them). To include answers that would otherwise be excluded because of ranking, see the promote query parameter. safeSearch - a filter used to filter adult content. Off: Return webpages with adult text, images, or videos. Moderate: Return webpages with adult text, but not adult images or videos. Strict: Do not return webpages with adult text, images, or videos. The default is Moderate. If the request comes from a market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value and uses Strict. If you use the site: query operator, there is the chance that the response may contain adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware of the content on the site and your scenario supports the possibility of adult content. setLang - the language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language code. For example, the language code for English is EN. The default is EN (English). Although optional, you should always specify the language. Typically, you set setLang to the same language specified by mkt unless the user wants the user interface strings displayed in a different language. This parameter and the Accept-Language header are mutually exclusive; do not specify both. 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. Also, any links to Bing.com properties in the response objects apply the specified language. textDecorations - a Boolean value that determines whether display strings should contain decoration markers such as hit highlighting characters. If true, the strings may include markers. The default is false. To specify whether to use Unicode characters or HTML tags as the markers, see the textFormat query parameter. textFormat - the type of markers to use for text decorations (see the textDecorations query parameter). Possible values are Raw—Use Unicode characters to mark content that needs special formatting. The Unicode characters are in the range E000 through E019. For example, Bing uses E000 and E001 to mark the beginning and end of query terms for hit highlighting. HTML—Use HTML tags to mark content that needs special formatting. For example, use <b> tags to highlight query terms in display strings. The default is Raw. For display strings that contain escapable HTML characters such as <, >, and &, if textFormat is set to HTML, Bing escapes the characters as appropriate (for example, < is escaped to <).
func (WebClient) SearchPreparer ¶
func (client WebClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, pragma string, userAgent string, clientID string, clientIP string, location string, answerCount *int32, countryCode string, count *int32, freshness Freshness, market string, offset *int32, promote []AnswerType, responseFilter []AnswerType, safeSearch SafeSearch, setLang string, textDecorations *bool, textFormat TextFormat) (*http.Request, error)
SearchPreparer prepares the Search request.
func (WebClient) SearchResponder ¶
func (client WebClient) SearchResponder(resp *http.Response) (result SearchResponse, err error)
SearchResponder handles the response to the Search request. The method always closes the http.Response Body.
type WebMetaTag ¶
type WebMetaTag struct { // Name - READ-ONLY; The metadata. Name *string `json:"name,omitempty"` // Content - READ-ONLY; The name of the metadata. Content *string `json:"content,omitempty"` }
WebMetaTag defines a webpage's metadata.
func (WebMetaTag) MarshalJSON ¶
func (wmt WebMetaTag) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebMetaTag.
type WebPage ¶
type WebPage struct { // DisplayURL - READ-ONLY; The display URL of the webpage. The URL is meant for display purposes only and is not well formed. DisplayURL *string `json:"displayUrl,omitempty"` // Snippet - READ-ONLY; A snippet of text from the webpage that describes its contents. Snippet *string `json:"snippet,omitempty"` // DeepLinks - READ-ONLY; A list of links to related content that Bing found in the website that contains this webpage. The Webpage object in this context includes only the name, url, urlPingSuffix, and snippet fields. DeepLinks *[]WebPage `json:"deepLinks,omitempty"` // DateLastCrawled - READ-ONLY; The last time that Bing crawled the webpage. The date is in the form, YYYY-MM-DDTHH:MM:SS. For example, 2015-04-13T05:23:39. DateLastCrawled *string `json:"dateLastCrawled,omitempty"` // SearchTags - READ-ONLY; A list of search tags that the webpage owner specified on the webpage. The API returns only indexed search tags. The name field of the MetaTag object contains the indexed search tag. Search tags begin with search.* (for example, search.assetId). The content field contains the tag's value. SearchTags *[]WebMetaTag `json:"searchTags,omitempty"` // PrimaryImageOfPage - READ-ONLY PrimaryImageOfPage *ImageObject `json:"primaryImageOfPage,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"` // Text - READ-ONLY 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 Image *ImageObject `json:"image,omitempty"` // Description - READ-ONLY; A short description of the item. Description *string `json:"description,omitempty"` // BingID - READ-ONLY; An ID that uniquely identifies this item. BingID *string `json:"bingId,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
WebPage defines a webpage that is relevant to the query.
func (WebPage) AsBasicAnswer ¶
func (wp WebPage) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicArticle ¶
func (wp WebPage) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicCreativeWork ¶
func (wp WebPage) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicIdentifiable ¶
func (wp WebPage) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicIntangible ¶
func (wp WebPage) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicMediaObject ¶
func (wp WebPage) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicResponse ¶
func (wp WebPage) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicResponseBase ¶
func (wp WebPage) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicSearchResultsAnswer ¶
func (wp WebPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for WebPage.
func (WebPage) AsBasicThing ¶
func (wp WebPage) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for WebPage.
func (WebPage) AsComputation ¶
func (wp WebPage) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for WebPage.
func (WebPage) AsCreativeWork ¶
func (wp WebPage) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for WebPage.
func (WebPage) AsErrorResponse ¶
func (wp WebPage) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for WebPage.
func (WebPage) AsIdentifiable ¶
func (wp WebPage) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for WebPage.
func (WebPage) AsImageObject ¶
func (wp WebPage) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for WebPage.
func (WebPage) AsIntangible ¶
func (wp WebPage) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for WebPage.
func (WebPage) AsMediaObject ¶
func (wp WebPage) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for WebPage.
func (WebPage) AsNewsArticle ¶
func (wp WebPage) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for WebPage.
func (WebPage) AsRelatedSearchesRelatedSearchAnswer ¶
func (wp WebPage) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for WebPage.
func (WebPage) AsResponse ¶
AsResponse is the BasicResponseBase implementation for WebPage.
func (WebPage) AsResponseBase ¶
func (wp WebPage) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for WebPage.
func (WebPage) AsSearchResponse ¶
func (wp WebPage) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for WebPage.
func (WebPage) AsSearchResultsAnswer ¶
func (wp WebPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for WebPage.
func (WebPage) AsSpellSuggestions ¶
func (wp WebPage) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for WebPage.
func (WebPage) AsStructuredValue ¶
func (wp WebPage) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for WebPage.
func (WebPage) AsTimeZone ¶
AsTimeZone is the BasicResponseBase implementation for WebPage.
func (WebPage) AsVideoObject ¶
func (wp WebPage) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for WebPage.
func (WebPage) AsWebWebAnswer ¶
func (wp WebPage) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for WebPage.
func (WebPage) MarshalJSON ¶
MarshalJSON is the custom marshaler for WebPage.
func (*WebPage) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for WebPage struct.
type WebWebAnswer ¶
type WebWebAnswer struct { // Value - A list of webpages that are relevant to the query. Value *[]WebPage `json:"value,omitempty"` // SomeResultsRemoved - READ-ONLY; A Boolean value that indicates whether the response excluded some results from the answer. If Bing excluded some results, the value is true. SomeResultsRemoved *bool `json:"someResultsRemoved,omitempty"` // QueryContext - READ-ONLY QueryContext *QueryContext `json:"queryContext,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"` // IsFamilyFriendly - READ-ONLY IsFamilyFriendly *bool `json:"isFamilyFriendly,omitempty"` // FollowUpQueries - READ-ONLY FollowUpQueries *[]Query `json:"followUpQueries,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', 'TypeImageObject', 'TypeWebPage', 'TypeWebWebAnswer', 'TypeImages', 'TypeNewsArticle', 'TypeNews', 'TypeRelatedSearchesRelatedSearchAnswer', 'TypeSpellSuggestions', 'TypeTimeZone', 'TypeVideoObject', 'TypeVideos', 'TypeComputation', 'TypeIdentifiable', 'TypeSearchResponse', 'TypeResponse', 'TypeThing', 'TypePlaces', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeErrorResponse', 'TypeCreativeWork', 'TypeIntangible', 'TypeMediaObject', 'TypeArticle', 'TypeStructuredValue' Type TypeBasicResponseBase `json:"_type,omitempty"` }
WebWebAnswer defines a list of relevant webpage links.
func (WebWebAnswer) AsAnswer ¶
func (wwa WebWebAnswer) AsAnswer() (*Answer, bool)
AsAnswer is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsArticle ¶
func (wwa WebWebAnswer) AsArticle() (*Article, bool)
AsArticle is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicAnswer ¶
func (wwa WebWebAnswer) AsBasicAnswer() (BasicAnswer, bool)
AsBasicAnswer is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicArticle ¶
func (wwa WebWebAnswer) AsBasicArticle() (BasicArticle, bool)
AsBasicArticle is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicCreativeWork ¶
func (wwa WebWebAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)
AsBasicCreativeWork is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicIdentifiable ¶
func (wwa WebWebAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)
AsBasicIdentifiable is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicIntangible ¶
func (wwa WebWebAnswer) AsBasicIntangible() (BasicIntangible, bool)
AsBasicIntangible is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicMediaObject ¶
func (wwa WebWebAnswer) AsBasicMediaObject() (BasicMediaObject, bool)
AsBasicMediaObject is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicResponse ¶
func (wwa WebWebAnswer) AsBasicResponse() (BasicResponse, bool)
AsBasicResponse is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicResponseBase ¶
func (wwa WebWebAnswer) AsBasicResponseBase() (BasicResponseBase, bool)
AsBasicResponseBase is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicSearchResultsAnswer ¶
func (wwa WebWebAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
AsBasicSearchResultsAnswer is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsBasicThing ¶
func (wwa WebWebAnswer) AsBasicThing() (BasicThing, bool)
AsBasicThing is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsComputation ¶
func (wwa WebWebAnswer) AsComputation() (*Computation, bool)
AsComputation is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsCreativeWork ¶
func (wwa WebWebAnswer) AsCreativeWork() (*CreativeWork, bool)
AsCreativeWork is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsErrorResponse ¶
func (wwa WebWebAnswer) AsErrorResponse() (*ErrorResponse, bool)
AsErrorResponse is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsIdentifiable ¶
func (wwa WebWebAnswer) AsIdentifiable() (*Identifiable, bool)
AsIdentifiable is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsImageObject ¶
func (wwa WebWebAnswer) AsImageObject() (*ImageObject, bool)
AsImageObject is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsImages ¶
func (wwa WebWebAnswer) AsImages() (*Images, bool)
AsImages is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsIntangible ¶
func (wwa WebWebAnswer) AsIntangible() (*Intangible, bool)
AsIntangible is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsMediaObject ¶
func (wwa WebWebAnswer) AsMediaObject() (*MediaObject, bool)
AsMediaObject is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsNews ¶
func (wwa WebWebAnswer) AsNews() (*News, bool)
AsNews is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsNewsArticle ¶
func (wwa WebWebAnswer) AsNewsArticle() (*NewsArticle, bool)
AsNewsArticle is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsPlaces ¶
func (wwa WebWebAnswer) AsPlaces() (*Places, bool)
AsPlaces is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsRelatedSearchesRelatedSearchAnswer ¶
func (wwa WebWebAnswer) AsRelatedSearchesRelatedSearchAnswer() (*RelatedSearchesRelatedSearchAnswer, bool)
AsRelatedSearchesRelatedSearchAnswer is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsResponse ¶
func (wwa WebWebAnswer) AsResponse() (*Response, bool)
AsResponse is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsResponseBase ¶
func (wwa WebWebAnswer) AsResponseBase() (*ResponseBase, bool)
AsResponseBase is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsSearchResponse ¶
func (wwa WebWebAnswer) AsSearchResponse() (*SearchResponse, bool)
AsSearchResponse is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsSearchResultsAnswer ¶
func (wwa WebWebAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
AsSearchResultsAnswer is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsSpellSuggestions ¶
func (wwa WebWebAnswer) AsSpellSuggestions() (*SpellSuggestions, bool)
AsSpellSuggestions is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsStructuredValue ¶
func (wwa WebWebAnswer) AsStructuredValue() (*StructuredValue, bool)
AsStructuredValue is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsThing ¶
func (wwa WebWebAnswer) AsThing() (*Thing, bool)
AsThing is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsTimeZone ¶
func (wwa WebWebAnswer) AsTimeZone() (*TimeZone, bool)
AsTimeZone is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsVideoObject ¶
func (wwa WebWebAnswer) AsVideoObject() (*VideoObject, bool)
AsVideoObject is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsVideos ¶
func (wwa WebWebAnswer) AsVideos() (*Videos, bool)
AsVideos is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsWebPage ¶
func (wwa WebWebAnswer) AsWebPage() (*WebPage, bool)
AsWebPage is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) AsWebWebAnswer ¶
func (wwa WebWebAnswer) AsWebWebAnswer() (*WebWebAnswer, bool)
AsWebWebAnswer is the BasicResponseBase implementation for WebWebAnswer.
func (WebWebAnswer) MarshalJSON ¶
func (wwa WebWebAnswer) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebWebAnswer.
type WebWebGrouping ¶
type WebWebGrouping struct { WebPages *[]WebPage `json:"webPages,omitempty"` // Type - Possible values include: 'TypeWebWebGrouping' Type Type `json:"_type,omitempty"` }
WebWebGrouping ...
func (WebWebGrouping) AsBasicWebWebGrouping ¶
func (wwg WebWebGrouping) AsBasicWebWebGrouping() (BasicWebWebGrouping, bool)
AsBasicWebWebGrouping is the BasicWebWebGrouping implementation for WebWebGrouping.
func (WebWebGrouping) AsWebWebGrouping ¶
func (wwg WebWebGrouping) AsWebWebGrouping() (*WebWebGrouping, bool)
AsWebWebGrouping is the BasicWebWebGrouping implementation for WebWebGrouping.
func (WebWebGrouping) MarshalJSON ¶
func (wwg WebWebGrouping) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebWebGrouping.