imagesearch

package
v61.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 7 Imported by: 387

Documentation

Overview

Package imagesearch implements the Azure ARM Imagesearch service API version 1.0.

The Image Search API lets you send a search query to Bing and get back a list of relevant images. This section provides technical details about the query parameters and headers that you use to request images and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Images](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/search-the-web).

Index

Constants

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 AggregateOffer

type AggregateOffer struct {
	// Offers - READ-ONLY; A list of offers from merchants that have offerings related to the image.
	Offers *[]BasicOffer `json:"offers,omitempty"`
	// Seller - READ-ONLY; Seller for this offer
	Seller *Organization `json:"seller,omitempty"`
	// Price - READ-ONLY; The item's price.
	Price *float64 `json:"price,omitempty"`
	// PriceCurrency - READ-ONLY; The monetary currency. For example, USD. Possible values include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', 'JPY', 'CNY', 'AUD', 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW'
	PriceCurrency Currency `json:"priceCurrency,omitempty"`
	// Availability - READ-ONLY; The item's availability. The following are the possible values: Discontinued, InStock, InStoreOnly, LimitedAvailability, OnlineOnly, OutOfStock, PreOrder, SoldOut. Possible values include: 'Discontinued', 'InStock', 'InStoreOnly', 'LimitedAvailability', 'OnlineOnly', 'OutOfStock', 'PreOrder', 'SoldOut'
	Availability ItemAvailability `json:"availability,omitempty"`
	// AggregateRating - READ-ONLY; An aggregated rating that indicates how well the product has been rated by others.
	AggregateRating *AggregateRating `json:"aggregateRating,omitempty"`
	// LastUpdated - READ-ONLY; The last date that the offer was updated. The date is in the form YYYY-MM-DD.
	LastUpdated *string `json:"lastUpdated,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

AggregateOffer defines a list of offers from merchants that are related to the image.

func (AggregateOffer) AsAggregateOffer

func (ao AggregateOffer) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsAnswer

func (ao AggregateOffer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicAnswer

func (ao AggregateOffer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicCollectionPage

func (ao AggregateOffer) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicCreativeWork

func (ao AggregateOffer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicIdentifiable

func (ao AggregateOffer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicIntangible

func (ao AggregateOffer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicMediaObject

func (ao AggregateOffer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicOffer

func (ao AggregateOffer) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicResponse

func (ao AggregateOffer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicResponseBase

func (ao AggregateOffer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicSearchResultsAnswer

func (ao AggregateOffer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicStructuredValue

func (ao AggregateOffer) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicThing

func (ao AggregateOffer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicWebPage

func (ao AggregateOffer) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsCollectionPage

func (ao AggregateOffer) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsCreativeWork

func (ao AggregateOffer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsErrorResponse

func (ao AggregateOffer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsIdentifiable

func (ao AggregateOffer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageGallery

func (ao AggregateOffer) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageInsights

func (ao AggregateOffer) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageObject

func (ao AggregateOffer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImages

func (ao AggregateOffer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsIntangible

func (ao AggregateOffer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsMediaObject

func (ao AggregateOffer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsNormalizedRectangle

func (ao AggregateOffer) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsOffer

func (ao AggregateOffer) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsOrganization

func (ao AggregateOffer) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsPerson

func (ao AggregateOffer) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecipe

func (ao AggregateOffer) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecognizedEntity

func (ao AggregateOffer) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecognizedEntityRegion

func (ao AggregateOffer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsResponse

func (ao AggregateOffer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsResponseBase

func (ao AggregateOffer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsSearchResultsAnswer

func (ao AggregateOffer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsStructuredValue

func (ao AggregateOffer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsThing

func (ao AggregateOffer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsTrendingImages

func (ao AggregateOffer) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsWebPage

func (ao AggregateOffer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) MarshalJSON

func (ao AggregateOffer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AggregateOffer.

func (*AggregateOffer) UnmarshalJSON

func (ao *AggregateOffer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AggregateOffer struct.

type AggregateRating

type AggregateRating struct {
	// ReviewCount - READ-ONLY; The number of times the recipe has been rated or reviewed.
	ReviewCount *int32 `json:"reviewCount,omitempty"`
	// RatingValue - The mean (average) rating. The possible values are 1.0 through 5.0.
	RatingValue *float64 `json:"ratingValue,omitempty"`
	// BestRating - READ-ONLY; The highest rated review. The possible values are 1.0 through 5.0.
	BestRating *float64 `json:"bestRating,omitempty"`
	// Text - READ-ONLY; Text representation of an item.
	Text *string `json:"text,omitempty"`
	// Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating'
	Type Type `json:"_type,omitempty"`
}

AggregateRating defines the metrics that indicate how well an item was rated by others.

func (AggregateRating) AsAggregateRating

func (ar AggregateRating) AsAggregateRating() (*AggregateRating, bool)

AsAggregateRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsBasicPropertiesItem

func (ar AggregateRating) AsBasicPropertiesItem() (BasicPropertiesItem, bool)

AsBasicPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsBasicRating

func (ar AggregateRating) AsBasicRating() (BasicRating, bool)

AsBasicRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsPropertiesItem

func (ar AggregateRating) AsPropertiesItem() (*PropertiesItem, bool)

AsPropertiesItem is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) AsRating

func (ar AggregateRating) AsRating() (*Rating, bool)

AsRating is the BasicPropertiesItem implementation for AggregateRating.

func (AggregateRating) MarshalJSON

func (ar AggregateRating) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AggregateRating.

type Answer

type Answer struct {
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Answer defines an answer.

func (Answer) AsAggregateOffer

func (a Answer) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicAnswer

func (a Answer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCollectionPage

func (a Answer) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicCreativeWork

func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIdentifiable

func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicIntangible

func (a Answer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicMediaObject

func (a Answer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicOffer

func (a Answer) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponse

func (a Answer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicResponseBase

func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicSearchResultsAnswer

func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicStructuredValue

func (a Answer) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicThing

func (a Answer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Answer.

func (Answer) AsBasicWebPage

func (a Answer) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Answer.

func (Answer) AsCollectionPage

func (a Answer) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Answer.

func (Answer) AsCreativeWork

func (a Answer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Answer.

func (Answer) AsErrorResponse

func (a Answer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Answer.

func (Answer) AsIdentifiable

func (a Answer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Answer.

func (Answer) AsImageGallery

func (a Answer) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Answer.

func (Answer) AsImageInsights

func (a Answer) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Answer.

func (Answer) AsImageObject

func (a Answer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Answer.

func (Answer) 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) AsNormalizedRectangle

func (a Answer) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Answer.

func (Answer) AsOffer

func (a Answer) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Answer.

func (Answer) AsOrganization

func (a Answer) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Answer.

func (Answer) AsPerson

func (a Answer) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Answer.

func (Answer) AsRecipe

func (a Answer) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Answer.

func (Answer) AsRecognizedEntity

func (a Answer) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Answer.

func (Answer) AsRecognizedEntityRegion

func (a Answer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Answer.

func (Answer) AsResponse

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

func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Answer.

func (Answer) AsStructuredValue

func (a Answer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Answer.

func (Answer) AsThing

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

AsThing is the BasicResponseBase implementation for Answer.

func (Answer) AsTrendingImages

func (a Answer) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Answer.

func (Answer) AsWebPage

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

AsWebPage is the BasicResponseBase implementation for Answer.

func (Answer) MarshalJSON

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

MarshalJSON is the custom marshaler for Answer.

type BaseClient

type BaseClient struct {
	autorest.Client
	Endpoint string
}

BaseClient is the base client for Imagesearch.

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 {
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
}

BasicAnswer defines an answer.

type BasicCollectionPage

type BasicCollectionPage interface {
	AsImageGallery() (*ImageGallery, bool)
	AsCollectionPage() (*CollectionPage, bool)
}

BasicCollectionPage defines a link to a webpage that contains a collection.

type BasicCreativeWork

type BasicCreativeWork interface {
	AsImageObject() (*ImageObject, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsCreativeWork() (*CreativeWork, bool)
}

BasicCreativeWork the most generic kind of creative work, including books, movies, photographs, software programs, etc.

type BasicIdentifiable

type BasicIdentifiable interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsRecognizedEntity() (*RecognizedEntity, bool)
	AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
	AsImageInsights() (*ImageInsights, bool)
	AsTrendingImages() (*TrendingImages, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsIdentifiable() (*Identifiable, bool)
}

BasicIdentifiable defines the identity of a resource.

type BasicIntangible

type BasicIntangible interface {
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsIntangible() (*Intangible, bool)
}

BasicIntangible a utility class that serves as the umbrella for a number of 'intangible' things such as quantities, structured values, etc.

type BasicMediaObject

type BasicMediaObject interface {
	AsImageObject() (*ImageObject, bool)
	AsMediaObject() (*MediaObject, bool)
}

BasicMediaObject defines a media object.

type BasicOffer

type BasicOffer interface {
	AsAggregateOffer() (*AggregateOffer, bool)
	AsOffer() (*Offer, bool)
}

BasicOffer defines a merchant's offer.

type BasicPropertiesItem

type BasicPropertiesItem interface {
	AsAggregateRating() (*AggregateRating, bool)
	AsRating() (*Rating, bool)
	AsBasicRating() (BasicRating, bool)
	AsPropertiesItem() (*PropertiesItem, bool)
}

BasicPropertiesItem defines an item.

type BasicRating

type BasicRating interface {
	AsAggregateRating() (*AggregateRating, bool)
	AsRating() (*Rating, bool)
}

BasicRating defines a rating.

type BasicResponse

type BasicResponse interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsRecognizedEntity() (*RecognizedEntity, bool)
	AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
	AsImageInsights() (*ImageInsights, bool)
	AsTrendingImages() (*TrendingImages, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsResponse() (*Response, bool)
}

BasicResponse defines a response. All schemas that could be returned at the root of a response should inherit from this

type BasicResponseBase

type BasicResponseBase interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
	AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)
	AsAnswer() (*Answer, bool)
	AsBasicAnswer() (BasicAnswer, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsIdentifiable() (*Identifiable, bool)
	AsBasicIdentifiable() (BasicIdentifiable, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsRecognizedEntity() (*RecognizedEntity, bool)
	AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)
	AsImageInsights() (*ImageInsights, bool)
	AsTrendingImages() (*TrendingImages, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsResponseBase() (*ResponseBase, bool)
}

BasicResponseBase response base

type BasicSearchResultsAnswer

type BasicSearchResultsAnswer interface {
	AsImages() (*Images, bool)
	AsSearchResultsAnswer() (*SearchResultsAnswer, bool)
}

BasicSearchResultsAnswer defines a search result answer.

type BasicStructuredValue

type BasicStructuredValue interface {
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsStructuredValue() (*StructuredValue, bool)
}

BasicStructuredValue ...

type BasicThing

type BasicThing interface {
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsImageGallery() (*ImageGallery, bool)
	AsRecipe() (*Recipe, bool)
	AsNormalizedRectangle() (*NormalizedRectangle, bool)
	AsWebPage() (*WebPage, bool)
	AsBasicWebPage() (BasicWebPage, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsThing() (*Thing, bool)
}

BasicThing defines a thing.

type BasicWebPage

type BasicWebPage interface {
	AsImageGallery() (*ImageGallery, bool)
	AsCollectionPage() (*CollectionPage, bool)
	AsBasicCollectionPage() (BasicCollectionPage, bool)
	AsWebPage() (*WebPage, bool)
}

BasicWebPage defines a webpage that is relevant to the query.

type CollectionPage

type CollectionPage struct {
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

CollectionPage defines a link to a webpage that contains a collection.

func (CollectionPage) AsAggregateOffer

func (cp CollectionPage) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsAnswer

func (cp CollectionPage) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicAnswer

func (cp CollectionPage) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicCollectionPage

func (cp CollectionPage) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicCreativeWork

func (cp CollectionPage) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicIdentifiable

func (cp CollectionPage) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicIntangible

func (cp CollectionPage) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicMediaObject

func (cp CollectionPage) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicOffer

func (cp CollectionPage) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicResponse

func (cp CollectionPage) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicResponseBase

func (cp CollectionPage) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicSearchResultsAnswer

func (cp CollectionPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicStructuredValue

func (cp CollectionPage) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicThing

func (cp CollectionPage) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsBasicWebPage

func (cp CollectionPage) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsCollectionPage

func (cp CollectionPage) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsCreativeWork

func (cp CollectionPage) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsErrorResponse

func (cp CollectionPage) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsIdentifiable

func (cp CollectionPage) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageGallery

func (cp CollectionPage) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageInsights

func (cp CollectionPage) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImageObject

func (cp CollectionPage) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsImages

func (cp CollectionPage) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsIntangible

func (cp CollectionPage) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsMediaObject

func (cp CollectionPage) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsNormalizedRectangle

func (cp CollectionPage) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsOffer

func (cp CollectionPage) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsOrganization

func (cp CollectionPage) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsPerson

func (cp CollectionPage) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecipe

func (cp CollectionPage) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecognizedEntity

func (cp CollectionPage) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsRecognizedEntityRegion

func (cp CollectionPage) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsResponse

func (cp CollectionPage) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsResponseBase

func (cp CollectionPage) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsSearchResultsAnswer

func (cp CollectionPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsStructuredValue

func (cp CollectionPage) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsThing

func (cp CollectionPage) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsTrendingImages

func (cp CollectionPage) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) AsWebPage

func (cp CollectionPage) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for CollectionPage.

func (CollectionPage) MarshalJSON

func (cp CollectionPage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CollectionPage.

func (*CollectionPage) UnmarshalJSON

func (cp *CollectionPage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CollectionPage struct.

type CreativeWork

type CreativeWork struct {
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

CreativeWork the most generic kind of creative work, including books, movies, photographs, software programs, etc.

func (CreativeWork) AsAggregateOffer

func (cw CreativeWork) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAnswer

func (cw CreativeWork) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAnswer

func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCollectionPage

func (cw CreativeWork) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicCreativeWork

func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIdentifiable

func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicIntangible

func (cw CreativeWork) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicMediaObject

func (cw CreativeWork) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicOffer

func (cw CreativeWork) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponse

func (cw CreativeWork) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicResponseBase

func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicSearchResultsAnswer

func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicStructuredValue

func (cw CreativeWork) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicThing

func (cw CreativeWork) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicWebPage

func (cw CreativeWork) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCollectionPage

func (cw CreativeWork) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsCreativeWork

func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsErrorResponse

func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIdentifiable

func (cw CreativeWork) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageGallery

func (cw CreativeWork) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageInsights

func (cw CreativeWork) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject

func (cw CreativeWork) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImages

func (cw CreativeWork) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsIntangible

func (cw CreativeWork) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsMediaObject

func (cw CreativeWork) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsNormalizedRectangle

func (cw CreativeWork) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOffer

func (cw CreativeWork) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsOrganization

func (cw CreativeWork) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsPerson

func (cw CreativeWork) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecipe

func (cw CreativeWork) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecognizedEntity

func (cw CreativeWork) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecognizedEntityRegion

func (cw CreativeWork) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponse

func (cw CreativeWork) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsResponseBase

func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsSearchResultsAnswer

func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsStructuredValue

func (cw CreativeWork) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsThing

func (cw CreativeWork) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsTrendingImages

func (cw CreativeWork) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsWebPage

func (cw CreativeWork) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) MarshalJSON

func (cw CreativeWork) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreativeWork.

func (*CreativeWork) UnmarshalJSON

func (cw *CreativeWork) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CreativeWork struct.

type Currency

type Currency string

Currency enumerates the values for currency.

const (
	// AED ...
	AED Currency = "AED"
	// AFN ...
	AFN Currency = "AFN"
	// ALL ...
	ALL Currency = "ALL"
	// AMD ...
	AMD Currency = "AMD"
	// ANG ...
	ANG Currency = "ANG"
	// AOA ...
	AOA Currency = "AOA"
	// ARS ...
	ARS Currency = "ARS"
	// AUD ...
	AUD Currency = "AUD"
	// AWG ...
	AWG Currency = "AWG"
	// AZN ...
	AZN Currency = "AZN"
	// BAM ...
	BAM Currency = "BAM"
	// BBD ...
	BBD Currency = "BBD"
	// BDT ...
	BDT Currency = "BDT"
	// BGN ...
	BGN Currency = "BGN"
	// BHD ...
	BHD Currency = "BHD"
	// BIF ...
	BIF Currency = "BIF"
	// BMD ...
	BMD Currency = "BMD"
	// BND ...
	BND Currency = "BND"
	// BOB ...
	BOB Currency = "BOB"
	// BOV ...
	BOV Currency = "BOV"
	// BRL ...
	BRL Currency = "BRL"
	// BSD ...
	BSD Currency = "BSD"
	// BTN ...
	BTN Currency = "BTN"
	// BWP ...
	BWP Currency = "BWP"
	// BYR ...
	BYR Currency = "BYR"
	// BZD ...
	BZD Currency = "BZD"
	// CAD ...
	CAD Currency = "CAD"
	// CDF ...
	CDF Currency = "CDF"
	// CHE ...
	CHE Currency = "CHE"
	// CHF ...
	CHF Currency = "CHF"
	// CHW ...
	CHW Currency = "CHW"
	// CLF ...
	CLF Currency = "CLF"
	// CLP ...
	CLP Currency = "CLP"
	// CNY ...
	CNY Currency = "CNY"
	// COP ...
	COP Currency = "COP"
	// COU ...
	COU Currency = "COU"
	// CRC ...
	CRC Currency = "CRC"
	// CUC ...
	CUC Currency = "CUC"
	// CUP ...
	CUP Currency = "CUP"
	// CVE ...
	CVE Currency = "CVE"
	// CZK ...
	CZK Currency = "CZK"
	// DJF ...
	DJF Currency = "DJF"
	// DKK ...
	DKK Currency = "DKK"
	// DOP ...
	DOP Currency = "DOP"
	// DZD ...
	DZD Currency = "DZD"
	// EGP ...
	EGP Currency = "EGP"
	// ERN ...
	ERN Currency = "ERN"
	// ETB ...
	ETB Currency = "ETB"
	// EUR ...
	EUR Currency = "EUR"
	// FJD ...
	FJD Currency = "FJD"
	// FKP ...
	FKP Currency = "FKP"
	// GBP ...
	GBP Currency = "GBP"
	// GEL ...
	GEL Currency = "GEL"
	// GHS ...
	GHS Currency = "GHS"
	// GIP ...
	GIP Currency = "GIP"
	// GMD ...
	GMD Currency = "GMD"
	// GNF ...
	GNF Currency = "GNF"
	// GTQ ...
	GTQ Currency = "GTQ"
	// GYD ...
	GYD Currency = "GYD"
	// HKD ...
	HKD Currency = "HKD"
	// HNL ...
	HNL Currency = "HNL"
	// HRK ...
	HRK Currency = "HRK"
	// HTG ...
	HTG Currency = "HTG"
	// HUF ...
	HUF Currency = "HUF"
	// IDR ...
	IDR Currency = "IDR"
	// ILS ...
	ILS Currency = "ILS"
	// INR ...
	INR Currency = "INR"
	// IQD ...
	IQD Currency = "IQD"
	// IRR ...
	IRR Currency = "IRR"
	// ISK ...
	ISK Currency = "ISK"
	// JMD ...
	JMD Currency = "JMD"
	// JOD ...
	JOD Currency = "JOD"
	// JPY ...
	JPY Currency = "JPY"
	// KES ...
	KES Currency = "KES"
	// KGS ...
	KGS Currency = "KGS"
	// KHR ...
	KHR Currency = "KHR"
	// KMF ...
	KMF Currency = "KMF"
	// KPW ...
	KPW Currency = "KPW"
	// KRW ...
	KRW Currency = "KRW"
	// KWD ...
	KWD Currency = "KWD"
	// KYD ...
	KYD Currency = "KYD"
	// KZT ...
	KZT Currency = "KZT"
	// LAK ...
	LAK Currency = "LAK"
	// LBP ...
	LBP Currency = "LBP"
	// LKR ...
	LKR Currency = "LKR"
	// LRD ...
	LRD Currency = "LRD"
	// LSL ...
	LSL Currency = "LSL"
	// LYD ...
	LYD Currency = "LYD"
	// MAD ...
	MAD Currency = "MAD"
	// MDL ...
	MDL Currency = "MDL"
	// MGA ...
	MGA Currency = "MGA"
	// MKD ...
	MKD Currency = "MKD"
	// MMK ...
	MMK Currency = "MMK"
	// MNT ...
	MNT Currency = "MNT"
	// MOP ...
	MOP Currency = "MOP"
	// MRO ...
	MRO Currency = "MRO"
	// MUR ...
	MUR Currency = "MUR"
	// MVR ...
	MVR Currency = "MVR"
	// MWK ...
	MWK Currency = "MWK"
	// MXN ...
	MXN Currency = "MXN"
	// MXV ...
	MXV Currency = "MXV"
	// MYR ...
	MYR Currency = "MYR"
	// MZN ...
	MZN Currency = "MZN"
	// NAD ...
	NAD Currency = "NAD"
	// NGN ...
	NGN Currency = "NGN"
	// NIO ...
	NIO Currency = "NIO"
	// NOK ...
	NOK Currency = "NOK"
	// NPR ...
	NPR Currency = "NPR"
	// NZD ...
	NZD Currency = "NZD"
	// OMR ...
	OMR Currency = "OMR"
	// PAB ...
	PAB Currency = "PAB"
	// PEN ...
	PEN Currency = "PEN"
	// PGK ...
	PGK Currency = "PGK"
	// PHP ...
	PHP Currency = "PHP"
	// PKR ...
	PKR Currency = "PKR"
	// PLN ...
	PLN Currency = "PLN"
	// PYG ...
	PYG Currency = "PYG"
	// QAR ...
	QAR Currency = "QAR"
	// RON ...
	RON Currency = "RON"
	// RSD ...
	RSD Currency = "RSD"
	// RUB ...
	RUB Currency = "RUB"
	// RWF ...
	RWF Currency = "RWF"
	// SAR ...
	SAR Currency = "SAR"
	// SBD ...
	SBD Currency = "SBD"
	// SCR ...
	SCR Currency = "SCR"
	// SDG ...
	SDG Currency = "SDG"
	// SEK ...
	SEK Currency = "SEK"
	// SGD ...
	SGD Currency = "SGD"
	// SHP ...
	SHP Currency = "SHP"
	// SLL ...
	SLL Currency = "SLL"
	// SOS ...
	SOS Currency = "SOS"
	// SRD ...
	SRD Currency = "SRD"
	// SSP ...
	SSP Currency = "SSP"
	// STD ...
	STD Currency = "STD"
	// SYP ...
	SYP Currency = "SYP"
	// SZL ...
	SZL Currency = "SZL"
	// THB ...
	THB Currency = "THB"
	// TJS ...
	TJS Currency = "TJS"
	// TMT ...
	TMT Currency = "TMT"
	// TND ...
	TND Currency = "TND"
	// TOP ...
	TOP Currency = "TOP"
	// TRY ...
	TRY Currency = "TRY"
	// TTD ...
	TTD Currency = "TTD"
	// TWD ...
	TWD Currency = "TWD"
	// TZS ...
	TZS Currency = "TZS"
	// UAH ...
	UAH Currency = "UAH"
	// UGX ...
	UGX Currency = "UGX"
	// USD ...
	USD Currency = "USD"
	// UYU ...
	UYU Currency = "UYU"
	// UZS ...
	UZS Currency = "UZS"
	// VEF ...
	VEF Currency = "VEF"
	// VND ...
	VND Currency = "VND"
	// VUV ...
	VUV Currency = "VUV"
	// WST ...
	WST Currency = "WST"
	// XAF ...
	XAF Currency = "XAF"
	// XCD ...
	XCD Currency = "XCD"
	// XOF ...
	XOF Currency = "XOF"
	// XPF ...
	XPF Currency = "XPF"
	// YER ...
	YER Currency = "YER"
	// ZAR ...
	ZAR Currency = "ZAR"
	// ZMW ...
	ZMW Currency = "ZMW"
)

func PossibleCurrencyValues

func PossibleCurrencyValues() []Currency

PossibleCurrencyValues returns an array of possible values for the Currency const type.

type Error

type Error struct {
	// Code - The error code that identifies the category of error. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'
	Code ErrorCode `json:"code,omitempty"`
	// SubCode - READ-ONLY; The error code that further helps to identify the error. Possible values include: 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', 'HTTPNotAllowed', 'Blocked', 'AuthorizationMissing', 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired'
	SubCode ErrorSubCode `json:"subCode,omitempty"`
	// Message - A description of the error.
	Message *string `json:"message,omitempty"`
	// MoreDetails - READ-ONLY; A description that provides additional information about the error.
	MoreDetails *string `json:"moreDetails,omitempty"`
	// Parameter - READ-ONLY; The parameter in the request that caused the error.
	Parameter *string `json:"parameter,omitempty"`
	// Value - READ-ONLY; The parameter's value in the request that was not valid.
	Value *string `json:"value,omitempty"`
}

Error defines the error that occurred.

func (Error) MarshalJSON

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Error.

type ErrorCode

type ErrorCode string

ErrorCode enumerates the values for error code.

const (
	// InsufficientAuthorization ...
	InsufficientAuthorization ErrorCode = "InsufficientAuthorization"
	// InvalidAuthorization ...
	InvalidAuthorization ErrorCode = "InvalidAuthorization"
	// InvalidRequest ...
	InvalidRequest ErrorCode = "InvalidRequest"
	// None ...
	None ErrorCode = "None"
	// RateLimitExceeded ...
	RateLimitExceeded ErrorCode = "RateLimitExceeded"
	// ServerError ...
	ServerError ErrorCode = "ServerError"
)

func PossibleErrorCodeValues

func PossibleErrorCodeValues() []ErrorCode

PossibleErrorCodeValues returns an array of possible values for the ErrorCode const type.

type ErrorResponse

type ErrorResponse struct {
	// Errors - A list of errors that describe the reasons why the request failed.
	Errors *[]Error `json:"errors,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ErrorResponse the top-level response that represents a failed request.

func (ErrorResponse) AsAggregateOffer

func (er ErrorResponse) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsAnswer

func (er ErrorResponse) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAnswer

func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCollectionPage

func (er ErrorResponse) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicCreativeWork

func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIdentifiable

func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicIntangible

func (er ErrorResponse) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicMediaObject

func (er ErrorResponse) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicOffer

func (er ErrorResponse) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponse

func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicResponseBase

func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicSearchResultsAnswer

func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicStructuredValue

func (er ErrorResponse) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicThing

func (er ErrorResponse) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicWebPage

func (er ErrorResponse) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCollectionPage

func (er ErrorResponse) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsCreativeWork

func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsErrorResponse

func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIdentifiable

func (er ErrorResponse) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageGallery

func (er ErrorResponse) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageInsights

func (er ErrorResponse) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageObject

func (er ErrorResponse) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImages

func (er ErrorResponse) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsIntangible

func (er ErrorResponse) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsMediaObject

func (er ErrorResponse) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsNormalizedRectangle

func (er ErrorResponse) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsOffer

func (er ErrorResponse) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsOrganization

func (er ErrorResponse) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsPerson

func (er ErrorResponse) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecipe

func (er ErrorResponse) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecognizedEntity

func (er ErrorResponse) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecognizedEntityRegion

func (er ErrorResponse) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponse

func (er ErrorResponse) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsResponseBase

func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsSearchResultsAnswer

func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsStructuredValue

func (er ErrorResponse) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsThing

func (er ErrorResponse) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsTrendingImages

func (er ErrorResponse) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsWebPage

func (er ErrorResponse) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) MarshalJSON

func (er ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorResponse.

type ErrorSubCode

type ErrorSubCode string

ErrorSubCode enumerates the values for error sub code.

const (
	// AuthorizationDisabled ...
	AuthorizationDisabled ErrorSubCode = "AuthorizationDisabled"
	// AuthorizationExpired ...
	AuthorizationExpired ErrorSubCode = "AuthorizationExpired"
	// AuthorizationMissing ...
	AuthorizationMissing ErrorSubCode = "AuthorizationMissing"
	// AuthorizationRedundancy ...
	AuthorizationRedundancy ErrorSubCode = "AuthorizationRedundancy"
	// Blocked ...
	Blocked ErrorSubCode = "Blocked"
	// HTTPNotAllowed ...
	HTTPNotAllowed ErrorSubCode = "HttpNotAllowed"
	// NotImplemented ...
	NotImplemented ErrorSubCode = "NotImplemented"
	// ParameterInvalidValue ...
	ParameterInvalidValue ErrorSubCode = "ParameterInvalidValue"
	// ParameterMissing ...
	ParameterMissing ErrorSubCode = "ParameterMissing"
	// ResourceError ...
	ResourceError ErrorSubCode = "ResourceError"
	// UnexpectedError ...
	UnexpectedError ErrorSubCode = "UnexpectedError"
)

func PossibleErrorSubCodeValues

func PossibleErrorSubCodeValues() []ErrorSubCode

PossibleErrorSubCodeValues returns an array of possible values for the ErrorSubCode const type.

type Freshness

type Freshness string

Freshness enumerates the values for freshness.

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', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Identifiable defines the identity of a resource.

func (Identifiable) AsAggregateOffer

func (i Identifiable) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAnswer

func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCollectionPage

func (i Identifiable) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicCreativeWork

func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIdentifiable

func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicIntangible

func (i Identifiable) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicMediaObject

func (i Identifiable) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicOffer

func (i Identifiable) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponse

func (i Identifiable) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicResponseBase

func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicSearchResultsAnswer

func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicStructuredValue

func (i Identifiable) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicThing

func (i Identifiable) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicWebPage

func (i Identifiable) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCollectionPage

func (i Identifiable) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsCreativeWork

func (i Identifiable) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsErrorResponse

func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIdentifiable

func (i Identifiable) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageGallery

func (i Identifiable) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageInsights

func (i Identifiable) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageObject

func (i Identifiable) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImages

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

AsImages is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsIntangible

func (i Identifiable) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsMediaObject

func (i Identifiable) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsNormalizedRectangle

func (i Identifiable) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsOffer

func (i Identifiable) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsOrganization

func (i Identifiable) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsPerson

func (i Identifiable) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecipe

func (i Identifiable) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecognizedEntity

func (i Identifiable) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecognizedEntityRegion

func (i Identifiable) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponse

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

AsResponse is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsResponseBase

func (i Identifiable) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsSearchResultsAnswer

func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsStructuredValue

func (i Identifiable) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsThing

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

AsThing is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsTrendingImages

func (i Identifiable) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsWebPage

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

AsWebPage is the BasicResponseBase implementation for Identifiable.

func (Identifiable) MarshalJSON

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

MarshalJSON is the custom marshaler for Identifiable.

type ImageAspect

type ImageAspect string

ImageAspect enumerates the values for image aspect.

const (
	// All ...
	All ImageAspect = "All"
	// Square ...
	Square ImageAspect = "Square"
	// Tall ...
	Tall ImageAspect = "Tall"
	// Wide ...
	Wide ImageAspect = "Wide"
)

func PossibleImageAspectValues

func PossibleImageAspectValues() []ImageAspect

PossibleImageAspectValues returns an array of possible values for the ImageAspect const type.

type ImageColor

type ImageColor string

ImageColor enumerates the values for image color.

const (
	// Black ...
	Black ImageColor = "Black"
	// Blue ...
	Blue ImageColor = "Blue"
	// Brown ...
	Brown ImageColor = "Brown"
	// ColorOnly ...
	ColorOnly ImageColor = "ColorOnly"
	// Gray ...
	Gray ImageColor = "Gray"
	// Green ...
	Green ImageColor = "Green"
	// Monochrome ...
	Monochrome ImageColor = "Monochrome"
	// Orange ...
	Orange ImageColor = "Orange"
	// Pink ...
	Pink ImageColor = "Pink"
	// Purple ...
	Purple ImageColor = "Purple"
	// Red ...
	Red ImageColor = "Red"
	// Teal ...
	Teal ImageColor = "Teal"
	// White ...
	White ImageColor = "White"
	// Yellow ...
	Yellow ImageColor = "Yellow"
)

func PossibleImageColorValues

func PossibleImageColorValues() []ImageColor

PossibleImageColorValues returns an array of possible values for the ImageColor const type.

type ImageContent

type ImageContent string

ImageContent enumerates the values for image content.

const (
	// Face ...
	Face ImageContent = "Face"
	// Portrait ...
	Portrait ImageContent = "Portrait"
)

func PossibleImageContentValues

func PossibleImageContentValues() []ImageContent

PossibleImageContentValues returns an array of possible values for the ImageContent const type.

type ImageCropType

type ImageCropType string

ImageCropType enumerates the values for image crop type.

const (
	// Rectangular ...
	Rectangular ImageCropType = "Rectangular"
)

func PossibleImageCropTypeValues

func PossibleImageCropTypeValues() []ImageCropType

PossibleImageCropTypeValues returns an array of possible values for the ImageCropType const type.

type ImageGallery

type ImageGallery struct {
	// Source - READ-ONLY; The publisher or social network where the images were found. You must attribute the publisher as the source where the collection was found.
	Source *string `json:"source,omitempty"`
	// ImagesCount - READ-ONLY; The number of related images found in the collection.
	ImagesCount *int64 `json:"imagesCount,omitempty"`
	// FollowersCount - READ-ONLY; The number of users on the social network that follow the creator.
	FollowersCount *int64 `json:"followersCount,omitempty"`
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ImageGallery defines a link to a webpage that contains a collection of related images.

func (ImageGallery) AsAggregateOffer

func (ig ImageGallery) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsAnswer

func (ig ImageGallery) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicAnswer

func (ig ImageGallery) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicCollectionPage

func (ig ImageGallery) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicCreativeWork

func (ig ImageGallery) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicIdentifiable

func (ig ImageGallery) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicIntangible

func (ig ImageGallery) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicMediaObject

func (ig ImageGallery) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicOffer

func (ig ImageGallery) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicResponse

func (ig ImageGallery) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicResponseBase

func (ig ImageGallery) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicSearchResultsAnswer

func (ig ImageGallery) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicStructuredValue

func (ig ImageGallery) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicThing

func (ig ImageGallery) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsBasicWebPage

func (ig ImageGallery) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsCollectionPage

func (ig ImageGallery) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsCreativeWork

func (ig ImageGallery) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsErrorResponse

func (ig ImageGallery) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsIdentifiable

func (ig ImageGallery) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageGallery

func (ig ImageGallery) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageInsights

func (ig ImageGallery) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImageObject

func (ig ImageGallery) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsImages

func (ig ImageGallery) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsIntangible

func (ig ImageGallery) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsMediaObject

func (ig ImageGallery) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsNormalizedRectangle

func (ig ImageGallery) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsOffer

func (ig ImageGallery) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsOrganization

func (ig ImageGallery) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsPerson

func (ig ImageGallery) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecipe

func (ig ImageGallery) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecognizedEntity

func (ig ImageGallery) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsRecognizedEntityRegion

func (ig ImageGallery) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsResponse

func (ig ImageGallery) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsResponseBase

func (ig ImageGallery) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsSearchResultsAnswer

func (ig ImageGallery) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsStructuredValue

func (ig ImageGallery) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsThing

func (ig ImageGallery) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsTrendingImages

func (ig ImageGallery) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) AsWebPage

func (ig ImageGallery) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ImageGallery.

func (ImageGallery) MarshalJSON

func (ig ImageGallery) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageGallery.

func (*ImageGallery) UnmarshalJSON

func (ig *ImageGallery) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageGallery struct.

type ImageInsightModule

type ImageInsightModule string

ImageInsightModule enumerates the values for image insight module.

const (
	// ImageInsightModuleAll ...
	ImageInsightModuleAll ImageInsightModule = "All"
	// ImageInsightModuleBRQ ...
	ImageInsightModuleBRQ ImageInsightModule = "BRQ"
	// ImageInsightModuleCaption ...
	ImageInsightModuleCaption ImageInsightModule = "Caption"
	// ImageInsightModuleCollections ...
	ImageInsightModuleCollections ImageInsightModule = "Collections"
	// ImageInsightModulePagesIncluding ...
	ImageInsightModulePagesIncluding ImageInsightModule = "PagesIncluding"
	// ImageInsightModuleRecipes ...
	ImageInsightModuleRecipes ImageInsightModule = "Recipes"
	// ImageInsightModuleRecognizedEntities ...
	ImageInsightModuleRecognizedEntities ImageInsightModule = "RecognizedEntities"
	// ImageInsightModuleRelatedSearches ...
	ImageInsightModuleRelatedSearches ImageInsightModule = "RelatedSearches"
	// ImageInsightModuleShoppingSources ...
	ImageInsightModuleShoppingSources ImageInsightModule = "ShoppingSources"
	// ImageInsightModuleSimilarImages ...
	ImageInsightModuleSimilarImages ImageInsightModule = "SimilarImages"
	// ImageInsightModuleSimilarProducts ...
	ImageInsightModuleSimilarProducts ImageInsightModule = "SimilarProducts"
	// ImageInsightModuleTags ...
	ImageInsightModuleTags ImageInsightModule = "Tags"
)

func PossibleImageInsightModuleValues

func PossibleImageInsightModuleValues() []ImageInsightModule

PossibleImageInsightModuleValues returns an array of possible values for the ImageInsightModule const type.

type ImageInsights

type ImageInsights struct {
	autorest.Response `json:"-"`
	// ImageInsightsToken - READ-ONLY; A token that you use in a subsequent call to the Image Search API to get more information about the image. For information about using this token, see the insightsToken query parameter. This token has the same usage as the token in the Image object.
	ImageInsightsToken *string `json:"imageInsightsToken,omitempty"`
	// BestRepresentativeQuery - READ-ONLY; The query term that best represents the image. Clicking the link in the Query object, takes the user to a webpage with more pictures of the image.
	BestRepresentativeQuery *Query `json:"bestRepresentativeQuery,omitempty"`
	// ImageCaption - READ-ONLY; The caption to use for the image.
	ImageCaption *ImageInsightsImageCaption `json:"imageCaption,omitempty"`
	// RelatedCollections - READ-ONLY; A list of links to webpages that contain related images.
	RelatedCollections *RelatedCollectionsModule `json:"relatedCollections,omitempty"`
	// PagesIncluding - READ-ONLY; A list of webpages that contain the image. To access the webpage, use the URL in the image's hostPageUrl field.
	PagesIncluding *ImagesModule `json:"pagesIncluding,omitempty"`
	// ShoppingSources - READ-ONLY; A list of merchants that offer items related to the image. For example, if the image is of an apple pie, the list contains merchants that are selling apple pies.
	ShoppingSources *AggregateOffer `json:"shoppingSources,omitempty"`
	// RelatedSearches - READ-ONLY; A list of related queries made by others.
	RelatedSearches *RelatedSearchesModule `json:"relatedSearches,omitempty"`
	// Recipes - READ-ONLY; A list of recipes related to the image. For example, if the image is of an apple pie, the list contains recipes for making an apple pie.
	Recipes *RecipesModule `json:"recipes,omitempty"`
	// VisuallySimilarImages - READ-ONLY; A list of images that are visually similar to the original image. For example, if the specified image is of a sunset over a body of water, the list of similar images are of a sunset over a body of water. If the specified image is of a person, similar images might be of the same person or they might be of persons dressed similarly or in a similar setting. The criteria for similarity continues to evolve.
	VisuallySimilarImages *ImagesModule `json:"visuallySimilarImages,omitempty"`
	// VisuallySimilarProducts - READ-ONLY; A list of images that contain products that are visually similar to products found in the original image. For example, if the specified image contains a dress, the list of similar images contain a dress. The image provides summary information about offers that Bing found online for the product.
	VisuallySimilarProducts *ImagesModule `json:"visuallySimilarProducts,omitempty"`
	// RecognizedEntityGroups - READ-ONLY; A list of groups that contain images of entities that match the entity found in the specified image. For example, the response might include images from the general celebrity group if the entity was recognized in that group.
	RecognizedEntityGroups *RecognizedEntitiesModule `json:"recognizedEntityGroups,omitempty"`
	// ImageTags - READ-ONLY; A list of characteristics of the content found in the image. For example, if the image is of a person, the tags might indicate the person's gender and the type of clothes they're wearing.
	ImageTags *ImageTagsModule `json:"imageTags,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ImageInsights the top-level object that the response includes when an image insights request succeeds. For information about requesting image insights, see the [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken) query parameter. The modules query parameter affects the fields that Bing includes in the response. If you set [modules](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#modulesrequested) to only Caption, then this object includes only the imageCaption field.

func (ImageInsights) AsAggregateOffer

func (ii ImageInsights) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsAnswer

func (ii ImageInsights) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicAnswer

func (ii ImageInsights) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicCollectionPage

func (ii ImageInsights) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicCreativeWork

func (ii ImageInsights) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicIdentifiable

func (ii ImageInsights) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicIntangible

func (ii ImageInsights) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicMediaObject

func (ii ImageInsights) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicOffer

func (ii ImageInsights) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicResponse

func (ii ImageInsights) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicResponseBase

func (ii ImageInsights) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicSearchResultsAnswer

func (ii ImageInsights) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicStructuredValue

func (ii ImageInsights) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicThing

func (ii ImageInsights) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsBasicWebPage

func (ii ImageInsights) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsCollectionPage

func (ii ImageInsights) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsCreativeWork

func (ii ImageInsights) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsErrorResponse

func (ii ImageInsights) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsIdentifiable

func (ii ImageInsights) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageGallery

func (ii ImageInsights) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageInsights

func (ii ImageInsights) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImageObject

func (ii ImageInsights) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsImages

func (ii ImageInsights) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsIntangible

func (ii ImageInsights) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsMediaObject

func (ii ImageInsights) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsNormalizedRectangle

func (ii ImageInsights) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsOffer

func (ii ImageInsights) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsOrganization

func (ii ImageInsights) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsPerson

func (ii ImageInsights) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecipe

func (ii ImageInsights) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecognizedEntity

func (ii ImageInsights) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsRecognizedEntityRegion

func (ii ImageInsights) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsResponse

func (ii ImageInsights) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsResponseBase

func (ii ImageInsights) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsSearchResultsAnswer

func (ii ImageInsights) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsStructuredValue

func (ii ImageInsights) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsThing

func (ii ImageInsights) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsTrendingImages

func (ii ImageInsights) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) AsWebPage

func (ii ImageInsights) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ImageInsights.

func (ImageInsights) MarshalJSON

func (ii ImageInsights) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageInsights.

type ImageInsightsImageCaption

type ImageInsightsImageCaption struct {
	// Caption - A caption about the image.
	Caption *string `json:"caption,omitempty"`
	// DataSourceURL - The URL to the website where the caption was found. You must attribute the caption to the source. For example, by displaying the domain name from the URL next to the caption and using the URL to link to the source website.
	DataSourceURL *string `json:"dataSourceUrl,omitempty"`
	// RelatedSearches - A list of entities found in the caption. Use the contents of the Query object to find the entity in the caption and create a link. The link takes the user to images of the entity.
	RelatedSearches *[]Query `json:"relatedSearches,omitempty"`
}

ImageInsightsImageCaption defines an image's caption.

type ImageLicense

type ImageLicense string

ImageLicense enumerates the values for image license.

const (
	// ImageLicenseAll ...
	ImageLicenseAll ImageLicense = "All"
	// ImageLicenseAny ...
	ImageLicenseAny ImageLicense = "Any"
	// ImageLicenseModify ...
	ImageLicenseModify ImageLicense = "Modify"
	// ImageLicenseModifyCommercially ...
	ImageLicenseModifyCommercially ImageLicense = "ModifyCommercially"
	// ImageLicensePublic ...
	ImageLicensePublic ImageLicense = "Public"
	// ImageLicenseShare ...
	ImageLicenseShare ImageLicense = "Share"
	// ImageLicenseShareCommercially ...
	ImageLicenseShareCommercially ImageLicense = "ShareCommercially"
)

func PossibleImageLicenseValues

func PossibleImageLicenseValues() []ImageLicense

PossibleImageLicenseValues returns an array of possible values for the ImageLicense const type.

type ImageObject

type ImageObject struct {
	// Thumbnail - READ-ONLY; The URL to a thumbnail of the image
	Thumbnail *ImageObject `json:"thumbnail,omitempty"`
	// ImageInsightsToken - READ-ONLY; The token that you use in a subsequent call to the Image Search API to get additional information about the image. For information about using this token, see the insightsToken query parameter.
	ImageInsightsToken *string `json:"imageInsightsToken,omitempty"`
	// InsightsMetadata - READ-ONLY; A count of the number of websites where you can shop or perform other actions related to the image. For example, if the image is of an apple pie, this object includes a count of the number of websites where you can buy an apple pie. To indicate the number of offers in your UX, include badging such as a shopping cart icon that contains the count. When the user clicks on the icon, use imageInsightsToken to get the list of websites.
	InsightsMetadata *ImagesImageMetadata `json:"insightsMetadata,omitempty"`
	// ImageID - READ-ONLY; Unique Id for the image
	ImageID *string `json:"imageId,omitempty"`
	// AccentColor - READ-ONLY; A three-byte hexadecimal number that represents the color that dominates the image. Use the color as the temporary background in your client until the image is loaded.
	AccentColor *string `json:"accentColor,omitempty"`
	// VisualWords - READ-ONLY; Visual representation of the image. Used for getting more sizes
	VisualWords *string `json:"visualWords,omitempty"`
	// ContentURL - READ-ONLY; Original URL to retrieve the source (file) for the media object (e.g the source URL for the image).
	ContentURL *string `json:"contentUrl,omitempty"`
	// HostPageURL - READ-ONLY; URL of the page that hosts the media object.
	HostPageURL *string `json:"hostPageUrl,omitempty"`
	// ContentSize - READ-ONLY; Size of the media object content (use format "value unit" e.g "1024 B").
	ContentSize *string `json:"contentSize,omitempty"`
	// EncodingFormat - READ-ONLY; Encoding format (e.g mp3, mp4, jpeg, etc).
	EncodingFormat *string `json:"encodingFormat,omitempty"`
	// HostPageDisplayURL - READ-ONLY; Display URL of the page that hosts the media object.
	HostPageDisplayURL *string `json:"hostPageDisplayUrl,omitempty"`
	// Width - READ-ONLY; The width of the source media object, in pixels.
	Width *int32 `json:"width,omitempty"`
	// Height - READ-ONLY; The height of the source media object, in pixels.
	Height *int32 `json:"height,omitempty"`
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ImageObject defines an image

func (ImageObject) AsAggregateOffer

func (ioVar ImageObject) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsAnswer

func (ioVar ImageObject) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAnswer

func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCollectionPage

func (ioVar ImageObject) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicCreativeWork

func (ioVar ImageObject) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIdentifiable

func (ioVar ImageObject) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicIntangible

func (ioVar ImageObject) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicMediaObject

func (ioVar ImageObject) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicOffer

func (ioVar ImageObject) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponse

func (ioVar ImageObject) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicResponseBase

func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicSearchResultsAnswer

func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicStructuredValue

func (ioVar ImageObject) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicThing

func (ioVar ImageObject) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicWebPage

func (ioVar ImageObject) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCollectionPage

func (ioVar ImageObject) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsCreativeWork

func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsErrorResponse

func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIdentifiable

func (ioVar ImageObject) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageGallery

func (ioVar ImageObject) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageInsights

func (ioVar ImageObject) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageObject

func (ioVar ImageObject) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImages

func (ioVar ImageObject) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsIntangible

func (ioVar ImageObject) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsMediaObject

func (ioVar ImageObject) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsNormalizedRectangle

func (ioVar ImageObject) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsOffer

func (ioVar ImageObject) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsOrganization

func (ioVar ImageObject) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsPerson

func (ioVar ImageObject) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecipe

func (ioVar ImageObject) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecognizedEntity

func (ioVar ImageObject) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecognizedEntityRegion

func (ioVar ImageObject) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponse

func (ioVar ImageObject) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsResponseBase

func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsSearchResultsAnswer

func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsStructuredValue

func (ioVar ImageObject) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsThing

func (ioVar ImageObject) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsTrendingImages

func (ioVar ImageObject) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsWebPage

func (ioVar ImageObject) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ImageObject.

func (ImageObject) MarshalJSON

func (ioVar ImageObject) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageObject.

func (*ImageObject) UnmarshalJSON

func (ioVar *ImageObject) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageObject struct.

type ImageSize

type ImageSize string

ImageSize enumerates the values for image size.

const (
	// ImageSizeAll ...
	ImageSizeAll ImageSize = "All"
	// ImageSizeLarge ...
	ImageSizeLarge ImageSize = "Large"
	// ImageSizeMedium ...
	ImageSizeMedium ImageSize = "Medium"
	// ImageSizeSmall ...
	ImageSizeSmall ImageSize = "Small"
	// ImageSizeWallpaper ...
	ImageSizeWallpaper ImageSize = "Wallpaper"
)

func PossibleImageSizeValues

func PossibleImageSizeValues() []ImageSize

PossibleImageSizeValues returns an array of possible values for the ImageSize const type.

type ImageTagsModule

type ImageTagsModule struct {
	// Value - A list of tags that describe the characteristics of the content found in the image. For example, if the image is of a musical artist, the list might include Female, Dress, and Music to indicate the person is female music artist that's wearing a dress.
	Value *[]InsightsTag `json:"value,omitempty"`
}

ImageTagsModule defines the characteristics of content found in an image.

type ImageType

type ImageType string

ImageType enumerates the values for image type.

const (
	// AnimatedGif ...
	AnimatedGif ImageType = "AnimatedGif"
	// Clipart ...
	Clipart ImageType = "Clipart"
	// Line ...
	Line ImageType = "Line"
	// Photo ...
	Photo ImageType = "Photo"
	// Shopping ...
	Shopping ImageType = "Shopping"
	// Transparent ...
	Transparent ImageType = "Transparent"
)

func PossibleImageTypeValues

func PossibleImageTypeValues() []ImageType

PossibleImageTypeValues returns an array of possible values for the ImageType const type.

type Images

type Images struct {
	autorest.Response `json:"-"`
	// NextOffset - READ-ONLY; Used as part of deduping. Tells client the next offset that client should use in the next pagination request
	NextOffset *int32 `json:"nextOffset,omitempty"`
	// Value - A list of image objects that are relevant to the query. If there are no results, the List is empty.
	Value *[]ImageObject `json:"value,omitempty"`
	// QueryExpansions - READ-ONLY; A list of expanded queries that narrows the original query. For example, if the query was Microsoft Surface, the expanded queries might be: Microsoft Surface Pro 3, Microsoft Surface RT, Microsoft Surface Phone, and Microsoft Surface Hub.
	QueryExpansions *[]Query `json:"queryExpansions,omitempty"`
	// PivotSuggestions - READ-ONLY; A list of segments in the original query. For example, if the query was Red Flowers, Bing might segment the query into Red and Flowers. The Flowers pivot may contain query suggestions such as Red Peonies and Red Daisies, and the Red pivot may contain query suggestions such as Green Flowers and Yellow Flowers.
	PivotSuggestions *[]PivotSuggestions `json:"pivotSuggestions,omitempty"`
	// SimilarTerms - READ-ONLY; A list of terms that are similar in meaning to the user's query term.
	SimilarTerms *[]Query `json:"similarTerms,omitempty"`
	// TotalEstimatedMatches - READ-ONLY; The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Images defines an image answer

func (Images) AsAggregateOffer

func (i Images) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Images.

func (Images) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicAnswer

func (i Images) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicCollectionPage

func (i Images) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Images.

func (Images) AsBasicCreativeWork

func (i Images) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsBasicIdentifiable

func (i Images) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsBasicIntangible

func (i Images) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Images.

func (Images) AsBasicMediaObject

func (i Images) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Images.

func (Images) AsBasicOffer

func (i Images) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponse

func (i Images) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Images.

func (Images) AsBasicResponseBase

func (i Images) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Images.

func (Images) AsBasicSearchResultsAnswer

func (i Images) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsBasicStructuredValue

func (i Images) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsBasicThing

func (i Images) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Images.

func (Images) AsBasicWebPage

func (i Images) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Images.

func (Images) AsCollectionPage

func (i Images) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Images.

func (Images) AsCreativeWork

func (i Images) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Images.

func (Images) AsErrorResponse

func (i Images) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Images.

func (Images) AsIdentifiable

func (i Images) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Images.

func (Images) AsImageGallery

func (i Images) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Images.

func (Images) AsImageInsights

func (i Images) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Images.

func (Images) AsImageObject

func (i Images) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Images.

func (Images) 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) AsNormalizedRectangle

func (i Images) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Images.

func (Images) AsOffer

func (i Images) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Images.

func (Images) AsOrganization

func (i Images) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Images.

func (Images) AsPerson

func (i Images) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Images.

func (Images) AsRecipe

func (i Images) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Images.

func (Images) AsRecognizedEntity

func (i Images) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Images.

func (Images) AsRecognizedEntityRegion

func (i Images) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Images.

func (Images) AsResponse

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

func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Images.

func (Images) AsStructuredValue

func (i Images) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Images.

func (Images) AsThing

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

AsThing is the BasicResponseBase implementation for Images.

func (Images) AsTrendingImages

func (i Images) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Images.

func (Images) AsWebPage

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

AsWebPage is the BasicResponseBase implementation for Images.

func (Images) MarshalJSON

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

MarshalJSON is the custom marshaler for Images.

type ImagesClient

type ImagesClient struct {
	BaseClient
}

ImagesClient is the the Image Search API lets you send a search query to Bing and get back a list of relevant images. This section provides technical details about the query parameters and headers that you use to request images and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the Web for Images](https://docs.microsoft.com/azure/cognitive-services/bing-image-search/search-the-web).

func NewImagesClient

func NewImagesClient() ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func (ImagesClient) Details

func (client ImagesClient) Details(ctx context.Context, query string, acceptLanguage string, contentType string, userAgent string, clientID string, clientIP string, location string, cropBottom *float64, cropLeft *float64, cropRight *float64, cropTop *float64, cropType ImageCropType, countryCode string, ID string, imageURL string, insightsToken string, modules []ImageInsightModule, market string, safeSearch SafeSearch, setLang string) (result ImageInsights, err error)

Details sends the details request. Parameters: query - the user's search query term. The term cannot be empty. The term may contain [Bing Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit images to a specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. To help improve relevance of an insights query (see [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken)), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API. acceptLanguage - a comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language. contentType - optional request header. If you set the [modules](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#modulesrequested) query parameter to RecognizedEntities, you may specify the binary of an image in the body of a POST request. If you specify the image in the body of a POST request, you must specify this header and set its value to multipart/form-data. The maximum image size is 1 MB. userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are encouraged to always specify this header. The user-agent should be the same string that any commonly used browser sends. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The following are examples of user-agent strings. Windows Phone: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53 clientID - bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights new features and improvements, and it uses the client ID as a key for assigning traffic on different flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an inconsistent user experience. For example, if the second request has a different flight assignment than the first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that client ID’s search history, providing a richer experience for the user. Bing also uses this header to help improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client ID across multiple requests for the same end user and device combination enables 1) the API consumer to receive a consistent user experience, and 2) higher click-through rates via better quality of results from the Bing APIs. Each user that uses your application on the device must have a unique, Bing generated client ID. If you do not include this header in the request, Bing generates an ID and returns it in the X-MSEdge-ClientID response header. The only time that you should NOT include this header in a request is the first time the user uses your app on that device. Use the client ID for each Bing API request that your app makes for this user on the device. Persist the client ID. To persist the ID in a browser app, use a persistent HTTP cookie to ensure the ID is used across all sessions. Do not use a session cookie. For other apps such as mobile apps, use the device's persistent storage to persist the ID. The next time the user uses your app on that device, get the client ID that you persisted. Bing responses may or may not include this header. If the response includes this header, capture the client ID and use it for all subsequent Bing requests for the user on that device. If you include the X-MSEdge-ClientID, you must not include cookies in the request. clientIP - the IPv4 or IPv6 address of the client device. The IP address is used to discover the user's location. Bing uses the location information to determine safe search behavior. Although optional, you are encouraged to always specify this header and the X-Search-Location header. Do not obfuscate the address (for example, by changing the last octet to 0). Obfuscating the address results in the location not being anywhere near the device's actual location, which may result in Bing serving erroneous results. location - a semicolon-delimited list of key/value pairs that describe the client's geographical location. Bing uses the location information to determine safe search behavior and to return relevant local content. Specify the key/value pair as <key>:<value>. The following are the keys that you use to specify the user's location. lat (required): The latitude of the client's location, in degrees. The latitude must be greater than or equal to -90.0 and less than or equal to +90.0. Negative values indicate southern latitudes and positive values indicate northern latitudes. long (required): The longitude of the client's location, in degrees. The longitude must be greater than or equal to -180.0 and less than or equal to +180.0. Negative values indicate western longitudes and positive values indicate eastern longitudes. re (required): The radius, in meters, which specifies the horizontal accuracy of the coordinates. Pass the value returned by the device's location service. Typical values might be 22m for GPS/Wi-Fi, 380m for cell tower triangulation, and 18,000m for reverse IP lookup. ts (optional): The UTC UNIX timestamp of when the client was at the location. (The UNIX timestamp is the number of seconds since January 1, 1970.) head (optional): The client's relative heading or direction of travel. Specify the direction of travel as degrees from 0 through 360, counting clockwise relative to true north. Specify this key only if the sp key is nonzero. sp (optional): The horizontal velocity (speed), in meters per second, that the client device is traveling. alt (optional): The altitude of the client device, in meters. are (optional): The radius, in meters, that specifies the vertical accuracy of the coordinates. Specify this key only if you specify the alt key. Although many of the keys are optional, the more information that you provide, the more accurate the location results are. Although optional, you are encouraged to always specify the user's geographical location. Providing the location is especially important if the client's IP address does not accurately reflect the user's physical location (for example, if the client uses VPN). For optimal results, you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should include this header. cropBottom - the bottom coordinate of the region to crop. The coordinate is a fractional value of the original image's height and is measured from the top, left corner of the image. Specify the coordinate as a value from 0.0 through 1.0. Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. cropLeft - the left coordinate of the region to crop. The coordinate is a fractional value of the original image's height and is measured from the top, left corner of the image. Specify the coordinate as a value from 0.0 through 1.0. Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. cropRight - the right coordinate of the region to crop. The coordinate is a fractional value of the original image's height and is measured from the top, left corner of the image. Specify the coordinate as a value from 0.0 through 1.0. Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. cropTop - the top coordinate of the region to crop. The coordinate is a fractional value of the original image's height and is measured from the top, left corner of the image. Specify the coordinate as a value from 0.0 through 1.0. Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. cropType - the crop type to use when cropping the image based on the coordinates specified in the cal, cat, car, and cab parameters. The following are the possible values. 0: Rectangular (default). Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. countryCode - a 2-character country code of the country where the results come from. For a list of possible values, see [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes). If you set this parameter, you must also specify the [Accept-Language](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#acceptlanguage) header. Bing uses the first supported language it finds from the languages list, and combine that language with the country code that you specify to determine the market to return results for. If the languages list does not include a supported language, Bing finds the closest language and market that supports the request, or it may use an aggregated or default market for the results instead of a specified one. You should use this query parameter and the Accept-Language query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This parameter and the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) query parameter are mutually exclusive—do not specify both. ID - an ID that uniquely identifies an image. Use this parameter to ensure that the specified image is the first image in the list of images that Bing returns. The [Image](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#image) object's imageId field contains the ID that you set this parameter to. imageURL - the URL of an image that you want to get insights of. Use this parameter as an alternative to using the insightsToken parameter to specify the image. You may also specify the image by placing the binary of the image in the body of a POST request. If you use the binary option, see the [Content-Type](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#contenttype) header. The maximum supported image size is 1 MB. Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. insightsToken - an image token. The [Image](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#image) object's [imageInsightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#image-imageinsightstoken) contains the token. Specify this parameter to get additional information about an image, such as a caption or shopping source. For a list of the additional information about an image that you can get, see the [modules](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#modulesrequested) query parameter. Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. modules - a comma-delimited list of insights to request. The following are the possible case-insensitive values. All: Return all insights, if available, except RecognizedEntities. BRQ: Best representative query. The query term that best describes the image. Caption: A caption that provides information about the image. If the caption contains entities, the response may include links to images of those entities. Collections: A list of related images. Recipes: A list of recipes for cooking the food shown in the images. PagesIncluding: A list of webpages that include the image. RecognizedEntities: A list of entities (people) that were recognized in the image. NOTE: You may not specify this module with any other module. If you specify it with other modules, the response doesn't include recognized entities. RelatedSearches: A list of related searches made by others. ShoppingSources: A list of merchants where you can buy related offerings. SimilarImages: A list of images that are visually similar to the original image. SimilarProducts: A list of images that contain a product that is similar to a product found in the original image. Tags: Provides characteristics of the type of content found in the image. For example, if the image is of a person, the tags might indicate the person's gender and type of clothes they're wearing. If you specify a module and there is no data for the module, the response object doesn't include the related field. For example, if you specify Caption and it does not exist, the response doesn't include the imageCaption field. To include related searches, the request must include the original query string. Although the original query string is not required for similar images or products, you should always include it because it can help improve relevance and the results. Use this parameter only with the Insights API. Do not specify this parameter when calling the Images, Trending Images, or Web Search APIs. market - the market where the results come from. Typically, mkt is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing delivers results. The market must be in the form <language code>-<country code>. For example, en-US. The string is case insensitive. For a list of possible market values, see [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes). NOTE: If known, you are encouraged to always specify the market. Specifying the market helps Bing route the request and return an appropriate and optimal response. If you specify a market that is not listed in [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes), Bing uses a best fit market code based on an internal mapping that is subject to change. This parameter and the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter are mutually exclusive—do not specify both. safeSearch - filter images for adult content. The following are the possible filter values. Off: May return images with adult content. If the request is through the Image Search API, the response includes thumbnail images that are clear (non-fuzzy). However, if the request is through the Web Search API, the response includes thumbnail images that are pixelated (fuzzy). Moderate: If the request is through the Image Search API, the response doesn't include images with adult content. If the request is through the Web Search API, the response may include images with adult content (the thumbnail images are pixelated (fuzzy)). Strict: Do not return images with adult content. The default is Moderate. If the request comes from a market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value and uses Strict. If you use the site: query operator, there is the chance that the response may contain adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware of the content on the site and your scenario supports the possibility of adult content. setLang - the language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language code. For example, the language code for English is EN. The default is EN (English). Although optional, you should always specify the language. Typically, you set setLang to the same language specified by mkt unless the user wants the user interface strings displayed in a different language. This parameter and the [Accept-Language](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#acceptlanguage) header are mutually exclusive; do not specify both. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Also, any links to Bing.com properties in the response objects apply the specified language.

func (ImagesClient) DetailsPreparer

func (client ImagesClient) DetailsPreparer(ctx context.Context, query string, acceptLanguage string, contentType string, userAgent string, clientID string, clientIP string, location string, cropBottom *float64, cropLeft *float64, cropRight *float64, cropTop *float64, cropType ImageCropType, countryCode string, ID string, imageURL string, insightsToken string, modules []ImageInsightModule, market string, safeSearch SafeSearch, setLang string) (*http.Request, error)

DetailsPreparer prepares the Details request.

func (ImagesClient) DetailsResponder

func (client ImagesClient) DetailsResponder(resp *http.Response) (result ImageInsights, err error)

DetailsResponder handles the response to the Details request. The method always closes the http.Response Body.

func (ImagesClient) DetailsSender

func (client ImagesClient) DetailsSender(req *http.Request) (*http.Response, error)

DetailsSender sends the Details request. The method will close the http.Response Body if it receives an error.

func (ImagesClient) Search

func (client ImagesClient) Search(ctx context.Context, query string, acceptLanguage string, userAgent string, clientID string, clientIP string, location string, aspect ImageAspect, colorParameter ImageColor, countryCode string, count *int32, freshness Freshness, height *int32, ID string, imageContent ImageContent, imageType ImageType, license ImageLicense, market string, maxFileSize *int64, maxHeight *int64, maxWidth *int64, minFileSize *int64, minHeight *int64, minWidth *int64, offset *int64, safeSearch SafeSearch, size ImageSize, setLang string, width *int32) (result Images, err error)

Search sends the search request. Parameters: query - the user's search query term. The term cannot be empty. The term may contain [Bing Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit images to a specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. To help improve relevance of an insights query (see [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken)), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API. acceptLanguage - a comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language. userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are encouraged to always specify this header. The user-agent should be the same string that any commonly used browser sends. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The following are examples of user-agent strings. Windows Phone: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53 clientID - bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights new features and improvements, and it uses the client ID as a key for assigning traffic on different flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an inconsistent user experience. For example, if the second request has a different flight assignment than the first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that client ID’s search history, providing a richer experience for the user. Bing also uses this header to help improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client ID across multiple requests for the same end user and device combination enables 1) the API consumer to receive a consistent user experience, and 2) higher click-through rates via better quality of results from the Bing APIs. Each user that uses your application on the device must have a unique, Bing generated client ID. If you do not include this header in the request, Bing generates an ID and returns it in the X-MSEdge-ClientID response header. The only time that you should NOT include this header in a request is the first time the user uses your app on that device. Use the client ID for each Bing API request that your app makes for this user on the device. Persist the client ID. To persist the ID in a browser app, use a persistent HTTP cookie to ensure the ID is used across all sessions. Do not use a session cookie. For other apps such as mobile apps, use the device's persistent storage to persist the ID. The next time the user uses your app on that device, get the client ID that you persisted. Bing responses may or may not include this header. If the response includes this header, capture the client ID and use it for all subsequent Bing requests for the user on that device. If you include the X-MSEdge-ClientID, you must not include cookies in the request. clientIP - the IPv4 or IPv6 address of the client device. The IP address is used to discover the user's location. Bing uses the location information to determine safe search behavior. Although optional, you are encouraged to always specify this header and the X-Search-Location header. Do not obfuscate the address (for example, by changing the last octet to 0). Obfuscating the address results in the location not being anywhere near the device's actual location, which may result in Bing serving erroneous results. location - a semicolon-delimited list of key/value pairs that describe the client's geographical location. Bing uses the location information to determine safe search behavior and to return relevant local content. Specify the key/value pair as <key>:<value>. The following are the keys that you use to specify the user's location. lat (required): The latitude of the client's location, in degrees. The latitude must be greater than or equal to -90.0 and less than or equal to +90.0. Negative values indicate southern latitudes and positive values indicate northern latitudes. long (required): The longitude of the client's location, in degrees. The longitude must be greater than or equal to -180.0 and less than or equal to +180.0. Negative values indicate western longitudes and positive values indicate eastern longitudes. re (required): The radius, in meters, which specifies the horizontal accuracy of the coordinates. Pass the value returned by the device's location service. Typical values might be 22m for GPS/Wi-Fi, 380m for cell tower triangulation, and 18,000m for reverse IP lookup. ts (optional): The UTC UNIX timestamp of when the client was at the location. (The UNIX timestamp is the number of seconds since January 1, 1970.) head (optional): The client's relative heading or direction of travel. Specify the direction of travel as degrees from 0 through 360, counting clockwise relative to true north. Specify this key only if the sp key is nonzero. sp (optional): The horizontal velocity (speed), in meters per second, that the client device is traveling. alt (optional): The altitude of the client device, in meters. are (optional): The radius, in meters, that specifies the vertical accuracy of the coordinates. Specify this key only if you specify the alt key. Although many of the keys are optional, the more information that you provide, the more accurate the location results are. Although optional, you are encouraged to always specify the user's geographical location. Providing the location is especially important if the client's IP address does not accurately reflect the user's physical location (for example, if the client uses VPN). For optimal results, you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should include this header. aspect - filter images by the following aspect ratios. All: Do not filter by aspect.Specifying this value is the same as not specifying the aspect parameter. Square: Return images with standard aspect ratio. Wide: Return images with wide screen aspect ratio. Tall: Return images with tall aspect ratio. colorParameter - filter images by the following color options. ColorOnly: Return color images. Monochrome: Return black and white images. Return images with one of the following dominant colors: Black, Blue, Brown, Gray, Green, Orange, Pink, Purple, Red, Teal, White, Yellow countryCode - a 2-character country code of the country where the results come from. For a list of possible values, see [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes). If you set this parameter, you must also specify the [Accept-Language](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#acceptlanguage) header. Bing uses the first supported language it finds from the languages list, and combine that language with the country code that you specify to determine the market to return results for. If the languages list does not include a supported language, Bing finds the closest language and market that supports the request, or it may use an aggregated or default market for the results instead of a specified one. You should use this query parameter and the Accept-Language query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This parameter and the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) query parameter are mutually exclusive—do not specify both. count - the number of images to return in the response. The actual number delivered may be less than requested. The default is 35. The maximum value is 150. You use this parameter along with the offset parameter to page results.For example, if your user interface displays 20 images per page, set count to 20 and offset to 0 to get the first page of results.For each subsequent page, increment offset by 20 (for example, 0, 20, 40). Use this parameter only with the Image Search API.Do not specify this parameter when calling the Insights, Trending Images, or Web Search APIs. freshness - filter images by the following discovery options. Day: Return images discovered by Bing within the last 24 hours. Week: Return images discovered by Bing within the last 7 days. Month: Return images discovered by Bing within the last 30 days. height - filter images that have the specified height, in pixels. You may use this filter with the size filter to return small images that have a height of 150 pixels. ID - an ID that uniquely identifies an image. Use this parameter to ensure that the specified image is the first image in the list of images that Bing returns. The [Image](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#image) object's imageId field contains the ID that you set this parameter to. imageContent - filter images by the following content types. Face: Return images that show only a person's face. Portrait: Return images that show only a person's head and shoulders. imageType - filter images by the following image types. AnimatedGif: Return only animated GIFs. Clipart: Return only clip art images. Line: Return only line drawings. Photo: Return only photographs(excluding line drawings, animated Gifs, and clip art). Shopping: Return only images that contain items where Bing knows of a merchant that is selling the items. This option is valid in the en - US market only.Transparent: Return only images with a transparent background. license - filter images by the following license types. All: Do not filter by license type.Specifying this value is the same as not specifying the license parameter. Any: Return images that are under any license type. The response doesn't include images that do not specify a license or the license is unknown. Public: Return images where the creator has waived their exclusive rights, to the fullest extent allowed by law. Share: Return images that may be shared with others. Changing or editing the image might not be allowed. Also, modifying, sharing, and using the image for commercial purposes might not be allowed. Typically, this option returns the most images. ShareCommercially: Return images that may be shared with others for personal or commercial purposes. Changing or editing the image might not be allowed. Modify: Return images that may be modified, shared, and used. Changing or editing the image might not be allowed. Modifying, sharing, and using the image for commercial purposes might not be allowed. ModifyCommercially: Return images that may be modified, shared, and used for personal or commercial purposes. Typically, this option returns the fewest images. For more information about these license types, see [Filter Images By License Type](http://go.microsoft.com/fwlink/?LinkId=309768). market - the market where the results come from. Typically, mkt is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing delivers results. The market must be in the form <language code>-<country code>. For example, en-US. The string is case insensitive. For a list of possible market values, see [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes). NOTE: If known, you are encouraged to always specify the market. Specifying the market helps Bing route the request and return an appropriate and optimal response. If you specify a market that is not listed in [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes), Bing uses a best fit market code based on an internal mapping that is subject to change. This parameter and the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter are mutually exclusive—do not specify both. maxFileSize - filter images that are less than or equal to the specified file size. The maximum file size that you may specify is 520,192 bytes. If you specify a larger value, the API uses 520,192. It is possible that the response may include images that are slightly larger than the specified maximum. You may specify this filter and minFileSize to filter images within a range of file sizes. maxHeight - filter images that have a height that is less than or equal to the specified height. Specify the height in pixels. You may specify this filter and minHeight to filter images within a range of heights. This filter and the height filter are mutually exclusive. maxWidth - filter images that have a width that is less than or equal to the specified width. Specify the width in pixels. You may specify this filter and maxWidth to filter images within a range of widths. This filter and the width filter are mutually exclusive. minFileSize - filter images that are greater than or equal to the specified file size. The maximum file size that you may specify is 520,192 bytes. If you specify a larger value, the API uses 520,192. It is possible that the response may include images that are slightly smaller than the specified minimum. You may specify this filter and maxFileSize to filter images within a range of file sizes. minHeight - filter images that have a height that is greater than or equal to the specified height. Specify the height in pixels. You may specify this filter and maxHeight to filter images within a range of heights. This filter and the height filter are mutually exclusive. minWidth - filter images that have a width that is greater than or equal to the specified width. Specify the width in pixels. You may specify this filter and maxWidth to filter images within a range of widths. This filter and the width filter are mutually exclusive. offset - the zero-based offset that indicates the number of images to skip before returning images. The default is 0. The offset should be less than ([totalEstimatedMatches](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#totalestimatedmatches) - count). Use this parameter along with the count parameter to page results. For example, if your user interface displays 20 images per page, set count to 20 and offset to 0 to get the first page of results. For each subsequent page, increment offset by 20 (for example, 0, 20, 40). It is possible for multiple pages to include some overlap in results. To prevent duplicates, see [nextOffset](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#nextoffset). Use this parameter only with the Image API. Do not specify this parameter when calling the Trending Images API or the Web Search API. safeSearch - filter images for adult content. The following are the possible filter values. Off: May return images with adult content. If the request is through the Image Search API, the response includes thumbnail images that are clear (non-fuzzy). However, if the request is through the Web Search API, the response includes thumbnail images that are pixelated (fuzzy). Moderate: If the request is through the Image Search API, the response doesn't include images with adult content. If the request is through the Web Search API, the response may include images with adult content (the thumbnail images are pixelated (fuzzy)). Strict: Do not return images with adult content. The default is Moderate. If the request comes from a market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value and uses Strict. If you use the site: query operator, there is the chance that the response may contain adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware of the content on the site and your scenario supports the possibility of adult content. size - filter images by the following sizes. All: Do not filter by size. Specifying this value is the same as not specifying the size parameter. Small: Return images that are less than 200x200 pixels. Medium: Return images that are greater than or equal to 200x200 pixels but less than 500x500 pixels. Large: Return images that are 500x500 pixels or larger. Wallpaper: Return wallpaper images. You may use this parameter along with the height or width parameters. For example, you may use height and size to request small images that are 150 pixels tall. setLang - the language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language code. For example, the language code for English is EN. The default is EN (English). Although optional, you should always specify the language. Typically, you set setLang to the same language specified by mkt unless the user wants the user interface strings displayed in a different language. This parameter and the [Accept-Language](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#acceptlanguage) header are mutually exclusive; do not specify both. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Also, any links to Bing.com properties in the response objects apply the specified language. width - filter images that have the specified width, in pixels. You may use this filter with the size filter to return small images that have a width of 150 pixels.

func (ImagesClient) SearchPreparer

func (client ImagesClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, userAgent string, clientID string, clientIP string, location string, aspect ImageAspect, colorParameter ImageColor, countryCode string, count *int32, freshness Freshness, height *int32, ID string, imageContent ImageContent, imageType ImageType, license ImageLicense, market string, maxFileSize *int64, maxHeight *int64, maxWidth *int64, minFileSize *int64, minHeight *int64, minWidth *int64, offset *int64, safeSearch SafeSearch, size ImageSize, setLang string, width *int32) (*http.Request, error)

SearchPreparer prepares the Search request.

func (ImagesClient) SearchResponder

func (client ImagesClient) SearchResponder(resp *http.Response) (result Images, err error)

SearchResponder handles the response to the Search request. The method always closes the http.Response Body.

func (ImagesClient) SearchSender

func (client ImagesClient) SearchSender(req *http.Request) (*http.Response, error)

SearchSender sends the Search request. The method will close the http.Response Body if it receives an error.

func (ImagesClient) Trending

func (client ImagesClient) Trending(ctx context.Context, acceptLanguage string, userAgent string, clientID string, clientIP string, location string, countryCode string, market string, safeSearch SafeSearch, setLang string) (result TrendingImages, err error)

Trending sends the trending request. Parameters: acceptLanguage - a comma-delimited list of one or more languages to use for user interface strings. The list is in decreasing order of preference. For additional information, including expected format, see [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). This header and the [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameter are mutually exclusive; do not specify both. If you set this header, you must also specify the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter. To determine the market to return results for, Bing uses the first supported language it finds from the list and combines it with the cc parameter value. If the list does not include a supported language, Bing finds the closest language and market that supports the request or it uses an aggregated or default market for the results. To determine the market that Bing used, see the BingAPIs-Market header. Use this header and the cc query parameter only if you specify multiple languages. Otherwise, use the [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) query parameters. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Any links to Bing.com properties in the response objects apply the specified language. userAgent - the user agent originating the request. Bing uses the user agent to provide mobile users with an optimized experience. Although optional, you are encouraged to always specify this header. The user-agent should be the same string that any commonly used browser sends. For information about user agents, see [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The following are examples of user-agent strings. Windows Phone: Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / 533.1. iPhone: Mozilla / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; WOW64; Trident / 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53 clientID - bing uses this header to provide users with consistent behavior across Bing API calls. Bing often flights new features and improvements, and it uses the client ID as a key for assigning traffic on different flights. If you do not use the same client ID for a user across multiple requests, then Bing may assign the user to multiple conflicting flights. Being assigned to multiple conflicting flights can lead to an inconsistent user experience. For example, if the second request has a different flight assignment than the first, the experience may be unexpected. Also, Bing can use the client ID to tailor web results to that client ID’s search history, providing a richer experience for the user. Bing also uses this header to help improve result rankings by analyzing the activity generated by a client ID. The relevance improvements help with better quality of results delivered by Bing APIs and in turn enables higher click-through rates for the API consumer. IMPORTANT: Although optional, you should consider this header required. Persisting the client ID across multiple requests for the same end user and device combination enables 1) the API consumer to receive a consistent user experience, and 2) higher click-through rates via better quality of results from the Bing APIs. Each user that uses your application on the device must have a unique, Bing generated client ID. If you do not include this header in the request, Bing generates an ID and returns it in the X-MSEdge-ClientID response header. The only time that you should NOT include this header in a request is the first time the user uses your app on that device. Use the client ID for each Bing API request that your app makes for this user on the device. Persist the client ID. To persist the ID in a browser app, use a persistent HTTP cookie to ensure the ID is used across all sessions. Do not use a session cookie. For other apps such as mobile apps, use the device's persistent storage to persist the ID. The next time the user uses your app on that device, get the client ID that you persisted. Bing responses may or may not include this header. If the response includes this header, capture the client ID and use it for all subsequent Bing requests for the user on that device. If you include the X-MSEdge-ClientID, you must not include cookies in the request. clientIP - the IPv4 or IPv6 address of the client device. The IP address is used to discover the user's location. Bing uses the location information to determine safe search behavior. Although optional, you are encouraged to always specify this header and the X-Search-Location header. Do not obfuscate the address (for example, by changing the last octet to 0). Obfuscating the address results in the location not being anywhere near the device's actual location, which may result in Bing serving erroneous results. location - a semicolon-delimited list of key/value pairs that describe the client's geographical location. Bing uses the location information to determine safe search behavior and to return relevant local content. Specify the key/value pair as <key>:<value>. The following are the keys that you use to specify the user's location. lat (required): The latitude of the client's location, in degrees. The latitude must be greater than or equal to -90.0 and less than or equal to +90.0. Negative values indicate southern latitudes and positive values indicate northern latitudes. long (required): The longitude of the client's location, in degrees. The longitude must be greater than or equal to -180.0 and less than or equal to +180.0. Negative values indicate western longitudes and positive values indicate eastern longitudes. re (required): The radius, in meters, which specifies the horizontal accuracy of the coordinates. Pass the value returned by the device's location service. Typical values might be 22m for GPS/Wi-Fi, 380m for cell tower triangulation, and 18,000m for reverse IP lookup. ts (optional): The UTC UNIX timestamp of when the client was at the location. (The UNIX timestamp is the number of seconds since January 1, 1970.) head (optional): The client's relative heading or direction of travel. Specify the direction of travel as degrees from 0 through 360, counting clockwise relative to true north. Specify this key only if the sp key is nonzero. sp (optional): The horizontal velocity (speed), in meters per second, that the client device is traveling. alt (optional): The altitude of the client device, in meters. are (optional): The radius, in meters, that specifies the vertical accuracy of the coordinates. Specify this key only if you specify the alt key. Although many of the keys are optional, the more information that you provide, the more accurate the location results are. Although optional, you are encouraged to always specify the user's geographical location. Providing the location is especially important if the client's IP address does not accurately reflect the user's physical location (for example, if the client uses VPN). For optimal results, you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should include this header. countryCode - a 2-character country code of the country where the results come from. This API supports only the United States, Canada, Australia, and China markets. If you specify this query parameter, it must be set to us, ca, au, or cn. If you set this parameter, you must also specify the Accept-Language header. Bing uses the first supported language it finds from the languages list, and combine that language with the country code that you specify to determine the market to return results for. If the languages list does not include a supported language, Bing finds the closest language and market that supports the request, or it may use an aggregated or default market for the results instead of a specified one. You should use this query parameter and the Accept-Language query parameter only if you specify multiple languages; otherwise, you should use the mkt and setLang query parameters. This parameter and the mkt query parameter are mutually exclusive—do not specify both. market - the market where the results come from. Typically, mkt is the country where the user is making the request from. However, it could be a different country if the user is not located in a country where Bing delivers results. The market must be in the form <language code>-<country code>. For example, en-US. The string is case insensitive. For a list of possible market values, see [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes). NOTE: If known, you are encouraged to always specify the market. Specifying the market helps Bing route the request and return an appropriate and optimal response. If you specify a market that is not listed in [Market Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes), Bing uses a best fit market code based on an internal mapping that is subject to change. This parameter and the [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) query parameter are mutually exclusive—do not specify both. safeSearch - filter images for adult content. The following are the possible filter values. Off: May return images with adult content. If the request is through the Image Search API, the response includes thumbnail images that are clear (non-fuzzy). However, if the request is through the Web Search API, the response includes thumbnail images that are pixelated (fuzzy). Moderate: If the request is through the Image Search API, the response doesn't include images with adult content. If the request is through the Web Search API, the response may include images with adult content (the thumbnail images are pixelated (fuzzy)). Strict: Do not return images with adult content. The default is Moderate. If the request comes from a market that Bing's adult policy requires that safeSearch is set to Strict, Bing ignores the safeSearch value and uses Strict. If you use the site: query operator, there is the chance that the response may contain adult content regardless of what the safeSearch query parameter is set to. Use site: only if you are aware of the content on the site and your scenario supports the possibility of adult content. setLang - the language to use for user interface strings. Specify the language using the ISO 639-1 2-letter language code. For example, the language code for English is EN. The default is EN (English). Although optional, you should always specify the language. Typically, you set setLang to the same language specified by mkt unless the user wants the user interface strings displayed in a different language. This parameter and the [Accept-Language](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#acceptlanguage) header are mutually exclusive; do not specify both. A user interface string is a string that's used as a label in a user interface. There are few user interface strings in the JSON response objects. Also, any links to Bing.com properties in the response objects apply the specified language.

func (ImagesClient) TrendingPreparer

func (client ImagesClient) TrendingPreparer(ctx context.Context, acceptLanguage string, userAgent string, clientID string, clientIP string, location string, countryCode string, market string, safeSearch SafeSearch, setLang string) (*http.Request, error)

TrendingPreparer prepares the Trending request.

func (ImagesClient) TrendingResponder

func (client ImagesClient) TrendingResponder(resp *http.Response) (result TrendingImages, err error)

TrendingResponder handles the response to the Trending request. The method always closes the http.Response Body.

func (ImagesClient) TrendingSender

func (client ImagesClient) TrendingSender(req *http.Request) (*http.Response, error)

TrendingSender sends the Trending request. The method will close the http.Response Body if it receives an error.

type ImagesImageMetadata

type ImagesImageMetadata struct {
	// ShoppingSourcesCount - READ-ONLY; The number of websites that offer goods of the products seen in the image.
	ShoppingSourcesCount *int32 `json:"shoppingSourcesCount,omitempty"`
	// RecipeSourcesCount - READ-ONLY; The number of websites that offer recipes of the food seen in the image.
	RecipeSourcesCount *int32 `json:"recipeSourcesCount,omitempty"`
	// AggregateOffer - READ-ONLY; A summary of the online offers of products found in the image. For example, if the image is of a dress, the offer might identify the lowest price and the number of offers found. Only visually similar products insights include this field. The offer includes the following fields: Name, AggregateRating, OfferCount, and LowPrice.
	AggregateOffer *AggregateOffer `json:"aggregateOffer,omitempty"`
}

ImagesImageMetadata defines a count of the number of websites where you can shop or perform other actions related to the image.

func (ImagesImageMetadata) MarshalJSON

func (iim ImagesImageMetadata) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImagesImageMetadata.

type ImagesModule

type ImagesModule struct {
	// Value - READ-ONLY; A list of images.
	Value *[]ImageObject `json:"value,omitempty"`
}

ImagesModule defines a list of images.

func (ImagesModule) MarshalJSON

func (im ImagesModule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImagesModule.

type InsightsTag

type InsightsTag struct {
	// Name - READ-ONLY; The name of the characteristic. For example, cat, kitty, calico cat.
	Name *string `json:"name,omitempty"`
}

InsightsTag defines a characteristic of the content found in the image.

func (InsightsTag) MarshalJSON

func (it InsightsTag) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InsightsTag.

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; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Intangible a utility class that serves as the umbrella for a number of 'intangible' things such as quantities, structured values, etc.

func (Intangible) AsAggregateOffer

func (i Intangible) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicAnswer

func (i Intangible) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicCollectionPage

func (i Intangible) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage 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) AsBasicOffer

func (i Intangible) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer 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) AsBasicStructuredValue

func (i Intangible) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicThing

func (i Intangible) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicWebPage

func (i Intangible) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Intangible.

func (Intangible) AsCollectionPage

func (i Intangible) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage 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) AsImageGallery

func (i Intangible) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageInsights

func (i Intangible) AsImageInsights() (*ImageInsights, bool)

AsImageInsights 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) AsNormalizedRectangle

func (i Intangible) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Intangible.

func (Intangible) AsOffer

func (i Intangible) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsOrganization

func (i Intangible) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Intangible.

func (Intangible) AsPerson

func (i Intangible) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRecipe

func (i Intangible) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRecognizedEntity

func (i Intangible) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRecognizedEntityRegion

func (i Intangible) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion 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) AsSearchResultsAnswer

func (i Intangible) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer 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) AsTrendingImages

func (i Intangible) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Intangible.

func (Intangible) AsWebPage

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

AsWebPage is the BasicResponseBase implementation for Intangible.

func (Intangible) MarshalJSON

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

MarshalJSON is the custom marshaler for Intangible.

type ItemAvailability

type ItemAvailability string

ItemAvailability enumerates the values for item availability.

const (
	// Discontinued ...
	Discontinued ItemAvailability = "Discontinued"
	// InStock ...
	InStock ItemAvailability = "InStock"
	// InStoreOnly ...
	InStoreOnly ItemAvailability = "InStoreOnly"
	// LimitedAvailability ...
	LimitedAvailability ItemAvailability = "LimitedAvailability"
	// OnlineOnly ...
	OnlineOnly ItemAvailability = "OnlineOnly"
	// OutOfStock ...
	OutOfStock ItemAvailability = "OutOfStock"
	// PreOrder ...
	PreOrder ItemAvailability = "PreOrder"
	// SoldOut ...
	SoldOut ItemAvailability = "SoldOut"
)

func PossibleItemAvailabilityValues

func PossibleItemAvailabilityValues() []ItemAvailability

PossibleItemAvailabilityValues returns an array of possible values for the ItemAvailability const type.

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"`
	// ContentSize - READ-ONLY; Size of the media object content (use format "value unit" e.g "1024 B").
	ContentSize *string `json:"contentSize,omitempty"`
	// EncodingFormat - READ-ONLY; Encoding format (e.g mp3, mp4, jpeg, etc).
	EncodingFormat *string `json:"encodingFormat,omitempty"`
	// HostPageDisplayURL - READ-ONLY; Display URL of the page that hosts the media object.
	HostPageDisplayURL *string `json:"hostPageDisplayUrl,omitempty"`
	// Width - READ-ONLY; The width of the source media object, in pixels.
	Width *int32 `json:"width,omitempty"`
	// Height - READ-ONLY; The height of the source media object, in pixels.
	Height *int32 `json:"height,omitempty"`
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

MediaObject defines a media object.

func (MediaObject) AsAggregateOffer

func (mo MediaObject) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsAnswer

func (mo MediaObject) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicAnswer

func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicCollectionPage

func (mo MediaObject) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage 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) AsBasicOffer

func (mo MediaObject) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer 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) AsBasicStructuredValue

func (mo MediaObject) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicThing

func (mo MediaObject) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicWebPage

func (mo MediaObject) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsCollectionPage

func (mo MediaObject) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage 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) AsImageGallery

func (mo MediaObject) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageInsights

func (mo MediaObject) AsImageInsights() (*ImageInsights, bool)

AsImageInsights 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) AsNormalizedRectangle

func (mo MediaObject) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsOffer

func (mo MediaObject) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsOrganization

func (mo MediaObject) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsPerson

func (mo MediaObject) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRecipe

func (mo MediaObject) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRecognizedEntity

func (mo MediaObject) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRecognizedEntityRegion

func (mo MediaObject) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion 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) AsSearchResultsAnswer

func (mo MediaObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer 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) AsTrendingImages

func (mo MediaObject) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsWebPage

func (mo MediaObject) AsWebPage() (*WebPage, bool)

AsWebPage 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 NormalizedRectangle

type NormalizedRectangle struct {
	// Left - The left coordinate.
	Left *float64 `json:"left,omitempty"`
	// Top - The top coordinate
	Top *float64 `json:"top,omitempty"`
	// Right - The right coordinate
	Right *float64 `json:"right,omitempty"`
	// Bottom - The bottom coordinate
	Bottom *float64 `json:"bottom,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

NormalizedRectangle defines a region of an image. The region is defined by the coordinates of the top, left corner and bottom, right corner of the region. The coordinates are fractional values of the original image's width and height in the range 0.0 through 1.0.

func (NormalizedRectangle) AsAggregateOffer

func (nr NormalizedRectangle) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsAnswer

func (nr NormalizedRectangle) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicAnswer

func (nr NormalizedRectangle) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicCollectionPage

func (nr NormalizedRectangle) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicCreativeWork

func (nr NormalizedRectangle) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicIdentifiable

func (nr NormalizedRectangle) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicIntangible

func (nr NormalizedRectangle) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicMediaObject

func (nr NormalizedRectangle) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicOffer

func (nr NormalizedRectangle) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicResponse

func (nr NormalizedRectangle) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicResponseBase

func (nr NormalizedRectangle) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicSearchResultsAnswer

func (nr NormalizedRectangle) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicStructuredValue

func (nr NormalizedRectangle) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicThing

func (nr NormalizedRectangle) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsBasicWebPage

func (nr NormalizedRectangle) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsCollectionPage

func (nr NormalizedRectangle) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsCreativeWork

func (nr NormalizedRectangle) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsErrorResponse

func (nr NormalizedRectangle) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsIdentifiable

func (nr NormalizedRectangle) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImageGallery

func (nr NormalizedRectangle) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImageInsights

func (nr NormalizedRectangle) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImageObject

func (nr NormalizedRectangle) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsImages

func (nr NormalizedRectangle) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsIntangible

func (nr NormalizedRectangle) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsMediaObject

func (nr NormalizedRectangle) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsNormalizedRectangle

func (nr NormalizedRectangle) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsOffer

func (nr NormalizedRectangle) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsOrganization

func (nr NormalizedRectangle) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsPerson

func (nr NormalizedRectangle) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsRecipe

func (nr NormalizedRectangle) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsRecognizedEntity

func (nr NormalizedRectangle) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsRecognizedEntityRegion

func (nr NormalizedRectangle) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsResponse

func (nr NormalizedRectangle) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsResponseBase

func (nr NormalizedRectangle) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsSearchResultsAnswer

func (nr NormalizedRectangle) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsStructuredValue

func (nr NormalizedRectangle) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsThing

func (nr NormalizedRectangle) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsTrendingImages

func (nr NormalizedRectangle) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) AsWebPage

func (nr NormalizedRectangle) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for NormalizedRectangle.

func (NormalizedRectangle) MarshalJSON

func (nr NormalizedRectangle) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NormalizedRectangle.

type Offer

type Offer struct {
	// Seller - READ-ONLY; Seller for this offer
	Seller *Organization `json:"seller,omitempty"`
	// Price - READ-ONLY; The item's price.
	Price *float64 `json:"price,omitempty"`
	// PriceCurrency - READ-ONLY; The monetary currency. For example, USD. Possible values include: 'USD', 'CAD', 'GBP', 'EUR', 'COP', 'JPY', 'CNY', 'AUD', 'INR', 'AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'COU', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'FJD', 'FKP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STD', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW'
	PriceCurrency Currency `json:"priceCurrency,omitempty"`
	// Availability - READ-ONLY; The item's availability. The following are the possible values: Discontinued, InStock, InStoreOnly, LimitedAvailability, OnlineOnly, OutOfStock, PreOrder, SoldOut. Possible values include: 'Discontinued', 'InStock', 'InStoreOnly', 'LimitedAvailability', 'OnlineOnly', 'OutOfStock', 'PreOrder', 'SoldOut'
	Availability ItemAvailability `json:"availability,omitempty"`
	// AggregateRating - READ-ONLY; An aggregated rating that indicates how well the product has been rated by others.
	AggregateRating *AggregateRating `json:"aggregateRating,omitempty"`
	// LastUpdated - READ-ONLY; The last date that the offer was updated. The date is in the form YYYY-MM-DD.
	LastUpdated *string `json:"lastUpdated,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Offer defines a merchant's offer.

func (Offer) AsAggregateOffer

func (o Offer) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Offer.

func (Offer) AsAnswer

func (o Offer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicAnswer

func (o Offer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicCollectionPage

func (o Offer) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicCreativeWork

func (o Offer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicIdentifiable

func (o Offer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicIntangible

func (o Offer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicMediaObject

func (o Offer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicOffer

func (o Offer) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicResponse

func (o Offer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicResponseBase

func (o Offer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicSearchResultsAnswer

func (o Offer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicStructuredValue

func (o Offer) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicThing

func (o Offer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicWebPage

func (o Offer) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Offer.

func (Offer) AsCollectionPage

func (o Offer) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Offer.

func (Offer) AsCreativeWork

func (o Offer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Offer.

func (Offer) AsErrorResponse

func (o Offer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Offer.

func (Offer) AsIdentifiable

func (o Offer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Offer.

func (Offer) AsImageGallery

func (o Offer) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Offer.

func (Offer) AsImageInsights

func (o Offer) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Offer.

func (Offer) AsImageObject

func (o Offer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Offer.

func (Offer) AsImages

func (o Offer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Offer.

func (Offer) AsIntangible

func (o Offer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Offer.

func (Offer) AsMediaObject

func (o Offer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Offer.

func (Offer) AsNormalizedRectangle

func (o Offer) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Offer.

func (Offer) AsOffer

func (o Offer) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Offer.

func (Offer) AsOrganization

func (o Offer) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Offer.

func (Offer) AsPerson

func (o Offer) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Offer.

func (Offer) AsRecipe

func (o Offer) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Offer.

func (Offer) AsRecognizedEntity

func (o Offer) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Offer.

func (Offer) AsRecognizedEntityRegion

func (o Offer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Offer.

func (Offer) AsResponse

func (o Offer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Offer.

func (Offer) AsResponseBase

func (o Offer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Offer.

func (Offer) AsSearchResultsAnswer

func (o Offer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Offer.

func (Offer) AsStructuredValue

func (o Offer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Offer.

func (Offer) AsThing

func (o Offer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Offer.

func (Offer) AsTrendingImages

func (o Offer) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Offer.

func (Offer) AsWebPage

func (o Offer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Offer.

func (Offer) MarshalJSON

func (o Offer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Offer.

type Organization

type Organization 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; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Organization defines an organization.

func (Organization) AsAggregateOffer

func (o Organization) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Organization.

func (Organization) AsAnswer

func (o Organization) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicAnswer

func (o Organization) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicCollectionPage

func (o Organization) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicCreativeWork

func (o Organization) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicIdentifiable

func (o Organization) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicIntangible

func (o Organization) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicMediaObject

func (o Organization) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicOffer

func (o Organization) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicResponse

func (o Organization) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicResponseBase

func (o Organization) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicSearchResultsAnswer

func (o Organization) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicStructuredValue

func (o Organization) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicThing

func (o Organization) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicWebPage

func (o Organization) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Organization.

func (Organization) AsCollectionPage

func (o Organization) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Organization.

func (Organization) AsCreativeWork

func (o Organization) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Organization.

func (Organization) AsErrorResponse

func (o Organization) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Organization.

func (Organization) AsIdentifiable

func (o Organization) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Organization.

func (Organization) AsImageGallery

func (o Organization) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Organization.

func (Organization) AsImageInsights

func (o Organization) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Organization.

func (Organization) AsImageObject

func (o Organization) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Organization.

func (Organization) AsImages

func (o Organization) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Organization.

func (Organization) AsIntangible

func (o Organization) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Organization.

func (Organization) AsMediaObject

func (o Organization) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Organization.

func (Organization) AsNormalizedRectangle

func (o Organization) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Organization.

func (Organization) AsOffer

func (o Organization) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Organization.

func (Organization) AsOrganization

func (o Organization) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Organization.

func (Organization) AsPerson

func (o Organization) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Organization.

func (Organization) AsRecipe

func (o Organization) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Organization.

func (Organization) AsRecognizedEntity

func (o Organization) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Organization.

func (Organization) AsRecognizedEntityRegion

func (o Organization) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Organization.

func (Organization) AsResponse

func (o Organization) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Organization.

func (Organization) AsResponseBase

func (o Organization) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Organization.

func (Organization) AsSearchResultsAnswer

func (o Organization) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Organization.

func (Organization) AsStructuredValue

func (o Organization) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Organization.

func (Organization) AsThing

func (o Organization) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Organization.

func (Organization) AsTrendingImages

func (o Organization) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Organization.

func (Organization) AsWebPage

func (o Organization) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Organization.

func (Organization) MarshalJSON

func (o Organization) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Organization.

type Person

type Person struct {
	// JobTitle - READ-ONLY; The person's job title.
	JobTitle *string `json:"jobTitle,omitempty"`
	// TwitterProfile - READ-ONLY; The URL of the person's twitter profile.
	TwitterProfile *string `json:"twitterProfile,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Person defines a person.

func (Person) AsAggregateOffer

func (p Person) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Person.

func (Person) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Person.

func (Person) AsBasicAnswer

func (p Person) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Person.

func (Person) AsBasicCollectionPage

func (p Person) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Person.

func (Person) AsBasicCreativeWork

func (p Person) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Person.

func (Person) AsBasicIdentifiable

func (p Person) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Person.

func (Person) AsBasicIntangible

func (p Person) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Person.

func (Person) AsBasicMediaObject

func (p Person) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Person.

func (Person) AsBasicOffer

func (p Person) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Person.

func (Person) AsBasicResponse

func (p Person) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Person.

func (Person) AsBasicResponseBase

func (p Person) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Person.

func (Person) AsBasicSearchResultsAnswer

func (p Person) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Person.

func (Person) AsBasicStructuredValue

func (p Person) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Person.

func (Person) AsBasicThing

func (p Person) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Person.

func (Person) AsBasicWebPage

func (p Person) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Person.

func (Person) AsCollectionPage

func (p Person) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Person.

func (Person) AsCreativeWork

func (p Person) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Person.

func (Person) AsErrorResponse

func (p Person) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Person.

func (Person) AsIdentifiable

func (p Person) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Person.

func (Person) AsImageGallery

func (p Person) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Person.

func (Person) AsImageInsights

func (p Person) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Person.

func (Person) AsImageObject

func (p Person) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Person.

func (Person) AsImages

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

AsImages is the BasicResponseBase implementation for Person.

func (Person) AsIntangible

func (p Person) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Person.

func (Person) AsMediaObject

func (p Person) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Person.

func (Person) AsNormalizedRectangle

func (p Person) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Person.

func (Person) AsOffer

func (p Person) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Person.

func (Person) AsOrganization

func (p Person) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Person.

func (Person) AsPerson

func (p Person) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Person.

func (Person) AsRecipe

func (p Person) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Person.

func (Person) AsRecognizedEntity

func (p Person) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Person.

func (Person) AsRecognizedEntityRegion

func (p Person) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Person.

func (Person) AsResponse

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

AsResponse is the BasicResponseBase implementation for Person.

func (Person) AsResponseBase

func (p Person) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Person.

func (Person) AsSearchResultsAnswer

func (p Person) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Person.

func (Person) AsStructuredValue

func (p Person) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Person.

func (Person) AsThing

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

AsThing is the BasicResponseBase implementation for Person.

func (Person) AsTrendingImages

func (p Person) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Person.

func (Person) AsWebPage

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

AsWebPage is the BasicResponseBase implementation for Person.

func (Person) MarshalJSON

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

MarshalJSON is the custom marshaler for Person.

type PivotSuggestions

type PivotSuggestions struct {
	// Pivot - The segment from the original query to pivot on.
	Pivot *string `json:"pivot,omitempty"`
	// Suggestions - A list of suggested queries for the pivot.
	Suggestions *[]Query `json:"suggestions,omitempty"`
}

PivotSuggestions defines the pivot segment.

type PropertiesItem

type PropertiesItem struct {
	// Text - READ-ONLY; Text representation of an item.
	Text *string `json:"text,omitempty"`
	// Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating'
	Type Type `json:"_type,omitempty"`
}

PropertiesItem defines an item.

func (PropertiesItem) AsAggregateRating

func (pi PropertiesItem) AsAggregateRating() (*AggregateRating, bool)

AsAggregateRating is the BasicPropertiesItem implementation for PropertiesItem.

func (PropertiesItem) AsBasicPropertiesItem

func (pi PropertiesItem) AsBasicPropertiesItem() (BasicPropertiesItem, bool)

AsBasicPropertiesItem is the BasicPropertiesItem implementation for PropertiesItem.

func (PropertiesItem) AsBasicRating

func (pi PropertiesItem) AsBasicRating() (BasicRating, bool)

AsBasicRating is the BasicPropertiesItem implementation for PropertiesItem.

func (PropertiesItem) AsPropertiesItem

func (pi PropertiesItem) AsPropertiesItem() (*PropertiesItem, bool)

AsPropertiesItem is the BasicPropertiesItem implementation for PropertiesItem.

func (PropertiesItem) AsRating

func (pi PropertiesItem) AsRating() (*Rating, bool)

AsRating is the BasicPropertiesItem implementation for PropertiesItem.

func (PropertiesItem) MarshalJSON

func (pi PropertiesItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PropertiesItem.

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; The URL that you use to get the results of the related search. Before using the URL, you must append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header. Use this URL if you're displaying the results in your own user interface. Otherwise, use the webSearchUrl URL.
	SearchLink *string `json:"searchLink,omitempty"`
	// Thumbnail - READ-ONLY; The URL to a thumbnail of a related image.
	Thumbnail *ImageObject `json:"thumbnail,omitempty"`
}

Query defines a search query.

func (Query) MarshalJSON

func (q Query) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Query.

type Rating

type Rating struct {
	// RatingValue - The mean (average) rating. The possible values are 1.0 through 5.0.
	RatingValue *float64 `json:"ratingValue,omitempty"`
	// BestRating - READ-ONLY; The highest rated review. The possible values are 1.0 through 5.0.
	BestRating *float64 `json:"bestRating,omitempty"`
	// Text - READ-ONLY; Text representation of an item.
	Text *string `json:"text,omitempty"`
	// Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating'
	Type Type `json:"_type,omitempty"`
}

Rating defines a rating.

func (Rating) AsAggregateRating

func (r Rating) AsAggregateRating() (*AggregateRating, bool)

AsAggregateRating is the BasicPropertiesItem implementation for Rating.

func (Rating) AsBasicPropertiesItem

func (r Rating) AsBasicPropertiesItem() (BasicPropertiesItem, bool)

AsBasicPropertiesItem is the BasicPropertiesItem implementation for Rating.

func (Rating) AsBasicRating

func (r Rating) AsBasicRating() (BasicRating, bool)

AsBasicRating is the BasicPropertiesItem implementation for Rating.

func (Rating) AsPropertiesItem

func (r Rating) AsPropertiesItem() (*PropertiesItem, bool)

AsPropertiesItem is the BasicPropertiesItem implementation for Rating.

func (Rating) AsRating

func (r Rating) AsRating() (*Rating, bool)

AsRating is the BasicPropertiesItem implementation for Rating.

func (Rating) MarshalJSON

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

MarshalJSON is the custom marshaler for Rating.

type Recipe

type Recipe struct {
	// CookTime - READ-ONLY; The amount of time the food takes to cook. For example, PT25M. For information about the time format, see http://en.wikipedia.org/wiki/ISO_8601#Durations.
	CookTime *string `json:"cookTime,omitempty"`
	// PrepTime - READ-ONLY; The amount of time required to prepare the ingredients. For example, PT15M. For information about the time format, see http://en.wikipedia.org/wiki/ISO_8601#Durations.
	PrepTime *string `json:"prepTime,omitempty"`
	// TotalTime - READ-ONLY; The total amount of time it takes to prepare and cook the recipe. For example, PT45M. For information about the time format, see http://en.wikipedia.org/wiki/ISO_8601#Durations.
	TotalTime *string `json:"totalTime,omitempty"`
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Recipe defines a cooking recipe.

func (Recipe) AsAggregateOffer

func (r Recipe) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicAnswer

func (r Recipe) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicCollectionPage

func (r Recipe) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicCreativeWork

func (r Recipe) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicIdentifiable

func (r Recipe) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicIntangible

func (r Recipe) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicMediaObject

func (r Recipe) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicOffer

func (r Recipe) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicResponse

func (r Recipe) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicResponseBase

func (r Recipe) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicSearchResultsAnswer

func (r Recipe) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicStructuredValue

func (r Recipe) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicThing

func (r Recipe) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicWebPage

func (r Recipe) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Recipe.

func (Recipe) AsCollectionPage

func (r Recipe) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Recipe.

func (Recipe) AsCreativeWork

func (r Recipe) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Recipe.

func (Recipe) AsErrorResponse

func (r Recipe) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Recipe.

func (Recipe) AsIdentifiable

func (r Recipe) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageGallery

func (r Recipe) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageInsights

func (r Recipe) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageObject

func (r Recipe) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImages

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

AsImages is the BasicResponseBase implementation for Recipe.

func (Recipe) AsIntangible

func (r Recipe) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Recipe.

func (Recipe) AsMediaObject

func (r Recipe) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Recipe.

func (Recipe) AsNormalizedRectangle

func (r Recipe) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Recipe.

func (Recipe) AsOffer

func (r Recipe) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsOrganization

func (r Recipe) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Recipe.

func (Recipe) AsPerson

func (r Recipe) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Recipe.

func (Recipe) AsRecipe

func (r Recipe) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Recipe.

func (Recipe) AsRecognizedEntity

func (r Recipe) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Recipe.

func (Recipe) AsRecognizedEntityRegion

func (r Recipe) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Recipe.

func (Recipe) AsResponse

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

AsResponse is the BasicResponseBase implementation for Recipe.

func (Recipe) AsResponseBase

func (r Recipe) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Recipe.

func (Recipe) AsSearchResultsAnswer

func (r Recipe) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsStructuredValue

func (r Recipe) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Recipe.

func (Recipe) AsThing

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

AsThing is the BasicResponseBase implementation for Recipe.

func (Recipe) AsTrendingImages

func (r Recipe) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Recipe.

func (Recipe) AsWebPage

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

AsWebPage is the BasicResponseBase implementation for Recipe.

func (Recipe) MarshalJSON

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

MarshalJSON is the custom marshaler for Recipe.

func (*Recipe) UnmarshalJSON

func (r *Recipe) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Recipe struct.

type RecipesModule

type RecipesModule struct {
	// Value - READ-ONLY; A list of recipes.
	Value *[]Recipe `json:"value,omitempty"`
}

RecipesModule defines a list of recipes.

func (RecipesModule) MarshalJSON

func (rm RecipesModule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecipesModule.

type RecognizedEntitiesModule

type RecognizedEntitiesModule struct {
	// Value - READ-ONLY; A list of recognized entities.
	Value *[]RecognizedEntityGroup `json:"value,omitempty"`
}

RecognizedEntitiesModule defines a list of previously recognized entities.

func (RecognizedEntitiesModule) MarshalJSON

func (rem RecognizedEntitiesModule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecognizedEntitiesModule.

type RecognizedEntity

type RecognizedEntity struct {
	// Entity - READ-ONLY; The entity that was recognized. The following are the possible entity objects: Person
	Entity BasicThing `json:"entity,omitempty"`
	// MatchConfidence - READ-ONLY; The confidence that Bing has that the entity in the image matches this entity. The confidence ranges from 0.0 through 1.0 with 1.0 being very confident.
	MatchConfidence *float64 `json:"matchConfidence,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

RecognizedEntity defines a recognized entity.

func (RecognizedEntity) AsAggregateOffer

func (re RecognizedEntity) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsAnswer

func (re RecognizedEntity) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicAnswer

func (re RecognizedEntity) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicCollectionPage

func (re RecognizedEntity) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicCreativeWork

func (re RecognizedEntity) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicIdentifiable

func (re RecognizedEntity) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicIntangible

func (re RecognizedEntity) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicMediaObject

func (re RecognizedEntity) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicOffer

func (re RecognizedEntity) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicResponse

func (re RecognizedEntity) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicResponseBase

func (re RecognizedEntity) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicSearchResultsAnswer

func (re RecognizedEntity) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicStructuredValue

func (re RecognizedEntity) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicThing

func (re RecognizedEntity) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsBasicWebPage

func (re RecognizedEntity) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsCollectionPage

func (re RecognizedEntity) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsCreativeWork

func (re RecognizedEntity) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsErrorResponse

func (re RecognizedEntity) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsIdentifiable

func (re RecognizedEntity) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsImageGallery

func (re RecognizedEntity) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsImageInsights

func (re RecognizedEntity) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsImageObject

func (re RecognizedEntity) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsImages

func (re RecognizedEntity) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsIntangible

func (re RecognizedEntity) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsMediaObject

func (re RecognizedEntity) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsNormalizedRectangle

func (re RecognizedEntity) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsOffer

func (re RecognizedEntity) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsOrganization

func (re RecognizedEntity) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsPerson

func (re RecognizedEntity) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsRecipe

func (re RecognizedEntity) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsRecognizedEntity

func (re RecognizedEntity) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsRecognizedEntityRegion

func (re RecognizedEntity) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsResponse

func (re RecognizedEntity) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsResponseBase

func (re RecognizedEntity) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsSearchResultsAnswer

func (re RecognizedEntity) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsStructuredValue

func (re RecognizedEntity) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsThing

func (re RecognizedEntity) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsTrendingImages

func (re RecognizedEntity) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) AsWebPage

func (re RecognizedEntity) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for RecognizedEntity.

func (RecognizedEntity) MarshalJSON

func (re RecognizedEntity) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecognizedEntity.

func (*RecognizedEntity) UnmarshalJSON

func (re *RecognizedEntity) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecognizedEntity struct.

type RecognizedEntityGroup

type RecognizedEntityGroup struct {
	// RecognizedEntityRegions - The regions of the image that contain entities.
	RecognizedEntityRegions *[]RecognizedEntityRegion `json:"recognizedEntityRegions,omitempty"`
	// Name - The name of the group where images of the entity were also found. The following are possible groups. CelebRecognitionAnnotations: Similar to CelebrityAnnotations but provides a higher probability of an accurate match. CelebrityAnnotations: Contains celebrities such as actors, politicians, athletes, and historical figures.
	Name *string `json:"name,omitempty"`
}

RecognizedEntityGroup defines a group of previously recognized entities.

type RecognizedEntityRegion

type RecognizedEntityRegion struct {
	// Region - READ-ONLY; A region of the image that contains an entity. The values of the rectangle are relative to the width and height of the original image and are in the range 0.0 through 1.0. For example, if the image is 300x200 and the region's top, left corner is at point (10, 20) and the bottom, right corner is at point (290, 150), then the normalized rectangle is: Left = 0.0333333333333333, Top = 0.1, Right = 0.9666666666666667, Bottom = 0.75. For people, the region represents the person's face.
	Region *NormalizedRectangle `json:"region,omitempty"`
	// MatchingEntities - READ-ONLY; A list of entities that Bing believes match the entity found in the region. The entities are in descending order of confidence (see the matchConfidence field of RecognizedEntity).
	MatchingEntities *[]RecognizedEntity `json:"matchingEntities,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

RecognizedEntityRegion defines a region of the image where an entity was found and a list of entities that might match it.

func (RecognizedEntityRegion) AsAggregateOffer

func (rer RecognizedEntityRegion) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsAnswer

func (rer RecognizedEntityRegion) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicAnswer

func (rer RecognizedEntityRegion) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicCollectionPage

func (rer RecognizedEntityRegion) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicCreativeWork

func (rer RecognizedEntityRegion) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicIdentifiable

func (rer RecognizedEntityRegion) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicIntangible

func (rer RecognizedEntityRegion) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicMediaObject

func (rer RecognizedEntityRegion) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicOffer

func (rer RecognizedEntityRegion) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicResponse

func (rer RecognizedEntityRegion) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicResponseBase

func (rer RecognizedEntityRegion) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicSearchResultsAnswer

func (rer RecognizedEntityRegion) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicStructuredValue

func (rer RecognizedEntityRegion) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicThing

func (rer RecognizedEntityRegion) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsBasicWebPage

func (rer RecognizedEntityRegion) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsCollectionPage

func (rer RecognizedEntityRegion) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsCreativeWork

func (rer RecognizedEntityRegion) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsErrorResponse

func (rer RecognizedEntityRegion) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsIdentifiable

func (rer RecognizedEntityRegion) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsImageGallery

func (rer RecognizedEntityRegion) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsImageInsights

func (rer RecognizedEntityRegion) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsImageObject

func (rer RecognizedEntityRegion) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsImages

func (rer RecognizedEntityRegion) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsIntangible

func (rer RecognizedEntityRegion) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsMediaObject

func (rer RecognizedEntityRegion) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsNormalizedRectangle

func (rer RecognizedEntityRegion) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsOffer

func (rer RecognizedEntityRegion) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsOrganization

func (rer RecognizedEntityRegion) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsPerson

func (rer RecognizedEntityRegion) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsRecipe

func (rer RecognizedEntityRegion) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsRecognizedEntity

func (rer RecognizedEntityRegion) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsRecognizedEntityRegion

func (rer RecognizedEntityRegion) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsResponse

func (rer RecognizedEntityRegion) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsResponseBase

func (rer RecognizedEntityRegion) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsSearchResultsAnswer

func (rer RecognizedEntityRegion) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsStructuredValue

func (rer RecognizedEntityRegion) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsThing

func (rer RecognizedEntityRegion) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsTrendingImages

func (rer RecognizedEntityRegion) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) AsWebPage

func (rer RecognizedEntityRegion) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for RecognizedEntityRegion.

func (RecognizedEntityRegion) MarshalJSON

func (rer RecognizedEntityRegion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecognizedEntityRegion.

type RelatedCollectionsModule

type RelatedCollectionsModule struct {
	// Value - READ-ONLY; A list of webpages that contain related images.
	Value *[]ImageGallery `json:"value,omitempty"`
}

RelatedCollectionsModule defines a list of webpages that contain related images.

func (RelatedCollectionsModule) MarshalJSON

func (rcm RelatedCollectionsModule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RelatedCollectionsModule.

type RelatedSearchesModule

type RelatedSearchesModule struct {
	// Value - READ-ONLY; A list of related searches.
	Value *[]Query `json:"value,omitempty"`
}

RelatedSearchesModule defines a list of related searches.

func (RelatedSearchesModule) MarshalJSON

func (rsm RelatedSearchesModule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RelatedSearchesModule.

type Response

type Response struct {
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Response defines a response. All schemas that could be returned at the root of a response should inherit from this

func (Response) AsAggregateOffer

func (r Response) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Response.

func (Response) AsAnswer

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

AsAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicAnswer

func (r Response) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Response.

func (Response) AsBasicCollectionPage

func (r Response) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage 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) AsBasicOffer

func (r Response) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer 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) AsBasicStructuredValue

func (r Response) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Response.

func (Response) AsBasicThing

func (r Response) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Response.

func (Response) AsBasicWebPage

func (r Response) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Response.

func (Response) AsCollectionPage

func (r Response) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage 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) AsImageGallery

func (r Response) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Response.

func (Response) AsImageInsights

func (r Response) AsImageInsights() (*ImageInsights, bool)

AsImageInsights 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) AsNormalizedRectangle

func (r Response) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Response.

func (Response) AsOffer

func (r Response) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Response.

func (Response) AsOrganization

func (r Response) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Response.

func (Response) AsPerson

func (r Response) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Response.

func (Response) AsRecipe

func (r Response) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Response.

func (Response) AsRecognizedEntity

func (r Response) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Response.

func (Response) AsRecognizedEntityRegion

func (r Response) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion 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) AsSearchResultsAnswer

func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer 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) AsTrendingImages

func (r Response) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Response.

func (Response) AsWebPage

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

AsWebPage 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', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

ResponseBase response base

func (ResponseBase) AsAggregateOffer

func (rb ResponseBase) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsAnswer

func (rb ResponseBase) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicAnswer

func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicCollectionPage

func (rb ResponseBase) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage 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) AsBasicOffer

func (rb ResponseBase) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer 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) AsBasicStructuredValue

func (rb ResponseBase) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicThing

func (rb ResponseBase) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicWebPage

func (rb ResponseBase) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsCollectionPage

func (rb ResponseBase) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage 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) AsImageGallery

func (rb ResponseBase) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageInsights

func (rb ResponseBase) AsImageInsights() (*ImageInsights, bool)

AsImageInsights 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) AsNormalizedRectangle

func (rb ResponseBase) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsOffer

func (rb ResponseBase) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsOrganization

func (rb ResponseBase) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsPerson

func (rb ResponseBase) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsRecipe

func (rb ResponseBase) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsRecognizedEntity

func (rb ResponseBase) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsRecognizedEntityRegion

func (rb ResponseBase) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponse

func (rb ResponseBase) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsResponseBase

func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsSearchResultsAnswer

func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsStructuredValue

func (rb ResponseBase) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsThing

func (rb ResponseBase) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsTrendingImages

func (rb ResponseBase) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsWebPage

func (rb ResponseBase) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) MarshalJSON

func (rb ResponseBase) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResponseBase.

type SafeSearch

type SafeSearch string

SafeSearch enumerates the values for safe search.

const (
	// Moderate ...
	Moderate SafeSearch = "Moderate"
	// Off ...
	Off SafeSearch = "Off"
	// Strict ...
	Strict SafeSearch = "Strict"
)

func PossibleSafeSearchValues

func PossibleSafeSearchValues() []SafeSearch

PossibleSafeSearchValues returns an array of possible values for the SafeSearch const type.

type SearchResultsAnswer

type SearchResultsAnswer struct {
	// TotalEstimatedMatches - READ-ONLY; The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
	TotalEstimatedMatches *int64 `json:"totalEstimatedMatches,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

SearchResultsAnswer defines a search result answer.

func (SearchResultsAnswer) AsAggregateOffer

func (sra SearchResultsAnswer) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsAnswer

func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicAnswer

func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicCollectionPage

func (sra SearchResultsAnswer) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicCreativeWork

func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIdentifiable

func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicIntangible

func (sra SearchResultsAnswer) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicMediaObject

func (sra SearchResultsAnswer) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicOffer

func (sra SearchResultsAnswer) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponse

func (sra SearchResultsAnswer) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicResponseBase

func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicSearchResultsAnswer

func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicStructuredValue

func (sra SearchResultsAnswer) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicThing

func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsBasicWebPage

func (sra SearchResultsAnswer) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsCollectionPage

func (sra SearchResultsAnswer) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsCreativeWork

func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsErrorResponse

func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIdentifiable

func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImageGallery

func (sra SearchResultsAnswer) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImageInsights

func (sra SearchResultsAnswer) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImageObject

func (sra SearchResultsAnswer) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsImages

func (sra SearchResultsAnswer) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsIntangible

func (sra SearchResultsAnswer) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsMediaObject

func (sra SearchResultsAnswer) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsNormalizedRectangle

func (sra SearchResultsAnswer) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsOffer

func (sra SearchResultsAnswer) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsOrganization

func (sra SearchResultsAnswer) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsPerson

func (sra SearchResultsAnswer) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsRecipe

func (sra SearchResultsAnswer) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsRecognizedEntity

func (sra SearchResultsAnswer) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsRecognizedEntityRegion

func (sra SearchResultsAnswer) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponse

func (sra SearchResultsAnswer) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsResponseBase

func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsSearchResultsAnswer

func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsStructuredValue

func (sra SearchResultsAnswer) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsThing

func (sra SearchResultsAnswer) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsTrendingImages

func (sra SearchResultsAnswer) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) AsWebPage

func (sra SearchResultsAnswer) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for SearchResultsAnswer.

func (SearchResultsAnswer) MarshalJSON

func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SearchResultsAnswer.

type StructuredValue

type StructuredValue struct {
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

StructuredValue ...

func (StructuredValue) AsAggregateOffer

func (sv StructuredValue) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsAnswer

func (sv StructuredValue) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicAnswer

func (sv StructuredValue) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicCollectionPage

func (sv StructuredValue) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicCreativeWork

func (sv StructuredValue) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIdentifiable

func (sv StructuredValue) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicIntangible

func (sv StructuredValue) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicMediaObject

func (sv StructuredValue) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicOffer

func (sv StructuredValue) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponse

func (sv StructuredValue) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicResponseBase

func (sv StructuredValue) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicSearchResultsAnswer

func (sv StructuredValue) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicStructuredValue

func (sv StructuredValue) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicThing

func (sv StructuredValue) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicWebPage

func (sv StructuredValue) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsCollectionPage

func (sv StructuredValue) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsCreativeWork

func (sv StructuredValue) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsErrorResponse

func (sv StructuredValue) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIdentifiable

func (sv StructuredValue) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageGallery

func (sv StructuredValue) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageInsights

func (sv StructuredValue) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageObject

func (sv StructuredValue) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImages

func (sv StructuredValue) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsIntangible

func (sv StructuredValue) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsMediaObject

func (sv StructuredValue) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsNormalizedRectangle

func (sv StructuredValue) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsOffer

func (sv StructuredValue) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsOrganization

func (sv StructuredValue) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsPerson

func (sv StructuredValue) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsRecipe

func (sv StructuredValue) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsRecognizedEntity

func (sv StructuredValue) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsRecognizedEntityRegion

func (sv StructuredValue) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponse

func (sv StructuredValue) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsResponseBase

func (sv StructuredValue) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsSearchResultsAnswer

func (sv StructuredValue) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsStructuredValue

func (sv StructuredValue) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsThing

func (sv StructuredValue) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsTrendingImages

func (sv StructuredValue) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsWebPage

func (sv StructuredValue) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) MarshalJSON

func (sv StructuredValue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StructuredValue.

type Thing

type Thing struct {
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

Thing defines a thing.

func (Thing) AsAggregateOffer

func (t Thing) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Thing.

func (Thing) AsAnswer

func (t Thing) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicAnswer

func (t Thing) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicCollectionPage

func (t Thing) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicCreativeWork

func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicIdentifiable

func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicIntangible

func (t Thing) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicMediaObject

func (t Thing) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicOffer

func (t Thing) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicResponse

func (t Thing) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicResponseBase

func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicSearchResultsAnswer

func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicStructuredValue

func (t Thing) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicThing

func (t Thing) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicWebPage

func (t Thing) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for Thing.

func (Thing) AsCollectionPage

func (t Thing) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for Thing.

func (Thing) AsCreativeWork

func (t Thing) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Thing.

func (Thing) AsErrorResponse

func (t Thing) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsIdentifiable

func (t Thing) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Thing.

func (Thing) AsImageGallery

func (t Thing) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for Thing.

func (Thing) AsImageInsights

func (t Thing) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for Thing.

func (Thing) AsImageObject

func (t Thing) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Thing.

func (Thing) AsImages

func (t Thing) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for Thing.

func (Thing) AsIntangible

func (t Thing) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Thing.

func (Thing) AsMediaObject

func (t Thing) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Thing.

func (Thing) AsNormalizedRectangle

func (t Thing) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for Thing.

func (Thing) AsOffer

func (t Thing) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Thing.

func (Thing) AsOrganization

func (t Thing) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Thing.

func (Thing) AsPerson

func (t Thing) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Thing.

func (Thing) AsRecipe

func (t Thing) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Thing.

func (Thing) AsRecognizedEntity

func (t Thing) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for Thing.

func (Thing) AsRecognizedEntityRegion

func (t Thing) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for Thing.

func (Thing) AsResponse

func (t Thing) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Thing.

func (Thing) AsResponseBase

func (t Thing) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Thing.

func (Thing) AsSearchResultsAnswer

func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for Thing.

func (Thing) AsStructuredValue

func (t Thing) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Thing.

func (Thing) AsThing

func (t Thing) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Thing.

func (Thing) AsTrendingImages

func (t Thing) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for Thing.

func (Thing) AsWebPage

func (t Thing) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for Thing.

func (Thing) MarshalJSON

func (t Thing) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Thing.

type TrendingImages

type TrendingImages struct {
	autorest.Response `json:"-"`
	// Categories - A list that identifies categories of images and a list of trending images in that category.
	Categories *[]TrendingImagesCategory `json:"categories,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

TrendingImages the top-level object that the response includes when a trending images request succeeds.

func (TrendingImages) AsAggregateOffer

func (ti TrendingImages) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsAnswer

func (ti TrendingImages) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicAnswer

func (ti TrendingImages) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicCollectionPage

func (ti TrendingImages) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicCreativeWork

func (ti TrendingImages) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicIdentifiable

func (ti TrendingImages) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicIntangible

func (ti TrendingImages) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicMediaObject

func (ti TrendingImages) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicOffer

func (ti TrendingImages) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicResponse

func (ti TrendingImages) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicResponseBase

func (ti TrendingImages) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicSearchResultsAnswer

func (ti TrendingImages) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicStructuredValue

func (ti TrendingImages) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicThing

func (ti TrendingImages) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsBasicWebPage

func (ti TrendingImages) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsCollectionPage

func (ti TrendingImages) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsCreativeWork

func (ti TrendingImages) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsErrorResponse

func (ti TrendingImages) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsIdentifiable

func (ti TrendingImages) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsImageGallery

func (ti TrendingImages) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsImageInsights

func (ti TrendingImages) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsImageObject

func (ti TrendingImages) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsImages

func (ti TrendingImages) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsIntangible

func (ti TrendingImages) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsMediaObject

func (ti TrendingImages) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsNormalizedRectangle

func (ti TrendingImages) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsOffer

func (ti TrendingImages) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsOrganization

func (ti TrendingImages) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsPerson

func (ti TrendingImages) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsRecipe

func (ti TrendingImages) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsRecognizedEntity

func (ti TrendingImages) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsRecognizedEntityRegion

func (ti TrendingImages) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsResponse

func (ti TrendingImages) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsResponseBase

func (ti TrendingImages) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsSearchResultsAnswer

func (ti TrendingImages) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsStructuredValue

func (ti TrendingImages) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsThing

func (ti TrendingImages) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsTrendingImages

func (ti TrendingImages) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) AsWebPage

func (ti TrendingImages) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for TrendingImages.

func (TrendingImages) MarshalJSON

func (ti TrendingImages) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrendingImages.

type TrendingImagesCategory

type TrendingImagesCategory struct {
	// Title - The name of the image category. For example, Popular People Searches.
	Title *string `json:"title,omitempty"`
	// Tiles - A list of images that are trending in the category. Each tile contains an image and a URL that returns more images of the subject. For example, if the category is Popular People Searches, the image is of a popular person and the URL would return more images of that person.
	Tiles *[]TrendingImagesTile `json:"tiles,omitempty"`
}

TrendingImagesCategory defines the category of trending images.

type TrendingImagesTile

type TrendingImagesTile struct {
	// Query - A query that returns a Bing search results page with more images of the subject. For example, if the category is Popular People Searches, then the thumbnail is of a popular person. The query would return a Bing search results page with more images of that person.
	Query *Query `json:"query,omitempty"`
	// Image - The image's thumbnail.
	Image *ImageObject `json:"image,omitempty"`
}

TrendingImagesTile defines an image tile.

type Type

type Type string

Type enumerates the values for type.

const (
	// TypeAggregateRating ...
	TypeAggregateRating Type = "AggregateRating"
	// TypePropertiesItem ...
	TypePropertiesItem Type = "Properties/Item"
	// TypeRating ...
	TypeRating Type = "Rating"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type TypeBasicResponseBase

type TypeBasicResponseBase string

TypeBasicResponseBase enumerates the values for type basic response base.

const (
	// TypeAggregateOffer ...
	TypeAggregateOffer TypeBasicResponseBase = "AggregateOffer"
	// TypeAnswer ...
	TypeAnswer TypeBasicResponseBase = "Answer"
	// TypeCollectionPage ...
	TypeCollectionPage TypeBasicResponseBase = "CollectionPage"
	// TypeCreativeWork ...
	TypeCreativeWork TypeBasicResponseBase = "CreativeWork"
	// TypeErrorResponse ...
	TypeErrorResponse TypeBasicResponseBase = "ErrorResponse"
	// TypeIdentifiable ...
	TypeIdentifiable TypeBasicResponseBase = "Identifiable"
	// TypeImageGallery ...
	TypeImageGallery TypeBasicResponseBase = "ImageGallery"
	// TypeImageInsights ...
	TypeImageInsights TypeBasicResponseBase = "ImageInsights"
	// TypeImageObject ...
	TypeImageObject TypeBasicResponseBase = "ImageObject"
	// TypeImages ...
	TypeImages TypeBasicResponseBase = "Images"
	// TypeIntangible ...
	TypeIntangible TypeBasicResponseBase = "Intangible"
	// TypeMediaObject ...
	TypeMediaObject TypeBasicResponseBase = "MediaObject"
	// TypeNormalizedRectangle ...
	TypeNormalizedRectangle TypeBasicResponseBase = "NormalizedRectangle"
	// TypeOffer ...
	TypeOffer TypeBasicResponseBase = "Offer"
	// TypeOrganization ...
	TypeOrganization TypeBasicResponseBase = "Organization"
	// TypePerson ...
	TypePerson TypeBasicResponseBase = "Person"
	// TypeRecipe ...
	TypeRecipe TypeBasicResponseBase = "Recipe"
	// TypeRecognizedEntity ...
	TypeRecognizedEntity TypeBasicResponseBase = "RecognizedEntity"
	// TypeRecognizedEntityRegion ...
	TypeRecognizedEntityRegion TypeBasicResponseBase = "RecognizedEntityRegion"
	// TypeResponse ...
	TypeResponse TypeBasicResponseBase = "Response"
	// TypeResponseBase ...
	TypeResponseBase TypeBasicResponseBase = "ResponseBase"
	// TypeSearchResultsAnswer ...
	TypeSearchResultsAnswer TypeBasicResponseBase = "SearchResultsAnswer"
	// TypeStructuredValue ...
	TypeStructuredValue TypeBasicResponseBase = "StructuredValue"
	// TypeThing ...
	TypeThing TypeBasicResponseBase = "Thing"
	// TypeTrendingImages ...
	TypeTrendingImages TypeBasicResponseBase = "TrendingImages"
	// TypeWebPage ...
	TypeWebPage TypeBasicResponseBase = "WebPage"
)

func PossibleTypeBasicResponseBaseValues

func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase

PossibleTypeBasicResponseBaseValues returns an array of possible values for the TypeBasicResponseBase const type.

type WebPage

type WebPage struct {
	// ThumbnailURL - READ-ONLY; The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - READ-ONLY; The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - READ-ONLY; The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - READ-ONLY; Text content of this creative work
	Text *string `json:"text,omitempty"`
	// Name - READ-ONLY; The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - READ-ONLY; The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - READ-ONLY; An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - READ-ONLY; A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - READ-ONLY; An alias for the item
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - READ-ONLY; An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - READ-ONLY; The URL that returns this resource.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - READ-ONLY; The URL To Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - READ-ONLY; A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImages', 'TypeSearchResultsAnswer', 'TypeAnswer', 'TypeMediaObject', 'TypeResponse', 'TypeThing', 'TypeCreativeWork', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeImageGallery', 'TypeRecipe', 'TypeNormalizedRectangle', 'TypeRecognizedEntity', 'TypeRecognizedEntityRegion', 'TypeImageInsights', 'TypeTrendingImages', 'TypeWebPage', 'TypePerson', 'TypeIntangible', 'TypeCollectionPage', 'TypeStructuredValue'
	Type TypeBasicResponseBase `json:"_type,omitempty"`
}

WebPage defines a webpage that is relevant to the query.

func (WebPage) AsAggregateOffer

func (wp WebPage) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsAnswer

func (wp WebPage) AsAnswer() (*Answer, bool)

AsAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicAnswer

func (wp WebPage) AsBasicAnswer() (BasicAnswer, bool)

AsBasicAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicCollectionPage

func (wp WebPage) AsBasicCollectionPage() (BasicCollectionPage, bool)

AsBasicCollectionPage is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicCreativeWork

func (wp WebPage) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicIdentifiable

func (wp WebPage) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicIntangible

func (wp WebPage) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicMediaObject

func (wp WebPage) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicOffer

func (wp WebPage) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicResponse

func (wp WebPage) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicResponseBase

func (wp WebPage) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicSearchResultsAnswer

func (wp WebPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool)

AsBasicSearchResultsAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicStructuredValue

func (wp WebPage) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicThing

func (wp WebPage) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for WebPage.

func (WebPage) AsBasicWebPage

func (wp WebPage) AsBasicWebPage() (BasicWebPage, bool)

AsBasicWebPage is the BasicResponseBase implementation for WebPage.

func (WebPage) AsCollectionPage

func (wp WebPage) AsCollectionPage() (*CollectionPage, bool)

AsCollectionPage is the BasicResponseBase implementation for WebPage.

func (WebPage) AsCreativeWork

func (wp WebPage) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for WebPage.

func (WebPage) AsErrorResponse

func (wp WebPage) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for WebPage.

func (WebPage) AsIdentifiable

func (wp WebPage) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for WebPage.

func (WebPage) AsImageGallery

func (wp WebPage) AsImageGallery() (*ImageGallery, bool)

AsImageGallery is the BasicResponseBase implementation for WebPage.

func (WebPage) AsImageInsights

func (wp WebPage) AsImageInsights() (*ImageInsights, bool)

AsImageInsights is the BasicResponseBase implementation for WebPage.

func (WebPage) AsImageObject

func (wp WebPage) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for WebPage.

func (WebPage) AsImages

func (wp WebPage) AsImages() (*Images, bool)

AsImages is the BasicResponseBase implementation for WebPage.

func (WebPage) AsIntangible

func (wp WebPage) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for WebPage.

func (WebPage) AsMediaObject

func (wp WebPage) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for WebPage.

func (WebPage) AsNormalizedRectangle

func (wp WebPage) AsNormalizedRectangle() (*NormalizedRectangle, bool)

AsNormalizedRectangle is the BasicResponseBase implementation for WebPage.

func (WebPage) AsOffer

func (wp WebPage) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsOrganization

func (wp WebPage) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for WebPage.

func (WebPage) AsPerson

func (wp WebPage) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for WebPage.

func (WebPage) AsRecipe

func (wp WebPage) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for WebPage.

func (WebPage) AsRecognizedEntity

func (wp WebPage) AsRecognizedEntity() (*RecognizedEntity, bool)

AsRecognizedEntity is the BasicResponseBase implementation for WebPage.

func (WebPage) AsRecognizedEntityRegion

func (wp WebPage) AsRecognizedEntityRegion() (*RecognizedEntityRegion, bool)

AsRecognizedEntityRegion is the BasicResponseBase implementation for WebPage.

func (WebPage) AsResponse

func (wp WebPage) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for WebPage.

func (WebPage) AsResponseBase

func (wp WebPage) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for WebPage.

func (WebPage) AsSearchResultsAnswer

func (wp WebPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool)

AsSearchResultsAnswer is the BasicResponseBase implementation for WebPage.

func (WebPage) AsStructuredValue

func (wp WebPage) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for WebPage.

func (WebPage) AsThing

func (wp WebPage) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for WebPage.

func (WebPage) AsTrendingImages

func (wp WebPage) AsTrendingImages() (*TrendingImages, bool)

AsTrendingImages is the BasicResponseBase implementation for WebPage.

func (WebPage) AsWebPage

func (wp WebPage) AsWebPage() (*WebPage, bool)

AsWebPage is the BasicResponseBase implementation for WebPage.

func (WebPage) MarshalJSON

func (wp WebPage) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebPage.

func (*WebPage) UnmarshalJSON

func (wp *WebPage) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WebPage struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL