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.
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.
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.
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) 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.
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.