websearch

package
Version: v34.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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

View Source
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) AsAnswer

func (a Answer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsArticle

func (a Answer) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for 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) AsImages

func (a Answer) AsImages() (*Images, bool)

AsImages 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) AsNews

func (a Answer) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Answer.

func (Answer) AsNewsArticle

func (a Answer) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Answer.

func (Answer) AsPlaces

func (a Answer) AsPlaces() (*Places, bool)

AsPlaces 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

func (a Answer) AsResponse() (*Response, bool)

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

func (a Answer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTimeZone

func (a Answer) AsTimeZone() (*TimeZone, bool)

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

func (a Answer) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Answer.

func (Answer) AsWebPage

func (a Answer) AsWebPage() (*WebPage, bool)

AsWebPage 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

func (a Answer) MarshalJSON() ([]byte, error)

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

func (a Article) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Article.

func (Article) AsArticle

func (a Article) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for 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) AsImages

func (a Article) AsImages() (*Images, bool)

AsImages 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) AsNews

func (a Article) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Article.

func (Article) AsNewsArticle

func (a Article) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Article.

func (Article) AsPlaces

func (a Article) AsPlaces() (*Places, bool)

AsPlaces 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

func (a Article) AsResponse() (*Response, bool)

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

func (a Article) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Article.

func (Article) AsTimeZone

func (a Article) AsTimeZone() (*TimeZone, bool)

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

func (a Article) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Article.

func (Article) AsWebPage

func (a Article) AsWebPage() (*WebPage, bool)

AsWebPage 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

func (a Article) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Article.

func (*Article) UnmarshalJSON

func (a *Article) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Article struct.

type BaseClient

type BaseClient struct {
	autorest.Client
	Endpoint string
}

BaseClient is the base client for Websearch.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

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.

const (
	// Day ...
	Day Freshness = "Day"
	// Month ...
	Month Freshness = "Month"
	// Week ...
	Week Freshness = "Week"
)

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

func (i Images) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsArticle

func (i Images) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Images.

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

func (i Images) AsImages() (*Images, bool)

AsImages 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) AsNews

func (i Images) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Images.

func (Images) AsNewsArticle

func (i Images) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Images.

func (Images) AsPlaces

func (i Images) AsPlaces() (*Places, bool)

AsPlaces 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

func (i Images) AsResponse() (*Response, bool)

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

func (i Images) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Images.

func (Images) AsTimeZone

func (i Images) AsTimeZone() (*TimeZone, bool)

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

func (i Images) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Images.

func (Images) AsWebPage

func (i Images) AsWebPage() (*WebPage, bool)

AsWebPage 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

func (i Images) MarshalJSON() ([]byte, error)

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

func (n News) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for News.

func (News) AsArticle

func (n News) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for News.

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

func (n News) AsImages() (*Images, bool)

AsImages 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) AsNews

func (n News) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for News.

func (News) AsNewsArticle

func (n News) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for News.

func (News) AsPlaces

func (n News) AsPlaces() (*Places, bool)

AsPlaces 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

func (n News) AsResponse() (*Response, bool)

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

func (n News) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for News.

func (News) AsTimeZone

func (n News) AsTimeZone() (*TimeZone, bool)

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

func (n News) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for News.

func (News) AsWebPage

func (n News) AsWebPage() (*WebPage, bool)

AsWebPage 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

func (n News) MarshalJSON() ([]byte, error)

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

func (p Places) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Places.

func (Places) AsArticle

func (p Places) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Places.

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

func (p Places) AsImages() (*Images, bool)

AsImages 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) AsNews

func (p Places) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Places.

func (Places) AsNewsArticle

func (p Places) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Places.

func (Places) AsPlaces

func (p Places) AsPlaces() (*Places, bool)

AsPlaces 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

func (p Places) AsResponse() (*Response, bool)

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

func (p Places) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Places.

func (Places) AsTimeZone

func (p Places) AsTimeZone() (*TimeZone, bool)

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

func (p Places) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Places.

func (Places) AsWebPage

func (p Places) AsWebPage() (*WebPage, bool)

AsWebPage 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

func (p Places) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Places.

func (*Places) UnmarshalJSON

func (p *Places) UnmarshalJSON(body []byte) error

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

func (r Response) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsArticle

func (r Response) AsArticle() (*Article, bool)

AsArticle is the BasicResponseBase implementation for Response.

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

func (r Response) AsImages() (*Images, bool)

AsImages 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) AsNews

func (r Response) AsNews() (*News, bool)

AsNews is the BasicResponseBase implementation for Response.

func (Response) AsNewsArticle

func (r Response) AsNewsArticle() (*NewsArticle, bool)

AsNewsArticle is the BasicResponseBase implementation for Response.

func (Response) AsPlaces

func (r Response) AsPlaces() (*Places, bool)

AsPlaces 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

func (r Response) AsResponse() (*Response, bool)

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

func (r Response) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Response.

func (Response) AsTimeZone

func (r Response) AsTimeZone() (*TimeZone, bool)

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

func (r Response) AsVideos() (*Videos, bool)

AsVideos is the BasicResponseBase implementation for Response.

func (Response) AsWebPage

func (r Response) AsWebPage() (*WebPage, bool)

AsWebPage 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

func (r Response) MarshalJSON() ([]byte, error)

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.