visualsearch

package
v27.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package visualsearch implements the Azure ARM Visualsearch service API version 1.0.

Visual Search API lets you discover insights about an image such as visually similar images, shopping sources, and related searches. The API can also perform text recognition, identify entities (people, places, things), return other topical content for the user to explore, and more. For more information, see [Visual Search Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview).

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 Action

type Action struct {
	// Result - The result produced in the action.
	Result *[]BasicThing `json:"result,omitempty"`
	// DisplayName - A display name for the action.
	DisplayName *string `json:"displayName,omitempty"`
	// IsTopAction - A Boolean representing whether this result is the top action.
	IsTopAction *bool `json:"isTopAction,omitempty"`
	// ServiceURL - Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
	ServiceURL *string `json:"serviceUrl,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Action defines an action.

func (Action) AsAction

func (a Action) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Action.

func (Action) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Action.

func (Action) AsBasicAction

func (a Action) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for Action.

func (Action) AsBasicCreativeWork

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

AsBasicCreativeWork is the BasicResponseBase implementation for Action.

func (Action) AsBasicIdentifiable

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

AsBasicIdentifiable is the BasicResponseBase implementation for Action.

func (Action) AsBasicImageAction

func (a Action) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for Action.

func (Action) AsBasicIntangible

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

AsBasicIntangible is the BasicResponseBase implementation for Action.

func (Action) AsBasicMediaObject

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

AsBasicMediaObject is the BasicResponseBase implementation for Action.

func (Action) AsBasicOffer

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

AsBasicOffer is the BasicResponseBase implementation for Action.

func (Action) AsBasicResponse

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

AsBasicResponse is the BasicResponseBase implementation for Action.

func (Action) AsBasicResponseBase

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

AsBasicResponseBase is the BasicResponseBase implementation for Action.

func (Action) AsBasicStructuredValue

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

AsBasicStructuredValue is the BasicResponseBase implementation for Action.

func (Action) AsBasicThing

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

AsBasicThing is the BasicResponseBase implementation for Action.

func (Action) AsCreativeWork

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

AsCreativeWork is the BasicResponseBase implementation for Action.

func (Action) AsErrorResponse

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

AsErrorResponse is the BasicResponseBase implementation for Action.

func (Action) AsIdentifiable

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

AsIdentifiable is the BasicResponseBase implementation for Action.

func (Action) AsImageAction

func (a Action) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Action.

func (Action) AsImageEntityAction

func (a Action) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Action.

func (Action) AsImageKnowledge

func (a Action) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Action.

func (Action) AsImageModuleAction

func (a Action) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Action.

func (Action) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Action.

func (Action) AsImageRecipesAction

func (a Action) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Action.

func (Action) AsImageRelatedSearchesAction

func (a Action) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Action.

func (Action) AsImageShoppingSourcesAction

func (a Action) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Action.

func (Action) AsImageTag

func (a Action) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for Action.

func (Action) AsIntangible

func (a Action) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Action.

func (Action) AsMediaObject

func (a Action) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Action.

func (Action) AsNormalizedQuadrilateral

func (a Action) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for Action.

func (Action) AsOffer

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

AsOffer is the BasicResponseBase implementation for Action.

func (Action) AsOrganization

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

AsOrganization is the BasicResponseBase implementation for Action.

func (Action) AsPerson

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

AsPerson is the BasicResponseBase implementation for Action.

func (Action) AsPoint2D

func (a Action) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Action.

func (Action) AsRecipe

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

AsRecipe is the BasicResponseBase implementation for Action.

func (Action) AsResponse

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

AsResponse is the BasicResponseBase implementation for Action.

func (Action) AsResponseBase

func (a Action) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Action.

func (Action) AsStructuredValue

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

AsStructuredValue is the BasicResponseBase implementation for Action.

func (Action) AsThing

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

AsThing is the BasicResponseBase implementation for Action.

func (Action) MarshalJSON

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

MarshalJSON is the custom marshaler for Action.

func (*Action) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Action struct.

type AggregateOffer

type AggregateOffer struct {
	// Offers - A list of offers from merchants that have offerings related to the image.
	Offers *[]BasicOffer `json:"offers,omitempty"`
	// Seller - Seller for this offer.
	Seller *Organization `json:"seller,omitempty"`
	// Price - The item's price.
	Price *float64 `json:"price,omitempty"`
	// PriceCurrency - 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 - 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 - An aggregated rating that indicates how well the product has been rated by others.
	AggregateRating *AggregateRating `json:"aggregateRating,omitempty"`
	// LastUpdated - The last date that the offer was updated. The date is in the form YYYY-MM-DD.
	LastUpdated *string `json:"lastUpdated,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

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

func (AggregateOffer) AsAction

func (ao AggregateOffer) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsBasicAction

func (ao AggregateOffer) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (ao AggregateOffer) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (ao AggregateOffer) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageEntityAction

func (ao AggregateOffer) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageKnowledge

func (ao AggregateOffer) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageModuleAction

func (ao AggregateOffer) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageRecipesAction

func (ao AggregateOffer) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageRelatedSearchesAction

func (ao AggregateOffer) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageShoppingSourcesAction

func (ao AggregateOffer) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsImageTag

func (ao AggregateOffer) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (ao AggregateOffer) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (ao AggregateOffer) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for AggregateOffer.

func (AggregateOffer) AsRecipe

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

AsRecipe 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) 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) 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 - 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 - The highest rated review. The possible values are 1.0 through 5.0.
	BestRating *float64 `json:"bestRating,omitempty"`
	// Text - Text representation of an item.
	Text *string `json:"text,omitempty"`
	// Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating'
	Type TypeBasicPropertiesItem `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 BaseClient

type BaseClient struct {
	autorest.Client
	Endpoint string
}

BaseClient is the base client for Visualsearch.

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 BasicAction

type BasicAction interface {
	AsImageAction() (*ImageAction, bool)
	AsBasicImageAction() (BasicImageAction, bool)
	AsImageEntityAction() (*ImageEntityAction, bool)
	AsImageModuleAction() (*ImageModuleAction, bool)
	AsImageRecipesAction() (*ImageRecipesAction, bool)
	AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)
	AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)
	AsAction() (*Action, bool)
}

BasicAction defines an action.

type BasicCreativeWork

type BasicCreativeWork interface {
	AsImageAction() (*ImageAction, bool)
	AsBasicImageAction() (BasicImageAction, bool)
	AsImageObject() (*ImageObject, bool)
	AsAction() (*Action, bool)
	AsBasicAction() (BasicAction, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsImageEntityAction() (*ImageEntityAction, bool)
	AsImageModuleAction() (*ImageModuleAction, bool)
	AsRecipe() (*Recipe, bool)
	AsImageRecipesAction() (*ImageRecipesAction, bool)
	AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)
	AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)
	AsCreativeWork() (*CreativeWork, bool)
}

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

type BasicIdentifiable

type BasicIdentifiable interface {
	AsPoint2D() (*Point2D, bool)
	AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)
	AsImageAction() (*ImageAction, bool)
	AsBasicImageAction() (BasicImageAction, bool)
	AsImageTag() (*ImageTag, bool)
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImageKnowledge() (*ImageKnowledge, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsAction() (*Action, bool)
	AsBasicAction() (BasicAction, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsImageEntityAction() (*ImageEntityAction, bool)
	AsImageModuleAction() (*ImageModuleAction, bool)
	AsRecipe() (*Recipe, bool)
	AsImageRecipesAction() (*ImageRecipesAction, bool)
	AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)
	AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsIdentifiable() (*Identifiable, bool)
}

BasicIdentifiable defines the identity of a resource.

type BasicImageAction

type BasicImageAction interface {
	AsImageEntityAction() (*ImageEntityAction, bool)
	AsImageModuleAction() (*ImageModuleAction, bool)
	AsImageRecipesAction() (*ImageRecipesAction, bool)
	AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)
	AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)
	AsImageAction() (*ImageAction, bool)
}

BasicImageAction defines an image action.

type BasicIntangible

type BasicIntangible interface {
	AsPoint2D() (*Point2D, bool)
	AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, 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 {
	AsPoint2D() (*Point2D, bool)
	AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)
	AsImageAction() (*ImageAction, bool)
	AsBasicImageAction() (BasicImageAction, bool)
	AsImageTag() (*ImageTag, bool)
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImageKnowledge() (*ImageKnowledge, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsAction() (*Action, bool)
	AsBasicAction() (BasicAction, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsImageEntityAction() (*ImageEntityAction, bool)
	AsImageModuleAction() (*ImageModuleAction, bool)
	AsRecipe() (*Recipe, bool)
	AsImageRecipesAction() (*ImageRecipesAction, bool)
	AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)
	AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsResponse() (*Response, bool)
}

BasicResponse defines a response. All schemas that return at the root of the response must inherit from this object.

type BasicResponseBase

type BasicResponseBase interface {
	AsPoint2D() (*Point2D, bool)
	AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)
	AsImageAction() (*ImageAction, bool)
	AsBasicImageAction() (BasicImageAction, bool)
	AsImageTag() (*ImageTag, bool)
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsImageKnowledge() (*ImageKnowledge, bool)
	AsResponse() (*Response, bool)
	AsBasicResponse() (BasicResponse, bool)
	AsIdentifiable() (*Identifiable, bool)
	AsBasicIdentifiable() (BasicIdentifiable, bool)
	AsErrorResponse() (*ErrorResponse, bool)
	AsThing() (*Thing, bool)
	AsBasicThing() (BasicThing, bool)
	AsAction() (*Action, bool)
	AsBasicAction() (BasicAction, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsImageEntityAction() (*ImageEntityAction, bool)
	AsImageModuleAction() (*ImageModuleAction, bool)
	AsRecipe() (*Recipe, bool)
	AsImageRecipesAction() (*ImageRecipesAction, bool)
	AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)
	AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsResponseBase() (*ResponseBase, bool)
}

BasicResponseBase response base.

type BasicStructuredValue

type BasicStructuredValue interface {
	AsPoint2D() (*Point2D, bool)
	AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)
	AsStructuredValue() (*StructuredValue, bool)
}

BasicStructuredValue ...

type BasicThing

type BasicThing interface {
	AsPoint2D() (*Point2D, bool)
	AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)
	AsImageAction() (*ImageAction, bool)
	AsBasicImageAction() (BasicImageAction, bool)
	AsImageTag() (*ImageTag, bool)
	AsOrganization() (*Organization, bool)
	AsOffer() (*Offer, bool)
	AsBasicOffer() (BasicOffer, bool)
	AsAggregateOffer() (*AggregateOffer, bool)
	AsImageObject() (*ImageObject, bool)
	AsAction() (*Action, bool)
	AsBasicAction() (BasicAction, bool)
	AsMediaObject() (*MediaObject, bool)
	AsBasicMediaObject() (BasicMediaObject, bool)
	AsCreativeWork() (*CreativeWork, bool)
	AsBasicCreativeWork() (BasicCreativeWork, bool)
	AsPerson() (*Person, bool)
	AsIntangible() (*Intangible, bool)
	AsBasicIntangible() (BasicIntangible, bool)
	AsImageEntityAction() (*ImageEntityAction, bool)
	AsImageModuleAction() (*ImageModuleAction, bool)
	AsRecipe() (*Recipe, bool)
	AsImageRecipesAction() (*ImageRecipesAction, bool)
	AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)
	AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)
	AsStructuredValue() (*StructuredValue, bool)
	AsBasicStructuredValue() (BasicStructuredValue, bool)
	AsThing() (*Thing, bool)
}

BasicThing defines a thing.

type CreativeWork

type CreativeWork struct {
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

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

func (CreativeWork) AsAction

func (cw CreativeWork) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsBasicAction

func (cw CreativeWork) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (cw CreativeWork) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (cw CreativeWork) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageEntityAction

func (cw CreativeWork) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageKnowledge

func (cw CreativeWork) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageModuleAction

func (cw CreativeWork) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageRecipesAction

func (cw CreativeWork) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageRelatedSearchesAction

func (cw CreativeWork) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageShoppingSourcesAction

func (cw CreativeWork) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsImageTag

func (cw CreativeWork) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (cw CreativeWork) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (cw CreativeWork) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for CreativeWork.

func (CreativeWork) AsRecipe

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

AsRecipe 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) 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) 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 CropArea

type CropArea struct {
	// Top - The top coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
	Top *float64 `json:"top,omitempty"`
	// Bottom - The bottom coordinate of the region to be cropped. The coordinate is a fractional value of the original image's height and is measured from the top edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
	Bottom *float64 `json:"bottom,omitempty"`
	// Left - The left coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
	Left *float64 `json:"left,omitempty"`
	// Right - The right coordinate of the region to be cropped. The coordinate is a fractional value of the original image's width and is measured from the left edge of the image. Specify the coordinate as a value from 0.0 through 1.0.
	Right *float64 `json:"right,omitempty"`
}

CropArea a JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image.

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 - 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 - A description that provides additional information about the error.
	MoreDetails *string `json:"moreDetails,omitempty"`
	// Parameter - The parameter in the request that caused the error.
	Parameter *string `json:"parameter,omitempty"`
	// Value - The parameter's value in the request that was not valid.
	Value *string `json:"value,omitempty"`
}

Error defines the error that occurred.

type ErrorCode

type ErrorCode string

ErrorCode enumerates the values for error code.

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

func PossibleErrorCodeValues

func PossibleErrorCodeValues() []ErrorCode

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

type ErrorResponse

type ErrorResponse struct {
	// Errors - A list of errors that describe the reasons why the request failed.
	Errors *[]Error `json:"errors,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

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

func (ErrorResponse) AsAction

func (er ErrorResponse) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsBasicAction

func (er ErrorResponse) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (er ErrorResponse) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (er ErrorResponse) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageEntityAction

func (er ErrorResponse) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageKnowledge

func (er ErrorResponse) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageModuleAction

func (er ErrorResponse) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageRecipesAction

func (er ErrorResponse) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageRelatedSearchesAction

func (er ErrorResponse) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageShoppingSourcesAction

func (er ErrorResponse) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsImageTag

func (er ErrorResponse) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (er ErrorResponse) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (er ErrorResponse) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ErrorResponse.

func (ErrorResponse) AsRecipe

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

AsRecipe 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) 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) 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 Filters

type Filters struct {
	// Site - The URL of the site to return similar images and similar products from. (e.g., "www.bing.com", "bing.com").
	Site *string `json:"site,omitempty"`
}

Filters a key-value object consisting of filters that may be specified to limit the results returned by the API. Current available filters: site.

type Identifiable

type Identifiable struct {
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Identifiable defines the identity of a resource.

func (Identifiable) AsAction

func (i Identifiable) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsBasicAction

func (i Identifiable) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (i Identifiable) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (i Identifiable) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageEntityAction

func (i Identifiable) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageKnowledge

func (i Identifiable) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageModuleAction

func (i Identifiable) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageRecipesAction

func (i Identifiable) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageRelatedSearchesAction

func (i Identifiable) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageShoppingSourcesAction

func (i Identifiable) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsImageTag

func (i Identifiable) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (i Identifiable) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (i Identifiable) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Identifiable.

func (Identifiable) AsRecipe

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

AsRecipe 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) 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) MarshalJSON

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

MarshalJSON is the custom marshaler for Identifiable.

type ImageAction

type ImageAction struct {
	// ActionType - A string representing the type of action.
	ActionType *string `json:"actionType,omitempty"`
	// Result - The result produced in the action.
	Result *[]BasicThing `json:"result,omitempty"`
	// DisplayName - A display name for the action.
	DisplayName *string `json:"displayName,omitempty"`
	// IsTopAction - A Boolean representing whether this result is the top action.
	IsTopAction *bool `json:"isTopAction,omitempty"`
	// ServiceURL - Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
	ServiceURL *string `json:"serviceUrl,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageAction defines an image action.

func (ImageAction) AsAction

func (ia ImageAction) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsAggregateOffer

func (ia ImageAction) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicAction

func (ia ImageAction) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicCreativeWork

func (ia ImageAction) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicIdentifiable

func (ia ImageAction) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicImageAction

func (ia ImageAction) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicIntangible

func (ia ImageAction) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicMediaObject

func (ia ImageAction) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicOffer

func (ia ImageAction) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicResponse

func (ia ImageAction) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicResponseBase

func (ia ImageAction) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicStructuredValue

func (ia ImageAction) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsBasicThing

func (ia ImageAction) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsCreativeWork

func (ia ImageAction) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsErrorResponse

func (ia ImageAction) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsIdentifiable

func (ia ImageAction) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageAction

func (ia ImageAction) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageEntityAction

func (ia ImageAction) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageKnowledge

func (ia ImageAction) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageModuleAction

func (ia ImageAction) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageObject

func (ia ImageAction) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageRecipesAction

func (ia ImageAction) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageRelatedSearchesAction

func (ia ImageAction) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageShoppingSourcesAction

func (ia ImageAction) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsImageTag

func (ia ImageAction) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsIntangible

func (ia ImageAction) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsMediaObject

func (ia ImageAction) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsNormalizedQuadrilateral

func (ia ImageAction) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsOffer

func (ia ImageAction) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsOrganization

func (ia ImageAction) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsPerson

func (ia ImageAction) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsPoint2D

func (ia ImageAction) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsRecipe

func (ia ImageAction) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsResponse

func (ia ImageAction) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsResponseBase

func (ia ImageAction) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsStructuredValue

func (ia ImageAction) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageAction.

func (ImageAction) AsThing

func (ia ImageAction) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageAction.

func (ImageAction) MarshalJSON

func (ia ImageAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageAction.

func (*ImageAction) UnmarshalJSON

func (ia *ImageAction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageAction struct.

type ImageEntityAction

type ImageEntityAction struct {
	// ActionType - A string representing the type of action.
	ActionType *string `json:"actionType,omitempty"`
	// Result - The result produced in the action.
	Result *[]BasicThing `json:"result,omitempty"`
	// DisplayName - A display name for the action.
	DisplayName *string `json:"displayName,omitempty"`
	// IsTopAction - A Boolean representing whether this result is the top action.
	IsTopAction *bool `json:"isTopAction,omitempty"`
	// ServiceURL - Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
	ServiceURL *string `json:"serviceUrl,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageEntityAction defines an entity action.

func (ImageEntityAction) AsAction

func (iea ImageEntityAction) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsAggregateOffer

func (iea ImageEntityAction) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicAction

func (iea ImageEntityAction) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicCreativeWork

func (iea ImageEntityAction) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicIdentifiable

func (iea ImageEntityAction) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicImageAction

func (iea ImageEntityAction) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicIntangible

func (iea ImageEntityAction) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicMediaObject

func (iea ImageEntityAction) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicOffer

func (iea ImageEntityAction) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicResponse

func (iea ImageEntityAction) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicResponseBase

func (iea ImageEntityAction) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicStructuredValue

func (iea ImageEntityAction) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsBasicThing

func (iea ImageEntityAction) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsCreativeWork

func (iea ImageEntityAction) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsErrorResponse

func (iea ImageEntityAction) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsIdentifiable

func (iea ImageEntityAction) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageAction

func (iea ImageEntityAction) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageEntityAction

func (iea ImageEntityAction) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageKnowledge

func (iea ImageEntityAction) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageModuleAction

func (iea ImageEntityAction) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageObject

func (iea ImageEntityAction) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageRecipesAction

func (iea ImageEntityAction) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageRelatedSearchesAction

func (iea ImageEntityAction) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageShoppingSourcesAction

func (iea ImageEntityAction) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsImageTag

func (iea ImageEntityAction) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsIntangible

func (iea ImageEntityAction) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsMediaObject

func (iea ImageEntityAction) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsNormalizedQuadrilateral

func (iea ImageEntityAction) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsOffer

func (iea ImageEntityAction) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsOrganization

func (iea ImageEntityAction) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsPerson

func (iea ImageEntityAction) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsPoint2D

func (iea ImageEntityAction) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsRecipe

func (iea ImageEntityAction) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsResponse

func (iea ImageEntityAction) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsResponseBase

func (iea ImageEntityAction) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsStructuredValue

func (iea ImageEntityAction) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) AsThing

func (iea ImageEntityAction) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageEntityAction.

func (ImageEntityAction) MarshalJSON

func (iea ImageEntityAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageEntityAction.

func (*ImageEntityAction) UnmarshalJSON

func (iea *ImageEntityAction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageEntityAction struct.

type ImageInfo

type ImageInfo struct {
	// ImageInsightsToken - An image insights token. To get the insights token, call one of the Image Search APIs (for example, /images/search). In the search results, 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) field contains the token. The imageInsightsToken and url fields mutually exclusive; do not specify both. Do not specify an insights token if the request includes the image form data.
	ImageInsightsToken *string `json:"imageInsightsToken,omitempty"`
	// URL - The URL of the input image. The imageInsightsToken and url fields are mutually exclusive; do not specify both. Do not specify the URL if the request includes the image form data.
	URL *string `json:"url,omitempty"`
	// CropArea - A JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image. Use the crop area to identify the region of interest in the image. You can apply the crop area to the images specified using the imageInsightsToken or url fields, or an image binary specified in an image form data.
	CropArea *CropArea `json:"cropArea,omitempty"`
}

ImageInfo a JSON object that identities the image to get insights of . It also includes the optional crop area that you use to identify the region of interest in the image.

type ImageKnowledge

type ImageKnowledge struct {
	autorest.Response `json:"-"`
	// Tags - A list of visual search tags.
	Tags *[]ImageTag `json:"tags,omitempty"`
	// Image - Image object containing metadata about the requested image.
	Image *ImageObject `json:"image,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageKnowledge defines a visual search API response.

func (ImageKnowledge) AsAction

func (ik ImageKnowledge) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsAggregateOffer

func (ik ImageKnowledge) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicAction

func (ik ImageKnowledge) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicCreativeWork

func (ik ImageKnowledge) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicIdentifiable

func (ik ImageKnowledge) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicImageAction

func (ik ImageKnowledge) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicIntangible

func (ik ImageKnowledge) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicMediaObject

func (ik ImageKnowledge) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicOffer

func (ik ImageKnowledge) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicResponse

func (ik ImageKnowledge) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicResponseBase

func (ik ImageKnowledge) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicStructuredValue

func (ik ImageKnowledge) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsBasicThing

func (ik ImageKnowledge) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsCreativeWork

func (ik ImageKnowledge) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsErrorResponse

func (ik ImageKnowledge) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsIdentifiable

func (ik ImageKnowledge) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageAction

func (ik ImageKnowledge) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageEntityAction

func (ik ImageKnowledge) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageKnowledge

func (ik ImageKnowledge) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageModuleAction

func (ik ImageKnowledge) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageObject

func (ik ImageKnowledge) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageRecipesAction

func (ik ImageKnowledge) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageRelatedSearchesAction

func (ik ImageKnowledge) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageShoppingSourcesAction

func (ik ImageKnowledge) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsImageTag

func (ik ImageKnowledge) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsIntangible

func (ik ImageKnowledge) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsMediaObject

func (ik ImageKnowledge) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsNormalizedQuadrilateral

func (ik ImageKnowledge) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsOffer

func (ik ImageKnowledge) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsOrganization

func (ik ImageKnowledge) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsPerson

func (ik ImageKnowledge) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsPoint2D

func (ik ImageKnowledge) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsRecipe

func (ik ImageKnowledge) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsResponse

func (ik ImageKnowledge) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsResponseBase

func (ik ImageKnowledge) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsStructuredValue

func (ik ImageKnowledge) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) AsThing

func (ik ImageKnowledge) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageKnowledge.

func (ImageKnowledge) MarshalJSON

func (ik ImageKnowledge) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageKnowledge.

type ImageModuleAction

type ImageModuleAction struct {
	// Data - A list of images.
	Data *ImagesModule `json:"data,omitempty"`
	// ActionType - A string representing the type of action.
	ActionType *string `json:"actionType,omitempty"`
	// Result - The result produced in the action.
	Result *[]BasicThing `json:"result,omitempty"`
	// DisplayName - A display name for the action.
	DisplayName *string `json:"displayName,omitempty"`
	// IsTopAction - A Boolean representing whether this result is the top action.
	IsTopAction *bool `json:"isTopAction,omitempty"`
	// ServiceURL - Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
	ServiceURL *string `json:"serviceUrl,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageModuleAction defines an image list action.

func (ImageModuleAction) AsAction

func (ima ImageModuleAction) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsAggregateOffer

func (ima ImageModuleAction) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicAction

func (ima ImageModuleAction) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicCreativeWork

func (ima ImageModuleAction) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicIdentifiable

func (ima ImageModuleAction) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicImageAction

func (ima ImageModuleAction) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicIntangible

func (ima ImageModuleAction) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicMediaObject

func (ima ImageModuleAction) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicOffer

func (ima ImageModuleAction) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicResponse

func (ima ImageModuleAction) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicResponseBase

func (ima ImageModuleAction) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicStructuredValue

func (ima ImageModuleAction) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsBasicThing

func (ima ImageModuleAction) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsCreativeWork

func (ima ImageModuleAction) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsErrorResponse

func (ima ImageModuleAction) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsIdentifiable

func (ima ImageModuleAction) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageAction

func (ima ImageModuleAction) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageEntityAction

func (ima ImageModuleAction) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageKnowledge

func (ima ImageModuleAction) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageModuleAction

func (ima ImageModuleAction) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageObject

func (ima ImageModuleAction) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageRecipesAction

func (ima ImageModuleAction) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageRelatedSearchesAction

func (ima ImageModuleAction) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageShoppingSourcesAction

func (ima ImageModuleAction) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsImageTag

func (ima ImageModuleAction) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsIntangible

func (ima ImageModuleAction) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsMediaObject

func (ima ImageModuleAction) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsNormalizedQuadrilateral

func (ima ImageModuleAction) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsOffer

func (ima ImageModuleAction) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsOrganization

func (ima ImageModuleAction) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsPerson

func (ima ImageModuleAction) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsPoint2D

func (ima ImageModuleAction) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsRecipe

func (ima ImageModuleAction) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsResponse

func (ima ImageModuleAction) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsResponseBase

func (ima ImageModuleAction) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsStructuredValue

func (ima ImageModuleAction) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) AsThing

func (ima ImageModuleAction) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageModuleAction.

func (ImageModuleAction) MarshalJSON

func (ima ImageModuleAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageModuleAction.

func (*ImageModuleAction) UnmarshalJSON

func (ima *ImageModuleAction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageModuleAction struct.

type ImageObject

type ImageObject struct {
	// Thumbnail - The URL to a thumbnail of the image.
	Thumbnail *ImageObject `json:"thumbnail,omitempty"`
	// ImageInsightsToken - The token that you use in a subsequent call to Visual Search API to get additional information about the image. For information about using this token, see the imageInsightsToken field inside the knowledgeRequest request parameter.
	ImageInsightsToken *string `json:"imageInsightsToken,omitempty"`
	// InsightsMetadata - 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 in a subsequent Visual Search API call to get the list of shopping websites.
	InsightsMetadata *ImagesImageMetadata `json:"insightsMetadata,omitempty"`
	// ImageID - Unique Id for the image.
	ImageID *string `json:"imageId,omitempty"`
	// AccentColor - 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 - For internal use only.
	VisualWords *string `json:"visualWords,omitempty"`
	// ContentURL - 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 - URL of the page that hosts the media object.
	HostPageURL *string `json:"hostPageUrl,omitempty"`
	// ContentSize - Size of the media object content. Use format "value unit" (e.g., "1024 B").
	ContentSize *string `json:"contentSize,omitempty"`
	// EncodingFormat - Encoding format (e.g., png, gif, jpeg, etc).
	EncodingFormat *string `json:"encodingFormat,omitempty"`
	// HostPageDisplayURL - Display URL of the page that hosts the media object.
	HostPageDisplayURL *string `json:"hostPageDisplayUrl,omitempty"`
	// Width - The width of the media object, in pixels.
	Width *int32 `json:"width,omitempty"`
	// Height - The height of the media object, in pixels.
	Height *int32 `json:"height,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageObject defines an image.

func (ImageObject) AsAction

func (ioVar ImageObject) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsBasicAction

func (ioVar ImageObject) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (ioVar ImageObject) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (ioVar ImageObject) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageEntityAction

func (ioVar ImageObject) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageKnowledge

func (ioVar ImageObject) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageModuleAction

func (ioVar ImageObject) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageRecipesAction

func (ioVar ImageObject) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageRelatedSearchesAction

func (ioVar ImageObject) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageShoppingSourcesAction

func (ioVar ImageObject) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsImageTag

func (ioVar ImageObject) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (ioVar ImageObject) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (ioVar ImageObject) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageObject.

func (ImageObject) AsRecipe

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

AsRecipe 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) 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) 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 ImageRecipesAction

type ImageRecipesAction struct {
	// Data - A list of recipes related to the image.
	Data *RecipesModule `json:"data,omitempty"`
	// ActionType - A string representing the type of action.
	ActionType *string `json:"actionType,omitempty"`
	// Result - The result produced in the action.
	Result *[]BasicThing `json:"result,omitempty"`
	// DisplayName - A display name for the action.
	DisplayName *string `json:"displayName,omitempty"`
	// IsTopAction - A Boolean representing whether this result is the top action.
	IsTopAction *bool `json:"isTopAction,omitempty"`
	// ServiceURL - Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
	ServiceURL *string `json:"serviceUrl,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageRecipesAction defines an recipe action.

func (ImageRecipesAction) AsAction

func (ira ImageRecipesAction) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsAggregateOffer

func (ira ImageRecipesAction) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicAction

func (ira ImageRecipesAction) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicCreativeWork

func (ira ImageRecipesAction) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicIdentifiable

func (ira ImageRecipesAction) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicImageAction

func (ira ImageRecipesAction) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicIntangible

func (ira ImageRecipesAction) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicMediaObject

func (ira ImageRecipesAction) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicOffer

func (ira ImageRecipesAction) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicResponse

func (ira ImageRecipesAction) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicResponseBase

func (ira ImageRecipesAction) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicStructuredValue

func (ira ImageRecipesAction) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsBasicThing

func (ira ImageRecipesAction) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsCreativeWork

func (ira ImageRecipesAction) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsErrorResponse

func (ira ImageRecipesAction) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsIdentifiable

func (ira ImageRecipesAction) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageAction

func (ira ImageRecipesAction) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageEntityAction

func (ira ImageRecipesAction) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageKnowledge

func (ira ImageRecipesAction) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageModuleAction

func (ira ImageRecipesAction) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageObject

func (ira ImageRecipesAction) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageRecipesAction

func (ira ImageRecipesAction) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageRelatedSearchesAction

func (ira ImageRecipesAction) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageShoppingSourcesAction

func (ira ImageRecipesAction) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsImageTag

func (ira ImageRecipesAction) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsIntangible

func (ira ImageRecipesAction) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsMediaObject

func (ira ImageRecipesAction) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsNormalizedQuadrilateral

func (ira ImageRecipesAction) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsOffer

func (ira ImageRecipesAction) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsOrganization

func (ira ImageRecipesAction) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsPerson

func (ira ImageRecipesAction) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsPoint2D

func (ira ImageRecipesAction) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsRecipe

func (ira ImageRecipesAction) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsResponse

func (ira ImageRecipesAction) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsResponseBase

func (ira ImageRecipesAction) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsStructuredValue

func (ira ImageRecipesAction) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) AsThing

func (ira ImageRecipesAction) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageRecipesAction.

func (ImageRecipesAction) MarshalJSON

func (ira ImageRecipesAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageRecipesAction.

func (*ImageRecipesAction) UnmarshalJSON

func (ira *ImageRecipesAction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageRecipesAction struct.

type ImageRelatedSearchesAction

type ImageRelatedSearchesAction struct {
	// Data - A list of queries related to the image.
	Data *RelatedSearchesModule `json:"data,omitempty"`
	// ActionType - A string representing the type of action.
	ActionType *string `json:"actionType,omitempty"`
	// Result - The result produced in the action.
	Result *[]BasicThing `json:"result,omitempty"`
	// DisplayName - A display name for the action.
	DisplayName *string `json:"displayName,omitempty"`
	// IsTopAction - A Boolean representing whether this result is the top action.
	IsTopAction *bool `json:"isTopAction,omitempty"`
	// ServiceURL - Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
	ServiceURL *string `json:"serviceUrl,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageRelatedSearchesAction defines an related search action.

func (ImageRelatedSearchesAction) AsAction

func (irsa ImageRelatedSearchesAction) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsAggregateOffer

func (irsa ImageRelatedSearchesAction) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicAction

func (irsa ImageRelatedSearchesAction) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicCreativeWork

func (irsa ImageRelatedSearchesAction) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicIdentifiable

func (irsa ImageRelatedSearchesAction) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicImageAction

func (irsa ImageRelatedSearchesAction) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicIntangible

func (irsa ImageRelatedSearchesAction) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicMediaObject

func (irsa ImageRelatedSearchesAction) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicOffer

func (irsa ImageRelatedSearchesAction) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicResponse

func (irsa ImageRelatedSearchesAction) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicResponseBase

func (irsa ImageRelatedSearchesAction) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicStructuredValue

func (irsa ImageRelatedSearchesAction) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsBasicThing

func (irsa ImageRelatedSearchesAction) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsCreativeWork

func (irsa ImageRelatedSearchesAction) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsErrorResponse

func (irsa ImageRelatedSearchesAction) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsIdentifiable

func (irsa ImageRelatedSearchesAction) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageAction

func (irsa ImageRelatedSearchesAction) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageEntityAction

func (irsa ImageRelatedSearchesAction) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageKnowledge

func (irsa ImageRelatedSearchesAction) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageModuleAction

func (irsa ImageRelatedSearchesAction) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageObject

func (irsa ImageRelatedSearchesAction) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageRecipesAction

func (irsa ImageRelatedSearchesAction) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageRelatedSearchesAction

func (irsa ImageRelatedSearchesAction) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageShoppingSourcesAction

func (irsa ImageRelatedSearchesAction) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsImageTag

func (irsa ImageRelatedSearchesAction) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsIntangible

func (irsa ImageRelatedSearchesAction) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsMediaObject

func (irsa ImageRelatedSearchesAction) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsNormalizedQuadrilateral

func (irsa ImageRelatedSearchesAction) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsOffer

func (irsa ImageRelatedSearchesAction) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsOrganization

func (irsa ImageRelatedSearchesAction) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsPerson

func (irsa ImageRelatedSearchesAction) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsPoint2D

func (irsa ImageRelatedSearchesAction) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsRecipe

func (irsa ImageRelatedSearchesAction) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsResponse

func (irsa ImageRelatedSearchesAction) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsResponseBase

func (irsa ImageRelatedSearchesAction) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsStructuredValue

func (irsa ImageRelatedSearchesAction) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) AsThing

func (irsa ImageRelatedSearchesAction) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageRelatedSearchesAction.

func (ImageRelatedSearchesAction) MarshalJSON

func (irsa ImageRelatedSearchesAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageRelatedSearchesAction.

func (*ImageRelatedSearchesAction) UnmarshalJSON

func (irsa *ImageRelatedSearchesAction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageRelatedSearchesAction struct.

type ImageShoppingSourcesAction

type ImageShoppingSourcesAction struct {
	// Data - A list of merchants that offer items related to the image.
	Data *AggregateOffer `json:"data,omitempty"`
	// ActionType - A string representing the type of action.
	ActionType *string `json:"actionType,omitempty"`
	// Result - The result produced in the action.
	Result *[]BasicThing `json:"result,omitempty"`
	// DisplayName - A display name for the action.
	DisplayName *string `json:"displayName,omitempty"`
	// IsTopAction - A Boolean representing whether this result is the top action.
	IsTopAction *bool `json:"isTopAction,omitempty"`
	// ServiceURL - Use this URL to get additional data to determine how to take the appropriate action. For example, the serviceUrl might return JSON along with an image URL.
	ServiceURL *string `json:"serviceUrl,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageShoppingSourcesAction defines a shopping sources action.

func (ImageShoppingSourcesAction) AsAction

func (issa ImageShoppingSourcesAction) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsAggregateOffer

func (issa ImageShoppingSourcesAction) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicAction

func (issa ImageShoppingSourcesAction) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicCreativeWork

func (issa ImageShoppingSourcesAction) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicIdentifiable

func (issa ImageShoppingSourcesAction) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicImageAction

func (issa ImageShoppingSourcesAction) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicIntangible

func (issa ImageShoppingSourcesAction) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicMediaObject

func (issa ImageShoppingSourcesAction) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicOffer

func (issa ImageShoppingSourcesAction) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicResponse

func (issa ImageShoppingSourcesAction) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicResponseBase

func (issa ImageShoppingSourcesAction) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicStructuredValue

func (issa ImageShoppingSourcesAction) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsBasicThing

func (issa ImageShoppingSourcesAction) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsCreativeWork

func (issa ImageShoppingSourcesAction) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsErrorResponse

func (issa ImageShoppingSourcesAction) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsIdentifiable

func (issa ImageShoppingSourcesAction) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageAction

func (issa ImageShoppingSourcesAction) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageEntityAction

func (issa ImageShoppingSourcesAction) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageKnowledge

func (issa ImageShoppingSourcesAction) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageModuleAction

func (issa ImageShoppingSourcesAction) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageObject

func (issa ImageShoppingSourcesAction) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageRecipesAction

func (issa ImageShoppingSourcesAction) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageRelatedSearchesAction

func (issa ImageShoppingSourcesAction) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageShoppingSourcesAction

func (issa ImageShoppingSourcesAction) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsImageTag

func (issa ImageShoppingSourcesAction) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsIntangible

func (issa ImageShoppingSourcesAction) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsMediaObject

func (issa ImageShoppingSourcesAction) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsNormalizedQuadrilateral

func (issa ImageShoppingSourcesAction) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsOffer

func (issa ImageShoppingSourcesAction) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsOrganization

func (issa ImageShoppingSourcesAction) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsPerson

func (issa ImageShoppingSourcesAction) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsPoint2D

func (issa ImageShoppingSourcesAction) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsRecipe

func (issa ImageShoppingSourcesAction) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsResponse

func (issa ImageShoppingSourcesAction) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsResponseBase

func (issa ImageShoppingSourcesAction) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsStructuredValue

func (issa ImageShoppingSourcesAction) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) AsThing

func (issa ImageShoppingSourcesAction) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageShoppingSourcesAction.

func (ImageShoppingSourcesAction) MarshalJSON

func (issa ImageShoppingSourcesAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageShoppingSourcesAction.

func (*ImageShoppingSourcesAction) UnmarshalJSON

func (issa *ImageShoppingSourcesAction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageShoppingSourcesAction struct.

type ImageTag

type ImageTag struct {
	// DisplayName - Display name for this tag. For the default tag, the display name is empty.
	DisplayName *string `json:"displayName,omitempty"`
	// BoundingBox - The bounding box for this tag. For the default tag, there is no bounding box.
	BoundingBox *ImageTagRegion `json:"boundingBox,omitempty"`
	// Actions - Actions within this tag. The order of the items denotes the default ranking order of these actions, with the first action being the most likely user intent.
	Actions *[]BasicImageAction `json:"actions,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ImageTag a visual search tag.

func (ImageTag) AsAction

func (it ImageTag) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsAggregateOffer

func (it ImageTag) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicAction

func (it ImageTag) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicCreativeWork

func (it ImageTag) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicIdentifiable

func (it ImageTag) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicImageAction

func (it ImageTag) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicIntangible

func (it ImageTag) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicMediaObject

func (it ImageTag) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicOffer

func (it ImageTag) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicResponse

func (it ImageTag) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicResponseBase

func (it ImageTag) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicStructuredValue

func (it ImageTag) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsBasicThing

func (it ImageTag) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsCreativeWork

func (it ImageTag) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsErrorResponse

func (it ImageTag) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsIdentifiable

func (it ImageTag) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageAction

func (it ImageTag) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageEntityAction

func (it ImageTag) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageKnowledge

func (it ImageTag) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageModuleAction

func (it ImageTag) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageObject

func (it ImageTag) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageRecipesAction

func (it ImageTag) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageRelatedSearchesAction

func (it ImageTag) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageShoppingSourcesAction

func (it ImageTag) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsImageTag

func (it ImageTag) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsIntangible

func (it ImageTag) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsMediaObject

func (it ImageTag) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsNormalizedQuadrilateral

func (it ImageTag) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsOffer

func (it ImageTag) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsOrganization

func (it ImageTag) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsPerson

func (it ImageTag) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsPoint2D

func (it ImageTag) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsRecipe

func (it ImageTag) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsResponse

func (it ImageTag) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsResponseBase

func (it ImageTag) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsStructuredValue

func (it ImageTag) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for ImageTag.

func (ImageTag) AsThing

func (it ImageTag) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for ImageTag.

func (ImageTag) MarshalJSON

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

MarshalJSON is the custom marshaler for ImageTag.

func (*ImageTag) UnmarshalJSON

func (it *ImageTag) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ImageTag struct.

type ImageTagRegion

type ImageTagRegion struct {
	// QueryRectangle - A rectangle that outlines the area of interest for this tag.
	QueryRectangle *NormalizedQuadrilateral `json:"queryRectangle,omitempty"`
	// DisplayRectangle - A recommended rectangle to show to the user.
	DisplayRectangle *NormalizedQuadrilateral `json:"displayRectangle,omitempty"`
}

ImageTagRegion defines an image region relevant to the ImageTag.

type ImagesClient

type ImagesClient struct {
	BaseClient
}

ImagesClient is the visual Search API lets you discover insights about an image such as visually similar images, shopping sources, and related searches. The API can also perform text recognition, identify entities (people, places, things), return other topical content for the user to explore, and more. For more information, see [Visual Search Overview](https://docs.microsoft.com/azure/cognitive-services/bing-visual-search/overview).

func NewImagesClient

func NewImagesClient() ImagesClient

NewImagesClient creates an instance of the ImagesClient client.

func (ImagesClient) VisualSearch

func (client ImagesClient) VisualSearch(ctx context.Context, acceptLanguage string, contentType string, userAgent string, clientID string, clientIP string, location string, market string, safeSearch SafeSearch, setLang string, knowledgeRequest string, imageParameter io.ReadCloser) (result ImageKnowledge, err error)

VisualSearch sends the visual search 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-visual-search-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-visual-search-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-visual-search-api-v7-reference#mkt) and [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-visual-search-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 - must be set to multipart/form-data and include a boundary parameter (for example, multipart/form-data; boundary=<boundary string>). For more details, see [Content form types]( https://docs.microsoft.com/en-us/azure/cognitive-services/bing-visual-search/overview#content-form-types). 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. ATTENTION: You must ensure that this Client ID is not linkable to any authenticatable user account information. 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. 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/azure/cognitive-services/bing-visual-search/supported-countries-markets). 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/azure/cognitive-services/bing-visual-search/supported-countries-markets), Bing uses a best fit market code based on an internal mapping that is subject to change. safeSearch - filter the image results in actions with type 'VisualSearch' for adult content. The following are the possible filter values. Off: May return images with adult content. Moderate: Do not return images with adult content. 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: filter in the knowledge request, 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. 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. knowledgeRequest - the form data is a JSON object that identifies the image using an insights token or URL to the image. The object may also include an optional crop area that identifies an area of interest in the image. The insights token and URL are mutually exclusive – do not specify both. You may specify knowledgeRequest form data and image form data in the same request only if knowledgeRequest form data specifies the cropArea field only (it must not include an insights token or URL). imageParameter - the form data is an image binary. The Content-Disposition header's name parameter must be set to "image". You must specify an image binary if you do not use knowledgeRequest form data to specify the image; you may not use both forms to specify an image. You may specify knowledgeRequest form data and image form data in the same request only if knowledgeRequest form data specifies the cropArea field only (it must not include an insights token or URL).

func (ImagesClient) VisualSearchPreparer

func (client ImagesClient) VisualSearchPreparer(ctx context.Context, acceptLanguage string, contentType string, userAgent string, clientID string, clientIP string, location string, market string, safeSearch SafeSearch, setLang string, knowledgeRequest string, imageParameter io.ReadCloser) (*http.Request, error)

VisualSearchPreparer prepares the VisualSearch request.

func (ImagesClient) VisualSearchResponder

func (client ImagesClient) VisualSearchResponder(resp *http.Response) (result ImageKnowledge, err error)

VisualSearchResponder handles the response to the VisualSearch request. The method always closes the http.Response Body.

func (ImagesClient) VisualSearchSender

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

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

type ImagesImageMetadata

type ImagesImageMetadata struct {
	// ShoppingSourcesCount - The number of websites that sell the products seen in the image.
	ShoppingSourcesCount *int32 `json:"shoppingSourcesCount,omitempty"`
	// RecipeSourcesCount - The number of websites that offer recipes of the food seen in the image.
	RecipeSourcesCount *int32 `json:"recipeSourcesCount,omitempty"`
	// AggregateOffer - 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.

type ImagesModule

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

ImagesModule defines a list of images.

type Intangible

type Intangible struct {
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `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) AsAction

func (i Intangible) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Intangible.

func (Intangible) AsBasicAction

func (i Intangible) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (i Intangible) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (i Intangible) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageEntityAction

func (i Intangible) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageKnowledge

func (i Intangible) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageModuleAction

func (i Intangible) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageRecipesAction

func (i Intangible) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageRelatedSearchesAction

func (i Intangible) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageShoppingSourcesAction

func (i Intangible) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Intangible.

func (Intangible) AsImageTag

func (i Intangible) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (i Intangible) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (i Intangible) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Intangible.

func (Intangible) AsRecipe

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

AsRecipe 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) 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) 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 KnowledgeRequest

type KnowledgeRequest struct {
	// Filters - A key-value object consisting of filters that may be specified to limit the results returned by the API.
	Filters *Filters `json:"filters,omitempty"`
}

KnowledgeRequest a JSON object containing information about the request, such as filters for the resulting actions.

type MediaObject

type MediaObject struct {
	// ContentURL - 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 - URL of the page that hosts the media object.
	HostPageURL *string `json:"hostPageUrl,omitempty"`
	// ContentSize - Size of the media object content. Use format "value unit" (e.g., "1024 B").
	ContentSize *string `json:"contentSize,omitempty"`
	// EncodingFormat - Encoding format (e.g., png, gif, jpeg, etc).
	EncodingFormat *string `json:"encodingFormat,omitempty"`
	// HostPageDisplayURL - Display URL of the page that hosts the media object.
	HostPageDisplayURL *string `json:"hostPageDisplayUrl,omitempty"`
	// Width - The width of the media object, in pixels.
	Width *int32 `json:"width,omitempty"`
	// Height - The height of the media object, in pixels.
	Height *int32 `json:"height,omitempty"`
	// ThumbnailURL - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

MediaObject defines a media object.

func (MediaObject) AsAction

func (mo MediaObject) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsBasicAction

func (mo MediaObject) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (mo MediaObject) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (mo MediaObject) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageEntityAction

func (mo MediaObject) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageKnowledge

func (mo MediaObject) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageModuleAction

func (mo MediaObject) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageObject

func (mo MediaObject) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageRecipesAction

func (mo MediaObject) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageRelatedSearchesAction

func (mo MediaObject) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageShoppingSourcesAction

func (mo MediaObject) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsImageTag

func (mo MediaObject) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (mo MediaObject) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (mo MediaObject) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for MediaObject.

func (MediaObject) AsRecipe

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

AsRecipe 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) 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) 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 NormalizedQuadrilateral

type NormalizedQuadrilateral struct {
	// TopLeft - The top left corner coordinate.
	TopLeft *Point2D `json:"topLeft,omitempty"`
	// TopRight - The top right corner coordinate.
	TopRight *Point2D `json:"topRight,omitempty"`
	// BottomRight - The bottom right corner coordinate.
	BottomRight *Point2D `json:"bottomRight,omitempty"`
	// BottomLeft - The bottom left corner coordinate.
	BottomLeft *Point2D `json:"bottomLeft,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

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

func (NormalizedQuadrilateral) AsAction

func (nq NormalizedQuadrilateral) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsAggregateOffer

func (nq NormalizedQuadrilateral) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicAction

func (nq NormalizedQuadrilateral) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicCreativeWork

func (nq NormalizedQuadrilateral) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicIdentifiable

func (nq NormalizedQuadrilateral) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicImageAction

func (nq NormalizedQuadrilateral) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicIntangible

func (nq NormalizedQuadrilateral) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicMediaObject

func (nq NormalizedQuadrilateral) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicOffer

func (nq NormalizedQuadrilateral) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicResponse

func (nq NormalizedQuadrilateral) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicResponseBase

func (nq NormalizedQuadrilateral) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicStructuredValue

func (nq NormalizedQuadrilateral) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsBasicThing

func (nq NormalizedQuadrilateral) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsCreativeWork

func (nq NormalizedQuadrilateral) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsErrorResponse

func (nq NormalizedQuadrilateral) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsIdentifiable

func (nq NormalizedQuadrilateral) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageAction

func (nq NormalizedQuadrilateral) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageEntityAction

func (nq NormalizedQuadrilateral) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageKnowledge

func (nq NormalizedQuadrilateral) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageModuleAction

func (nq NormalizedQuadrilateral) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageObject

func (nq NormalizedQuadrilateral) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageRecipesAction

func (nq NormalizedQuadrilateral) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageRelatedSearchesAction

func (nq NormalizedQuadrilateral) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageShoppingSourcesAction

func (nq NormalizedQuadrilateral) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsImageTag

func (nq NormalizedQuadrilateral) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsIntangible

func (nq NormalizedQuadrilateral) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsMediaObject

func (nq NormalizedQuadrilateral) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsNormalizedQuadrilateral

func (nq NormalizedQuadrilateral) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsOffer

func (nq NormalizedQuadrilateral) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsOrganization

func (nq NormalizedQuadrilateral) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsPerson

func (nq NormalizedQuadrilateral) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsPoint2D

func (nq NormalizedQuadrilateral) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsRecipe

func (nq NormalizedQuadrilateral) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsResponse

func (nq NormalizedQuadrilateral) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsResponseBase

func (nq NormalizedQuadrilateral) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsStructuredValue

func (nq NormalizedQuadrilateral) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) AsThing

func (nq NormalizedQuadrilateral) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for NormalizedQuadrilateral.

func (NormalizedQuadrilateral) MarshalJSON

func (nq NormalizedQuadrilateral) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NormalizedQuadrilateral.

type Offer

type Offer struct {
	// Seller - Seller for this offer.
	Seller *Organization `json:"seller,omitempty"`
	// Price - The item's price.
	Price *float64 `json:"price,omitempty"`
	// PriceCurrency - 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 - 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 - An aggregated rating that indicates how well the product has been rated by others.
	AggregateRating *AggregateRating `json:"aggregateRating,omitempty"`
	// LastUpdated - The last date that the offer was updated. The date is in the form YYYY-MM-DD.
	LastUpdated *string `json:"lastUpdated,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Offer defines a merchant's offer.

func (Offer) AsAction

func (o Offer) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Offer.

func (Offer) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Offer.

func (Offer) AsBasicAction

func (o Offer) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (o Offer) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (o Offer) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Offer.

func (Offer) AsImageEntityAction

func (o Offer) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Offer.

func (Offer) AsImageKnowledge

func (o Offer) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Offer.

func (Offer) AsImageModuleAction

func (o Offer) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Offer.

func (Offer) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Offer.

func (Offer) AsImageRecipesAction

func (o Offer) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Offer.

func (Offer) AsImageRelatedSearchesAction

func (o Offer) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Offer.

func (Offer) AsImageShoppingSourcesAction

func (o Offer) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Offer.

func (Offer) AsImageTag

func (o Offer) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (o Offer) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (o Offer) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Offer.

func (Offer) AsRecipe

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

AsRecipe 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) 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) MarshalJSON

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

MarshalJSON is the custom marshaler for Offer.

type Organization

type Organization struct {
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Organization defines an organization.

func (Organization) AsAction

func (o Organization) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Organization.

func (Organization) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Organization.

func (Organization) AsBasicAction

func (o Organization) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (o Organization) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (o Organization) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Organization.

func (Organization) AsImageEntityAction

func (o Organization) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Organization.

func (Organization) AsImageKnowledge

func (o Organization) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Organization.

func (Organization) AsImageModuleAction

func (o Organization) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Organization.

func (Organization) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Organization.

func (Organization) AsImageRecipesAction

func (o Organization) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Organization.

func (Organization) AsImageRelatedSearchesAction

func (o Organization) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Organization.

func (Organization) AsImageShoppingSourcesAction

func (o Organization) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Organization.

func (Organization) AsImageTag

func (o Organization) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (o Organization) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (o Organization) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Organization.

func (Organization) AsRecipe

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

AsRecipe 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) 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) MarshalJSON

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

MarshalJSON is the custom marshaler for Organization.

type Person

type Person struct {
	// JobTitle - The person's job title.
	JobTitle *string `json:"jobTitle,omitempty"`
	// TwitterProfile - The URL of the person's twitter profile.
	TwitterProfile *string `json:"twitterProfile,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Person defines a person.

func (Person) AsAction

func (p Person) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Person.

func (Person) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Person.

func (Person) AsBasicAction

func (p Person) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (p Person) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (p Person) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Person.

func (Person) AsImageEntityAction

func (p Person) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Person.

func (Person) AsImageKnowledge

func (p Person) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Person.

func (Person) AsImageModuleAction

func (p Person) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Person.

func (Person) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Person.

func (Person) AsImageRecipesAction

func (p Person) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Person.

func (Person) AsImageRelatedSearchesAction

func (p Person) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Person.

func (Person) AsImageShoppingSourcesAction

func (p Person) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Person.

func (Person) AsImageTag

func (p Person) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (p Person) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (p Person) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Person.

func (Person) AsRecipe

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

AsRecipe 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) 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) MarshalJSON

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

MarshalJSON is the custom marshaler for Person.

type Point2D

type Point2D struct {
	// X - The x-coordinate of the point.
	X *float64 `json:"x,omitempty"`
	// Y - The y-coordinate of the point.
	Y *float64 `json:"y,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Point2D defines a 2D point with X and Y coordinates.

func (Point2D) AsAction

func (p2 Point2D) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsAggregateOffer

func (p2 Point2D) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicAction

func (p2 Point2D) AsBasicAction() (BasicAction, bool)

AsBasicAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicCreativeWork

func (p2 Point2D) AsBasicCreativeWork() (BasicCreativeWork, bool)

AsBasicCreativeWork is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicIdentifiable

func (p2 Point2D) AsBasicIdentifiable() (BasicIdentifiable, bool)

AsBasicIdentifiable is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicImageAction

func (p2 Point2D) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicIntangible

func (p2 Point2D) AsBasicIntangible() (BasicIntangible, bool)

AsBasicIntangible is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicMediaObject

func (p2 Point2D) AsBasicMediaObject() (BasicMediaObject, bool)

AsBasicMediaObject is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicOffer

func (p2 Point2D) AsBasicOffer() (BasicOffer, bool)

AsBasicOffer is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicResponse

func (p2 Point2D) AsBasicResponse() (BasicResponse, bool)

AsBasicResponse is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicResponseBase

func (p2 Point2D) AsBasicResponseBase() (BasicResponseBase, bool)

AsBasicResponseBase is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicStructuredValue

func (p2 Point2D) AsBasicStructuredValue() (BasicStructuredValue, bool)

AsBasicStructuredValue is the BasicResponseBase implementation for Point2D.

func (Point2D) AsBasicThing

func (p2 Point2D) AsBasicThing() (BasicThing, bool)

AsBasicThing is the BasicResponseBase implementation for Point2D.

func (Point2D) AsCreativeWork

func (p2 Point2D) AsCreativeWork() (*CreativeWork, bool)

AsCreativeWork is the BasicResponseBase implementation for Point2D.

func (Point2D) AsErrorResponse

func (p2 Point2D) AsErrorResponse() (*ErrorResponse, bool)

AsErrorResponse is the BasicResponseBase implementation for Point2D.

func (Point2D) AsIdentifiable

func (p2 Point2D) AsIdentifiable() (*Identifiable, bool)

AsIdentifiable is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageAction

func (p2 Point2D) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageEntityAction

func (p2 Point2D) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageKnowledge

func (p2 Point2D) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageModuleAction

func (p2 Point2D) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageObject

func (p2 Point2D) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageRecipesAction

func (p2 Point2D) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageRelatedSearchesAction

func (p2 Point2D) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageShoppingSourcesAction

func (p2 Point2D) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Point2D.

func (Point2D) AsImageTag

func (p2 Point2D) AsImageTag() (*ImageTag, bool)

AsImageTag is the BasicResponseBase implementation for Point2D.

func (Point2D) AsIntangible

func (p2 Point2D) AsIntangible() (*Intangible, bool)

AsIntangible is the BasicResponseBase implementation for Point2D.

func (Point2D) AsMediaObject

func (p2 Point2D) AsMediaObject() (*MediaObject, bool)

AsMediaObject is the BasicResponseBase implementation for Point2D.

func (Point2D) AsNormalizedQuadrilateral

func (p2 Point2D) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral is the BasicResponseBase implementation for Point2D.

func (Point2D) AsOffer

func (p2 Point2D) AsOffer() (*Offer, bool)

AsOffer is the BasicResponseBase implementation for Point2D.

func (Point2D) AsOrganization

func (p2 Point2D) AsOrganization() (*Organization, bool)

AsOrganization is the BasicResponseBase implementation for Point2D.

func (Point2D) AsPerson

func (p2 Point2D) AsPerson() (*Person, bool)

AsPerson is the BasicResponseBase implementation for Point2D.

func (Point2D) AsPoint2D

func (p2 Point2D) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Point2D.

func (Point2D) AsRecipe

func (p2 Point2D) AsRecipe() (*Recipe, bool)

AsRecipe is the BasicResponseBase implementation for Point2D.

func (Point2D) AsResponse

func (p2 Point2D) AsResponse() (*Response, bool)

AsResponse is the BasicResponseBase implementation for Point2D.

func (Point2D) AsResponseBase

func (p2 Point2D) AsResponseBase() (*ResponseBase, bool)

AsResponseBase is the BasicResponseBase implementation for Point2D.

func (Point2D) AsStructuredValue

func (p2 Point2D) AsStructuredValue() (*StructuredValue, bool)

AsStructuredValue is the BasicResponseBase implementation for Point2D.

func (Point2D) AsThing

func (p2 Point2D) AsThing() (*Thing, bool)

AsThing is the BasicResponseBase implementation for Point2D.

func (Point2D) MarshalJSON

func (p2 Point2D) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Point2D.

type PropertiesItem

type PropertiesItem struct {
	// Text - Text representation of an item.
	Text *string `json:"text,omitempty"`
	// Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating'
	Type TypeBasicPropertiesItem `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 - The display version of the query term.
	DisplayText *string `json:"displayText,omitempty"`
	// WebSearchURL - The URL that takes the user to the Bing search results page for the query.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// SearchLink - 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 - The URL to a thumbnail of a related image.
	Thumbnail *ImageObject `json:"thumbnail,omitempty"`
}

Query defines a search 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 - The highest rated review. The possible values are 1.0 through 5.0.
	BestRating *float64 `json:"bestRating,omitempty"`
	// Text - Text representation of an item.
	Text *string `json:"text,omitempty"`
	// Type - Possible values include: 'TypePropertiesItem', 'TypeAggregateRating', 'TypeRating'
	Type TypeBasicPropertiesItem `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 - 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 - 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 - 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 - The URL to a thumbnail of the item.
	ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
	// Provider - The source of the creative work.
	Provider *[]BasicThing `json:"provider,omitempty"`
	// DatePublished - The date on which the CreativeWork was published.
	DatePublished *string `json:"datePublished,omitempty"`
	// Text - Text content of this creative work.
	Text *string `json:"text,omitempty"`
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Recipe defines a cooking recipe.

func (Recipe) AsAction

func (r Recipe) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Recipe.

func (Recipe) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Recipe.

func (Recipe) AsBasicAction

func (r Recipe) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (r Recipe) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (r Recipe) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageEntityAction

func (r Recipe) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageKnowledge

func (r Recipe) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageModuleAction

func (r Recipe) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageRecipesAction

func (r Recipe) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageRelatedSearchesAction

func (r Recipe) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageShoppingSourcesAction

func (r Recipe) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Recipe.

func (Recipe) AsImageTag

func (r Recipe) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (r Recipe) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (r Recipe) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Recipe.

func (Recipe) AsRecipe

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

AsRecipe 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) 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) 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 - A list of recipes.
	Value *[]Recipe `json:"value,omitempty"`
}

RecipesModule defines a list of recipes.

type RelatedSearchesModule

type RelatedSearchesModule struct {
	// Value - A list of related searches.
	Value *[]Query `json:"value,omitempty"`
}

RelatedSearchesModule defines a list of related searches.

type Request

type Request struct {
	// ImageInfo - A JSON object that identities the image to get insights of.
	ImageInfo *ImageInfo `json:"imageInfo,omitempty"`
	// KnowledgeRequest - A JSON object containing information about the request, such as filters, or a description.
	KnowledgeRequest *KnowledgeRequest `json:"knowledgeRequest,omitempty"`
}

Request a JSON object that contains information about the image to get insights of. Specify this object only in a knowledgeRequest form data.

type Response

type Response struct {
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Response defines a response. All schemas that return at the root of the response must inherit from this object.

func (Response) AsAction

func (r Response) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Response.

func (Response) AsAggregateOffer

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

AsAggregateOffer is the BasicResponseBase implementation for Response.

func (Response) AsBasicAction

func (r Response) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (r Response) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (r Response) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Response.

func (Response) AsImageEntityAction

func (r Response) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Response.

func (Response) AsImageKnowledge

func (r Response) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Response.

func (Response) AsImageModuleAction

func (r Response) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Response.

func (Response) AsImageObject

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

AsImageObject is the BasicResponseBase implementation for Response.

func (Response) AsImageRecipesAction

func (r Response) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Response.

func (Response) AsImageRelatedSearchesAction

func (r Response) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Response.

func (Response) AsImageShoppingSourcesAction

func (r Response) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Response.

func (Response) AsImageTag

func (r Response) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (r Response) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (r Response) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Response.

func (Response) AsRecipe

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

AsRecipe 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) 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) MarshalJSON

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

MarshalJSON is the custom marshaler for Response.

type ResponseBase

type ResponseBase struct {
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

ResponseBase response base.

func (ResponseBase) AsAction

func (rb ResponseBase) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsAggregateOffer

func (rb ResponseBase) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsBasicAction

func (rb ResponseBase) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (rb ResponseBase) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (rb ResponseBase) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageEntityAction

func (rb ResponseBase) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageKnowledge

func (rb ResponseBase) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageModuleAction

func (rb ResponseBase) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageObject

func (rb ResponseBase) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageRecipesAction

func (rb ResponseBase) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageRelatedSearchesAction

func (rb ResponseBase) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageShoppingSourcesAction

func (rb ResponseBase) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsImageTag

func (rb ResponseBase) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (rb ResponseBase) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (rb ResponseBase) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for ResponseBase.

func (ResponseBase) AsRecipe

func (rb ResponseBase) AsRecipe() (*Recipe, bool)

AsRecipe 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) 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) 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 StructuredValue

type StructuredValue struct {
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

StructuredValue ...

func (StructuredValue) AsAction

func (sv StructuredValue) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsAggregateOffer

func (sv StructuredValue) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsBasicAction

func (sv StructuredValue) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (sv StructuredValue) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (sv StructuredValue) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageEntityAction

func (sv StructuredValue) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageKnowledge

func (sv StructuredValue) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageModuleAction

func (sv StructuredValue) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageObject

func (sv StructuredValue) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageRecipesAction

func (sv StructuredValue) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageRelatedSearchesAction

func (sv StructuredValue) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageShoppingSourcesAction

func (sv StructuredValue) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsImageTag

func (sv StructuredValue) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (sv StructuredValue) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (sv StructuredValue) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for StructuredValue.

func (StructuredValue) AsRecipe

func (sv StructuredValue) AsRecipe() (*Recipe, bool)

AsRecipe 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) 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) MarshalJSON

func (sv StructuredValue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StructuredValue.

type Thing

type Thing struct {
	// Name - The name of the thing represented by this object.
	Name *string `json:"name,omitempty"`
	// URL - The URL to get more information about the thing represented by this object.
	URL *string `json:"url,omitempty"`
	// Image - An image of the item.
	Image *ImageObject `json:"image,omitempty"`
	// Description - A short description of the item.
	Description *string `json:"description,omitempty"`
	// AlternateName - An alias for the item.
	AlternateName *string `json:"alternateName,omitempty"`
	// BingID - An ID that uniquely identifies this item.
	BingID *string `json:"bingId,omitempty"`
	// ReadLink - The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
	ReadLink *string `json:"readLink,omitempty"`
	// WebSearchURL - The URL to Bing's search result for this item.
	WebSearchURL *string `json:"webSearchUrl,omitempty"`
	// ID - A String identifier.
	ID *string `json:"id,omitempty"`
	// Type - Possible values include: 'TypeResponseBase', 'TypePoint2D', 'TypeNormalizedQuadrilateral', 'TypeImageAction', 'TypeImageTag', 'TypeOrganization', 'TypeOffer', 'TypeAggregateOffer', 'TypeImageObject', 'TypeImageKnowledge', 'TypeResponse', 'TypeIdentifiable', 'TypeErrorResponse', 'TypeThing', 'TypeAction', 'TypeMediaObject', 'TypeCreativeWork', 'TypePerson', 'TypeIntangible', 'TypeImageEntityAction', 'TypeImageModuleAction', 'TypeRecipe', 'TypeImageRecipesAction', 'TypeImageRelatedSearchesAction', 'TypeImageShoppingSourcesAction', 'TypeStructuredValue'
	Type Type `json:"_type,omitempty"`
}

Thing defines a thing.

func (Thing) AsAction

func (t Thing) AsAction() (*Action, bool)

AsAction is the BasicResponseBase implementation for Thing.

func (Thing) AsAggregateOffer

func (t Thing) AsAggregateOffer() (*AggregateOffer, bool)

AsAggregateOffer is the BasicResponseBase implementation for Thing.

func (Thing) AsBasicAction

func (t Thing) AsBasicAction() (BasicAction, bool)

AsBasicAction 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) AsBasicImageAction

func (t Thing) AsBasicImageAction() (BasicImageAction, bool)

AsBasicImageAction 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) 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) 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) AsImageAction

func (t Thing) AsImageAction() (*ImageAction, bool)

AsImageAction is the BasicResponseBase implementation for Thing.

func (Thing) AsImageEntityAction

func (t Thing) AsImageEntityAction() (*ImageEntityAction, bool)

AsImageEntityAction is the BasicResponseBase implementation for Thing.

func (Thing) AsImageKnowledge

func (t Thing) AsImageKnowledge() (*ImageKnowledge, bool)

AsImageKnowledge is the BasicResponseBase implementation for Thing.

func (Thing) AsImageModuleAction

func (t Thing) AsImageModuleAction() (*ImageModuleAction, bool)

AsImageModuleAction is the BasicResponseBase implementation for Thing.

func (Thing) AsImageObject

func (t Thing) AsImageObject() (*ImageObject, bool)

AsImageObject is the BasicResponseBase implementation for Thing.

func (Thing) AsImageRecipesAction

func (t Thing) AsImageRecipesAction() (*ImageRecipesAction, bool)

AsImageRecipesAction is the BasicResponseBase implementation for Thing.

func (Thing) AsImageRelatedSearchesAction

func (t Thing) AsImageRelatedSearchesAction() (*ImageRelatedSearchesAction, bool)

AsImageRelatedSearchesAction is the BasicResponseBase implementation for Thing.

func (Thing) AsImageShoppingSourcesAction

func (t Thing) AsImageShoppingSourcesAction() (*ImageShoppingSourcesAction, bool)

AsImageShoppingSourcesAction is the BasicResponseBase implementation for Thing.

func (Thing) AsImageTag

func (t Thing) AsImageTag() (*ImageTag, bool)

AsImageTag 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) AsNormalizedQuadrilateral

func (t Thing) AsNormalizedQuadrilateral() (*NormalizedQuadrilateral, bool)

AsNormalizedQuadrilateral 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) AsPoint2D

func (t Thing) AsPoint2D() (*Point2D, bool)

AsPoint2D is the BasicResponseBase implementation for Thing.

func (Thing) AsRecipe

func (t Thing) AsRecipe() (*Recipe, bool)

AsRecipe 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) 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) MarshalJSON

func (t Thing) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Thing.

type Type

type Type string

Type enumerates the values for type.

const (
	// TypeAction ...
	TypeAction Type = "Action"
	// TypeAggregateOffer ...
	TypeAggregateOffer Type = "AggregateOffer"
	// TypeCreativeWork ...
	TypeCreativeWork Type = "CreativeWork"
	// TypeErrorResponse ...
	TypeErrorResponse Type = "ErrorResponse"
	// TypeIdentifiable ...
	TypeIdentifiable Type = "Identifiable"
	// TypeImageAction ...
	TypeImageAction Type = "ImageAction"
	// TypeImageEntityAction ...
	TypeImageEntityAction Type = "ImageEntityAction"
	// TypeImageKnowledge ...
	TypeImageKnowledge Type = "ImageKnowledge"
	// TypeImageModuleAction ...
	TypeImageModuleAction Type = "ImageModuleAction"
	// TypeImageObject ...
	TypeImageObject Type = "ImageObject"
	// TypeImageRecipesAction ...
	TypeImageRecipesAction Type = "ImageRecipesAction"
	// TypeImageRelatedSearchesAction ...
	TypeImageRelatedSearchesAction Type = "ImageRelatedSearchesAction"
	// TypeImageShoppingSourcesAction ...
	TypeImageShoppingSourcesAction Type = "ImageShoppingSourcesAction"
	// TypeImageTag ...
	TypeImageTag Type = "ImageTag"
	// TypeIntangible ...
	TypeIntangible Type = "Intangible"
	// TypeMediaObject ...
	TypeMediaObject Type = "MediaObject"
	// TypeNormalizedQuadrilateral ...
	TypeNormalizedQuadrilateral Type = "NormalizedQuadrilateral"
	// TypeOffer ...
	TypeOffer Type = "Offer"
	// TypeOrganization ...
	TypeOrganization Type = "Organization"
	// TypePerson ...
	TypePerson Type = "Person"
	// TypePoint2D ...
	TypePoint2D Type = "Point2D"
	// TypeRecipe ...
	TypeRecipe Type = "Recipe"
	// TypeResponse ...
	TypeResponse Type = "Response"
	// TypeResponseBase ...
	TypeResponseBase Type = "ResponseBase"
	// TypeStructuredValue ...
	TypeStructuredValue Type = "StructuredValue"
	// TypeThing ...
	TypeThing Type = "Thing"
)

func PossibleTypeValues

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type TypeBasicPropertiesItem

type TypeBasicPropertiesItem string

TypeBasicPropertiesItem enumerates the values for type basic properties item.

const (
	// TypeAggregateRating ...
	TypeAggregateRating TypeBasicPropertiesItem = "AggregateRating"
	// TypePropertiesItem ...
	TypePropertiesItem TypeBasicPropertiesItem = "Properties/Item"
	// TypeRating ...
	TypeRating TypeBasicPropertiesItem = "Rating"
)

func PossibleTypeBasicPropertiesItemValues

func PossibleTypeBasicPropertiesItemValues() []TypeBasicPropertiesItem

PossibleTypeBasicPropertiesItemValues returns an array of possible values for the TypeBasicPropertiesItem const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL